@mocanvas/mocanvas · class
declare class NoteShapeUtil extends ShapeUtil<NoteShape, NoteShapeUtilDisplayValues>This one ships without a description. The signature above is read from the package, and the guides cover the area it belongs to.
Methods · 14
canEdit(_shape: NoteShape): booleancomponent(shape: NoteShape): ReactNodegetDefaultProps(): NoteShapePropsgetFontFaces(shape: NoteShape): TLFontFace[]A note is nothing but a label, so it needs its family's faces.
getGeometry(shape: NoteShape): Geometry2dgetIndicatorPath(shape: NoteShape): Path2DgetRenderStyle(shape: NoteShape): StyleWordsgetText(shape: NoteShape): stringhasOverlayLabel(_shape: NoteShape): booleanhideResizeHandles(_shape: NoteShape): booleanneedsOverlay(_shape: NoteShape): booleanThe GPU draws the sticky background even while editing; the overlay adds
the gradient and the shadow over it (see component).
onBeforeCreate(next: NoteShape): NoteShape | voidonBeforeUpdate(prev: NoteShape, next: NoteShape): NoteShape | voidonEditEnd(shape: NoteShape): voidProperties · 5
static migrations: _mocanvas_editor.PropsMigrationsstatic options: NoteShapeOptionsreadonly options: NoteShapeOptionsstatic props: _mocanvas_editor.RecordProps<NoteShape>static type: "note"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.