bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/whiteboard/custom-tools/noop-tool/component.ts

16 lines
410 B
TypeScript
Raw Normal View History

2024-05-02 08:40:58 +08:00
/* eslint-disable lines-between-class-members */
import { StateNode } from '@tldraw/tldraw';
2024-05-02 08:28:22 +08:00
2024-05-02 08:40:58 +08:00
export default class NoopTool extends StateNode {
2024-05-02 08:32:58 +08:00
static override id = 'noop';
static override initial = 'idle';
2024-05-02 08:28:22 +08:00
2024-05-02 08:32:58 +08:00
override onEnter = () => {
2024-05-02 08:40:58 +08:00
this.editor.setCursor({ type: 'default', rotation: 0 });
2024-05-02 08:32:58 +08:00
}
2024-05-02 08:28:22 +08:00
2024-05-02 08:32:58 +08:00
override onExit = () => {
2024-05-02 08:40:58 +08:00
this.editor.setCursor({ type: 'default', rotation: 0 });
2024-05-02 08:32:58 +08:00
}
2024-05-02 08:28:22 +08:00
}