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 {
|
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
|
|
|
}
|