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