kopia lustrzana https://github.com/Tldraw/Tldraw
16 wiersze
406 B
TypeScript
16 wiersze
406 B
TypeScript
import { TLStyleType } from '@tldraw/tlschema'
|
|
import { StateNode } from '../StateNode'
|
|
|
|
import { Idle } from './children/Idle'
|
|
import { Pointing } from './children/Pointing'
|
|
|
|
export class LineShapeTool extends StateNode {
|
|
static override id = 'line'
|
|
static initial = 'idle'
|
|
static children = () => [Idle, Pointing]
|
|
|
|
shapeType = 'line'
|
|
|
|
styles = ['color', 'dash', 'size', 'spline'] as TLStyleType[]
|
|
}
|