Repository navigation
Fixed
-
Nested instances no longer lose their layers when a file marks a swap as unset. Figma can store an "unset" id (
4294967295:4294967295) in an instance's swap field to mean "not swapped". figlens read it as a real component id in three places:nodesreportedcomponentId: "4294967295:4294967295", a component that does not exist.- Search read no component properties for that instance.
- An instance-swap property holding the unset id swapped the nested instance to a missing component, so its children disappeared from
nodes,inspectand exports.
These instances now keep their default component, with its children and properties, as Figma shows them. (#259)
This case was reported against another .fig reader (storytold/figcraft#2206). None of our local test files contains the unset id, so the fix is covered by unit tests rather than a real-file comparison.
Update
figlens update
# or
brew upgrade runkids/tap/figlens
# or
npx @runkids/figlens@0.14.5 --version