@mocanvas/mocanvas · class
declare class FrameTool extends BaseBoxShapeToolDrag out a frame, or click to place a default-sized one.
Drawing a frame *around* existing shapes adopts them — the Figma behaviour, and the reason the tool is worth having over "create it, then drag things in".
Methods · 3
getCreateProps(): Record<string, unknown>getDefaultSize(): BoxSizeA click places a full artboard, not the 160×90 a bare createShape gives.
onCreate(shape: UnknownShape | null): voidProperties · 4
static id: stringstatic initial: stringminSize: numbershapeType: "frame"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.