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

16 lines
409 B
TypeScript
Raw Normal View History

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