Repository navigation
Fixed
Component property values on instances now match Figma in newer files (#265, #266)
Newer .fig files record which layer a component property drives in a second place that figlens did not read. Instances that set those properties showed the main component's defaults instead:
- A boolean such as
Show icon = falseleft the icon drawn and reported it visible. - A text property such as
Valuekept the default text. In library copies this could happen even when the layer also carried an older, stale reference.
handoffDiagnostics reported nothing, so the wrong values looked trustworthy.
figlens now reads both forms. Where they disagree, the newer one wins. Assigned visibility and text values now show up in inspect, nodes and exported images.
Search indexes and diff facets built by an earlier version rebuild automatically the next time they are used. Their stored output changed.
Verification
- The instance from #265 now shows the hidden icon and the assigned text in
inspect,nodesand the PNG export, matching Figma. - In another design file, 58 text assignments that were previously ignored now bind. Every one Figma's stored layout can confirm agrees with the new output.
- Files that do not use the newer form produce the same output as before.
Known limits
- figlens does not warn about an assignment that no layer uses. In the files measured, such values are stale and Figma ignores them too.
diffon a main component does not yet compare these newer bindings. It reports a change on the instances it affects.
Update
figlens update
# or
brew upgrade runkids/tap/figlens
# or
npx @runkids/figlens@0.14.7 --version