2023-04-25 11:01:25 +00:00
|
|
|
import { TLStyleType } from '@tldraw/tlschema'
|
|
|
|
import { StateNode } from '../StateNode'
|
|
|
|
import { Idle } from './children/Idle'
|
|
|
|
import { Pointing } from './children/Pointing'
|
|
|
|
|
2023-06-04 10:38:53 +00:00
|
|
|
export class TextShapeTool extends StateNode {
|
2023-04-25 11:01:25 +00:00
|
|
|
static override id = 'text'
|
|
|
|
static initial = 'idle'
|
|
|
|
|
|
|
|
static children = () => [Idle, Pointing]
|
|
|
|
|
2023-06-06 16:15:12 +00:00
|
|
|
styles = ['color', 'font', 'align', 'size'] as TLStyleType[]
|
|
|
|
shapeType = 'text'
|
2023-04-25 11:01:25 +00:00
|
|
|
}
|