@mocanvas/mocanvas · class
declare class FrameShapeUtil extends BaseFrameLikeShapeUtil<FrameShape>This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Methods · 11
canEdit(_shape: FrameShape): booleancomponent(shape: FrameShape): ReactNodegetDefaultProps(): FrameShapePropsgetFontFaces(_shape: FrameShape): TLFontFace[]A frame draws its name in the sans family, whatever its children use.
getGeometry(shape: FrameShape): Geometry2dgetIndicatorPath(shape: FrameShape): Path2DgetRenderStyle(_shape: FrameShape): StyleWordsgetText(shape: FrameShape): stringhasOverlayLabel(_shape: FrameShape): booleanneedsOverlay(_shape: FrameShape): booleanThe GPU draws the frame body while its name is edited.
onEditEnd(shape: FrameShape): voidProperties · 5
static migrations: _mocanvas_editor.PropsMigrationsstatic options: FrameShapeOptionsreadonly options: FrameShapeOptionsstatic props: _mocanvas_editor.RecordProps<FrameShape>static type: "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.