ShapeId.
Types
tsdraw includes one shape type with variations:| Tool | Shape type | Geometry |
|---|---|---|
| Pen | draw | Freehand strokes |
| Square | draw | Rectangles |
| Circle | draw | Ellipses |
Interface
- x / y — top-left origin in page coordinates
- segments — array of
DrawSegment(base64-encoded paths)
Styles
Shapes inherit style from the editor at creation:- Color — CSS or palette key
- Size —
's'(2px),'m'(3.5px),'l'(5px),'xl'(10px) - Dash —
'draw','solid','dashed','dotted' - Fill —
'none','semi','solid','blank'