@mocanvas/mocanvas · class

GeoTool

declare class GeoTool extends StateNode

Draw a geo shape (rectangle, ellipse, ...) by dragging. Pick the kind with editor.setCurrentTool('geo', { geo }).


Methods · 1

onEnter(info: Record<string, unknown>): void

Properties · 4

static children: () => StateNodeConstructor[]
geo: GeoShapeKind
static id: string
static initial: string

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.