修改指针高亮的bug

This commit is contained in:
cjc 2022-04-15 20:02:07 +08:00
parent 7eee29ce32
commit b2aee6ed0a

View File

@ -77,7 +77,7 @@ export class SVLink extends SVModel {
}
isEqual(link: SVLink): boolean {
return link.targetId === this.targetId && link.nodeId === this.nodeId && link.linkIndex === this.linkIndex;
return (link.sourceType.includes(this.sourceType.toLocaleLowerCase())|| this.sourceType.includes(link.sourceType.toLowerCase())) && link.targetId === this.targetId && link.nodeId === this.nodeId && link.linkIndex === this.linkIndex;
}
beforeDestroy(): void {