kopia lustrzana https://github.com/Tldraw/Tldraw
11 wiersze
285 B
TypeScript
11 wiersze
285 B
TypeScript
import { TLEventHandlers } from '../../../types/event-types'
|
|
import { StateNode } from '../../StateNode'
|
|
|
|
export class Idle extends StateNode {
|
|
static override id = 'idle'
|
|
|
|
onPointerDown: TLEventHandlers['onPointerDown'] = (info) => {
|
|
this.parent.transition('lasering', info)
|
|
}
|
|
}
|