UNPKG

tldraw

Version:

A tiny little drawing editor.

15 lines (14 loc) 287 B
import { StateNode } from "@tldraw/editor"; class Idle extends StateNode { static id = "idle"; onCancel() { this.editor.setCurrentTool("select"); } onPointerDown(info) { this.parent.transition("lasering", info); } } export { Idle }; //# sourceMappingURL=Idle.mjs.map