Repositories / Excalidraw
Focused tour of drawing, rendering, history, and collaboration paths; not a whole-project map.
Architecture map
Follow persisted relationships across interface, API, service, persistence, worker, and external boundaries.
Canvas pointer controller
Editor interaction · ui
Builds shape attributes from the active tool and inserts a newly constructed element.
Element factory
Element model · utility
Initializes a typed Excalidraw element with stable identity and default shape fields.
Scene model
Scene state · service
Maintains ordered scene elements and triggers subscribers when scene state changes.
Viewport renderer
Render selection · service
Derives the visible element set for the current viewport and editor state.
Static canvas
Canvas boundary · ui
Owns the static HTML canvas and invokes the scene renderer after React updates.
Static scene renderer
Scene rendering · service
Bootstraps the canvas and dispatches visible scene elements for painting.
Element renderer
Shape rendering · utility
Paints each element type, including rectangles, through cached RoughJS shapes.