BoundsSnaps
See source codeTable of contents
class BoundsSnaps {}Constructor
Constructs a new instance of the BoundsSnaps class
Parameters
| Name | Description | 
|---|---|
| 
 | 
Properties
editor
readonly
readonly editor: Editormanager
readonly
readonly manager: SnapManagerMethods
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
}): SnapDataParameters
| Name | Description | 
|---|---|
| 
 |  | 
Returns
snapTranslateShapes()
snapTranslateShapes({
  lockedAxis,
  initialSelectionPageBounds,
  initialSelectionSnapPoints,
  dragDelta,
}: {
  dragDelta: Vec
  initialSelectionPageBounds: Box
  initialSelectionSnapPoints: BoundsSnapPoint[]
  lockedAxis: 'x' | 'y' | null
}): SnapDataParameters
| Name | Description | 
|---|---|
| 
 |  | 
Returns
Prev
BindingUtilNext
Box