UNPKG

tldraw

Version:

A tiny little drawing editor.

18 lines (17 loc) 364 B
import { StateNode } from "@tldraw/editor"; class Idle extends StateNode { static id = "idle"; onPointerDown(info) { this.parent.transition("pointing", info); } onEnter() { this.editor.setCursor({ type: "cross", rotation: 0 }); } onCancel() { this.editor.setCurrentTool("select"); } } export { Idle }; //# sourceMappingURL=Idle.mjs.map