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