angular-three-soba 4.0.0-next.9 → 4.0.0-next.91

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.
Files changed (51) hide show
  1. package/abstractions/README.md +1 -1
  2. package/abstractions/lib/catmull-rom-line.d.ts +16 -15
  3. package/abstractions/lib/edges.d.ts +17 -15
  4. package/abstractions/lib/text-3d.d.ts +1 -1
  5. package/abstractions/lib/text.d.ts +5 -1
  6. package/cameras/lib/camera-content.d.ts +1 -2
  7. package/cameras/lib/cube-camera.d.ts +2 -2
  8. package/cameras/lib/orthographic-camera.d.ts +6 -5
  9. package/cameras/lib/perspective-camera.d.ts +2 -5
  10. package/controls/README.md +28 -28
  11. package/controls/index.d.ts +1 -0
  12. package/controls/lib/camera-controls.d.ts +1 -1
  13. package/controls/lib/orbit-controls.d.ts +11 -6
  14. package/controls/lib/trackball-controls.d.ts +27 -0
  15. package/fesm2022/angular-three-soba-abstractions.mjs +87 -47
  16. package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
  17. package/fesm2022/angular-three-soba-cameras.mjs +61 -37
  18. package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
  19. package/fesm2022/angular-three-soba-controls.mjs +128 -36
  20. package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
  21. package/fesm2022/angular-three-soba-gizmos.mjs +124 -86
  22. package/fesm2022/angular-three-soba-gizmos.mjs.map +1 -1
  23. package/fesm2022/angular-three-soba-loaders.mjs +3 -3
  24. package/fesm2022/angular-three-soba-materials.mjs +82 -86
  25. package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
  26. package/fesm2022/angular-three-soba-misc.mjs +55 -48
  27. package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
  28. package/fesm2022/angular-three-soba-performances.mjs +152 -35
  29. package/fesm2022/angular-three-soba-performances.mjs.map +1 -1
  30. package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
  31. package/fesm2022/angular-three-soba-staging.mjs +183 -144
  32. package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
  33. package/fesm2022/angular-three-soba-stats.mjs +3 -3
  34. package/gizmos/lib/gizmo-helper/gizmo-helper.d.ts +4 -3
  35. package/loaders/README.md +39 -39
  36. package/materials/lib/mesh-transmission-material.d.ts +4 -4
  37. package/misc/README.md +16 -16
  38. package/misc/lib/deprecated.d.ts +0 -6
  39. package/misc/lib/depth-buffer.d.ts +1 -1
  40. package/misc/lib/fbo.d.ts +1 -3
  41. package/misc/lib/html/html-content.d.ts +2 -2
  42. package/misc/lib/html/html.d.ts +4 -4
  43. package/package.json +6 -6
  44. package/performances/index.d.ts +1 -0
  45. package/performances/lib/adaptive-dpr.d.ts +1 -1
  46. package/performances/lib/bvh.d.ts +49 -0
  47. package/shaders/lib/mesh-refraction-material.d.ts +2 -2
  48. package/staging/lib/caustics.d.ts +3 -3
  49. package/staging/lib/environment/inject-environment.d.ts +1 -2
  50. package/staging/lib/render-texture.d.ts +5 -4
  51. package/staging/lib/stage.d.ts +12 -11
@@ -38,7 +38,9 @@ function injectAnimations(animations, object, { injector } = {}) {
38
38
  const maybeAnimationClips = animations();
39
39
  if (!maybeAnimationClips)
40
40
  return;
41
- const animationClips = Array.isArray(maybeAnimationClips) ? maybeAnimationClips : maybeAnimationClips.animations;
41
+ const animationClips = Array.isArray(maybeAnimationClips)
42
+ ? maybeAnimationClips
43
+ : maybeAnimationClips.animations;
42
44
  for (let i = 0; i < animationClips.length; i++) {
43
45
  const clip = animationClips[i];
44
46
  names.push(clip.name);
@@ -87,10 +89,10 @@ class NgtsBakeShadows {
87
89
  });
88
90
  });
89
91
  }
90
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsBakeShadows, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
91
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.4", type: NgtsBakeShadows, isStandalone: true, selector: "ngts-bake-shadows", ngImport: i0 }); }
92
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsBakeShadows, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
93
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: NgtsBakeShadows, isStandalone: true, selector: "ngts-bake-shadows", ngImport: i0 }); }
92
94
  }
93
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsBakeShadows, decorators: [{
95
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsBakeShadows, decorators: [{
94
96
  type: Directive,
95
97
  args: [{ selector: 'ngts-bake-shadows' }]
96
98
  }], ctorParameters: () => [] });
@@ -119,14 +121,14 @@ class NgtsComputedAttribute {
119
121
  bufferAttribute.copy(attribute);
120
122
  });
121
123
  }
122
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsComputedAttribute, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
123
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.4", type: NgtsComputedAttribute, isStandalone: true, selector: "ngts-computed-attribute", inputs: { compute: { classPropertyName: "compute", publicName: "compute", isSignal: true, isRequired: true, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "attributeRef", first: true, predicate: ["attribute"], descendants: true, isSignal: true }], ngImport: i0, template: `
124
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsComputedAttribute, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
125
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsComputedAttribute, isStandalone: true, selector: "ngts-computed-attribute", inputs: { compute: { classPropertyName: "compute", publicName: "compute", isSignal: true, isRequired: true, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "attributeRef", first: true, predicate: ["attribute"], descendants: true, isSignal: true }], ngImport: i0, template: `
124
126
  <ngt-primitive #attribute *args="[bufferAttribute]" [attach]="['attributes', name()]" [parameters]="options()">
125
127
  <ng-content />
126
128
  </ngt-primitive>
127
129
  `, isInline: true, dependencies: [{ kind: "directive", type: NgtArgs, selector: "ng-template[args]", inputs: ["args"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
128
130
  }
129
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsComputedAttribute, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsComputedAttribute, decorators: [{
130
132
  type: Component,
131
133
  args: [{
132
134
  selector: 'ngts-computed-attribute',
@@ -197,7 +199,11 @@ class NgtsDecal {
197
199
  return;
198
200
  }
199
201
  const [position, rotation, scale] = [this.position(), this.rotation(), this.scale()];
200
- const state = { position: new THREE.Vector3(), rotation: new THREE.Euler(), scale: new THREE.Vector3(1, 1, 1) };
202
+ const state = {
203
+ position: new THREE.Vector3(),
204
+ rotation: new THREE.Euler(),
205
+ scale: new THREE.Vector3(1, 1, 1),
206
+ };
201
207
  applyProps(state, { position, scale });
202
208
  // zero out the parents matrix world for this operation
203
209
  const matrixWorld = parent.matrixWorld.clone();
@@ -227,8 +233,8 @@ class NgtsDecal {
227
233
  });
228
234
  });
229
235
  }
230
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsDecal, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
231
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.4", type: NgtsDecal, isStandalone: true, selector: "ngts-decal", inputs: { mesh: { classPropertyName: "mesh", publicName: "mesh", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "meshRef", first: true, predicate: ["mesh"], descendants: true, isSignal: true }, { propertyName: "helperRef", first: true, predicate: ["helper"], descendants: true, isSignal: true }], ngImport: i0, template: `
236
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsDecal, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
237
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: NgtsDecal, isStandalone: true, selector: "ngts-decal", inputs: { mesh: { classPropertyName: "mesh", publicName: "mesh", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "meshRef", first: true, predicate: ["mesh"], descendants: true, isSignal: true }, { propertyName: "helperRef", first: true, predicate: ["helper"], descendants: true, isSignal: true }], ngImport: i0, template: `
232
238
  <ngt-mesh #mesh [parameters]="parameters()">
233
239
  <ngt-value [rawValue]="true" attach="material.transparent" />
234
240
  <ngt-value [rawValue]="true" attach="material.polygonOffset" />
@@ -250,7 +256,7 @@ class NgtsDecal {
250
256
  </ngt-mesh>
251
257
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
252
258
  }
253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsDecal, decorators: [{
259
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsDecal, decorators: [{
254
260
  type: Component,
255
261
  args: [{
256
262
  selector: 'ngts-decal',
@@ -292,8 +298,6 @@ const setUpdateRange = (attribute, updateRange) => {
292
298
  Object.assign(attribute, { updateRange });
293
299
  }
294
300
  };
295
- const LinearEncoding = 3000;
296
- const sRGBEncoding = 3001;
297
301
 
298
302
  function injectFBO(params = () => ({}), { injector } = {}) {
299
303
  return assertInjector(injectFBO, injector, () => {
@@ -314,7 +318,7 @@ function injectFBO(params = () => ({}), { injector } = {}) {
314
318
  }
315
319
  return _settings;
316
320
  });
317
- const target = computed(() => {
321
+ const target = (() => {
318
322
  const [{ samples = 0, depth, ...targetSettings }, _width, _height] = [
319
323
  untracked(settings),
320
324
  untracked(width),
@@ -331,14 +335,14 @@ function injectFBO(params = () => ({}), { injector } = {}) {
331
335
  }
332
336
  target.samples = samples;
333
337
  return target;
334
- });
338
+ })();
335
339
  effect(() => {
336
- const [{ samples = 0 }, _width, _height, _target] = [settings(), width(), height(), target()];
337
- _target.setSize(_width, _height);
340
+ const [{ samples = 0 }, _width, _height] = [settings(), width(), height()];
341
+ target.setSize(_width, _height);
338
342
  if (samples)
339
- _target.samples = samples;
343
+ target.samples = samples;
340
344
  });
341
- inject(DestroyRef).onDestroy(() => target().dispose());
345
+ inject(DestroyRef).onDestroy(() => target.dispose());
342
346
  return target;
343
347
  });
344
348
  }
@@ -363,10 +367,10 @@ class NgtsFBO {
363
367
  static ngTemplateContextGuard(_, ctx) {
364
368
  return true;
365
369
  }
366
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsFBO, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
367
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.4", type: NgtsFBO, isStandalone: true, selector: "ng-template[fbo]", inputs: { fbo: { classPropertyName: "fbo", publicName: "fbo", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
370
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsFBO, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
371
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.1", type: NgtsFBO, isStandalone: true, selector: "ng-template[fbo]", inputs: { fbo: { classPropertyName: "fbo", publicName: "fbo", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
368
372
  }
369
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsFBO, decorators: [{
373
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsFBO, decorators: [{
370
374
  type: Directive,
371
375
  args: [{ selector: 'ng-template[fbo]' }]
372
376
  }], ctorParameters: () => [] });
@@ -376,9 +380,6 @@ function injectDepthBuffer(params = () => ({}), { injector } = {}) {
376
380
  const size = computed(() => params().size || 256);
377
381
  const frames = computed(() => params().frames || Infinity);
378
382
  const store = injectStore();
379
- // const width = store.select('size', 'width');
380
- // const height = store.select('size', 'height');
381
- // const dpr = store.select('viewport', 'dpr');
382
383
  const w = computed(() => size() || store.size.width() * store.viewport.dpr());
383
384
  const h = computed(() => size() || store.size.height() * store.viewport.dpr());
384
385
  const depthConfig = computed(() => {
@@ -391,13 +392,13 @@ function injectDepthBuffer(params = () => ({}), { injector } = {}) {
391
392
  let count = 0;
392
393
  injectBeforeRender(({ gl, scene, camera }) => {
393
394
  if (frames() === Infinity || count < frames()) {
394
- gl.setRenderTarget(depthFBO());
395
+ gl.setRenderTarget(depthFBO);
395
396
  gl.render(scene, camera);
396
397
  gl.setRenderTarget(null);
397
398
  count++;
398
399
  }
399
400
  });
400
- return pick(depthFBO, 'depthTexture');
401
+ return depthFBO.depthTexture;
401
402
  });
402
403
  }
403
404
 
@@ -498,7 +499,7 @@ class NgtsHTMLContent extends NgtHTML {
498
499
  this.transformOuterRef = viewChild('transformOuter');
499
500
  this.transformInnerRef = viewChild('transformInner');
500
501
  this.containerRef = viewChild('container');
501
- this.html = inject(NgtsHTML);
502
+ this.html = inject(NgtsHTMLImpl);
502
503
  this.host = inject(ElementRef);
503
504
  this.store = injectStore();
504
505
  this.size = this.store.size;
@@ -643,7 +644,11 @@ class NgtsHTMLContent extends NgtHTML {
643
644
  : `translateZ(${fov}px)`;
644
645
  let matrix = group.matrixWorld;
645
646
  if (sprite) {
646
- matrix = camera.matrixWorldInverse.clone().transpose().copyPosition(matrix).scale(group.scale);
647
+ matrix = camera.matrixWorldInverse
648
+ .clone()
649
+ .transpose()
650
+ .copyPosition(matrix)
651
+ .scale(group.scale);
647
652
  matrix.elements[3] = matrix.elements[7] = matrix.elements[11] = 0;
648
653
  matrix.elements[15] = 1;
649
654
  }
@@ -706,8 +711,8 @@ class NgtsHTMLContent extends NgtHTML {
706
711
  }
707
712
  });
708
713
  }
709
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsHTMLContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
710
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.4", type: NgtsHTMLContent, isStandalone: true, selector: "div[htmlContent]", inputs: { options: { classPropertyName: "options", publicName: "htmlContent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { occluded: "occluded" }, host: { attributes: { "data-ngts-html-content": "" } }, viewQueries: [{ propertyName: "transformOuterRef", first: true, predicate: ["transformOuter"], descendants: true, isSignal: true }, { propertyName: "transformInnerRef", first: true, predicate: ["transformInner"], descendants: true, isSignal: true }, { propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
714
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsHTMLContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
715
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: NgtsHTMLContent, isStandalone: true, selector: "div[htmlContent]", inputs: { options: { classPropertyName: "options", publicName: "htmlContent", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { occluded: "occluded" }, host: { attributes: { "data-ngts-html-content": "" } }, viewQueries: [{ propertyName: "transformOuterRef", first: true, predicate: ["transformOuter"], descendants: true, isSignal: true }, { propertyName: "transformInnerRef", first: true, predicate: ["transformInner"], descendants: true, isSignal: true }, { propertyName: "containerRef", first: true, predicate: ["container"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
711
716
  @if (html.transform()) {
712
717
  <div
713
718
  #transformOuter
@@ -742,7 +747,7 @@ class NgtsHTMLContent extends NgtHTML {
742
747
  </ng-template>
743
748
  `, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
744
749
  }
745
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsHTMLContent, decorators: [{
750
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsHTMLContent, decorators: [{
746
751
  type: Component,
747
752
  args: [{
748
753
  selector: 'div[htmlContent]',
@@ -792,7 +797,7 @@ const defaultHtmlOptions = {
792
797
  castShadow: false,
793
798
  receiveShadow: false,
794
799
  };
795
- class NgtsHTML {
800
+ class NgtsHTMLImpl {
796
801
  constructor() {
797
802
  this.options = input(defaultHtmlOptions, { transform: mergeInputs(defaultHtmlOptions) });
798
803
  this.parameters = omit(this.options, ['occlude', 'castShadow', 'receiveShadow', 'transform']);
@@ -857,8 +862,8 @@ class NgtsHTML {
857
862
  this.DoubleSide = THREE.DoubleSide;
858
863
  extend({ Group, Mesh, PlaneGeometry, ShaderMaterial });
859
864
  }
860
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsHTML, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
861
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.4", type: NgtsHTML, isStandalone: true, selector: "ngts-html", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "occlusionMeshRef", first: true, predicate: ["occlusionMesh"], descendants: true, isSignal: true }, { propertyName: "occlusionGeometryRef", first: true, predicate: ["occlusionGeometry"], descendants: true, isSignal: true }], ngImport: i0, template: `
865
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsHTMLImpl, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
866
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: NgtsHTMLImpl, isStandalone: true, selector: "ngts-html", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }, { propertyName: "occlusionMeshRef", first: true, predicate: ["occlusionMesh"], descendants: true, isSignal: true }, { propertyName: "occlusionGeometryRef", first: true, predicate: ["occlusionGeometry"], descendants: true, isSignal: true }], ngImport: i0, template: `
862
867
  <ngt-group #group [parameters]="parameters()">
863
868
  @if (occlude() && !isRaycastOcclusion()) {
864
869
  <ngt-mesh #occlusionMesh [castShadow]="castShadow()" [receiveShadow]="receiveShadow()">
@@ -879,7 +884,7 @@ class NgtsHTML {
879
884
  <ng-content />
880
885
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
881
886
  }
882
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsHTML, decorators: [{
887
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsHTMLImpl, decorators: [{
883
888
  type: Component,
884
889
  args: [{
885
890
  selector: 'ngts-html',
@@ -907,7 +912,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImpor
907
912
  changeDetection: ChangeDetectionStrategy.OnPush,
908
913
  }]
909
914
  }], ctorParameters: () => [] });
910
- const NgtsHTMLDeclarations = [NgtsHTML, NgtsHTMLContent];
915
+ const NgtsHTML = [NgtsHTMLImpl, NgtsHTMLContent];
911
916
 
912
917
  function injectIntersect(object, { injector, source = signal(false) } = {}) {
913
918
  return assertInjector(injectIntersect, injector, () => {
@@ -946,10 +951,10 @@ class NgtsIntersect {
946
951
  const host = inject(ElementRef);
947
952
  injectIntersect(() => host, { source: this.intersect });
948
953
  }
949
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsIntersect, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
950
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.4", type: NgtsIntersect, isStandalone: true, selector: "[intersect]", inputs: { intersect: { classPropertyName: "intersect", publicName: "intersect", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { intersect: "intersectChange" }, ngImport: i0 }); }
954
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsIntersect, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
955
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.1", type: NgtsIntersect, isStandalone: true, selector: "[intersect]", inputs: { intersect: { classPropertyName: "intersect", publicName: "intersect", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { intersect: "intersectChange" }, ngImport: i0 }); }
951
956
  }
952
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsIntersect, decorators: [{
957
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsIntersect, decorators: [{
953
958
  type: Directive,
954
959
  args: [{ selector: '[intersect]' }]
955
960
  }], ctorParameters: () => [] });
@@ -997,17 +1002,19 @@ class NgtsPreload {
997
1002
  invisible.forEach((object) => (object.visible = false));
998
1003
  });
999
1004
  }
1000
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsPreload, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1001
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.1.4", type: NgtsPreload, isStandalone: true, selector: "ngts-preload", inputs: { all: { classPropertyName: "all", publicName: "all", 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 } }, outputs: { all: "allChange", scene: "sceneChange", camera: "cameraChange" }, ngImport: i0 }); }
1005
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsPreload, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
1006
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.1", type: NgtsPreload, isStandalone: true, selector: "ngts-preload", inputs: { all: { classPropertyName: "all", publicName: "all", 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 } }, outputs: { all: "allChange", scene: "sceneChange", camera: "cameraChange" }, ngImport: i0 }); }
1002
1007
  }
1003
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsPreload, decorators: [{
1008
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsPreload, decorators: [{
1004
1009
  type: Directive,
1005
1010
  args: [{ selector: 'ngts-preload' }]
1006
1011
  }], ctorParameters: () => [] });
1007
1012
 
1008
1013
  function surfaceSampler(mesh, { count, transform, weight, instancedMesh, } = {}) {
1009
1014
  const initialBufferAttribute = (() => {
1010
- const arr = Array.from({ length: count?.() ?? 16 }, () => [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]).flat();
1015
+ const arr = Array.from({ length: count?.() ?? 16 }, () => [
1016
+ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1,
1017
+ ]).flat();
1011
1018
  return new THREE.InstancedBufferAttribute(Float32Array.from(arr), 16);
1012
1019
  })();
1013
1020
  return computed(() => {
@@ -1107,14 +1114,14 @@ class NgtsSampler {
1107
1114
  });
1108
1115
  effect(sampler);
1109
1116
  }
1110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsSampler, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1111
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.1.4", type: NgtsSampler, isStandalone: true, selector: "ngts-sampler", inputs: { mesh: { classPropertyName: "mesh", publicName: "mesh", isSignal: true, isRequired: false, transformFunction: null }, instances: { classPropertyName: "instances", publicName: "instances", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }], ngImport: i0, template: `
1117
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsSampler, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1118
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.1", type: NgtsSampler, isStandalone: true, selector: "ngts-sampler", inputs: { mesh: { classPropertyName: "mesh", publicName: "mesh", isSignal: true, isRequired: false, transformFunction: null }, instances: { classPropertyName: "instances", publicName: "instances", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "groupRef", first: true, predicate: ["group"], descendants: true, isSignal: true }], ngImport: i0, template: `
1112
1119
  <ngt-group #group [parameters]="parameters()">
1113
1120
  <ng-content />
1114
1121
  </ngt-group>
1115
1122
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
1116
1123
  }
1117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: NgtsSampler, decorators: [{
1124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: NgtsSampler, decorators: [{
1118
1125
  type: Component,
1119
1126
  args: [{
1120
1127
  selector: 'ngts-sampler',
@@ -1160,5 +1167,5 @@ function calculateScaleFactor(point3, radiusPx, camera, size) {
1160
1167
  * Generated bundle index. Do not edit.
1161
1168
  */
1162
1169
 
1163
- export { LinearEncoding, NgtsBakeShadows, NgtsComputedAttribute, NgtsDecal, NgtsFBO, NgtsHTML, NgtsHTMLContent, NgtsHTMLDeclarations, NgtsIntersect, NgtsPreload, NgtsSampler, calculateScaleFactor, getVersion, injectAnimations, injectDepthBuffer, injectFBO, injectIntersect, sRGBEncoding, setUpdateRange, surfaceSampler };
1170
+ export { NgtsBakeShadows, NgtsComputedAttribute, NgtsDecal, NgtsFBO, NgtsHTML, NgtsHTMLContent, NgtsHTMLImpl, NgtsIntersect, NgtsPreload, NgtsSampler, calculateScaleFactor, getVersion, injectAnimations, injectDepthBuffer, injectFBO, injectIntersect, setUpdateRange, surfaceSampler };
1164
1171
  //# sourceMappingURL=angular-three-soba-misc.mjs.map