angular-three 1.3.0 → 1.3.1
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/renderer/provider.mjs +4 -4
- package/esm2020/lib/renderer/renderer.mjs +2 -2
- package/fesm2015/angular-three.mjs +4 -4
- package/fesm2015/angular-three.mjs.map +1 -1
- package/fesm2020/angular-three.mjs +4 -4
- package/fesm2020/angular-three.mjs.map +1 -1
- package/lib/renderer/provider.d.ts +2 -19
- package/package.json +1 -1
- package/plugin/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ElementRef, Injectable, inject, InjectionToken, ViewContainerRef, TemplateRef, Directive, Input, EventEmitter, getDebugNode, RendererFactory2, ChangeDetectorRef, EnvironmentInjector, createEnvironmentInjector, Component, HostBinding, Output, ViewChild, Pipe, SkipSelf, ContentChild } from '@angular/core';
|
|
2
|
+
import { ElementRef, Injectable, inject, InjectionToken, ViewContainerRef, TemplateRef, Directive, Input, EventEmitter, getDebugNode, RendererFactory2, ChangeDetectorRef, makeEnvironmentProviders, EnvironmentInjector, createEnvironmentInjector, Component, HostBinding, Output, ViewChild, Pipe, SkipSelf, ContentChild } from '@angular/core';
|
|
3
3
|
import { provideNgxResizeOptions, NgxResize } from 'ngx-resize';
|
|
4
4
|
import { isObservable, of, map, from, tap, retry, catchError, share, ReplaySubject, switchMap, forkJoin, take, BehaviorSubject, startWith, filter, distinctUntilChanged, takeUntil, merge } from 'rxjs';
|
|
5
5
|
import * as THREE from 'three';
|
|
@@ -2081,7 +2081,7 @@ class NgtRenderer {
|
|
|
2081
2081
|
// refChild: NgtRendererNode
|
|
2082
2082
|
// isMove?: boolean | undefined
|
|
2083
2083
|
) {
|
|
2084
|
-
if (!parent.__ngt_renderer__)
|
|
2084
|
+
if (!parent.__ngt_renderer__ || parent === newChild)
|
|
2085
2085
|
return;
|
|
2086
2086
|
this.appendChild(parent, newChild);
|
|
2087
2087
|
}
|
|
@@ -2183,12 +2183,12 @@ function provideNgtRenderer({ store, changeDetectorRef, compoundPrefixes = [] })
|
|
|
2183
2183
|
if (!compoundPrefixes.includes('ngtp')) {
|
|
2184
2184
|
compoundPrefixes.push('ngtp');
|
|
2185
2185
|
}
|
|
2186
|
-
return [
|
|
2186
|
+
return makeEnvironmentProviders([
|
|
2187
2187
|
{ provide: RendererFactory2, useClass: NgtRendererFactory },
|
|
2188
2188
|
{ provide: NgtStore, useValue: store },
|
|
2189
2189
|
{ provide: ChangeDetectorRef, useValue: changeDetectorRef },
|
|
2190
2190
|
{ provide: NGT_COMPOUND_PREFIXES, useValue: compoundPrefixes },
|
|
2191
|
-
];
|
|
2191
|
+
]);
|
|
2192
2192
|
}
|
|
2193
2193
|
|
|
2194
2194
|
const DOM_EVENTS = {
|