提交 61d1bb00 编写于 作者: P pissang

fix(state): fix wrong blurScope if series has no coordSys

上级 12bffab6
......@@ -329,11 +329,14 @@ export function toggleSeriesBlurStates(
if (coordSys && (coordSys as CoordinateSystem).master) {
coordSys = (coordSys as CoordinateSystem).master;
}
const sameCoordSys = coordSys && targetCoordSys
? coordSys === targetCoordSys
: sameSeries; // If there is no coordinate system. use sameSeries instead.
if (!(
// Not blur other series if blurScope series
blurScope === 'series' && !sameSeries
// Not blur other coordinate system if blurScope is coordinateSystem
|| blurScope === 'coordinateSystem' && !(coordSys && targetCoordSys && coordSys === targetCoordSys)
|| blurScope === 'coordinateSystem' && !sameCoordSys
// Not blur self series if focus is series.
|| focus === 'series' && sameSeries
// TODO blurScope: coordinate system
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册