Class SnapLinkReshapingTool

GoJS® Diagramming Components
version 3.0.15
by Northwoods Software®

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.

Hierarchy (view full)

The SnapLinkReshapingTool class lets the user snap link reshaping handles to the nearest grid point. If avoidsNodes is true and the link is orthogonal, it also avoids reshaping the link so that any adjacent segments cross over any avoidable nodes.

If you want to experiment with this extension, try the Snap Link Reshaping sample.

Index

Constructors

Accessors

  • Gets or sets whether a reshape handle's position should only be dragged where the adjacent segments do not cross over any nodes. This affects the behavior of computeReshape.

    The default value is true.

  • Gets or sets whether a reshape handle's position should be snapped to a grid point. This affects the behavior of computeReshape.

    The default value is true.

Methods

  • This override records information about the original point of the handle being dragged, if the adornedLink is Orthogonal and if avoidsNodes is true.

    Returns void