kopia lustrzana https://github.com/Tldraw/Tldraw
16 wiersze
337 B
TypeScript
16 wiersze
337 B
TypeScript
import { StateNode } from '../StateNode'
|
|
|
|
import { Idle } from './children/Idle'
|
|
import { Lasering } from './children/Lasering'
|
|
|
|
export class TLLaserTool extends StateNode {
|
|
static override id = 'laser'
|
|
|
|
static initial = 'idle'
|
|
static children = () => [Idle, Lasering]
|
|
|
|
onEnter = () => {
|
|
this.app.setCursor({ type: 'cross' })
|
|
}
|
|
}
|