Repositories / Excalidraw
Focused tour of drawing, rendering, history, and collaboration paths; not a whole-project map.
Select a flow to inspect its ordered source evidence.
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.
Traces a rectangle from the canvas pointer handler through element construction, ordered scene insertion, viewport selection, and canvas painting.
Follows visible scene data through the memoized viewport selector, React canvas effect, static renderer, and element-level painter.
Shows how an undo command delegates to the history stack, applies the inverse delta, and queues the resulting durable store increment.
Focused flow
Traces a rectangle from the canvas pointer handler through element construction, ordered scene insertion, viewport selection, and canvas painting.
The editor derives the new shape attributes from the pointer origin and active drawing style.
The shared element factory creates the typed rectangle record with its base fields.
The Scene inserts the new element at the resolved index, repairs moved indices, and replaces its element set.
The viewport renderer reads the scene and reduces it to the elements visible in the current viewport.
The StaticCanvas effect forwards the visible element maps and editor state to the renderer.
The scene renderer chooses the throttled or immediate canvas path for the prepared render configuration.
The element renderer routes rectangles through the shared shape painting branch.