UNPKG

tldraw

Version:

A tiny little drawing editor.

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