fix: 看板拓扑边动画状态
This commit is contained in:
@@ -143,15 +143,15 @@ export function neStateParse(neType: string, data: Record<string, any>) {
|
|||||||
// 设置状态
|
// 设置状态
|
||||||
graphG6.value.setItemState(
|
graphG6.value.setItemState(
|
||||||
edge.id,
|
edge.id,
|
||||||
'line-dash',
|
'circle-move',
|
||||||
neS.neState.online && neT.neState.online
|
neS.neState.online && neT.neState.online
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (neS && notNeNodes.includes(edgeTarget)) {
|
if (neS && notNeNodes.includes(edgeTarget)) {
|
||||||
graphG6.value.setItemState(edge.id, 'line-path', neS.neState.online);
|
graphG6.value.setItemState(edge.id, 'line-dash', neS.neState.online);
|
||||||
}
|
}
|
||||||
if (neT && notNeNodes.includes(edgeSource)) {
|
if (neT && notNeNodes.includes(edgeSource)) {
|
||||||
graphG6.value.setItemState(edge.id, 'line-path', neT.neState.online);
|
graphG6.value.setItemState(edge.id, 'line-dash', neT.neState.online);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -445,15 +445,15 @@ function wsMessage(res: Record<string, any>) {
|
|||||||
// 设置状态
|
// 设置状态
|
||||||
graphG6.value.setItemState(
|
graphG6.value.setItemState(
|
||||||
edge.id,
|
edge.id,
|
||||||
'line-dash',
|
'circle-move',
|
||||||
neS.neState.online && neT.neState.online
|
neS.neState.online && neT.neState.online
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (neS && notNeNodes.includes(edgeTarget)) {
|
if (neS && notNeNodes.includes(edgeTarget)) {
|
||||||
graphG6.value.setItemState(edge.id, 'line-path', neS.neState.online);
|
graphG6.value.setItemState(edge.id, 'line-dash', neS.neState.online);
|
||||||
}
|
}
|
||||||
if (neT && notNeNodes.includes(edgeSource)) {
|
if (neT && notNeNodes.includes(edgeSource)) {
|
||||||
graphG6.value.setItemState(edge.id, 'line-path', neT.neState.online);
|
graphG6.value.setItemState(edge.id, 'line-dash', neT.neState.online);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user