openpencil/packages/fig/tests
Danila Poyarkov 7b011bceaf
fix(fig): treat the unset override key as no key (#967)
Figma saves layers without an override key with Kiwi's all-ones GUID, so
many siblings share it. The importer stored it as a real key, and export
addressed each instance layer by that key, so two such siblings got the
same derived geometry address and export threw "Ambiguous instance
geometry address". Instance linkage and override path matching also
treated the shared value as an identity. The importer now reads the unset
GUID as no key, through an isUnsetGuid helper that the cleared-style and
default-slot checks share.

The Preline UI kit has 1,165 such text and rounded rectangle layers; after
an edit it now exports and reopens with all 104 pages.
2026-10-07 21:33:09 +00:00
..
document test(fig): pin override and variable precedence to what Figma renders (#912) 2026-10-06 09:08:51 +00:00
helpers test: resolve repository files without climbing directories (#946) 2026-10-07 12:35:39 +00:00
instance-overrides test: typecheck the test suites and fix what that found (#896) 2026-10-05 12:42:38 +00:00
node-change fix(fig): treat the unset override key as no key (#967) 2026-10-07 21:33:09 +00:00
index.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
source-metadata.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
vector-style-fills.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00