SnapLinesHandler
Classes
SnapLinesHandler
Implements
Constructors
Constructor
new SnapLinesHandler(conf?): SnapLinesHandler;
Parameters
| Parameter | Type |
|---|---|
conf? | ISnapLinesConfiguration |
Returns
Properties
SnapResult
static SnapResult: typeof __class;
Accessors
configuration
Get Signature
get configuration(): ISnapLinesConfiguration;
Returns
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
| Parameter | Type |
|---|---|
moveData | IMoveData |
canvas | Canvas |
allowMoveHorizontal | boolean |
allowMoveVertical | boolean |
Returns
any
constrainRectangleToSnapLines()
constrainRectangleToSnapLines(
rect,
oldRectWithBorder,
arbitraryResize,
resizeIndex,
rectWithFramesAndBorder,
rectWithBorder,
canvas,
border): any;
Parameters
| Parameter | Type |
|---|---|
rect | RotatedRectangleF |
oldRectWithBorder | RotatedRectangleF |
arbitraryResize | boolean |
resizeIndex | number |
rectWithFramesAndBorder | RotatedRectangleF |
rectWithBorder | RotatedRectangleF |
canvas | Canvas |
border | ILtrb |
Returns
any
fillSnapData()
fillSnapData(
startRectangle,
startRectangleWithFrames,
startRectangleWithBorder,
region,
interactiveZonesBounds,
canvas,
isDrag): void;
Parameters
| Parameter | Type |
|---|---|
startRectangle | RotatedRectangleF |
startRectangleWithFrames | RotatedRectangleF |
startRectangleWithBorder | RectangleF |
region | RectangleF |
interactiveZonesBounds | RectangleF[] |
canvas | Canvas |
isDrag | boolean |
Returns
void
getHorizontalLineData()
getHorizontalLineData(): ISnapLineData;
Returns
Implementation of
ISnapLinesHandler.getHorizontalLineData
getVerticalLineData()
getVerticalLineData(): ISnapLineData;
Returns
Implementation of
ISnapLinesHandler.getVerticalLineData
resetActiveLines()
resetActiveLines(): void;
Returns
void
setConfiguration()
setConfiguration(conf?): void;
Parameters
| Parameter | Type |
|---|---|
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[];