给指向freed结点的边增加freed标志

This commit is contained in:
cjc
2022-03-02 15:04:29 +08:00
parent 2a09ca6be1
commit 5bee1cda0a
2 changed files with 216 additions and 229 deletions
+2 -2
View File
@@ -43,9 +43,9 @@ export class SVLink extends SVModel {
target: this.target.id,
sourceAnchor,
targetAnchor,
label: options.label,
label: this.target.sourceNode.freed ? 'freed' : options.label,
style: Util.objectClone<Style>(options.style),
labelCfg: Util.objectClone<LinkLabelOption>(options.labelOptions),
labelCfg: this.target.sourceNode.freed ? {position: 'start', autoRotate: true, refY:5 ,style: { fontSize: 10, opacity: 0.7}} : Util.objectClone<LinkLabelOption>(options.labelOptions),
curveOffset: options.curveOffset
};
}