Skip to main content

SnapLinesHandler

Classes​

SnapLinesHandler​

Implements​

Constructors​

Constructor​
new SnapLinesHandler(conf?): SnapLinesHandler;
Parameters​
ParameterType
conf?ISnapLinesConfiguration
Returns​

SnapLinesHandler

Properties​

SnapResult​
static SnapResult: typeof __class;

Accessors​

configuration​
Get Signature​
get configuration(): ISnapLinesConfiguration;
Returns​

ISnapLinesConfiguration

currentItemRectangle​
Get Signature​
get currentItemRectangle(): RotatedRectangleF;
Returns​

RotatedRectangleF

Implementation of​

ISnapLinesHandler.currentItemRectangle

Methods​

clearSnapData()​
clearSnapData(): void;
Returns​

void

constrainMoveDataToSnapLines()​
constrainMoveDataToSnapLines(
moveData,
canvas,
allowMoveHorizontal,
allowMoveVertical): any;
Parameters​
ParameterType
moveDataIMoveData
canvasCanvas
allowMoveHorizontalboolean
allowMoveVerticalboolean
Returns​

any

constrainRectangleToSnapLines()​
constrainRectangleToSnapLines(
rect,
oldRectWithBorder,
arbitraryResize,
resizeIndex,
rectWithFramesAndBorder,
rectWithBorder,
canvas,
border): any;
Parameters​
ParameterType
rectRotatedRectangleF
oldRectWithBorderRotatedRectangleF
arbitraryResizeboolean
resizeIndexnumber
rectWithFramesAndBorderRotatedRectangleF
rectWithBorderRotatedRectangleF
canvasCanvas
borderILtrb
Returns​

any

fillSnapData()​
fillSnapData(
startRectangle,
startRectangleWithFrames,
startRectangleWithBorder,
region,
interactiveZonesBounds,
canvas,
isDrag): void;
Parameters​
ParameterType
startRectangleRotatedRectangleF
startRectangleWithFramesRotatedRectangleF
startRectangleWithBorderRectangleF
regionRectangleF
interactiveZonesBoundsRectangleF[]
canvasCanvas
isDragboolean
Returns​

void

getHorizontalLineData()​
getHorizontalLineData(): ISnapLineData;
Returns​

ISnapLineData

Implementation of​

ISnapLinesHandler.getHorizontalLineData

getVerticalLineData()​
getVerticalLineData(): ISnapLineData;
Returns​

ISnapLineData

Implementation of​

ISnapLinesHandler.getVerticalLineData

resetActiveLines()​
resetActiveLines(): void;
Returns​

void

setConfiguration()​
setConfiguration(conf?): void;
Parameters​
ParameterType
conf?ISnapLinesConfiguration
Returns​

void

Interfaces​

ISnapItemConfiguration​

Extends​

Properties​

color​
color: string;
Inherited from​

ISnapElementConfiguration.color

enabled​
enabled: boolean;
Inherited from​

ISnapElementConfiguration.enabled

includeLocked​
includeLocked: boolean;
priority​
priority: number;
Inherited from​

ISnapElementConfiguration.priority

tolerance​
tolerance: number;
Inherited from​

ISnapElementConfiguration.tolerance


ISnapLinesConfiguration​

Properties​

snapElements​
snapElements: object;
grid​
grid: ISnapElementConfiguration;
interactiveZones​
interactiveZones: ISnapElementConfiguration;
items​
items: ISnapItemConfiguration;
printArea​
printArea: ISnapElementConfiguration;
region​
region: ISnapElementConfiguration;
safetyLines​
safetyLines: ISnapElementConfiguration;

Type Aliases​

SnapDataType​

type SnapDataType = object;

Properties​

activeXAnchorIndex​
activeXAnchorIndex: number;
activeXPointIndex​
activeXPointIndex: number;
activeYAnchorIndex​
activeYAnchorIndex: number;
activeYPointIndex​
activeYPointIndex: number;
defaultBounds​
defaultBounds: MultiSelectMode;
xAnchors​
xAnchors: IAnchor[];
xPoints​
xPoints: number[];
yAnchors​
yAnchors: IAnchor[];
yPoints​
yPoints: number[];
Was this page helpful?