angular-three 1.9.4 → 1.9.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/canvas.mjs +5 -7
- package/esm2020/lib/di/run-in-context.mjs +13 -4
- package/esm2020/lib/directives/args.mjs +3 -3
- package/esm2020/lib/directives/common.mjs +3 -3
- package/esm2020/lib/directives/parent.mjs +3 -3
- package/esm2020/lib/directives/repeat.mjs +3 -3
- package/esm2020/lib/pipes/push.mjs +3 -3
- package/esm2020/lib/portal.mjs +9 -9
- package/esm2020/lib/renderer/renderer.mjs +9 -14
- package/esm2020/lib/routed-scene.mjs +3 -3
- package/esm2020/lib/stores/rx-store.mjs +3 -3
- package/esm2020/lib/stores/store.mjs +3 -3
- package/esm2020/lib/utils/apply-props.mjs +5 -2
- package/fesm2015/angular-three.mjs +61 -56
- package/fesm2015/angular-three.mjs.map +1 -1
- package/fesm2020/angular-three.mjs +61 -56
- 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
|
@@ -443,7 +443,10 @@ function applyProps(instance, props) {
|
|
|
443
443
|
else {
|
|
444
444
|
currentInstance[key] = value;
|
|
445
445
|
// auto-convert srgb textures
|
|
446
|
-
if (!rootState?.linear &&
|
|
446
|
+
if (!rootState?.linear &&
|
|
447
|
+
currentInstance[key] instanceof THREE.Texture &&
|
|
448
|
+
currentInstance[key].format === THREE.RGBAFormat &&
|
|
449
|
+
currentInstance[key].type === THREE.UnsignedByteType) {
|
|
447
450
|
currentInstance[key]['encoding'] = THREE.sRGBEncoding;
|
|
448
451
|
}
|
|
449
452
|
}
|
|
@@ -583,9 +586,9 @@ class NgtRxStore extends RxState {
|
|
|
583
586
|
super.ngOnDestroy();
|
|
584
587
|
}
|
|
585
588
|
}
|
|
586
|
-
NgtRxStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
587
|
-
NgtRxStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.
|
|
588
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
589
|
+
NgtRxStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtRxStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
590
|
+
NgtRxStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtRxStore });
|
|
591
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtRxStore, decorators: [{
|
|
589
592
|
type: Injectable
|
|
590
593
|
}], ctorParameters: function () { return []; } });
|
|
591
594
|
|
|
@@ -955,9 +958,9 @@ class NgtStore extends NgtRxStore {
|
|
|
955
958
|
this.hold(this.select(), () => invalidate(this));
|
|
956
959
|
}
|
|
957
960
|
}
|
|
958
|
-
NgtStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
959
|
-
NgtStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.
|
|
960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
961
|
+
NgtStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtStore, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
962
|
+
NgtStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtStore });
|
|
963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtStore, decorators: [{
|
|
961
964
|
type: Injectable
|
|
962
965
|
}] });
|
|
963
966
|
function computeInitialSize(canvas, defaultSize) {
|
|
@@ -1010,9 +1013,9 @@ class NgtCommonDirective {
|
|
|
1010
1013
|
}
|
|
1011
1014
|
}
|
|
1012
1015
|
}
|
|
1013
|
-
NgtCommonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
1014
|
-
NgtCommonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
1015
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
1016
|
+
NgtCommonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtCommonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1017
|
+
NgtCommonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.5", type: NgtCommonDirective, ngImport: i0 });
|
|
1018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtCommonDirective, decorators: [{
|
|
1016
1019
|
type: Directive
|
|
1017
1020
|
}], ctorParameters: function () { return []; } });
|
|
1018
1021
|
|
|
@@ -1041,9 +1044,9 @@ class NgtArgs extends NgtCommonDirective {
|
|
|
1041
1044
|
return !this.injected && !!this.injectedArgs.length;
|
|
1042
1045
|
}
|
|
1043
1046
|
}
|
|
1044
|
-
NgtArgs.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
1045
|
-
NgtArgs.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
1046
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
1047
|
+
NgtArgs.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtArgs, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1048
|
+
NgtArgs.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.5", type: NgtArgs, isStandalone: true, selector: "[args]", inputs: { args: "args" }, usesInheritance: true, ngImport: i0 });
|
|
1049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtArgs, decorators: [{
|
|
1047
1050
|
type: Directive,
|
|
1048
1051
|
args: [{ selector: '[args]', standalone: true }]
|
|
1049
1052
|
}], propDecorators: { args: [{
|
|
@@ -1073,9 +1076,9 @@ class NgtParent extends NgtCommonDirective {
|
|
|
1073
1076
|
return !this.injected && !!this.injectedParent;
|
|
1074
1077
|
}
|
|
1075
1078
|
}
|
|
1076
|
-
NgtParent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
1077
|
-
NgtParent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
1078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
1079
|
+
NgtParent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtParent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1080
|
+
NgtParent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.5", type: NgtParent, isStandalone: true, selector: "[parent]", inputs: { parent: "parent" }, usesInheritance: true, ngImport: i0 });
|
|
1081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtParent, decorators: [{
|
|
1079
1082
|
type: Directive,
|
|
1080
1083
|
args: [{ selector: '[parent]', standalone: true }]
|
|
1081
1084
|
}], propDecorators: { parent: [{
|
|
@@ -2002,20 +2005,15 @@ class NgtRendererStore {
|
|
|
2002
2005
|
class NgtRendererFactory {
|
|
2003
2006
|
constructor() {
|
|
2004
2007
|
this.delegateRendererFactory = inject(RendererFactory2, { skipSelf: true });
|
|
2005
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
2006
|
-
this.store = inject(NgtStore);
|
|
2007
2008
|
this.catalogue = inject(NGT_CATALOGUE);
|
|
2008
|
-
this.compoundPrefixes = inject(NGT_COMPOUND_PREFIXES);
|
|
2009
|
-
this.document = inject(DOCUMENT);
|
|
2010
2009
|
this.rendererMap = new Map();
|
|
2011
2010
|
this.routedSet = new Set();
|
|
2012
|
-
this.portals = [];
|
|
2013
2011
|
this.rendererStore = new NgtRendererStore({
|
|
2014
|
-
store:
|
|
2015
|
-
cdr:
|
|
2016
|
-
portals:
|
|
2017
|
-
compoundPrefixes:
|
|
2018
|
-
document:
|
|
2012
|
+
store: inject(NgtStore),
|
|
2013
|
+
cdr: inject(ChangeDetectorRef),
|
|
2014
|
+
portals: [],
|
|
2015
|
+
compoundPrefixes: inject(NGT_COMPOUND_PREFIXES),
|
|
2016
|
+
document: inject(DOCUMENT),
|
|
2019
2017
|
});
|
|
2020
2018
|
}
|
|
2021
2019
|
createRenderer(hostElement, type) {
|
|
@@ -2035,9 +2033,9 @@ class NgtRendererFactory {
|
|
|
2035
2033
|
return renderer;
|
|
2036
2034
|
}
|
|
2037
2035
|
}
|
|
2038
|
-
NgtRendererFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
2039
|
-
NgtRendererFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.
|
|
2040
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
2036
|
+
NgtRendererFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtRendererFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2037
|
+
NgtRendererFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtRendererFactory });
|
|
2038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtRendererFactory, decorators: [{
|
|
2041
2039
|
type: Injectable
|
|
2042
2040
|
}] });
|
|
2043
2041
|
/**
|
|
@@ -2570,9 +2568,7 @@ class NgtCanvas extends NgtRxStore {
|
|
|
2570
2568
|
compoundPrefixes: this.compoundPrefixes,
|
|
2571
2569
|
}),
|
|
2572
2570
|
], this.envInjector);
|
|
2573
|
-
this.glRef = this.glAnchor.createComponent(this.sceneGraph, {
|
|
2574
|
-
environmentInjector: this.glEnvInjector,
|
|
2575
|
-
});
|
|
2571
|
+
this.glRef = this.glAnchor.createComponent(this.sceneGraph, { environmentInjector: this.glEnvInjector });
|
|
2576
2572
|
this.glRef.changeDetectorRef.detach();
|
|
2577
2573
|
this.setSceneGraphInputs();
|
|
2578
2574
|
// here, we override the detectChanges to also call detectChanges on the ComponentRef
|
|
@@ -2603,13 +2599,13 @@ class NgtCanvas extends NgtRxStore {
|
|
|
2603
2599
|
this.cdr.detectChanges();
|
|
2604
2600
|
}
|
|
2605
2601
|
}
|
|
2606
|
-
NgtCanvas.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
2607
|
-
NgtCanvas.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
2602
|
+
NgtCanvas.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtCanvas, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2603
|
+
NgtCanvas.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: NgtCanvas, isStandalone: true, selector: "ngt-canvas", inputs: { sceneGraph: "sceneGraph", sceneGraphInputs: "sceneGraphInputs", compoundPrefixes: "compoundPrefixes", linear: "linear", legacy: "legacy", flat: "flat", orthographic: "orthographic", frameloop: "frameloop", dpr: "dpr", raycaster: "raycaster", shadows: "shadows", camera: "camera", gl: "gl", eventSource: "eventSource", eventPrefix: "eventPrefix", lookAt: "lookAt", performance: "performance" }, outputs: { created: "created", pointerMissed: "pointerMissed" }, host: { properties: { "class.ngt-canvas": "this.hostClass", "style.pointerEvents": "this.pointerEvents" } }, providers: [NgtStore, provideNgxResizeOptions({ emitInZone: false })], viewQueries: [{ propertyName: "glCanvas", first: true, predicate: ["glCanvas"], descendants: true, static: true }, { propertyName: "glAnchor", first: true, predicate: ["glCanvas"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: `
|
|
2608
2604
|
<div (ngxResize)="onResize($event)" style="height: 100%; width: 100%;">
|
|
2609
2605
|
<canvas #glCanvas style="display: block;"></canvas>
|
|
2610
2606
|
</div>
|
|
2611
2607
|
`, isInline: true, styles: [":host{display:block;position:relative;width:100%;height:100%;overflow:hidden}\n"], dependencies: [{ kind: "directive", type: NgxResize, selector: "[ngxResize]", inputs: ["ngxResizeOptions"], outputs: ["ngxResize"] }] });
|
|
2612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
2608
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtCanvas, decorators: [{
|
|
2613
2609
|
type: Component,
|
|
2614
2610
|
args: [{ selector: 'ngt-canvas', standalone: true, template: `
|
|
2615
2611
|
<div (ngxResize)="onResize($event)" style="height: 100%; width: 100%;">
|
|
@@ -2780,16 +2776,25 @@ function createRunInContext() {
|
|
|
2780
2776
|
const envInjector = inject(EnvironmentInjector);
|
|
2781
2777
|
const originalGet = envInjector.get.bind(envInjector);
|
|
2782
2778
|
return (cb) => {
|
|
2779
|
+
let tryFromNodeInjector = false;
|
|
2783
2780
|
envInjector.get = (...args) => {
|
|
2784
2781
|
try {
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2782
|
+
if (!tryFromNodeInjector) {
|
|
2783
|
+
tryFromNodeInjector = true;
|
|
2784
|
+
const fromNodeInjector = nodeInjector.get(...args);
|
|
2785
|
+
if (fromNodeInjector) {
|
|
2786
|
+
tryFromNodeInjector = false;
|
|
2787
|
+
return fromNodeInjector;
|
|
2788
|
+
}
|
|
2789
|
+
}
|
|
2788
2790
|
return originalGet(...args);
|
|
2789
2791
|
}
|
|
2790
2792
|
catch (e) {
|
|
2791
2793
|
return originalGet(...args);
|
|
2792
2794
|
}
|
|
2795
|
+
finally {
|
|
2796
|
+
tryFromNodeInjector = false;
|
|
2797
|
+
}
|
|
2793
2798
|
};
|
|
2794
2799
|
return envInjector.runInContext(cb);
|
|
2795
2800
|
};
|
|
@@ -2800,9 +2805,9 @@ class NgtRepeat extends NgForOf {
|
|
|
2800
2805
|
this.ngForOf = Number.isInteger(count) ? Array.from({ length: count }, (_, i) => i) : [];
|
|
2801
2806
|
}
|
|
2802
2807
|
}
|
|
2803
|
-
NgtRepeat.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
2804
|
-
NgtRepeat.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
2805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
2808
|
+
NgtRepeat.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtRepeat, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
2809
|
+
NgtRepeat.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.5", type: NgtRepeat, isStandalone: true, selector: "[ngFor][ngForRepeat]", inputs: { ngForRepeat: "ngForRepeat" }, usesInheritance: true, ngImport: i0 });
|
|
2810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtRepeat, decorators: [{
|
|
2806
2811
|
type: Directive,
|
|
2807
2812
|
args: [{ selector: '[ngFor][ngForRepeat]', standalone: true }]
|
|
2808
2813
|
}], propDecorators: { ngForRepeat: [{
|
|
@@ -2853,9 +2858,9 @@ class NgtPush {
|
|
|
2853
2858
|
this.obj = undefined;
|
|
2854
2859
|
}
|
|
2855
2860
|
}
|
|
2856
|
-
NgtPush.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
2857
|
-
NgtPush.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.
|
|
2858
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
2861
|
+
NgtPush.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtPush, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2862
|
+
NgtPush.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: NgtPush, isStandalone: true, name: "ngtPush", pure: false });
|
|
2863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtPush, decorators: [{
|
|
2859
2864
|
type: Pipe,
|
|
2860
2865
|
args: [{ name: 'ngtPush', pure: false, standalone: true }]
|
|
2861
2866
|
}] });
|
|
@@ -2905,9 +2910,9 @@ class NgtPortalBeforeRender {
|
|
|
2905
2910
|
this.subscription?.();
|
|
2906
2911
|
}
|
|
2907
2912
|
}
|
|
2908
|
-
NgtPortalBeforeRender.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
2909
|
-
NgtPortalBeforeRender.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
2910
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
2913
|
+
NgtPortalBeforeRender.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtPortalBeforeRender, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2914
|
+
NgtPortalBeforeRender.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.5", type: NgtPortalBeforeRender, isStandalone: true, selector: "ngt-portal-before-render", inputs: { renderPriority: "renderPriority", parentScene: "parentScene", parentCamera: "parentCamera" }, outputs: { beforeRender: "beforeRender" }, ngImport: i0 });
|
|
2915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtPortalBeforeRender, decorators: [{
|
|
2911
2916
|
type: Directive,
|
|
2912
2917
|
args: [{
|
|
2913
2918
|
selector: 'ngt-portal-before-render',
|
|
@@ -2931,9 +2936,9 @@ class NgtPortalContent {
|
|
|
2931
2936
|
}
|
|
2932
2937
|
}
|
|
2933
2938
|
}
|
|
2934
|
-
NgtPortalContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
2935
|
-
NgtPortalContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
2936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
2939
|
+
NgtPortalContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtPortalContent, deps: [{ token: i0.ViewContainerRef }, { token: i0.ViewContainerRef, skipSelf: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2940
|
+
NgtPortalContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.5", type: NgtPortalContent, isStandalone: true, selector: "ng-template[ngtPortalContent]", ngImport: i0 });
|
|
2941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtPortalContent, decorators: [{
|
|
2937
2942
|
type: Directive,
|
|
2938
2943
|
args: [{ selector: 'ng-template[ngtPortalContent]', standalone: true }]
|
|
2939
2944
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.ViewContainerRef, decorators: [{
|
|
@@ -3041,8 +3046,8 @@ _NgtPortal_instances = new WeakSet(), _NgtPortal_inject = function _NgtPortal_in
|
|
|
3041
3046
|
...restInputsState,
|
|
3042
3047
|
};
|
|
3043
3048
|
};
|
|
3044
|
-
NgtPortal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
3045
|
-
NgtPortal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
3049
|
+
NgtPortal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtPortal, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3050
|
+
NgtPortal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: NgtPortal, isStandalone: true, selector: "ngt-portal", inputs: { container: "container", state: "state", autoRender: "autoRender", autoRenderPriority: "autoRenderPriority" }, outputs: { beforeRender: "beforeRender" }, providers: [NgtStore], queries: [{ propertyName: "portalContentTemplate", first: true, predicate: NgtPortalContent, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "portalContentAnchor", first: true, predicate: ["portalContentAnchor"], descendants: true, read: ViewContainerRef, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3046
3051
|
<ng-container #portalContentAnchor>
|
|
3047
3052
|
<ngt-portal-before-render
|
|
3048
3053
|
*ngIf="autoRender && portalContentRendered"
|
|
@@ -3053,7 +3058,7 @@ NgtPortal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15
|
|
|
3053
3058
|
/>
|
|
3054
3059
|
</ng-container>
|
|
3055
3060
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgtPortalBeforeRender, selector: "ngt-portal-before-render", inputs: ["renderPriority", "parentScene", "parentCamera"], outputs: ["beforeRender"] }] });
|
|
3056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
3061
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtPortal, decorators: [{
|
|
3057
3062
|
type: Component,
|
|
3058
3063
|
args: [{
|
|
3059
3064
|
selector: 'ngt-portal',
|
|
@@ -3101,9 +3106,9 @@ class NgtRoutedScene {
|
|
|
3101
3106
|
}
|
|
3102
3107
|
}
|
|
3103
3108
|
NgtRoutedScene.isRoutedScene = true;
|
|
3104
|
-
NgtRoutedScene.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
3105
|
-
NgtRoutedScene.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
3106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
3109
|
+
NgtRoutedScene.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtRoutedScene, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
3110
|
+
NgtRoutedScene.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.5", type: NgtRoutedScene, isStandalone: true, selector: "ngt-routed-scene", ngImport: i0, template: `<router-outlet />`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
3111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: NgtRoutedScene, decorators: [{
|
|
3107
3112
|
type: Component,
|
|
3108
3113
|
args: [{
|
|
3109
3114
|
standalone: true,
|