Skip to content

The layout checker

Terminal window
excalideck check deck.excalidraw

excalideck build runs it after every build, and excalideck dev after every save. It reports two things: what’s wrong on each slide, and what each transition will do.

1. Overview [first slide] 4 boxes
✗ label of rectangle "Payments" doesn't fit (text ~93×25 in a 60×80 rectangle); widen it or add a line break
✗ rectangle "Orders API" overlaps rectangle "Orders DB"
! arrow "orders api" → "payments" passes through rectangle "Orders DB" — move a box or add a bend (via)
2 errors, 1 warning

✗ is an error and ! is a warning. A slide with neither gets a ✓.

Level Check
error two shapes overlap
error a label doesn’t fit in its shape
warning an arrow passes through a box
warning an arrow isn’t attached at one or both ends, so it won’t follow its shapes when they move
warning a shape straddles the edge of a region
warning a shape sticks out of the frame
warning text under 16px, which is hard to read on a projector
warning a tag in a frame’s name that excalideck doesn’t know
warning a zoom with nothing that changes size much, so it will behave like morph

--verbose adds notes too, such as a box with more than four words in it.

check exits 1 when any slide has an error, so you can gate on it in a script or in CI. Warnings don’t change the exit code.

2 → 3 morph + fade: Opening the box
→ rectangle "Snapline" grows into a region — drill-down
morphs (5): rectangle "Snapline": moves 230px, grows ×5.1, recolours; ellipse "Photographer": moves 65px, ...
re-attaches (4): arrow "uploads photos" ⟶ arrow "photographer" → "api gateway"; ...
enters (11): text "Opening the box"; rectangle "API Gateway"; rectangle "Auth Service"; ... +5
exits (2): text "The big picture"; ...
Line Means
→ a note: where a zoom anchors, a box growing into a region, a short camera flight, a slide that shares nothing with the one before
morphs shapes on both slides, and how they change: moves, grows, shrinks, recolours, dims, re-routes
clones extra copies of a label, and the original they split off from
re-attaches arrows that keep one end and move the other to a new shape
enters, exits shapes that arrive or leave

The thing to look for: something you meant to morph listed under both exits and enters. That means its label changed between the two slides (Matching shapes). Long lists are cut to six items; --verbose shows all of them.

The checker and the player share the same matching code, so this is what the player will do, not an approximation.

excalideck check deck.excalidraw --json prints the same report as one JSON document: slides (each with its issues, at level error, warn or info), transitions, errors and warnings. From a script:

import { check, formatReport } from "excalideck/check";
const report = check(deck.toJSON());
console.log(formatReport(report));