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