BoundsSnaps
Table of contents
class BoundsSnaps {}
Constructs a new instance of the BoundsSnaps
class
Parameters
Name | Description |
---|---|
|
|
Properties
readonly editor: Editor
readonly manager: SnapManager
Methods
getSnapPoints(shapeId: TLShapeId): BoundsSnapPoint[]
Parameters
Name | Description |
---|---|
|
|
Returns
BoundsSnapPoint[]
snapResizeShapes({
initialSelectionPageBounds,
dragDelta,
handle: originalHandle,
isAspectRatioLocked,
isResizingFromCenter,
}: {
dragDelta: Vec
handle: SelectionCorner | SelectionEdge
initialSelectionPageBounds: Box
isAspectRatioLocked: boolean
isResizingFromCenter: boolean
}): SnapData
Parameters
Name | Description |
---|---|
|
|
Returns
SnapData
snapTranslateShapes({
lockedAxis,
initialSelectionPageBounds,
initialSelectionSnapPoints,
dragDelta,
}: {
dragDelta: Vec
initialSelectionPageBounds: Box
initialSelectionSnapPoints: BoundsSnapPoint[]
lockedAxis: 'x' | 'y' | null
}): SnapData
Parameters
Name | Description |
---|---|
|
|
Returns
SnapData