Skip to content

typeDetection

disposition: bound, direction: figma-to-spec, basis: implementation

An anatomy rule of the Figma binding. The element types named below resolve jointly here — which type a node becomes, or what tag and semantics an element takes, is decided by this rule rather than per type.

Keys. text, glyph, vector, container, line, ellipse, rectangle, polygon, star

Operands

Every fact the rule reads. Nothing outside this set participates.

OperandFrom
node.typeFigma node
conventions.platforms.figma.glyphsdeclared conventions

Derived predicates

NameExpressionSource
derived.isGlyphnode = matches the glyphs convention — by name pattern, or by structural form after membership is established from the node (ADR-103)capture-side glyph convention matcher

Cases

Ordered — first match wins.

#WhenEmitsWhy
1derived.isGlyph = trueglyph — whatever the node type, with the glyph name as contentA glyph is a convention fact, not a node-type fact; an INSTANCE and a VECTOR can both be one
2node.type = SLOTslotChecked before the main table
3node.type = one of TEXT, VECTOR, LINE, STAR, POLYGON, RECTANGLE, ELLIPSE, INSTANCEthe same-named element type, lowercasedDirect table

Otherwise

container — FRAME, COMPONENT, and any node type without a mapping of its own — the default is structural, so a new Figma node type degrades to a container rather than failing

One node resolves to one of eleven types, and the glyph arm means no single node type determines the answer.