Element Reference
Use this file when you need exact field expectations for Excalidraw elements.
Common required fields (all elements)
typeidx,ywidth,heightanglestrokeColor,backgroundColorfillStyle,strokeWidth,strokeStyleroughness,opacityseed,version,versionNonceisDeletedgroupIdsboundElementslinklocked
Rectangle
Use for process blocks, containers, and cards.
type: "rectangle"- Optional rounded corners:
roundness: { "type": 3 }
Ellipse
Use for start/end nodes, bubbles, and circular entities.
type: "ellipse"
Diamond
Use for decisions and branching points.
type: "diamond"
Text
Use for labels and descriptions.
Additional fields:
textfontSizefontFamily(1Virgil,2Helvetica,3Cascadia)textAlignverticalAligncontainerIdoriginalTextautoResizelineHeight
Arrow
Use for directional flow.
Additional fields:
points(at least two points)startArrowheadendArrowheadstartBindingendBinding
When binding to shapes, update both sides:
- Set
startBinding/endBindingon the arrow. - Add
{ "id": "<arrow-id>", "type": "arrow" }to each bound shape’sboundElements.
Line
Use for non-directional connections.
Additional fields:
points- No arrowheads unless switching to
type: "arrow".