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