Back to Website
Show / Hide Table of Contents

Class SnapLinesHandler

Package: @aurigma/design-atoms

Constructors

(constructor)(conf)

Constructs a new instance of the SnapLinesHandler class

Declaration
constructor(conf?: ISnapLinesConfiguration);
Parameters
Type Name Description
ISnapLinesConfiguration conf

Properties

configuration

Declaration
get configuration(): ISnapLinesConfiguration;
Property Value
Type Description
ISnapLinesConfiguration

currentItemRectangle

Declaration
get currentItemRectangle(): RotatedRectangleF;
Property Value
Type Description
RotatedRectangleF

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
clearSnapData(): void;
Returns
Type Description
void

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
Type Description
PointF

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
Type Name Description
RotatedRectangleF rect
RotatedRectangleF oldRectWithBorder
boolean arbitraryResize
number resizeIndex
RotatedRectangleF rectWithFramesAndBorder
RotatedRectangleF rectWithBorder
Canvas canvas
ILtrb border
Returns
Type Description
RotatedRectangleF

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
Type Name Description
RotatedRectangleF startRectangle
RotatedRectangleF startRectangleWithFrames
RectangleF startRectangleWithBorder
RectangleF region
RectangleF[] interactiveZonesBounds
Canvas canvas
boolean isDrag
Returns
Type Description
void

getHorizontalLineData()

Declaration
getHorizontalLineData(): ISnapLineData;
Returns
Type Description
ISnapLineData

getVerticalLineData()

Declaration
getVerticalLineData(): ISnapLineData;
Returns
Type Description
ISnapLineData

resetActiveLines()

Declaration
resetActiveLines(): void;
Returns
Type Description
void

setConfiguration(conf)

Declaration
setConfiguration(conf?: ISnapLinesConfiguration): void;
Parameters
Type Name Description
ISnapLinesConfiguration conf
Returns
Type Description
void
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback