Repositories / Excalidraw
Focused tour of drawing, rendering, history, and collaboration paths; not a whole-project map.
This Excalidraw snapshot follows five representative execution flows across the canvas interaction controller, element model, scene state, render pipeline, history store, and collaboration layer. It is a curated architectural slice of the pinned repository revision, not a complete inventory of the upstream codebase.
Pointer interactions in the editor construct shared element records and insert them into the Scene. Rendering separates viewport selection from the React canvas boundary and element-level painting. Undo is expressed as inverse store deltas. Collaboration models outbound encrypted transport separately from the inbound UPDATE listener, reconciliation, and capture-free remote scene application because the intervening network relay is outside this pinned client snapshot.
Execution paths
Follows changed elements from the collaboration coordinator into the Portal's encrypted socket broadcaster. This path stops at outbound transport and does not imply receipt by another client.
Begins at the decrypted UPDATE listener, enters deterministic core reconciliation, and applies the remote scene with local capture disabled. It does not claim a direct connection to the outbound send path.
Change surface
Collaboration coordinator for broadcasting local elements and applying reconciled remote updates.
Undo and redo action definitions that delegate state restoration to the history service.
Main editor component that turns pointer input into element creation and scene updates.
In-memory scene model that owns ordered elements and notifies render subscribers after mutations.
Working conventions
Traces a rectangle from the canvas pointer handler through element construction, ordered scene insertion, viewport selection, and canvas painting.
Element constructors that initialize the immutable shape fields used by the editor.
Runtime boundaries
Collaboration coordinator for broadcasting local elements and applying reconciled remote updates.
Undo and redo action definitions that delegate state restoration to the history service.
Main editor component that turns pointer input into element creation and scene updates.
13 named architectural layers represented in this snapshot.