@mocanvas/editor · interface

ResizeShapeOptions

interface ResizeShapeOptions

This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.


Properties · 5

initialBounds?: {

Shape-local bounds the scale is measured against. Defaults to the shape's geometry bounds.

isAspectRatioLocked?: boolean

Force (or forbid) a uniform scale. Defaults to the util's isAspectRatioLocked.

mode?: "scale_shape" | "resize_bounds"

Handed to onResize. Defaults to "scale_shape".

scaleAxisRotation?: number

Rotation (radians) of the frame the scale axes are measured in. Defaults to 0.

scaleOrigin?: VecLike

Page point that stays put. Defaults to the center of the shape's page bounds.

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.