0
diagrams.toolManager.linkingTool.temporaryLink.routing = go.Link.Orthogonal;
diagrams.toolManager.relinkingTool.temporaryLink.routing = go.Link.Orthogonal;
Code du lien:
this.go.Link, // the whole link panel
{
routing: this.go.Link.AvoidsNodes,
curve: this.go.Link.JumpOver,
corner: 5, toShortLength: 4,
relinkableFrom: true,
relinkableTo: true,
reshapable: true,
resegmentable: true,
toPortChanged: (a, b, c) =>{ console.log(a,"test");},
mouseEnter: (e, link) => { link.findObject("HIGHLIGHT").stroke = "rgba(30,144,255,0.2)"; },
mouseLeave: (e, link) => { link.findObject("HIGHLIGHT").stroke = "transparent"; }
},
ligne Lien toujours reconnecté à plus court chemin entre les blocs (du bloc à gauche au bloc à droite)