fix: 拓扑图节点排除LAN
This commit is contained in:
@@ -208,11 +208,15 @@ export function edgeLineAnimateState() {
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// line-dash 虚线运动
|
||||
if (name === 'line-dash') {
|
||||
if (value) {
|
||||
if (keyShape.cfg.animating) return;
|
||||
keyShape.stopAnimate();
|
||||
keyShape.attr({
|
||||
lineDash: null,
|
||||
lineDashOffset: null,
|
||||
});
|
||||
let index = 0;
|
||||
keyShape.animate(
|
||||
() => {
|
||||
@@ -221,7 +225,7 @@ export function edgeLineAnimateState() {
|
||||
index = 0;
|
||||
}
|
||||
return {
|
||||
lineDash: [4, 2, 2, 2],
|
||||
lineDash: [4, 2, 1, 2],
|
||||
lineDashOffset: -index,
|
||||
};
|
||||
},
|
||||
@@ -230,12 +234,6 @@ export function edgeLineAnimateState() {
|
||||
duration: 3000, // 执行一次的持续时间
|
||||
}
|
||||
);
|
||||
} else {
|
||||
keyShape.stopAnimate();
|
||||
keyShape.attr({
|
||||
lineDash: null,
|
||||
lineDashOffset: null,
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user