kopia lustrzana https://github.com/Tldraw/Tldraw
14 wiersze
420 B
TypeScript
14 wiersze
420 B
TypeScript
import { TLStyleType } from '@tldraw/tlschema'
|
|
import { StateNode } from '../StateNode'
|
|
import { Idle } from './children/Idle'
|
|
import { Pointing } from './children/Pointing'
|
|
|
|
export class NoteShapeTool extends StateNode {
|
|
static override id = 'note'
|
|
static initial = 'idle'
|
|
static children = () => [Idle, Pointing]
|
|
|
|
styles = ['color', 'size', 'align', 'verticalAlign', 'font'] as TLStyleType[]
|
|
shapeType = 'note'
|
|
}
|