Commit 2cf9113
committed
fix(core): add geometryStamp to ngt instance
A new `geometryStamp` is added to `ngt.instanceStore`. This allows the
renderer to update the Local State when a geometry is applied via
`setProperty`. When this is the case, normal `nonObjects()` will not
work because the geometry isn't added via content of the parent.
However, we still need to track / rerun effects on geometries' changes
most of the times. This allows us to notify the Local State when the
geometry property is updated (via `[geometry]`)
A new `nonObjectsChanged` computed is a combination of `nonObjects()`
and `geometryStamp()`. Consumers using `localState.nonObjects()` will
automatically get the changes from `geometryStamp` as well.1 parent 86d31aa commit 2cf9113
2 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
41 | 51 | | |
42 | 52 | | |
43 | 53 | | |
| |||
47 | 57 | | |
48 | 58 | | |
49 | 59 | | |
50 | | - | |
| 60 | + | |
51 | 61 | | |
52 | 62 | | |
53 | 63 | | |
| |||
68 | 78 | | |
69 | 79 | | |
70 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
71 | 84 | | |
72 | 85 | | |
73 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
432 | 434 | | |
433 | 435 | | |
434 | 436 | | |
435 | 437 | | |
436 | 438 | | |
437 | 439 | | |
438 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
439 | 446 | | |
440 | 447 | | |
441 | 448 | | |
442 | | - | |
443 | 449 | | |
444 | 450 | | |
445 | 451 | | |
| |||
469 | 475 | | |
470 | 476 | | |
471 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
472 | 483 | | |
473 | 484 | | |
474 | 485 | | |
| |||
0 commit comments