How it draws
The player reads the Excalidraw JSON, turns each frame into a slide, and gives every element a key: its label, or for
an arrow, the labels at either end. Between two slides it pairs elements by key (Matching shapes), then
builds a timeline: exits fade first, matched shapes move, and new ones arrive left to right, with arrows waiting for
their boxes. zoom finds the pair whose size changes most and applies the same camera move to everything else.
Each animation frame is redrawn with rough.js, the library Excalidraw itself draws with, using each element’s saved random seed. That’s why a box keeps its exact hand-drawn wobble while it moves and grows, rather than re-scribbling itself every frame. Arrow ends remember where on their shape’s outline they attach, so they stay glued during morphs.
Text is drawn in Excalifont and Virgil, Excalidraw’s own hand-drawn fonts, which ship with the player.
The matching code is shared with excalideck check, so the checker’s report is exactly what the player will do.
Why it isn’t Excalidraw
Section titled “Why it isn’t Excalidraw”excalideck re-implements Excalidraw’s rendering rather than embedding the editor. That keeps the player small (a single page with no build step and no framework) and lets it draw a shape part-way between two states, which the editor has no reason to do. The cost is that some things are approximate: see Limits.