Repository navigation
@directededges/specs-schema v0.36.0
·
114 commits
to main
since this release
An annotation survives a collapsed layer knowing which layer it came from. When a wrapper is folded into the element it wraps, a role annotated on the wrapper used to be indistinguishable from one annotated on the element itself — so writing the spec back to Figma could put it on the wrong layer. A spec now records the two separately, and a round trip returns each annotation to the layer that carried it. Generated code is unaffected: it still reads only the element's own role.
Added
FigmaAnatomyElementExtension.childRolerecords a role annotated on the layer wrapper collapse folded into an element, sorolekeeps meaning the element itself was annotated and a round trip returns each annotation to its own layer. Onlyrolereaches emitted code (ADR-104)