angular-three 1.9.4 → 1.9.5
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/canvas.mjs +2 -4
- package/esm2020/lib/renderer/renderer.mjs +6 -11
- package/fesm2015/angular-three.mjs +6 -13
- package/fesm2015/angular-three.mjs.map +1 -1
- package/fesm2020/angular-three.mjs +6 -13
- package/fesm2020/angular-three.mjs.map +1 -1
- package/lib/renderer/renderer.d.ts +0 -5
- package/package.json +3 -3
- package/plugin/package.json +2 -3
|
@@ -2002,20 +2002,15 @@ class NgtRendererStore {
|
|
|
2002
2002
|
class NgtRendererFactory {
|
|
2003
2003
|
constructor() {
|
|
2004
2004
|
this.delegateRendererFactory = inject(RendererFactory2, { skipSelf: true });
|
|
2005
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
2006
|
-
this.store = inject(NgtStore);
|
|
2007
2005
|
this.catalogue = inject(NGT_CATALOGUE);
|
|
2008
|
-
this.compoundPrefixes = inject(NGT_COMPOUND_PREFIXES);
|
|
2009
|
-
this.document = inject(DOCUMENT);
|
|
2010
2006
|
this.rendererMap = new Map();
|
|
2011
2007
|
this.routedSet = new Set();
|
|
2012
|
-
this.portals = [];
|
|
2013
2008
|
this.rendererStore = new NgtRendererStore({
|
|
2014
|
-
store:
|
|
2015
|
-
cdr:
|
|
2016
|
-
portals:
|
|
2017
|
-
compoundPrefixes:
|
|
2018
|
-
document:
|
|
2009
|
+
store: inject(NgtStore),
|
|
2010
|
+
cdr: inject(ChangeDetectorRef),
|
|
2011
|
+
portals: [],
|
|
2012
|
+
compoundPrefixes: inject(NGT_COMPOUND_PREFIXES),
|
|
2013
|
+
document: inject(DOCUMENT),
|
|
2019
2014
|
});
|
|
2020
2015
|
}
|
|
2021
2016
|
createRenderer(hostElement, type) {
|
|
@@ -2570,9 +2565,7 @@ class NgtCanvas extends NgtRxStore {
|
|
|
2570
2565
|
compoundPrefixes: this.compoundPrefixes,
|
|
2571
2566
|
}),
|
|
2572
2567
|
], this.envInjector);
|
|
2573
|
-
this.glRef = this.glAnchor.createComponent(this.sceneGraph, {
|
|
2574
|
-
environmentInjector: this.glEnvInjector,
|
|
2575
|
-
});
|
|
2568
|
+
this.glRef = this.glAnchor.createComponent(this.sceneGraph, { environmentInjector: this.glEnvInjector });
|
|
2576
2569
|
this.glRef.changeDetectorRef.detach();
|
|
2577
2570
|
this.setSceneGraphInputs();
|
|
2578
2571
|
// here, we override the detectChanges to also call detectChanges on the ComponentRef
|