Skip to content

@directededges/specs-schema v0.36.0

Choose a tag to compare

@nathanacurtis nathanacurtis released this 20 Oct 11:50
· 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.childRole records a role annotated on the layer wrapper collapse folded into an element, so role keeps meaning the element itself was annotated and a round trip returns each annotation to its own layer. Only role reaches emitted code (ADR-104)