angular-three-soba 1.12.2 → 1.12.4

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 (96) hide show
  1. package/esm2020/abstractions/lib/billboard/billboard.mjs +3 -3
  2. package/esm2020/abstractions/lib/catmull-rom-line/catmull-rom-line.mjs +3 -3
  3. package/esm2020/abstractions/lib/cubic-bezier-line/cubic-bezier-line.mjs +3 -3
  4. package/esm2020/abstractions/lib/edges/edges.mjs +3 -3
  5. package/esm2020/abstractions/lib/gizmo-helper/gizmo-helper.mjs +6 -6
  6. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-edge.mjs +3 -3
  7. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-face.mjs +6 -6
  8. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube-inputs.mjs +3 -3
  9. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewcube/gizmo-viewcube.mjs +3 -3
  10. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport-axis.mjs +6 -6
  11. package/esm2020/abstractions/lib/gizmo-helper/gizmo-viewport/gizmo-viewport.mjs +3 -3
  12. package/esm2020/abstractions/lib/line/line-input.mjs +3 -3
  13. package/esm2020/abstractions/lib/line/line.mjs +3 -3
  14. package/esm2020/abstractions/lib/quadratic-bezier-line/quadratic-bezier-line.mjs +3 -3
  15. package/esm2020/abstractions/lib/text/text.mjs +3 -3
  16. package/esm2020/abstractions/lib/text-3d/text-3d.mjs +3 -3
  17. package/esm2020/cameras/lib/camera/camera-content.mjs +3 -3
  18. package/esm2020/cameras/lib/camera/camera.mjs +3 -3
  19. package/esm2020/cameras/lib/cube-camera/cube-camera.mjs +3 -3
  20. package/esm2020/cameras/lib/orthographic-camera/orthographic-camera.mjs +3 -3
  21. package/esm2020/cameras/lib/perspective-camera/perspective-camera.mjs +3 -3
  22. package/esm2020/controls/lib/orbit-controls/orbit-controls.mjs +3 -3
  23. package/esm2020/loaders/lib/loader/loader.mjs +3 -3
  24. package/esm2020/materials/lib/mesh-distort-material/mesh-distort-material.mjs +3 -3
  25. package/esm2020/materials/lib/mesh-reflector-material/mesh-reflector-material.mjs +3 -3
  26. package/esm2020/materials/lib/mesh-refraction-material/mesh-refraction-material.mjs +3 -3
  27. package/esm2020/materials/lib/mesh-transmission-material/mesh-transmission-material.mjs +3 -3
  28. package/esm2020/materials/lib/mesh-wobble-material/mesh-wobble-material.mjs +3 -3
  29. package/esm2020/misc/lib/animations/animations.mjs +21 -13
  30. package/esm2020/misc/lib/bake-shadows/bake-shadows.mjs +3 -3
  31. package/esm2020/performance/lib/adaptive/adaptive-dpr.mjs +3 -3
  32. package/esm2020/performance/lib/adaptive/adaptive-events.mjs +3 -3
  33. package/esm2020/performance/lib/detailed/detailed.mjs +3 -3
  34. package/esm2020/performance/lib/stats/stats.mjs +3 -3
  35. package/esm2020/shaders/index.mjs +2 -1
  36. package/esm2020/shaders/lib/star-field-material/star-field-material.mjs +32 -0
  37. package/esm2020/staging/lib/accumulative-shadows/accumulative-shadows.mjs +6 -6
  38. package/esm2020/staging/lib/accumulative-shadows/randomized-lights.mjs +6 -6
  39. package/esm2020/staging/lib/bounds/bounds.mjs +3 -3
  40. package/esm2020/staging/lib/camera-shake/camera-shake.mjs +3 -3
  41. package/esm2020/staging/lib/caustics/caustics.mjs +4 -4
  42. package/esm2020/staging/lib/center/center.mjs +3 -3
  43. package/esm2020/staging/lib/cloud/cloud.mjs +3 -3
  44. package/esm2020/staging/lib/contact-shadows/contact-shadows.mjs +3 -3
  45. package/esm2020/staging/lib/environment/environment-cube.mjs +3 -3
  46. package/esm2020/staging/lib/environment/environment-ground.mjs +3 -3
  47. package/esm2020/staging/lib/environment/environment-inputs.mjs +5 -5
  48. package/esm2020/staging/lib/environment/environment-map.mjs +3 -3
  49. package/esm2020/staging/lib/environment/environment-portal.mjs +3 -3
  50. package/esm2020/staging/lib/environment/environment.mjs +6 -6
  51. package/esm2020/staging/lib/float/float.mjs +3 -3
  52. package/esm2020/staging/lib/sky/sky.mjs +3 -3
  53. package/esm2020/staging/lib/sparkles/sparkles.mjs +3 -3
  54. package/esm2020/staging/lib/spot-light/shadow-mesh-input.mjs +3 -3
  55. package/esm2020/staging/lib/spot-light/spot-light-input.mjs +3 -3
  56. package/esm2020/staging/lib/spot-light/spot-light-shadow-no-shader.mjs +3 -3
  57. package/esm2020/staging/lib/spot-light/spot-light-shadow-shader.mjs +3 -3
  58. package/esm2020/staging/lib/spot-light/spot-light-shadow.mjs +3 -3
  59. package/esm2020/staging/lib/spot-light/spot-light.mjs +3 -3
  60. package/esm2020/staging/lib/spot-light/volumetric-mesh.mjs +3 -3
  61. package/esm2020/staging/lib/stage/stage.mjs +6 -6
  62. package/esm2020/staging/lib/stars/stars.mjs +8 -40
  63. package/fesm2015/angular-three-soba-abstractions.mjs +57 -57
  64. package/fesm2015/angular-three-soba-cameras.mjs +15 -15
  65. package/fesm2015/angular-three-soba-controls.mjs +3 -3
  66. package/fesm2015/angular-three-soba-loaders.mjs +3 -3
  67. package/fesm2015/angular-three-soba-materials.mjs +15 -15
  68. package/fesm2015/angular-three-soba-misc.mjs +23 -15
  69. package/fesm2015/angular-three-soba-misc.mjs.map +1 -1
  70. package/fesm2015/angular-three-soba-performance.mjs +12 -12
  71. package/fesm2015/angular-three-soba-shaders.mjs +32 -1
  72. package/fesm2015/angular-three-soba-shaders.mjs.map +1 -1
  73. package/fesm2015/angular-three-soba-staging.mjs +93 -126
  74. package/fesm2015/angular-three-soba-staging.mjs.map +1 -1
  75. package/fesm2020/angular-three-soba-abstractions.mjs +57 -57
  76. package/fesm2020/angular-three-soba-cameras.mjs +15 -15
  77. package/fesm2020/angular-three-soba-controls.mjs +3 -3
  78. package/fesm2020/angular-three-soba-loaders.mjs +3 -3
  79. package/fesm2020/angular-three-soba-materials.mjs +15 -15
  80. package/fesm2020/angular-three-soba-misc.mjs +23 -15
  81. package/fesm2020/angular-three-soba-misc.mjs.map +1 -1
  82. package/fesm2020/angular-three-soba-performance.mjs +12 -12
  83. package/fesm2020/angular-three-soba-shaders.mjs +32 -1
  84. package/fesm2020/angular-three-soba-shaders.mjs.map +1 -1
  85. package/fesm2020/angular-three-soba-staging.mjs +93 -126
  86. package/fesm2020/angular-three-soba-staging.mjs.map +1 -1
  87. package/misc/lib/animations/animations.d.ts +2 -2
  88. package/package.json +5 -4
  89. package/plugin/package.json +2 -2
  90. package/shaders/index.d.ts +1 -0
  91. package/shaders/lib/mesh-distort-material/mesh-distort-material.d.ts +2 -2
  92. package/shaders/lib/star-field-material/star-field-material.d.ts +3 -0
  93. package/staging/lib/caustics/caustics.d.ts +3 -3
  94. package/staging/lib/spot-light/spot-light-shadow-no-shader.d.ts +1 -1
  95. package/staging/lib/spot-light/spot-light-shadow-shader.d.ts +2 -2
  96. package/staging/lib/stars/stars.d.ts +4 -4
@@ -1,7 +1,7 @@
1
1
  import { NgtInjectedRef } from 'angular-three';
2
2
  import { Observable } from 'rxjs';
3
3
  import * as THREE from 'three';
4
- import { GLTF } from 'three-stdlib';
4
+ import { AnimationClip } from 'three';
5
5
  type Api = {
6
6
  ref: NgtInjectedRef<THREE.Object3D>;
7
7
  clips: THREE.AnimationClip[];
@@ -9,5 +9,5 @@ type Api = {
9
9
  names: string[];
10
10
  actions: Record<string, THREE.AnimationAction>;
11
11
  };
12
- export declare function injectNgtsAnimations(gltf$: Observable<GLTF>, modelSelector?: (gltf: GLTF) => THREE.Object3D): Api;
12
+ export declare function injectNgtsAnimations(animations$: Observable<AnimationClip[]>, ref?: NgtInjectedRef<THREE.Object3D> | THREE.Object3D): Api;
13
13
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-three-soba",
3
- "version": "1.12.2",
3
+ "version": "1.12.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -111,13 +111,14 @@
111
111
  "@angular/core": "^15.1.0",
112
112
  "angular-three": "^1.0.0",
113
113
  "stats.js": "^0.17.0",
114
- "three": "^0.148.0 || ^0.149.0 || ^0.150.0",
114
+ "three": "^0.148.0 || ^0.149.0 || ^0.150.0 || ^0.151.0",
115
115
  "three-mesh-bvh": "^0.5.0",
116
116
  "three-stdlib": "^2.0.0",
117
117
  "troika-three-text": "^0.47.0",
118
- "rxjs": "~7.8.0",
119
118
  "@storybook/addons": "6.5.16",
120
- "@storybook/theming": "6.5.16"
119
+ "@storybook/theming": "6.5.16",
120
+ "rxjs": "7.8.0",
121
+ "@rx-angular/state": "2.0.0"
121
122
  },
122
123
  "dependencies": {
123
124
  "@nrwl/devkit": "^15.0.0",
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "type": "commonjs",
3
3
  "peerDependencies": {
4
- "tslib": "^2.5.0"
4
+ "tslib": "2.5.0"
5
5
  },
6
6
  "main": "./src/index.js",
7
7
  "types": "./src/index.d.ts",
8
- "version": "1.12.2"
8
+ "version": "1.12.4"
9
9
  }
@@ -11,3 +11,4 @@ export * from './lib/mesh-wobble-material/mesh-wobble-material';
11
11
  export * from './lib/shader-material/shader-material';
12
12
  export * from './lib/soft-shadow-material/soft-shadow-material';
13
13
  export * from './lib/spot-light-material/spot-light-material';
14
+ export * from './lib/star-field-material/star-field-material';
@@ -56,7 +56,7 @@ export declare function provideNgtsMeshDistortMaterialShader(distortShader: stri
56
56
  iridescenceMap: THREE.Texture | null;
57
57
  iridescenceIOR: number;
58
58
  iridescence: number;
59
- iridescenceThicknessRange: number[];
59
+ iridescenceThicknessRange: [number, number];
60
60
  iridescenceThicknessMap: THREE.Texture | null;
61
61
  color: THREE.Color;
62
62
  roughness: number;
@@ -97,7 +97,7 @@ export declare function provideNgtsMeshDistortMaterialShader(distortShader: stri
97
97
  blendEquation: THREE.BlendingEquation;
98
98
  blendEquationAlpha: number | null;
99
99
  blending: THREE.Blending;
100
- blendSrc: THREE.BlendingSrcFactor | THREE.BlendingDstFactor;
100
+ blendSrc: 210 | THREE.BlendingDstFactor;
101
101
  blendSrcAlpha: number | null;
102
102
  clipIntersection: boolean;
103
103
  clippingPlanes: any;
@@ -0,0 +1,3 @@
1
+ export declare const StarFieldMaterial: typeof import("three").ShaderMaterial & {
2
+ key: string;
3
+ };
@@ -3,9 +3,9 @@ import { NgtRxStore } from 'angular-three';
3
3
  import * as THREE from 'three';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class NgtsCaustics extends NgtRxStore implements OnInit {
6
- readonly CustomBlending: THREE.Blending;
7
- readonly OneFactor: THREE.BlendingDstFactor;
8
- readonly SrcAlphaFactor: THREE.BlendingDstFactor;
6
+ readonly CustomBlending: 5;
7
+ readonly OneFactor: 201;
8
+ readonly SrcAlphaFactor: 204;
9
9
  readonly Math: Math;
10
10
  readonly planeRef: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
11
11
  readonly sceneRef: import("angular-three").NgtInjectedRef<THREE.Scene>;
@@ -5,7 +5,7 @@ import * as i0 from "@angular/core";
5
5
  export declare class NgtsSpotLightShadowNoShader extends NgtsSpotLightShadowMeshInput implements OnInit {
6
6
  readonly mesh: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
7
7
  readonly spotLightApi: import("./spot-light").NgtsSpotLightAPI;
8
- readonly DoubleSide: THREE.Side;
8
+ readonly DoubleSide: 2;
9
9
  readonly runInContext: <TReturn>(cb: () => TReturn) => TReturn;
10
10
  initialize(): void;
11
11
  ngOnInit(): void;
@@ -5,8 +5,8 @@ import * as i0 from "@angular/core";
5
5
  export declare class NgtsSpotLightShadowShader extends NgtsSpotLightShadowMeshInput implements OnInit {
6
6
  readonly mesh: import("angular-three").NgtInjectedRef<THREE.Mesh<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
7
7
  readonly spotLightApi: import("./spot-light").NgtsSpotLightAPI;
8
- readonly DoubleSide: THREE.Side;
9
- readonly RepeatWrapping: THREE.Wrapping;
8
+ readonly DoubleSide: 2;
9
+ readonly RepeatWrapping: 1000;
10
10
  readonly runInContext: <TReturn>(cb: () => TReturn) => TReturn;
11
11
  readonly texture$: import("rxjs").Observable<any>;
12
12
  initialize(): void;
@@ -1,10 +1,10 @@
1
1
  import { NgtRenderState, NgtRxStore } from 'angular-three';
2
- import { BufferGeometry, Points } from 'three';
2
+ import * as THREE from 'three';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class NgtsStars extends NgtRxStore {
5
- readonly AdditiveBlending: import("three").Blending;
6
- readonly material: import("three").ShaderMaterial;
7
- starsRef: import("angular-three").NgtInjectedRef<Points<BufferGeometry, import("three").Material | import("three").Material[]>>;
5
+ readonly AdditiveBlending: 2;
6
+ readonly material: THREE.ShaderMaterial;
7
+ starsRef: import("angular-three").NgtInjectedRef<THREE.Points<THREE.BufferGeometry, THREE.Material | THREE.Material[]>>;
8
8
  set radius(radius: number);
9
9
  set depth(depth: number);
10
10
  set count(count: number);