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.
| Operand | From |
|---|---|
node.type | Figma node |
conventions.platforms.figma.glyphs | declared conventions |
Derived predicates
| Name | Expression | Source |
|---|---|---|
derived.isGlyph | node = 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.
| # | When | Emits | Why |
|---|---|---|---|
| 1 | derived.isGlyph = true | glyph — whatever the node type, with the glyph name as content | A glyph is a convention fact, not a node-type fact; an INSTANCE and a VECTOR can both be one |
| 2 | node.type = SLOT | slot | Checked before the main table |
| 3 | node.type = one of TEXT, VECTOR, LINE, STAR, POLYGON, RECTANGLE, ELLIPSE, INSTANCE | the same-named element type, lowercased | Direct 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.