Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.tsdraw.com/llms.txt

Use this file to discover all available pages before exploring further.

This section provides detailed API documentation for both tsdraw packages. Currently, the API reference is mainly AI-generated, but when I have time, I’ll be writing it myself.

Packages

@tsdraw/core

The framework-agnostic drawing engine. Shapes, tools, viewport, document store, and rendering.

@tsdraw/react

React component layer. The Tsdraw component, props, toolbar, style panel, and hooks.

@tsdraw/core

ModuleDescription
EditorCentral orchestrator — shapes, tools, viewport, undo/redo
ShapesShape types, DrawShape interface, style types
ToolsToolManager, ToolDefinition, StateNode
ViewportCamera position and zoom, coordinate conversion
Document storeShape storage and ordering
RendererCanvas rendering, stroke rendering, fills

@tsdraw/react

ModuleDescription
Tsdraw componentThe main React component
PropsTsdrawProps and all option types
HooksCanvas controller and internal hooks