@mocanvas/editor · interface

BoundsSnapResizeOptions

interface BoundsSnapResizeOptions

Properties · 5

dragDelta: Vec

How far the handle has been dragged.

handle: TLResizeHandle

Which corner or edge is being dragged. Only the moving edges are snapped — snapping the fixed edge would move the shape rather than resize it.

initialSelectionPageBounds: Box

The selection's page bounds as they were when the resize started.

isAspectRatioLocked: boolean

Whether the resize is constrained to the selection's aspect ratio.

isResizingFromCenter: boolean

Whether the opposite edge moves too, keeping the centre fixed.

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.