TheDocumentation Index
Fetch the complete documentation index at: https://docs.tsdraw.com/llms.txt
Use this file to discover all available pages before exploring further.
DocumentStore manages the collection of shapes and their ordering on the canvas.
Methods
| Method | Returns | Description |
|---|---|---|
createShape(shape) | void | Add a shape to the store |
updateShape(id, partial) | void | Update shape properties |
deleteShape(id) | void | Remove a shape |
getShape(id) | Shape | undefined | Get a shape by ID |
getCurrentPageShapes() | Shape[] | All shapes in insertion order |
getCurrentPageShapesSorted() | Shape[] | Shapes sorted by z-index |
getCurrentPageRenderingShapesSorted() | Shape[] | Shapes filtered and sorted for rendering |
getShapeIdsInBounds(bounds) | ShapeId[] | Find shapes that overlap with a bounding rectangle |