@tldraw/editor
Version:
tldraw infinite canvas SDK (editor).
18 lines (17 loc) • 369 B
JavaScript
import { StateNode } from "../../StateNode.mjs";
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