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.
This custom Link class customizes its Shape to surround the comment node (the from node). If the Shape is filled, it will obscure the comment itself unless the Link is behind the comment node. Thus the default layer for BalloonLinks is "Background".
The "corner" property controls the radius of the curves at the corners of the rectangular area surrounding the comment node, rather than the curve at corners along the route, which is always straight. The default value is 10.
If you want to experiment with this extension, try the Balloon Links sample.
Gets or sets width of the base of the triangle at the center point of the Link.fromNode.
The default value is 15.
Copies properties to a cloned BalloonLink.