@mocanvas/editor · interface
interface BoundsSnapResizeOptionsWhat BoundsSnaps.snapResizeShapes is asked.
Properties · 5
dragDelta: VecHow far the handle has been dragged.
handle: TLResizeHandleWhich 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: BoxThe selection's page bounds as they were when the resize started.
isAspectRatioLocked: booleanWhether the resize is constrained to the selection's aspect ratio.
isResizingFromCenter: booleanWhether 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.