fix: 拓扑取网元状态改ws读取

This commit is contained in:
TsMask
2024-01-29 18:37:00 +08:00
parent cf944a67bd
commit d5f2ca71cf
3 changed files with 109 additions and 59 deletions

View File

@@ -146,7 +146,7 @@ export function edgeLineAnimateState() {
}
if (value) {
// 第一个矩形边
const fillColor = model?.labelCfg?.style?.fill || '#1890ff';
const fillColor = typeof value === 'string' ? value : '#1890ff';
// 边缘路径的起始位置
const startPoint = keyShape.getPoint(0);
back1 = group.addShape('circle', {
@@ -221,7 +221,7 @@ export function edgeLineAnimateState() {
index = 0;
}
return {
lineDash: [4, 2, 1, 2],
lineDash: [4, 2, 2, 2],
lineDashOffset: -index,
};
},