angular-three 1.6.5 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/di/run-in-context.mjs +2 -2
- package/esm2020/lib/renderer/renderer.mjs +7 -3
- package/fesm2015/angular-three.mjs +7 -3
- package/fesm2015/angular-three.mjs.map +1 -1
- package/fesm2020/angular-three.mjs +7 -3
- package/fesm2020/angular-three.mjs.map +1 -1
- package/package.json +1 -1
- package/plugin/package.json +1 -1
|
@@ -2111,8 +2111,12 @@ class NgtRenderer {
|
|
|
2111
2111
|
// if child is three but haven't been attached to a parent yet
|
|
2112
2112
|
(newChild.__ngt_renderer__[0 /* NgtRendererClassId.type */] === 'three' && !getLocalState(newChild).parent) ||
|
|
2113
2113
|
// or both parent and child are DOM elements
|
|
2114
|
-
(parent.__ngt_renderer__[0 /* NgtRendererClassId.type */] === 'dom'
|
|
2115
|
-
|
|
2114
|
+
((parent.__ngt_renderer__[0 /* NgtRendererClassId.type */] === 'dom' ||
|
|
2115
|
+
(parent.__ngt_renderer__[0 /* NgtRendererClassId.type */] === 'compound' &&
|
|
2116
|
+
!parent.__ngt_renderer__[6 /* NgtRendererClassId.compounded */])) &&
|
|
2117
|
+
(newChild.__ngt_renderer__[0 /* NgtRendererClassId.type */] === 'dom' ||
|
|
2118
|
+
(newChild.__ngt_renderer__[0 /* NgtRendererClassId.type */] === 'compound' &&
|
|
2119
|
+
!newChild.__ngt_renderer__[6 /* NgtRendererClassId.compounded */])));
|
|
2116
2120
|
if (shouldFindGrandparentInstance) {
|
|
2117
2121
|
// we'll try to get the grandparent instance here so that we can run appendChild with both instances
|
|
2118
2122
|
const closestGrandparentInstance = this.store.getClosestParentWithInstance(parent);
|
|
@@ -2653,7 +2657,7 @@ function injectNgtRef(initialValue = null) {
|
|
|
2653
2657
|
function createRunInContext() {
|
|
2654
2658
|
const nodeInjector = inject(Injector);
|
|
2655
2659
|
const envInjector = inject(EnvironmentInjector);
|
|
2656
|
-
const originalGet = envInjector.get;
|
|
2660
|
+
const originalGet = envInjector.get.bind(envInjector);
|
|
2657
2661
|
return (cb) => {
|
|
2658
2662
|
envInjector.get = (...args) => {
|
|
2659
2663
|
try {
|