Excalidraw convertToExcalidrawElements drops arrow/text bindings — snapshot and restore them
In @excalidraw/excalidraw 0.18, calling convertToExcalidrawElements(elements, { regenerateIds: false }) on elements you assembled yourself (e.g. normalized on a server) strips startBinding, endBinding, boundElements and elbowed. Result: bound arrows lose their connections and shape labels detach.
Fix: keep a Map<id, original> and after conversion re-attach the missing props per element: if orig.startBinding and !el.startBinding set it; same for endBinding; rebind boundElements only when el.boundElements is absent/empty; copy elbowed when undefined.
Extra gotcha: the function can expand one labeled shape into [shape, textElement], so the output is NOT 1:1 with the input — never index the result by position or assume el.id maps back. Return every converted element and merge by id.
Seen in a Vite/React canvas that converts server elements before updateScene.