This is an extension and not part of the main GoJS library. Note that the API for this class may change at any time. If you intend to use an extension in production, you should copy the code to your own source directory. Extensions can be found in the GoJS kit under the extensions
(for loading via script tags),extensionsTS
(UMD modules), or extensionsJSM
(ES6 modules) folders. See the Extensions intro page for more information.
Constructs an empty link that does not connect any nodes. If you want the link to be seen, you must provide a Shape as an element to be used as the visual path for the link.
Usage example:
// Constructs a Link, sets properties on it,
// adds a data binding to it,
// and adds two Shapes to the Link:
const l = new go.Link({
routing: go.Link.Orthogonal
})
.add(new go.Shape({ strokeWidth: 2 }))
.add(new go.Shape({ toArrow: "Standard" }))
Optional initialization properties.
Constructs the link's route by modifying points.
true if it computed a route of points
This custom Link class customizes its route to go parallel to other links connecting the same ports, if the link is not orthogonal and is not Bezier curved.
If you want to experiment with this extension, try the Parallel Route Links sample.