Repositories / Excalidraw
Focused tour of drawing, rendering, history, and collaboration paths; not a whole-project map.
Deterministic merge policy for local and remote element versions and fractional ordering.
Stored evidence from this immutable analysis snapshot
// process remote elementsfor (const remoteElement of remoteElements) {if (!added.has(remoteElement.id)) {const localElement = localElementsMap.get(remoteElement.id);const discardRemoteElement = shouldDiscardRemoteElement(localAppState,localElement,remoteElement,
); if (localElement && discardRemoteElement) { reconciledElements.push(localElement); added.add(localElement.id); } else { reconciledElements.push(remoteElement); added.add(remoteElement.id); } } }