angular-three 4.0.0-next.54 → 4.0.0-next.56
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/fesm2022/angular-three-dom.mjs +6 -6
- package/fesm2022/angular-three-testing.mjs +3 -3
- package/fesm2022/angular-three.mjs +56 -58
- package/fesm2022/angular-three.mjs.map +1 -1
- package/lib/html.d.ts +1 -1
- package/lib/renderer/renderer.d.ts +1 -1
- package/lib/utils/is.d.ts +1 -0
- package/lib/utils/make.d.ts +1 -1
- package/package.json +1 -1
- package/testing/lib/utils/web-gl-rendering-context.d.ts +1 -1
|
@@ -86,10 +86,10 @@ class NgtCanvasContent {
|
|
|
86
86
|
commentNode.data = NGT_CANVAS_CONTENT_FLAG;
|
|
87
87
|
commentNode[NGT_CANVAS_CONTENT_FLAG] = store;
|
|
88
88
|
}
|
|
89
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
90
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtCanvasContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
90
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.6", type: NgtCanvasContent, isStandalone: true, selector: "ng-template[canvasContent]", ngImport: i0 }); }
|
|
91
91
|
}
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtCanvasContent, decorators: [{
|
|
93
93
|
type: Directive,
|
|
94
94
|
args: [{ selector: 'ng-template[canvasContent]' }]
|
|
95
95
|
}], ctorParameters: () => [] });
|
|
@@ -220,8 +220,8 @@ class NgtCanvasImpl {
|
|
|
220
220
|
this.glRef = canvasVcr.createEmbeddedView(canvasContent, {}, { injector: this.injector });
|
|
221
221
|
this.glRef.detectChanges();
|
|
222
222
|
}
|
|
223
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
224
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.
|
|
223
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtCanvasImpl, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
224
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.6", type: NgtCanvasImpl, isStandalone: true, selector: "ngt-canvas", inputs: { gl: { classPropertyName: "gl", publicName: "gl", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadows: { classPropertyName: "shadows", publicName: "shadows", isSignal: true, isRequired: false, transformFunction: null }, legacy: { classPropertyName: "legacy", publicName: "legacy", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, flat: { classPropertyName: "flat", publicName: "flat", isSignal: true, isRequired: false, transformFunction: null }, orthographic: { classPropertyName: "orthographic", publicName: "orthographic", isSignal: true, isRequired: false, transformFunction: null }, frameloop: { classPropertyName: "frameloop", publicName: "frameloop", isSignal: true, isRequired: false, transformFunction: null }, performance: { classPropertyName: "performance", publicName: "performance", isSignal: true, isRequired: false, transformFunction: null }, dpr: { classPropertyName: "dpr", publicName: "dpr", isSignal: true, isRequired: false, transformFunction: null }, raycaster: { classPropertyName: "raycaster", publicName: "raycaster", isSignal: true, isRequired: false, transformFunction: null }, scene: { classPropertyName: "scene", publicName: "scene", isSignal: true, isRequired: false, transformFunction: null }, camera: { classPropertyName: "camera", publicName: "camera", isSignal: true, isRequired: false, transformFunction: null }, events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, eventSource: { classPropertyName: "eventSource", publicName: "eventSource", isSignal: true, isRequired: false, transformFunction: null }, eventPrefix: { classPropertyName: "eventPrefix", publicName: "eventPrefix", isSignal: true, isRequired: false, transformFunction: null }, lookAt: { classPropertyName: "lookAt", publicName: "lookAt", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { created: "created", pointerMissed: "pointerMissed" }, host: { attributes: { "ngSkipHydration": "true" }, properties: { "style.pointerEvents": "hbPointerEvents()" }, styleAttribute: "display: block;position: relative;width: 100%;height: 100%;overflow: hidden;" }, providers: [
|
|
225
225
|
provideResizeOptions({
|
|
226
226
|
emitInZone: false,
|
|
227
227
|
emitInitialResult: true,
|
|
@@ -235,7 +235,7 @@ class NgtCanvasImpl {
|
|
|
235
235
|
</div>
|
|
236
236
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgxResize, selector: "[ngxResize]", inputs: ["ngxResizeOptions"], outputs: ["ngxResize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
237
237
|
}
|
|
238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtCanvasImpl, decorators: [{
|
|
239
239
|
type: Component,
|
|
240
240
|
args: [{
|
|
241
241
|
selector: 'ngt-canvas',
|
|
@@ -37,12 +37,12 @@ class NgtTestCanvas {
|
|
|
37
37
|
destroy() {
|
|
38
38
|
this.sceneRef?.destroy();
|
|
39
39
|
}
|
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
41
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.
|
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtTestCanvas, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
41
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.6", type: NgtTestCanvas, isStandalone: true, selector: "ngt-test-canvas", inputs: { sceneGraph: { classPropertyName: "sceneGraph", publicName: "sceneGraph", isSignal: true, isRequired: true, transformFunction: null }, sceneGraphInputs: { classPropertyName: "sceneGraphInputs", publicName: "sceneGraphInputs", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "anchorRef", first: true, predicate: ["anchor"], descendants: true, read: ViewContainerRef, isSignal: true }], ngImport: i0, template: `
|
|
42
42
|
<ng-container #anchor />
|
|
43
43
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
44
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtTestCanvas, decorators: [{
|
|
46
46
|
type: Component,
|
|
47
47
|
args: [{
|
|
48
48
|
selector: 'ngt-test-canvas',
|
|
@@ -34,6 +34,7 @@ const is = {
|
|
|
34
34
|
instance: (a) => !!a && !!a['__ngt__'],
|
|
35
35
|
object3D: (a) => !!a && a.isObject3D,
|
|
36
36
|
three: (a, isKey) => !!a && a[isKey],
|
|
37
|
+
colorRepresentation: (a) => a != null && (typeof a === 'string' || typeof a === 'number' || is.three(a, 'isColor')),
|
|
37
38
|
colorSpaceExist: (object) => 'colorSpace' in object || 'outputColorSpace' in object,
|
|
38
39
|
equ(a, b, { arrays = 'shallow', objects = 'reference', strict = true } = {}) {
|
|
39
40
|
// Wrong type or one of the two undefined, doesn't match
|
|
@@ -114,10 +115,10 @@ class NgtCommonDirective {
|
|
|
114
115
|
this.view = this.vcr.createEmbeddedView(this.template);
|
|
115
116
|
this.view.detectChanges();
|
|
116
117
|
}
|
|
117
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
118
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.
|
|
118
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtCommonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
119
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.6", type: NgtCommonDirective, isStandalone: true, ngImport: i0 }); }
|
|
119
120
|
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtCommonDirective, decorators: [{
|
|
121
122
|
type: Directive
|
|
122
123
|
}], ctorParameters: () => [] });
|
|
123
124
|
|
|
@@ -141,10 +142,10 @@ class NgtArgs extends NgtCommonDirective {
|
|
|
141
142
|
validate() {
|
|
142
143
|
return !this.injected && !!this.injectedValue?.length;
|
|
143
144
|
}
|
|
144
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
145
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.
|
|
145
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtArgs, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
146
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.6", type: NgtArgs, isStandalone: true, selector: "ng-template[args]", inputs: { args: { classPropertyName: "args", publicName: "args", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
146
147
|
}
|
|
147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtArgs, decorators: [{
|
|
148
149
|
type: Directive,
|
|
149
150
|
args: [{ selector: 'ng-template[args]' }]
|
|
150
151
|
}], ctorParameters: () => [] });
|
|
@@ -668,10 +669,10 @@ class NgtParent extends NgtCommonDirective {
|
|
|
668
669
|
commentNode[NGT_INTERNAL_SET_PARENT_COMMENT_FLAG](this.injectedValue);
|
|
669
670
|
}
|
|
670
671
|
}
|
|
671
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
672
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.
|
|
672
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtParent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
673
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.6", type: NgtParent, isStandalone: true, selector: "ng-template[parent]", inputs: { parent: { classPropertyName: "parent", publicName: "parent", isSignal: true, isRequired: true, transformFunction: null } }, usesInheritance: true, ngImport: i0 }); }
|
|
673
674
|
}
|
|
674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtParent, decorators: [{
|
|
675
676
|
type: Directive,
|
|
676
677
|
args: [{ selector: 'ng-template[parent]' }]
|
|
677
678
|
}], ctorParameters: () => [] });
|
|
@@ -844,10 +845,10 @@ class NgtSelection {
|
|
|
844
845
|
return;
|
|
845
846
|
this.source.update(...args);
|
|
846
847
|
}
|
|
847
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
848
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.
|
|
848
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtSelection, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
849
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.6", type: NgtSelection, isStandalone: true, selector: "[ngtSelection]", inputs: { enabled: { classPropertyName: "enabled", publicName: "ngtSelection", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
849
850
|
}
|
|
850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtSelection, decorators: [{
|
|
851
852
|
type: Directive,
|
|
852
853
|
args: [{ selector: '[ngtSelection]' }]
|
|
853
854
|
}] });
|
|
@@ -891,10 +892,10 @@ class NgtSelect {
|
|
|
891
892
|
});
|
|
892
893
|
});
|
|
893
894
|
}
|
|
894
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
895
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.
|
|
895
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtSelect, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
896
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.6", type: NgtSelect, isStandalone: true, selector: "ngt-group[ngtSelect], ngt-mesh[ngtSelect]", inputs: { enabled: { classPropertyName: "enabled", publicName: "ngtSelect", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
896
897
|
}
|
|
897
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtSelect, decorators: [{
|
|
898
899
|
type: Directive,
|
|
899
900
|
args: [{ selector: 'ngt-group[ngtSelect], ngt-mesh[ngtSelect]' }]
|
|
900
901
|
}], ctorParameters: () => [] });
|
|
@@ -931,10 +932,10 @@ class NgtHTML {
|
|
|
931
932
|
delete host.nativeElement[NGT_DOM_PARENT_FLAG];
|
|
932
933
|
});
|
|
933
934
|
}
|
|
934
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
935
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.
|
|
935
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtHTML, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
936
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.6", type: NgtHTML, isStandalone: true, ngImport: i0 }); }
|
|
936
937
|
}
|
|
937
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
938
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtHTML, decorators: [{
|
|
938
939
|
type: Directive
|
|
939
940
|
}], ctorParameters: () => [] });
|
|
940
941
|
|
|
@@ -1103,10 +1104,10 @@ class NgtHexify {
|
|
|
1103
1104
|
const hex = component.toString(16);
|
|
1104
1105
|
return hex.length === 1 ? '0' + hex : hex;
|
|
1105
1106
|
}
|
|
1106
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
1107
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.
|
|
1107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtHexify, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
1108
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.1.6", ngImport: i0, type: NgtHexify, isStandalone: true, name: "hexify" }); }
|
|
1108
1109
|
}
|
|
1109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtHexify, decorators: [{
|
|
1110
1111
|
type: Pipe,
|
|
1111
1112
|
args: [{ name: 'hexify', pure: true }]
|
|
1112
1113
|
}] });
|
|
@@ -1232,10 +1233,10 @@ class NgtPortalAutoRender {
|
|
|
1232
1233
|
onCleanup(() => cleanup());
|
|
1233
1234
|
});
|
|
1234
1235
|
}
|
|
1235
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
1236
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.
|
|
1236
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtPortalAutoRender, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1237
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.6", type: NgtPortalAutoRender, isStandalone: true, selector: "ngt-portal[autoRender]", inputs: { renderPriority: { classPropertyName: "renderPriority", publicName: "autoRender", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
1237
1238
|
}
|
|
1238
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtPortalAutoRender, decorators: [{
|
|
1239
1240
|
type: Directive,
|
|
1240
1241
|
args: [{ selector: 'ngt-portal[autoRender]' }]
|
|
1241
1242
|
}], ctorParameters: () => [] });
|
|
@@ -1257,10 +1258,10 @@ class NgtPortalContent {
|
|
|
1257
1258
|
delete commentNode[NGT_INTERNAL_ADD_COMMENT_FLAG];
|
|
1258
1259
|
}
|
|
1259
1260
|
}
|
|
1260
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
1261
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.
|
|
1261
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtPortalContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1262
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.6", type: NgtPortalContent, isStandalone: true, selector: "ng-template[portalContent]", ngImport: i0 }); }
|
|
1262
1263
|
}
|
|
1263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtPortalContent, decorators: [{
|
|
1264
1265
|
type: Directive,
|
|
1265
1266
|
args: [{ selector: 'ng-template[portalContent]' }]
|
|
1266
1267
|
}], ctorParameters: () => [] });
|
|
@@ -1334,8 +1335,8 @@ class NgtPortalImpl {
|
|
|
1334
1335
|
this.portalContentRendered.set(true);
|
|
1335
1336
|
});
|
|
1336
1337
|
}
|
|
1337
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
1338
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.
|
|
1338
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtPortalImpl, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1339
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.6", type: NgtPortalImpl, isStandalone: true, selector: "ngt-portal", inputs: { container: { classPropertyName: "container", publicName: "container", isSignal: true, isRequired: true, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
1339
1340
|
{
|
|
1340
1341
|
provide: NGT_STORE,
|
|
1341
1342
|
useFactory: (previousStore) => {
|
|
@@ -1362,7 +1363,7 @@ class NgtPortalImpl {
|
|
|
1362
1363
|
}
|
|
1363
1364
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1364
1365
|
}
|
|
1365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
1366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtPortalImpl, decorators: [{
|
|
1366
1367
|
type: Component,
|
|
1367
1368
|
args: [{
|
|
1368
1369
|
selector: 'ngt-portal',
|
|
@@ -1860,8 +1861,17 @@ function applyProps(instance, props) {
|
|
|
1860
1861
|
if (root !== instance) {
|
|
1861
1862
|
return applyProps(root, { [targetKey]: value });
|
|
1862
1863
|
}
|
|
1864
|
+
// Layers have no copy function, we must therefore copy the mask property
|
|
1865
|
+
if (targetProp instanceof THREE.Layers && value instanceof THREE.Layers) {
|
|
1866
|
+
targetProp.mask = value.mask;
|
|
1867
|
+
}
|
|
1868
|
+
else if (is.three(targetProp, 'isColor') && is.colorRepresentation(value)) {
|
|
1869
|
+
targetProp.set(value);
|
|
1870
|
+
}
|
|
1863
1871
|
// Copy if properties match signatures
|
|
1864
|
-
if (targetProp
|
|
1872
|
+
else if (targetProp &&
|
|
1873
|
+
typeof targetProp.set === 'function' &&
|
|
1874
|
+
typeof targetProp.copy === 'function' &&
|
|
1865
1875
|
value?.constructor &&
|
|
1866
1876
|
targetProp.constructor === value.constructor) {
|
|
1867
1877
|
// If both are geometries, we should assign the value directly instead of copying
|
|
@@ -1870,33 +1880,21 @@ function applyProps(instance, props) {
|
|
|
1870
1880
|
Object.assign(root, { [targetKey]: value });
|
|
1871
1881
|
}
|
|
1872
1882
|
else {
|
|
1873
|
-
|
|
1874
|
-
const ctor = getMemoizedPrototype(root);
|
|
1875
|
-
// The target key was originally null or undefined, which indicates that the object which
|
|
1876
|
-
// is now present was externally set by the user, we should therefore assign the value directly
|
|
1877
|
-
if (ctor !== undefined && ctor[targetKey] == null)
|
|
1878
|
-
Object.assign(root, { [targetKey]: value });
|
|
1879
|
-
// Otherwise copy is correct
|
|
1880
|
-
else
|
|
1881
|
-
targetProp.copy(value);
|
|
1883
|
+
targetProp.copy(value);
|
|
1882
1884
|
}
|
|
1883
1885
|
}
|
|
1884
|
-
// Layers have no copy function, we must therefore copy the mask property
|
|
1885
|
-
else if (targetProp instanceof THREE.Layers && value instanceof THREE.Layers) {
|
|
1886
|
-
targetProp.mask = value.mask;
|
|
1887
|
-
}
|
|
1888
1886
|
// Set array types
|
|
1889
|
-
else if (targetProp
|
|
1890
|
-
if (targetProp.fromArray)
|
|
1887
|
+
else if (targetProp && typeof targetProp.set === 'function' && Array.isArray(value)) {
|
|
1888
|
+
if (typeof targetProp.fromArray === 'function')
|
|
1891
1889
|
targetProp.fromArray(value);
|
|
1892
1890
|
else
|
|
1893
1891
|
targetProp.set(...value);
|
|
1894
1892
|
}
|
|
1895
1893
|
// Set literal types
|
|
1896
|
-
else if (targetProp
|
|
1897
|
-
const isColor = targetProp
|
|
1894
|
+
else if (targetProp && typeof targetProp.set === 'function' && typeof value !== 'object') {
|
|
1895
|
+
const isColor = is.three(targetProp, 'isColor');
|
|
1898
1896
|
// Allow setting array scalars
|
|
1899
|
-
if (!isColor && targetProp.setScalar && typeof value === 'number')
|
|
1897
|
+
if (!isColor && typeof targetProp.setScalar === 'function' && typeof value === 'number')
|
|
1900
1898
|
targetProp.setScalar(value);
|
|
1901
1899
|
// Otherwise just set single value
|
|
1902
1900
|
else
|
|
@@ -2264,10 +2262,10 @@ class NgtRendererFactory2 {
|
|
|
2264
2262
|
this.rendererMap.set(type.id, (renderer = new NgtRenderer2(delegateRenderer, this.catalogue, this.document)));
|
|
2265
2263
|
return renderer;
|
|
2266
2264
|
}
|
|
2267
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
2268
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.
|
|
2265
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtRendererFactory2, deps: [{ token: i0.RendererFactory2 }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2266
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtRendererFactory2 }); }
|
|
2269
2267
|
}
|
|
2270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
2268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtRendererFactory2, decorators: [{
|
|
2271
2269
|
type: Injectable
|
|
2272
2270
|
}], ctorParameters: () => [{ type: i0.RendererFactory2 }] });
|
|
2273
2271
|
class NgtRenderer2 {
|
|
@@ -3050,12 +3048,12 @@ class NgtRoutedScene {
|
|
|
3050
3048
|
onCleanup(() => sub.unsubscribe());
|
|
3051
3049
|
});
|
|
3052
3050
|
}
|
|
3053
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
3054
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.
|
|
3051
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtRoutedScene, deps: [{ token: i1.Router }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3052
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.6", type: NgtRoutedScene, isStandalone: true, selector: "ngt-routed-scene", ngImport: i0, template: `
|
|
3055
3053
|
<router-outlet />
|
|
3056
3054
|
`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
3057
3055
|
}
|
|
3058
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
3056
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtRoutedScene, decorators: [{
|
|
3059
3057
|
type: Component,
|
|
3060
3058
|
args: [{
|
|
3061
3059
|
selector: 'ngt-routed-scene',
|
|
@@ -3169,10 +3167,10 @@ class NgtObjectEvents {
|
|
|
3169
3167
|
emitEvent(eventName) {
|
|
3170
3168
|
return this[eventName].emit.bind(this[eventName]);
|
|
3171
3169
|
}
|
|
3172
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.
|
|
3173
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.
|
|
3170
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtObjectEvents, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3171
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.6", type: NgtObjectEvents, isStandalone: true, selector: "[ngtObjectEvents]", inputs: { ngtObjectEvents: { classPropertyName: "ngtObjectEvents", publicName: "ngtObjectEvents", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { click: "click", dblclick: "dblclick", contextmenu: "contextmenu", pointerup: "pointerup", pointerdown: "pointerdown", pointerover: "pointerover", pointerout: "pointerout", pointerenter: "pointerenter", pointerleave: "pointerleave", pointermove: "pointermove", pointermissed: "pointermissed", pointercancel: "pointercancel", wheel: "wheel", ngtObjectEvents: "ngtObjectEventsChange" }, ngImport: i0 }); }
|
|
3174
3172
|
}
|
|
3175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.
|
|
3173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.6", ngImport: i0, type: NgtObjectEvents, decorators: [{
|
|
3176
3174
|
type: Directive,
|
|
3177
3175
|
args: [{ selector: '[ngtObjectEvents]' }]
|
|
3178
3176
|
}], ctorParameters: () => [] });
|