fix: 拓扑图节点排除LAN

This commit is contained in:
TsMask
2024-01-30 15:58:53 +08:00
parent 15ab2908be
commit 4d1b3d6a90
3 changed files with 25 additions and 21 deletions

View File

@@ -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;
}