Class SnapLinesHandler
Constructors
(constructor)(conf)
Constructs a new instance of the SnapLinesHandler class
Declaration
constructor(conf?: ISnapLinesConfiguration);
Parameters
Properties
configuration
Declaration
get configuration(): ISnapLinesConfiguration;
Property Value
currentItemRectangle
Declaration
get currentItemRectangle(): RotatedRectangleF;
Property Value
SnapResult
Declaration
static SnapResult: {
new (): {
diffValue: number;
activeAnchorIndex: number;
activePointIndex: number;
};
};
Property Value
| Type |
Description |
| {
new (): {
diffValue: number;
activeAnchorIndex: number;
activePointIndex: number;
};
} |
|
Methods
clearSnapData()
Declaration
Returns
constrainMoveDataToSnapLines(moveData, canvas, allowMoveHorizontal, allowMoveVertical)
Declaration
constrainMoveDataToSnapLines(moveData: IMoveData, canvas: Canvas, allowMoveHorizontal: boolean, allowMoveVertical: boolean): PointF;
Parameters
| Type |
Name |
Description |
| IMoveData |
moveData |
|
| Canvas |
canvas |
|
| boolean |
allowMoveHorizontal |
|
| boolean |
allowMoveVertical |
|
Returns
constrainRectangleToSnapLines(rect, oldRectWithBorder, arbitraryResize, resizeIndex, rectWithFramesAndBorder, rectWithBorder, canvas, border)
Declaration
constrainRectangleToSnapLines(rect: RotatedRectangleF, oldRectWithBorder: RotatedRectangleF, arbitraryResize: boolean, resizeIndex: number, rectWithFramesAndBorder: RotatedRectangleF, rectWithBorder: RotatedRectangleF, canvas: Canvas, border: ILtrb): RotatedRectangleF;
Parameters
Returns
fillSnapData(startRectangle, startRectangleWithFrames, startRectangleWithBorder, region, interactiveZonesBounds, canvas, isDrag)
Declaration
fillSnapData(startRectangle: RotatedRectangleF, startRectangleWithFrames: RotatedRectangleF, startRectangleWithBorder: RectangleF, region: RectangleF, interactiveZonesBounds: RectangleF[], canvas: Canvas, isDrag: boolean): void;
Parameters
Returns
getHorizontalLineData()
Declaration
getHorizontalLineData(): ISnapLineData;
Returns
getVerticalLineData()
Declaration
getVerticalLineData(): ISnapLineData;
Returns
resetActiveLines()
Declaration
resetActiveLines(): void;
Returns
setConfiguration(conf)
Declaration
setConfiguration(conf?: ISnapLinesConfiguration): void;
Parameters
Returns