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. See the Extensions intro page for more information.
Constructs a LinkShiftingTool and sets the handles and name of the tool.
Optional
init: Partial<LinkShiftingTool>A small GraphObject used as a shifting handle.
A small GraphObject used as a shifting handle.
Override
canOverride
doOverride
doOverride
doOverride
doCall doReshape with a new point determined by the mouse to change the end point of the link.
Override
doReshape the link's end with a point based on the most recent mouse point by calling doReshape, and then stop this tool.
Override
doOverride
updateShow an go.Adornment with a reshape handle at each end of the link which allows for shifting of the end points.
The LinkShiftingTool class lets the user shift the end of a link to be anywhere along the edges of the port; use it in a diagram.toolManager.mouseDownTools list:
If you want to experiment with this extension, try the Link Shifting sample.