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"; onPointerDown(info) { this.parent.transition("pointing", info); } onCancel() { this.editor.setCurrentTool("select"); } } export { Idle }; //# sourceMappingURL=Idle.mjs.map