openpencil/packages/scene-graph/tests/components
Danila Poyarkov 83cf621a91
fix(scene-graph): apply an instance's assignment to a late child (#884)
* fix(scene-graph): apply an instance's assignment to a late child

A component can gain a property-driven layer after an instance of it
exists. Cloning that layer copied the component's default and nothing
resolved the assignment the instance already made, so the layer showed
the default while the rest of the instance showed the assigned value.

Closes #849.

* fix(scene-graph): scope a property lookup to the component that defines it

An instance of a component that defines the id owns that reference even
when it assigns nothing, so the walk stops there instead of reaching an
outer instance's unrelated property of the same id.

Reported in review of #884.

* test(scene-graph): group the component property tests in a folder

Three siblings sharing the property- prefix is the domain-folder rule's
trigger; check:arch flags it.

* fix(scene-graph): resolve a property's owner through the instance chain

Only a component set's definitions reach its variants, so a component
nested in an ordinary component no longer claims the outer component's
property. An instance's link can point at another instance, so the
owner is resolved by following that chain to the component.

Reported in review of #884.
2026-10-05 09:10:44 +00:00
..
property fix(scene-graph): apply an instance's assignment to a late child (#884) 2026-10-05 09:10:44 +00:00
binding-protection.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
nested-sync.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
override-transfer.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
properties.test.ts feat: create, fill, and edit slots (#862) 2026-10-04 17:02:28 +00:00
scale.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00
sync-field-contract.test.ts feat(fig): occurrence-scoped instance interpretation as the single .fig reader 2026-10-01 11:20:27 +04:00