angular-three-soba 2.0.0-beta.26 → 2.0.0-beta.28
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/controls/orbit-controls/orbit-controls.d.ts +1 -1
- package/esm2022/abstractions/billboard/billboard.mjs +3 -3
- package/esm2022/abstractions/detailed/detailed.mjs +3 -3
- package/esm2022/abstractions/edges/edges.mjs +3 -3
- package/esm2022/abstractions/grid/grid.mjs +3 -3
- package/esm2022/abstractions/text/text.mjs +3 -3
- package/esm2022/abstractions/text-3d/text-3d.mjs +3 -3
- package/esm2022/cameras/camera/camera-content.mjs +3 -3
- package/esm2022/cameras/camera/camera.mjs +3 -3
- package/esm2022/cameras/cube-camera/cube-camera.mjs +9 -9
- package/esm2022/cameras/orthographic-camera/orthographic-camera.mjs +3 -3
- package/esm2022/cameras/perspective-camera/perspective-camera.mjs +3 -3
- package/esm2022/controls/orbit-controls/orbit-controls.mjs +10 -6
- package/esm2022/gizmos/gizmo-helper/gizmo-helper.mjs +3 -3
- package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +3 -3
- package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +6 -6
- package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube-input.mjs +3 -3
- package/esm2022/gizmos/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +3 -3
- package/esm2022/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +6 -6
- package/esm2022/gizmos/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +3 -3
- package/esm2022/loaders/gltf-loader/gltf-loader.mjs +6 -2
- package/esm2022/loaders/loader/loader.mjs +3 -3
- package/esm2022/loaders/progress/progress.mjs +3 -3
- package/esm2022/loaders/texture-loader/texture-loader.mjs +3 -3
- package/esm2022/materials/mesh-distort-material/mesh-distort-material.mjs +3 -3
- package/esm2022/materials/mesh-reflector-material/mesh-reflector-material.mjs +3 -3
- package/esm2022/materials/mesh-refraction-material/mesh-refraction-material.mjs +3 -3
- package/esm2022/materials/mesh-transmission-material/mesh-transmission-material.mjs +3 -3
- package/esm2022/materials/mesh-wobble-material/mesh-wobble-material.mjs +3 -3
- package/esm2022/materials/point-material/point-material.mjs +3 -3
- package/esm2022/misc/animations/animations.mjs +3 -3
- package/esm2022/misc/bake-shadows/bake-shadows.mjs +3 -3
- package/esm2022/misc/caustics/caustics.mjs +3 -3
- package/esm2022/misc/decal/decal.mjs +3 -3
- package/esm2022/misc/depth-buffer/depth-buffer.mjs +3 -3
- package/esm2022/misc/example/example.mjs +3 -3
- package/esm2022/misc/fbo/fbo.mjs +3 -3
- package/esm2022/misc/html/html-wrapper.mjs +3 -3
- package/esm2022/misc/html/html.mjs +3 -3
- package/esm2022/misc/sampler/sampler.mjs +6 -6
- package/esm2022/misc/shadow/shadow.mjs +3 -3
- package/esm2022/misc/stats-gl/stats-gl.mjs +3 -3
- package/esm2022/misc/trail/trail.mjs +6 -6
- package/esm2022/misc/trail-texture/inject-trail-texture.mjs +3 -3
- package/esm2022/modifiers/curve-modifier/curve-modifier.mjs +3 -3
- package/esm2022/performances/adaptive-dpr/adaptive-dpr.mjs +3 -3
- package/esm2022/performances/adaptive-events/adaptive-events.mjs +3 -3
- package/esm2022/performances/instances/instances.mjs +6 -6
- package/esm2022/performances/points/points-input.mjs +3 -3
- package/esm2022/performances/points/points.mjs +12 -12
- package/esm2022/performances/segments/segments.mjs +6 -6
- package/esm2022/shaders/wireframe-material/wireframe-material.mjs +3 -3
- package/esm2022/staging/accumulative-shadows/accumulative-shadows.mjs +3 -3
- package/esm2022/staging/accumulative-shadows/progressive-light-map.mjs +8 -8
- package/esm2022/staging/accumulative-shadows/randomized-lights.mjs +5 -5
- package/esm2022/staging/backdrop/backdrop.mjs +3 -3
- package/esm2022/staging/bb-anchor/bb-anchor.mjs +6 -6
- package/esm2022/staging/bounds/bounds.mjs +3 -3
- package/esm2022/staging/camera-shake/camera-shake.mjs +3 -3
- package/esm2022/staging/center/center.mjs +3 -3
- package/esm2022/staging/cloud/cloud.mjs +3 -3
- package/esm2022/staging/contact-shadows/contact-shadows.mjs +3 -3
- package/esm2022/staging/environment/environment-cube.mjs +3 -3
- package/esm2022/staging/environment/environment-ground.mjs +3 -3
- package/esm2022/staging/environment/environment-input.mjs +3 -3
- package/esm2022/staging/environment/environment-map.mjs +3 -3
- package/esm2022/staging/environment/environment-portal.mjs +3 -3
- package/esm2022/staging/environment/environment.mjs +3 -3
- package/esm2022/staging/environment/utils.mjs +3 -3
- package/esm2022/staging/float/float.mjs +3 -3
- package/esm2022/staging/matcap-texture/matcap-texture.mjs +3 -3
- package/esm2022/staging/normal-texture/normal-texture.mjs +3 -3
- package/esm2022/staging/sky/sky.mjs +3 -3
- package/esm2022/staging/sparkles/sparkles.mjs +3 -3
- package/esm2022/staging/spot-light/shadow-mesh-input.mjs +3 -3
- package/esm2022/staging/spot-light/shadow-mesh.mjs +12 -12
- package/esm2022/staging/spot-light/spot-light-input.mjs +3 -3
- package/esm2022/staging/spot-light/spot-light.mjs +3 -3
- package/esm2022/staging/spot-light/volumetric-mesh.mjs +3 -3
- package/esm2022/staging/stage/stage.mjs +6 -6
- package/esm2022/staging/stars/stars.mjs +3 -3
- package/esm2022/staging/wireframe/wireframe-input.mjs +3 -3
- package/esm2022/staging/wireframe/wireframe.mjs +9 -9
- package/esm2022/utils/content/content.mjs +3 -3
- package/fesm2022/angular-three-soba-abstractions.mjs +18 -18
- package/fesm2022/angular-three-soba-cameras.mjs +20 -20
- package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
- package/fesm2022/angular-three-soba-controls.mjs +9 -5
- package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
- package/fesm2022/angular-three-soba-gizmos.mjs +27 -27
- package/fesm2022/angular-three-soba-loaders.mjs +11 -7
- package/fesm2022/angular-three-soba-loaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-materials.mjs +18 -18
- package/fesm2022/angular-three-soba-misc.mjs +37 -37
- package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
- package/fesm2022/angular-three-soba-modifiers.mjs +3 -3
- package/fesm2022/angular-three-soba-performances.mjs +33 -33
- package/fesm2022/angular-three-soba-shaders.mjs +2 -2
- package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
- package/fesm2022/angular-three-soba-staging.mjs +111 -111
- package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
- package/fesm2022/angular-three-soba-utils.mjs +3 -3
- package/package.json +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { runInInjectionContext, computed, effect, Directive, inject, ChangeDetectorRef, DestroyRef, Component, CUSTOM_ELEMENTS_SCHEMA, Input, forwardRef, signal, ViewContainerRef, untracked, ViewChild, EventEmitter, TemplateRef, ContentChild, Output, Injector } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { assertInjector, injectNgtRef, injectBeforeRender, injectNgtStore, safeDetectChanges, extend, signalStore, is, applyProps, createInjectionToken, HTML, checkUpdate, NgtArgs, addEffect, addAfterEffect, NgtPortal, NgtPortalContent } from 'angular-three';
|
|
4
4
|
import * as THREE from 'three';
|
|
5
5
|
import { Group, Scene, Mesh, PlaneGeometry, OrthographicCamera, LineBasicMaterial, BoxGeometry, MeshNormalMaterial, AxesHelper, MeshStandardMaterial, ShaderMaterial, CanvasTexture, MeshBasicMaterial, Texture } from 'three';
|
|
6
6
|
import { NgIf, DOCUMENT, NgTemplateOutlet } from '@angular/common';
|
|
@@ -13,7 +13,7 @@ import Stats from 'stats-gl';
|
|
|
13
13
|
import { MeshLineGeometry, MeshLineMaterial } from 'meshline';
|
|
14
14
|
|
|
15
15
|
function injectNgtsAnimations(animationsFactory, { ref, injector, playFirstClip = true, } = {}) {
|
|
16
|
-
injector =
|
|
16
|
+
injector = assertInjector(injectNgtsAnimations, injector);
|
|
17
17
|
return runInInjectionContext(injector, () => {
|
|
18
18
|
let actualRef = injectNgtRef();
|
|
19
19
|
if (ref) {
|
|
@@ -81,16 +81,16 @@ class NgtsBakeShadows {
|
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
85
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.
|
|
84
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsBakeShadows, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
85
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.3", type: NgtsBakeShadows, isStandalone: true, selector: "ngts-bake-shadows", ngImport: i0 }); }
|
|
86
86
|
}
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsBakeShadows, decorators: [{
|
|
88
88
|
type: Directive,
|
|
89
89
|
args: [{ selector: 'ngts-bake-shadows', standalone: true }]
|
|
90
90
|
}], ctorParameters: function () { return []; } });
|
|
91
91
|
|
|
92
92
|
function injectNgtsFBO(fboParams, { injector } = {}) {
|
|
93
|
-
injector =
|
|
93
|
+
injector = assertInjector(injectNgtsFBO, injector);
|
|
94
94
|
return runInInjectionContext(injector, () => {
|
|
95
95
|
const store = injectNgtStore();
|
|
96
96
|
const cdr = inject(ChangeDetectorRef);
|
|
@@ -410,8 +410,8 @@ class NgtsCaustics {
|
|
|
410
410
|
}
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
414
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.
|
|
413
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsCaustics, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
414
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsCaustics, isStandalone: true, selector: "ngts-caustics", inputs: { causticsRef: "causticsRef", _frames: ["frames", "_frames"], _debug: ["debug", "_debug"], _causticsOnly: ["causticsOnly", "_causticsOnly"], _backside: ["backside", "_backside"], _ior: ["ior", "_ior"], _backsideIOR: ["backsideIOR", "_backsideIOR"], _worldRadius: ["worldRadius", "_worldRadius"], _intensity: ["intensity", "_intensity"], _color: ["color", "_color"], _resolution: ["resolution", "_resolution"], _lightSource: ["lightSource", "_lightSource"] }, ngImport: i0, template: `
|
|
415
415
|
<ngt-group [ref]="causticsRef" ngtCompound>
|
|
416
416
|
<ngt-scene [ref]="sceneRef">
|
|
417
417
|
<ngt-orthographic-camera [ref]="cameraRef" [up]="[0, 1, 0]" />
|
|
@@ -438,7 +438,7 @@ class NgtsCaustics {
|
|
|
438
438
|
</ngt-group>
|
|
439
439
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NgtsEdges, selector: "ngts-edges", inputs: ["edgesRef", "threshold", "color", "geometry", "userData"] }, { kind: "directive", type: NgtsSobaContent, selector: "ng-template[ngtsSobaContent]", exportAs: ["sobaContent"] }] }); }
|
|
440
440
|
}
|
|
441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsCaustics, decorators: [{
|
|
442
442
|
type: Component,
|
|
443
443
|
args: [{
|
|
444
444
|
selector: 'ngts-caustics',
|
|
@@ -619,8 +619,8 @@ class NgtsDecal {
|
|
|
619
619
|
}
|
|
620
620
|
});
|
|
621
621
|
}
|
|
622
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
623
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.
|
|
622
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsDecal, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
623
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsDecal, isStandalone: true, selector: "ngts-decal", inputs: { decalRef: "decalRef", _debug: ["debug", "_debug"], _mesh: ["mesh", "_mesh"], _position: ["position", "_position"], _rotation: ["rotation", "_rotation"], _scale: ["scale", "_scale"], _map: ["map", "_map"], _polygonOffsetFactor: ["polygonOffsetFactor", "_polygonOffsetFactor"], _depthTest: ["depthTest", "_depthTest"] }, ngImport: i0, template: `
|
|
624
624
|
<ngt-mesh [ref]="decalRef" ngtCompound>
|
|
625
625
|
<ngt-value [rawValue]="true" attach="material.transparent" />
|
|
626
626
|
<ngt-value [rawValue]="true" attach="material.polygonOffset" />
|
|
@@ -637,7 +637,7 @@ class NgtsDecal {
|
|
|
637
637
|
</ngt-mesh>
|
|
638
638
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
639
639
|
}
|
|
640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsDecal, decorators: [{
|
|
641
641
|
type: Component,
|
|
642
642
|
args: [{
|
|
643
643
|
selector: 'ngts-decal',
|
|
@@ -690,7 +690,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.2", ngImpor
|
|
|
690
690
|
}] } });
|
|
691
691
|
|
|
692
692
|
function injectNgtsDepthBuffer(paramsFactory = () => ({}), { injector } = {}) {
|
|
693
|
-
injector =
|
|
693
|
+
injector = assertInjector(injectNgtsDepthBuffer, injector);
|
|
694
694
|
return runInInjectionContext(injector, () => {
|
|
695
695
|
const depthBufferRef = injectNgtRef(null);
|
|
696
696
|
const store = injectNgtStore();
|
|
@@ -805,8 +805,8 @@ class NgtsExample {
|
|
|
805
805
|
set _bevelSize(bevelSize) {
|
|
806
806
|
this.inputs.set({ bevelSize });
|
|
807
807
|
}
|
|
808
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
809
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.
|
|
808
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsExample, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
809
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsExample, isStandalone: true, selector: "ngts-example", inputs: { exampleRef: "exampleRef", _font: ["font", "_font"], _color: ["color", "_color"], _debug: ["debug", "_debug"], _bevelSize: ["bevelSize", "_bevelSize"] }, providers: [provideNgtsExampleApi()], ngImport: i0, template: `
|
|
810
810
|
<!-- ngtCompound is used by the Renderer to spread props from ngts-example down to ngt-group -->
|
|
811
811
|
<!-- i.e: <ngts-example [position]="[1, 1, 1]" />, [1, 1, 1] will be passed down to ngt-group -->
|
|
812
812
|
<!-- [ref] is used with the Input so that the consumer can pass an external ref and control this internal ngt-group -->
|
|
@@ -829,7 +829,7 @@ class NgtsExample {
|
|
|
829
829
|
</ngt-group>
|
|
830
830
|
`, isInline: true, dependencies: [{ kind: "component", type: NgtsCenter, selector: "ngts-center", inputs: ["centerRef", "top", "right", "bottom", "left", "front", "back", "disableX", "disableY", "disableZ", "disable", "precise", "cacheKey"], outputs: ["centered"] }, { kind: "component", type: NgtsText3D, selector: "ngts-text-3d", inputs: ["textRef", "font", "text", "bevelEnabled", "bevelOffset", "bevelSize", "bevelThickness", "curveSegments", "bevelSegments", "height", "size", "lineHeight", "letterSpacing", "smooth"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
831
831
|
}
|
|
832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsExample, decorators: [{
|
|
833
833
|
type: Component,
|
|
834
834
|
args: [{
|
|
835
835
|
selector: 'ngts-example',
|
|
@@ -1298,8 +1298,8 @@ class NgtsHtmlWrapper {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
1302
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.
|
|
1301
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsHtmlWrapper, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1302
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsHtmlWrapper, isStandalone: true, selector: "ngts-html-wrapper", viewQueries: [{ propertyName: "transformTemplate", first: true, predicate: ["transformTemplate"], descendants: true, static: true }, { propertyName: "renderTemplate", first: true, predicate: ["renderTemplate"], descendants: true, static: true }, { propertyName: "outerDiv", first: true, predicate: ["transformedOuterDiv"], descendants: true }, { propertyName: "innerDiv", first: true, predicate: ["transformedInnerDiv"], descendants: true }, { propertyName: "renderAnchor", first: true, predicate: ["renderAnchor"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: `
|
|
1303
1303
|
<ng-template #transformTemplate>
|
|
1304
1304
|
<div #transformedOuterDiv [style]="styles()">
|
|
1305
1305
|
<div #transformedInnerDiv [style]="transformInnerStyles()">
|
|
@@ -1315,7 +1315,7 @@ class NgtsHtmlWrapper {
|
|
|
1315
1315
|
</ng-template>
|
|
1316
1316
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
|
1317
1317
|
}
|
|
1318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
1318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsHtmlWrapper, decorators: [{
|
|
1319
1319
|
type: Component,
|
|
1320
1320
|
args: [{
|
|
1321
1321
|
selector: 'ngts-html-wrapper',
|
|
@@ -1527,8 +1527,8 @@ class NgtsHtml {
|
|
|
1527
1527
|
set _calculatePosition(calculatePosition) {
|
|
1528
1528
|
this.inputs.set({ calculatePosition });
|
|
1529
1529
|
}
|
|
1530
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
1531
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.
|
|
1530
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsHtml, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1531
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsHtml, isStandalone: true, selector: "ngts-html", inputs: { groupRef: "groupRef", _as: ["as", "_as"], _zIndexRange: ["zIndexRange", "_zIndexRange"], _portal: ["portal", "_portal"], _occlude: ["occlude", "_occlude"], _castShadow: ["castShadow", "_castShadow"], _receiveShadow: ["receiveShadow", "_receiveShadow"], _material: ["material", "_material"], _geometry: ["geometry", "_geometry"], _scale: ["scale", "_scale"], _prepend: ["prepend", "_prepend"], _transform: ["transform", "_transform"], _center: ["center", "_center"], _sprite: ["sprite", "_sprite"], _fullscreen: ["fullscreen", "_fullscreen"], _eps: ["eps", "_eps"], _distanceFactor: ["distanceFactor", "_distanceFactor"], _wrapperClass: ["wrapperClass", "_wrapperClass"], _renderedDivClass: ["renderedDivClass", "_renderedDivClass"], _style: ["style", "_style"], _pointerEvents: ["pointerEvents", "_pointerEvents"], _calculatePosition: ["calculatePosition", "_calculatePosition"] }, outputs: { occluded: "occluded" }, providers: [provideNgtsHtmlInputs()], queries: [{ propertyName: "content", first: true, predicate: NgtsSobaContent, descendants: true, read: TemplateRef }], ngImport: i0, template: `
|
|
1532
1532
|
<ngt-group ngtCompound [ref]="groupRef" [scale]="scale()">
|
|
1533
1533
|
<ngt-mesh
|
|
1534
1534
|
*ngIf="occlude() && !isRayCastOcclusion()"
|
|
@@ -1549,7 +1549,7 @@ class NgtsHtml {
|
|
|
1549
1549
|
<ngts-html-wrapper />
|
|
1550
1550
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NgtsHtmlWrapper, selector: "ngts-html-wrapper" }] }); }
|
|
1551
1551
|
}
|
|
1552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
1552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsHtml, decorators: [{
|
|
1553
1553
|
type: Component,
|
|
1554
1554
|
args: [{
|
|
1555
1555
|
selector: 'ngts-html',
|
|
@@ -1654,7 +1654,7 @@ const defaultState = {
|
|
|
1654
1654
|
count: 16,
|
|
1655
1655
|
};
|
|
1656
1656
|
function injectNgtsSurfaceSampler(surfaceSamplerState, { injector } = {}) {
|
|
1657
|
-
injector =
|
|
1657
|
+
injector = assertInjector(injectNgtsSurfaceSampler, injector);
|
|
1658
1658
|
return runInInjectionContext(injector, () => {
|
|
1659
1659
|
const state = computed(() => {
|
|
1660
1660
|
const _state = surfaceSamplerState();
|
|
@@ -1748,14 +1748,14 @@ class NgtsSampler {
|
|
|
1748
1748
|
injectNgtsSurfaceSampler(this.surfaceSamplerState, { injector });
|
|
1749
1749
|
});
|
|
1750
1750
|
}
|
|
1751
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
1752
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.
|
|
1751
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsSampler, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1752
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsSampler, isStandalone: true, selector: "ngts-sampler", inputs: { samplerRef: "samplerRef", _count: ["count", "_count"], _mesh: ["mesh", "_mesh"], _transform: ["transform", "_transform"], _weight: ["weight", "_weight"], _instancedMesh: ["instancedMesh", "_instancedMesh"] }, ngImport: i0, template: `
|
|
1753
1753
|
<ngt-group ngtCompound [ref]="samplerRef">
|
|
1754
1754
|
<ng-content />
|
|
1755
1755
|
</ngt-group>
|
|
1756
1756
|
`, isInline: true }); }
|
|
1757
1757
|
}
|
|
1758
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
1758
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsSampler, decorators: [{
|
|
1759
1759
|
type: Component,
|
|
1760
1760
|
args: [{
|
|
1761
1761
|
selector: 'ngts-sampler',
|
|
@@ -1833,8 +1833,8 @@ class NgtsShadow {
|
|
|
1833
1833
|
set _depthWrite(depthWrite) {
|
|
1834
1834
|
this.inputs.set({ depthWrite });
|
|
1835
1835
|
}
|
|
1836
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
1837
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.
|
|
1836
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsShadow, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1837
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsShadow, isStandalone: true, selector: "ngts-shadow", inputs: { shadowRef: "shadowRef", _colorStop: ["colorStop", "_colorStop"], _fog: ["fog", "_fog"], _color: ["color", "_color"], _opacity: ["opacity", "_opacity"], _depthWrite: ["depthWrite", "_depthWrite"] }, ngImport: i0, template: `
|
|
1838
1838
|
<ngt-mesh ngtCompound [ref]="shadowRef" [rotation]="[-Math.PI / 2, 0, 0]">
|
|
1839
1839
|
<ngt-plane-geometry />
|
|
1840
1840
|
<ngt-mesh-basic-material
|
|
@@ -1850,7 +1850,7 @@ class NgtsShadow {
|
|
|
1850
1850
|
</ngt-mesh>
|
|
1851
1851
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }] }); }
|
|
1852
1852
|
}
|
|
1853
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
1853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsShadow, decorators: [{
|
|
1854
1854
|
type: Component,
|
|
1855
1855
|
args: [{
|
|
1856
1856
|
selector: 'ngts-shadow',
|
|
@@ -1931,10 +1931,10 @@ class NgtsStatsGL {
|
|
|
1931
1931
|
});
|
|
1932
1932
|
});
|
|
1933
1933
|
}
|
|
1934
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
1935
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.
|
|
1934
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsStatsGL, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1935
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.3", type: NgtsStatsGL, isStandalone: true, selector: "ngts-stats-gl", inputs: { _parent: ["parent", "_parent"], _containerClass: ["containerClass", "_containerClass"], _config: ["config", "_config"] }, ngImport: i0 }); }
|
|
1936
1936
|
}
|
|
1937
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
1937
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsStatsGL, decorators: [{
|
|
1938
1938
|
type: Directive,
|
|
1939
1939
|
args: [{ selector: 'ngts-stats-gl', standalone: true }]
|
|
1940
1940
|
}], ctorParameters: function () { return []; }, propDecorators: { _parent: [{
|
|
@@ -2054,7 +2054,7 @@ class TrailTexture {
|
|
|
2054
2054
|
}
|
|
2055
2055
|
|
|
2056
2056
|
function injectNgtsTrailTexture(trailConfigFn, { injector } = {}) {
|
|
2057
|
-
injector =
|
|
2057
|
+
injector = assertInjector(injectNgtsTrailTexture, injector);
|
|
2058
2058
|
return runInInjectionContext(injector, () => {
|
|
2059
2059
|
const config = computed(() => trailConfigFn() || {});
|
|
2060
2060
|
const trail = computed(() => new TrailTexture(config()));
|
|
@@ -2081,7 +2081,7 @@ const defaultSettings = {
|
|
|
2081
2081
|
interval: 1,
|
|
2082
2082
|
};
|
|
2083
2083
|
function injectNgtsTrail(targetFactory, settingsFactory, { injector } = {}) {
|
|
2084
|
-
injector =
|
|
2084
|
+
injector = assertInjector(injectNgtsTrail, injector);
|
|
2085
2085
|
return runInInjectionContext(injector, () => {
|
|
2086
2086
|
const points = injectNgtRef();
|
|
2087
2087
|
let frameCount = 0;
|
|
@@ -2220,8 +2220,8 @@ class NgtsTrail {
|
|
|
2220
2220
|
this.geometry.setPoints(points, attenuation);
|
|
2221
2221
|
});
|
|
2222
2222
|
}
|
|
2223
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
2224
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.
|
|
2223
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsTrail, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2224
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", type: NgtsTrail, isStandalone: true, selector: "ngts-trail", inputs: { trailRef: "trailRef", _color: ["color", "_color"], _attenuation: ["attenuation", "_attenuation"], _target: ["target", "_target"], _settings: ["settings", "_settings"] }, ngImport: i0, template: `
|
|
2225
2225
|
<ngt-group>
|
|
2226
2226
|
<ngt-portal [container]="scene()" [autoRender]="false">
|
|
2227
2227
|
<ng-template ngtPortalContent>
|
|
@@ -2234,7 +2234,7 @@ class NgtsTrail {
|
|
|
2234
2234
|
</ngt-group>
|
|
2235
2235
|
`, isInline: true, dependencies: [{ kind: "component", type: NgtPortal, selector: "ngt-portal", inputs: ["container", "state", "autoRender", "autoRenderPriority"], outputs: ["beforeRender"] }, { kind: "directive", type: NgtPortalContent, selector: "ng-template[ngtPortalContent]" }] }); }
|
|
2236
2236
|
}
|
|
2237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
2237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: NgtsTrail, decorators: [{
|
|
2238
2238
|
type: Component,
|
|
2239
2239
|
args: [{
|
|
2240
2240
|
selector: 'ngts-trail',
|