import * as go from '../../../../libs/gojs/release/go'; export declare class SnapLinkReshapingTool extends go.LinkReshapingTool { /** * @constructor * @extends LinkReshapingTool * @class * This SnapLinkReshapingTool class supports snapping reshaping handles to go to the nearest grid point. */ constructor(); /** * Gets or sets the {@link Size} of each grid cell to which link points will be snapped. * The default value is NaNxNaN, which means use the {@link Diagram#grid}'s {@link Panel#gridCellSize}. * @name SnapLinkReshapingTool#gridCellSize * @function. * @return {Size} */ private _gridCellSize; gridCellSize: go.Size; /** * Gets or sets the {@link Point} origin for the grid to which link points will be snapped. * The default value is NaN,NaN, which means use the {@link Diagram#grid}'s {@link Panel#gridOrigin}. * @name SnapLinkReshapingTool#gridOrigin * @function. * @return {Point} */ private _gridOrigin; gridOrigin: go.Point; /** * Gets or sets whether a reshape handle's position should be snapped to a grid point. * The default value is true. * This affects the behavior of {@link #computeReshape}. */ private _isGridSnapEnabled; isGridSnapEnabled: boolean; /** * @override * Pretend while dragging a reshape handle the mouse point is at the nearest grid point, * if {@link #isGridSnapEnabled} is true. * This uses {@link #gridCellSize} and {@link #gridOrigin}, unless those are not real values, * in which case this uses the {@link Diagram#grid}'s {@link Panel#gridCellSize} and {@link Panel#gridOrigin}. * @this {SnapLinkReshapingTool} * @param {Point} p * @return {Point} */ computeReshape(p: any): go.Point; }