Repositories / Excalidraw
Focused tour of drawing, rendering, history, and collaboration paths; not a whole-project map.
Undo and redo action definitions that delegate state restoration to the history service.
Stored evidence from this immutable analysis snapshot
export const createUndoAction: ActionCreator = (history) => ({name: "undo",label: "buttons.undo",icon: UndoIcon,trackEvent: { category: "history" },viewMode: false,perform: (elements, appState, value, app) =>executeHistoryAction(app, appState, () =>
history.undo(arrayToMap(elements) as SceneElementsMap, appState), ),