angular-three-soba 2.2.0 → 2.3.0

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 (136) hide show
  1. package/abstractions/lib/catmull-rom-line.d.ts +148 -148
  2. package/abstractions/lib/edges.d.ts +166 -166
  3. package/abstractions/lib/grid.d.ts +30 -30
  4. package/abstractions/lib/line.d.ts +10 -9
  5. package/abstractions/lib/prism-geometry.d.ts +4 -4
  6. package/abstractions/lib/rounded-box.d.ts +3 -3
  7. package/abstractions/lib/text-3d.d.ts +38 -38
  8. package/abstractions/lib/text.d.ts +2 -3
  9. package/cameras/lib/cube-camera.d.ts +2 -2
  10. package/cameras/lib/orthographic-camera.d.ts +7 -8
  11. package/cameras/lib/perspective-camera.d.ts +2 -3
  12. package/controls/lib/camera-controls.d.ts +1 -1
  13. package/controls/lib/orbit-controls.d.ts +1 -1
  14. package/esm2022/abstractions/lib/billboard.mjs +3 -3
  15. package/esm2022/abstractions/lib/catmull-rom-line.mjs +3 -3
  16. package/esm2022/abstractions/lib/cubic-bezier-line.mjs +3 -3
  17. package/esm2022/abstractions/lib/edges.mjs +30 -34
  18. package/esm2022/abstractions/lib/gradient-texture.mjs +3 -3
  19. package/esm2022/abstractions/lib/grid.mjs +3 -3
  20. package/esm2022/abstractions/lib/helper.mjs +18 -20
  21. package/esm2022/abstractions/lib/line.mjs +25 -28
  22. package/esm2022/abstractions/lib/prism-geometry.mjs +3 -3
  23. package/esm2022/abstractions/lib/quadratic-bezier-line.mjs +3 -3
  24. package/esm2022/abstractions/lib/rounded-box.mjs +11 -17
  25. package/esm2022/abstractions/lib/text-3d.mjs +14 -17
  26. package/esm2022/abstractions/lib/text.mjs +11 -16
  27. package/esm2022/cameras/lib/camera-content.mjs +3 -3
  28. package/esm2022/cameras/lib/cube-camera.mjs +18 -27
  29. package/esm2022/cameras/lib/orthographic-camera.mjs +20 -20
  30. package/esm2022/cameras/lib/perspective-camera.mjs +21 -21
  31. package/esm2022/controls/lib/camera-controls.mjs +3 -3
  32. package/esm2022/controls/lib/orbit-controls.mjs +3 -3
  33. package/esm2022/controls/lib/scroll-controls.mjs +124 -130
  34. package/esm2022/gizmos/lib/gizmo-helper/gizmo-helper.mjs +6 -6
  35. package/esm2022/gizmos/lib/gizmo-helper/gizmo-viewcube.mjs +12 -12
  36. package/esm2022/gizmos/lib/gizmo-helper/gizmo-viewport.mjs +9 -9
  37. package/esm2022/gizmos/lib/pivot-controls/axis-arrow.mjs +6 -4
  38. package/esm2022/gizmos/lib/pivot-controls/axis-rotator.mjs +3 -3
  39. package/esm2022/gizmos/lib/pivot-controls/pivot-controls.mjs +44 -47
  40. package/esm2022/gizmos/lib/pivot-controls/plane-slider.mjs +3 -3
  41. package/esm2022/gizmos/lib/pivot-controls/scaling-sphere.mjs +3 -3
  42. package/esm2022/gizmos/lib/transform-controls.mjs +3 -3
  43. package/esm2022/loaders/lib/loader.mjs +3 -3
  44. package/esm2022/materials/lib/custom-shader-material.mjs +8 -12
  45. package/esm2022/materials/lib/mesh-distort-material.mjs +3 -3
  46. package/esm2022/materials/lib/mesh-reflector-material.mjs +11 -15
  47. package/esm2022/materials/lib/mesh-refraction-material.mjs +26 -30
  48. package/esm2022/materials/lib/mesh-transmission-material.mjs +3 -3
  49. package/esm2022/materials/lib/mesh-wobble-material.mjs +3 -3
  50. package/esm2022/materials/lib/point-material.mjs +3 -3
  51. package/esm2022/misc/lib/bake-shadows.mjs +8 -10
  52. package/esm2022/misc/lib/computed-attribute.mjs +15 -19
  53. package/esm2022/misc/lib/decal.mjs +56 -53
  54. package/esm2022/misc/lib/fbo.mjs +10 -10
  55. package/esm2022/misc/lib/html/html-content.mjs +62 -67
  56. package/esm2022/misc/lib/html/html.mjs +3 -3
  57. package/esm2022/misc/lib/intersect.mjs +6 -9
  58. package/esm2022/misc/lib/sampler.mjs +42 -42
  59. package/esm2022/performances/lib/adaptive-dpr.mjs +29 -35
  60. package/esm2022/performances/lib/adaptive-events.mjs +12 -16
  61. package/esm2022/performances/lib/detailed.mjs +14 -18
  62. package/esm2022/performances/lib/instances/instances.mjs +16 -22
  63. package/esm2022/performances/lib/points/points.mjs +19 -25
  64. package/esm2022/performances/lib/segments/segments.mjs +11 -14
  65. package/esm2022/shaders/lib/mesh-refraction-material.mjs +1 -1
  66. package/esm2022/staging/index.mjs +3 -2
  67. package/esm2022/staging/lib/accumulative-shadows.mjs +19 -21
  68. package/esm2022/staging/lib/backdrop.mjs +19 -23
  69. package/esm2022/staging/lib/bb-anchor.mjs +3 -3
  70. package/esm2022/staging/lib/bounds.mjs +39 -43
  71. package/esm2022/staging/lib/camera-shake.mjs +14 -18
  72. package/esm2022/staging/lib/caustics.mjs +24 -28
  73. package/esm2022/staging/lib/center.mjs +28 -32
  74. package/esm2022/staging/lib/contact-shadows.mjs +3 -3
  75. package/esm2022/staging/lib/environment/environment.mjs +338 -0
  76. package/esm2022/staging/lib/environment/inject-environment.mjs +184 -0
  77. package/esm2022/staging/lib/float.mjs +3 -3
  78. package/esm2022/staging/lib/lightformer.mjs +18 -22
  79. package/esm2022/staging/lib/mask.mjs +8 -12
  80. package/esm2022/staging/lib/matcap-texture.mjs +9 -11
  81. package/esm2022/staging/lib/normal-texture.mjs +9 -11
  82. package/esm2022/staging/lib/randomized-lights.mjs +9 -13
  83. package/esm2022/staging/lib/render-texture.mjs +19 -20
  84. package/esm2022/staging/lib/sky.mjs +3 -3
  85. package/esm2022/staging/lib/spot-light.mjs +32 -40
  86. package/esm2022/staging/lib/stage.mjs +13 -17
  87. package/esm2022/stats/lib/stats.mjs +21 -27
  88. package/fesm2022/angular-three-soba-abstractions.mjs +119 -138
  89. package/fesm2022/angular-three-soba-abstractions.mjs.map +1 -1
  90. package/fesm2022/angular-three-soba-cameras.mjs +57 -64
  91. package/fesm2022/angular-three-soba-cameras.mjs.map +1 -1
  92. package/fesm2022/angular-three-soba-controls.mjs +129 -135
  93. package/fesm2022/angular-three-soba-controls.mjs.map +1 -1
  94. package/fesm2022/angular-three-soba-gizmos.mjs +87 -88
  95. package/fesm2022/angular-three-soba-gizmos.mjs.map +1 -1
  96. package/fesm2022/angular-three-soba-loaders.mjs +3 -3
  97. package/fesm2022/angular-three-soba-materials.mjs +52 -62
  98. package/fesm2022/angular-three-soba-materials.mjs.map +1 -1
  99. package/fesm2022/angular-three-soba-misc.mjs +188 -195
  100. package/fesm2022/angular-three-soba-misc.mjs.map +1 -1
  101. package/fesm2022/angular-three-soba-performances.mjs +90 -114
  102. package/fesm2022/angular-three-soba-performances.mjs.map +1 -1
  103. package/fesm2022/angular-three-soba-shaders.mjs.map +1 -1
  104. package/fesm2022/angular-three-soba-staging.mjs +427 -430
  105. package/fesm2022/angular-three-soba-staging.mjs.map +1 -1
  106. package/fesm2022/angular-three-soba-stats.mjs +20 -26
  107. package/fesm2022/angular-three-soba-stats.mjs.map +1 -1
  108. package/materials/lib/custom-shader-material.d.ts +3 -3
  109. package/materials/lib/mesh-refraction-material.d.ts +3 -3
  110. package/materials/lib/mesh-transmission-material.d.ts +1 -1
  111. package/misc/lib/computed-attribute.d.ts +5 -5
  112. package/misc/lib/decal.d.ts +5 -5
  113. package/misc/lib/html/html-content.d.ts +6 -6
  114. package/misc/lib/html/html.d.ts +1 -1
  115. package/misc/lib/sampler.d.ts +2 -4
  116. package/package.json +12 -12
  117. package/performances/lib/instances/instances.d.ts +11 -11
  118. package/performances/lib/points/points.d.ts +20 -20
  119. package/performances/lib/segments/segments.d.ts +4 -4
  120. package/shaders/lib/mesh-refraction-material.d.ts +2 -5
  121. package/staging/index.d.ts +2 -1
  122. package/staging/lib/camera-shake.d.ts +0 -1
  123. package/staging/lib/caustics.d.ts +1 -1
  124. package/staging/lib/center.d.ts +2 -2
  125. package/staging/lib/contact-shadows.d.ts +1 -1
  126. package/staging/lib/{environment.d.ts → environment/environment.d.ts} +20 -49
  127. package/staging/lib/environment/inject-environment.d.ts +33 -0
  128. package/staging/lib/lightformer.d.ts +1 -1
  129. package/staging/lib/mask.d.ts +1 -1
  130. package/staging/lib/matcap-texture.d.ts +0 -1
  131. package/staging/lib/normal-texture.d.ts +0 -1
  132. package/staging/lib/render-texture.d.ts +1 -1
  133. package/staging/lib/sky.d.ts +1 -1
  134. package/staging/lib/spot-light.d.ts +2 -2
  135. package/staging/lib/stage.d.ts +7 -6
  136. package/esm2022/staging/lib/environment.mjs +0 -481
@@ -293,7 +293,7 @@ export declare class NgtsCenter {
293
293
  layers: import("angular-three").NgtLayers;
294
294
  dispose: (() => void) | null;
295
295
  raycast: Object3D["raycast"] | null;
296
- }> & NgtsCenterOptions, "top" | "right" | "bottom" | "left" | "front" | "back" | "disable" | "disableX" | "disableY" | "disableZ" | "precise" | "cacheKey">>;
296
+ }> & NgtsCenterOptions, "disable" | "precise" | "cacheKey" | "top" | "right" | "bottom" | "left" | "front" | "back" | "disableX" | "disableY" | "disableZ">>;
297
297
  centered: import("@angular/core").OutputEmitterRef<NgtsCenterState>;
298
298
  groupRef: import("@angular/core").Signal<ElementRef<Group<import("three").Object3DEventMap>>>;
299
299
  private outerRef;
@@ -383,7 +383,7 @@ export declare class NgtsCenter {
383
383
  layers: import("angular-three").NgtLayers;
384
384
  dispose: (() => void) | null;
385
385
  raycast: Object3D["raycast"] | null;
386
- }> & NgtsCenterOptions, "top" | "right" | "bottom" | "left" | "front" | "back" | "disable" | "disableX" | "disableY" | "disableZ" | "precise" | "cacheKey">>;
386
+ }> & NgtsCenterOptions, "disable" | "precise" | "cacheKey" | "top" | "right" | "bottom" | "left" | "front" | "back" | "disableX" | "disableY" | "disableZ">>;
387
387
  constructor();
388
388
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtsCenter, never>;
389
389
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtsCenter, "ngts-center", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "centered": "centered"; }, never, ["*"], true, never>;
@@ -19,7 +19,7 @@ export interface NgtsContactShadowsOptions extends Partial<Omit<NgtGroup, 'scale
19
19
  export declare class NgtsContactShadows {
20
20
  Math: Math;
21
21
  options: import("@angular/core").InputSignalWithTransform<NgtsContactShadowsOptions, "" | Partial<NgtsContactShadowsOptions>>;
22
- parameters: import("@angular/core").Signal<Omit<NgtsContactShadowsOptions, "scale" | "renderOrder" | "width" | "height" | "frames" | "opacity" | "color" | "resolution" | "near" | "far" | "blur" | "smooth" | "depthWrite">>;
22
+ parameters: import("@angular/core").Signal<Omit<NgtsContactShadowsOptions, "scale" | "renderOrder" | "frames" | "opacity" | "color" | "resolution" | "depthWrite" | "near" | "far" | "width" | "height" | "blur" | "smooth">>;
23
23
  contactShadowsRef: import("@angular/core").Signal<ElementRef<Group<import("three").Object3DEventMap>>>;
24
24
  shadowsCameraRef: import("@angular/core").Signal<ElementRef<OrthographicCamera> | undefined>;
25
25
  private store;
@@ -1,30 +1,7 @@
1
- import { ElementRef, Injector, TemplateRef } from '@angular/core';
2
- import { TextureEncoding } from 'angular-three-soba/misc';
3
- import { CubeCamera, CubeTexture, Euler, Loader, Scene, Texture, WebGLCubeRenderTarget } from 'three';
1
+ import { ElementRef, TemplateRef } from '@angular/core';
2
+ import { Euler, Scene, Texture, WebGLCubeRenderTarget } from 'three';
3
+ import { NgtsEnvironmentPresets, NgtsInjectEnvironmentOptions } from './inject-environment';
4
4
  import * as i0 from "@angular/core";
5
- export declare const ENVIRONMENT_PRESETS: {
6
- apartment: string;
7
- city: string;
8
- dawn: string;
9
- forest: string;
10
- lobby: string;
11
- night: string;
12
- park: string;
13
- studio: string;
14
- sunset: string;
15
- warehouse: string;
16
- };
17
- export type NgtsEnvironmentPresets = keyof typeof ENVIRONMENT_PRESETS;
18
- export interface NgtsInjectEnvironmentOptions {
19
- files: string | string[];
20
- path: string;
21
- preset?: NgtsEnvironmentPresets;
22
- extensions?: (loader: Loader) => void;
23
- encoding?: TextureEncoding;
24
- }
25
- export declare function injectEnvironment(options?: () => Partial<NgtsInjectEnvironmentOptions>, { injector }?: {
26
- injector?: Injector;
27
- }): import("@angular/core").Signal<Texture | CubeTexture | null>;
28
5
  export interface NgtsEnvironmentOptions extends Partial<NgtsInjectEnvironmentOptions> {
29
6
  frames?: number;
30
7
  near?: number;
@@ -50,11 +27,6 @@ export interface NgtsEnvironmentOptions extends Partial<NgtsInjectEnvironmentOpt
50
27
  export declare class NgtsEnvironmentMap {
51
28
  options: import("@angular/core").InputSignalWithTransform<NgtsEnvironmentOptions, "" | Partial<NgtsEnvironmentOptions>>;
52
29
  envSet: import("@angular/core").OutputEmitterRef<void>;
53
- private autoEffect;
54
- private store;
55
- private defaultScene;
56
- private envConfig;
57
- private map;
58
30
  constructor();
59
31
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentMap, never>;
60
32
  static ɵdir: i0.ɵɵDirectiveDeclaration<NgtsEnvironmentMap, "ngts-environment-map", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "envSet": "envSet"; }, never, never, true, never>;
@@ -62,10 +34,8 @@ export declare class NgtsEnvironmentMap {
62
34
  export declare class NgtsEnvironmentCube {
63
35
  options: import("@angular/core").InputSignalWithTransform<NgtsEnvironmentOptions, "" | Partial<NgtsEnvironmentOptions>>;
64
36
  envSet: import("@angular/core").OutputEmitterRef<void>;
65
- private autoEffect;
66
37
  private store;
67
38
  private defaultScene;
68
- private injector;
69
39
  private envConfig;
70
40
  constructor();
71
41
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentCube, never>;
@@ -76,34 +46,34 @@ export declare class NgtsEnvironmentPortal {
76
46
  options: import("@angular/core").InputSignalWithTransform<NgtsEnvironmentOptions, "" | Partial<NgtsEnvironmentOptions>>;
77
47
  content: import("@angular/core").InputSignal<TemplateRef<unknown>>;
78
48
  envSet: import("@angular/core").OutputEmitterRef<void>;
79
- private autoEffect;
49
+ private injector;
80
50
  private store;
81
51
  private defaultScene;
82
52
  private gl;
83
- cameraRef: import("@angular/core").Signal<ElementRef<CubeCamera> | undefined>;
84
- map: import("@angular/core").Signal<Texture | undefined>;
85
- files: import("@angular/core").Signal<string | string[] | undefined>;
86
- preset: import("@angular/core").Signal<"apartment" | "city" | "dawn" | "forest" | "lobby" | "night" | "park" | "studio" | "sunset" | "warehouse" | undefined>;
53
+ private cameraRef;
54
+ protected map: import("@angular/core").Signal<Texture | undefined>;
55
+ protected files: import("@angular/core").Signal<string | string[] | undefined>;
56
+ protected preset: import("@angular/core").Signal<"apartment" | "city" | "dawn" | "forest" | "lobby" | "night" | "park" | "studio" | "sunset" | "warehouse" | undefined>;
87
57
  private extensions;
88
58
  private path;
89
- envMapOptions: import("@angular/core").Signal<{
59
+ protected envMapOptions: import("@angular/core").Signal<{
90
60
  background: boolean;
91
61
  map: Texture | undefined;
92
- extensions: ((loader: Loader) => void) | undefined;
62
+ extensions: ((loader: import("three").Loader) => void) | undefined;
93
63
  }>;
94
- envCubeOptions: import("@angular/core").Signal<{
64
+ protected envCubeOptions: import("@angular/core").Signal<{
95
65
  background: boolean;
96
66
  files: string | string[] | undefined;
97
67
  preset: "apartment" | "city" | "dawn" | "forest" | "lobby" | "night" | "park" | "studio" | "sunset" | "warehouse" | undefined;
98
- extensions: ((loader: Loader) => void) | undefined;
68
+ extensions: ((loader: import("three").Loader) => void) | undefined;
99
69
  path: string | undefined;
100
70
  }>;
101
71
  private near;
102
72
  private far;
103
73
  private resolution;
104
74
  private fbo;
105
- cameraArgs: import("@angular/core").Signal<(number | WebGLCubeRenderTarget | undefined)[]>;
106
- virtualScene: import("angular-three").NgtInstanceNode<Scene>;
75
+ protected cameraArgs: import("@angular/core").Signal<(number | WebGLCubeRenderTarget | undefined)[]>;
76
+ protected virtualScene: import("angular-three").NgtInstanceNode<Scene>;
107
77
  private setEnvEffectRef?;
108
78
  constructor();
109
79
  onEnvSet(): void;
@@ -114,11 +84,12 @@ export declare class NgtsEnvironmentPortal {
114
84
  export declare class NgtsEnvironmentGround {
115
85
  options: import("@angular/core").InputSignal<NgtsEnvironmentOptions>;
116
86
  envSet: import("@angular/core").OutputEmitterRef<void>;
117
- args: import("@angular/core").WritableSignal<[Texture | null]>;
118
- height: import("@angular/core").Signal<any>;
119
- radius: import("@angular/core").Signal<any>;
120
- scale: import("@angular/core").Signal<any>;
121
- envMapOptions: import("@angular/core").Signal<NgtsEnvironmentOptions>;
87
+ private defaultTexture;
88
+ protected height: import("@angular/core").Signal<any>;
89
+ protected radius: import("@angular/core").Signal<any>;
90
+ protected scale: import("@angular/core").Signal<any>;
91
+ protected args: import("@angular/core").Signal<(Texture | null)[]>;
92
+ protected envMapOptions: import("@angular/core").Signal<NgtsEnvironmentOptions>;
122
93
  constructor();
123
94
  static ɵfac: i0.ɵɵFactoryDeclaration<NgtsEnvironmentGround, never>;
124
95
  static ɵcmp: i0.ɵɵComponentDeclaration<NgtsEnvironmentGround, "ngts-environment-ground", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; }, { "envSet": "envSet"; }, never, never, true, never>;
@@ -0,0 +1,33 @@
1
+ import { Injector } from '@angular/core';
2
+ import { TextureEncoding } from 'angular-three-soba/misc';
3
+ import { CubeTexture, Loader, Texture } from 'three';
4
+ export declare const ENVIRONMENT_PRESETS: {
5
+ apartment: string;
6
+ city: string;
7
+ dawn: string;
8
+ forest: string;
9
+ lobby: string;
10
+ night: string;
11
+ park: string;
12
+ studio: string;
13
+ sunset: string;
14
+ warehouse: string;
15
+ };
16
+ export type NgtsEnvironmentPresets = keyof typeof ENVIRONMENT_PRESETS;
17
+ export interface NgtsInjectEnvironmentOptions {
18
+ files: string | string[];
19
+ path: string;
20
+ preset?: NgtsEnvironmentPresets;
21
+ extensions?: (loader: Loader) => void;
22
+ encoding?: TextureEncoding;
23
+ }
24
+ export declare function injectEnvironment(options?: () => Partial<NgtsInjectEnvironmentOptions>, { injector }?: {
25
+ injector?: Injector;
26
+ }): import("@angular/core").Signal<Texture | CubeTexture | null>;
27
+ export declare namespace injectEnvironment {
28
+ var preload: (options?: () => Partial<NgtsInjectEnvironmentOptions>) => void;
29
+ var clear: (clearOptions: {
30
+ files?: string | string[];
31
+ preset?: NgtsEnvironmentPresets;
32
+ }) => void;
33
+ }
@@ -293,7 +293,7 @@ export declare class NgtsLightformer {
293
293
  layers: import("angular-three").NgtLayers;
294
294
  dispose: (() => void) | null;
295
295
  raycast: import("three").Object3D["raycast"] | null;
296
- }, "scale">> & NgtsLightformerOptions, "scale" | "intensity" | "color" | "toneMapped" | "map" | "target" | "form">>;
296
+ }, "scale">> & NgtsLightformerOptions, "scale" | "color" | "toneMapped" | "map" | "target" | "intensity" | "form">>;
297
297
  private intensity;
298
298
  private color;
299
299
  private target;
@@ -9,7 +9,7 @@ export interface NgtsMaskOptions extends Partial<NgtMesh> {
9
9
  export declare class NgtsMask {
10
10
  id: import("@angular/core").InputSignalWithTransform<number, unknown>;
11
11
  options: import("@angular/core").InputSignalWithTransform<NgtsMaskOptions, "" | Partial<NgtsMaskOptions>>;
12
- parameters: import("@angular/core").Signal<Omit<NgtsMaskOptions, "depthWrite" | "colorWrite">>;
12
+ parameters: import("@angular/core").Signal<Omit<NgtsMaskOptions, "colorWrite" | "depthWrite">>;
13
13
  meshRef: import("@angular/core").Signal<ElementRef<Mesh<BufferGeometry<import("three").NormalBufferAttributes>, Material, import("three").Object3DEventMap>>>;
14
14
  private colorWrite;
15
15
  private depthWrite;
@@ -17,7 +17,6 @@ export interface NgtsMatcapTextureOptions {
17
17
  export declare class NgtsMatcapTexture {
18
18
  matcapTexture: import("@angular/core").InputSignal<NgtsMatcapTextureOptions | undefined>;
19
19
  matcapTextureLoaded: import("@angular/core").OutputEmitterRef<Texture[]>;
20
- private injector;
21
20
  private template;
22
21
  private vcr;
23
22
  private id;
@@ -21,7 +21,6 @@ export interface NgtsNormalTextureOptions extends NgtsNormalTextureSettings {
21
21
  export declare class NgtsNormalTexture {
22
22
  normalTexture: import("@angular/core").InputSignal<NgtsNormalTextureOptions | undefined>;
23
23
  normalTextureLoaded: import("@angular/core").OutputEmitterRef<Texture[]>;
24
- private injector;
25
24
  private template;
26
25
  private vcr;
27
26
  private id;
@@ -45,7 +45,7 @@ export declare class NgtsRenderTextureContent {
45
45
  export declare class NgtsRenderTexture {
46
46
  attach: import("@angular/core").InputSignal<NgtAttachable>;
47
47
  options: import("@angular/core").InputSignalWithTransform<NgtsRenderTextureOptions, "" | Partial<NgtsRenderTextureOptions>>;
48
- parameters: import("@angular/core").Signal<Omit<NgtsRenderTextureOptions, "width" | "height" | "frames" | "depthBuffer" | "stencilBuffer" | "generateMipmaps" | "samples" | "renderPriority" | "eventPriority" | "compute">>;
48
+ parameters: import("@angular/core").Signal<Omit<NgtsRenderTextureOptions, "frames" | "width" | "height" | "depthBuffer" | "stencilBuffer" | "samples" | "generateMipmaps" | "renderPriority" | "eventPriority" | "compute">>;
49
49
  content: import("@angular/core").Signal<TemplateRef<any>>;
50
50
  private store;
51
51
  private size;
@@ -15,7 +15,7 @@ export interface NgtsSkyOptions extends Partial<Omit<NgtMesh, 'scale'>> {
15
15
  }
16
16
  export declare class NgtsSky {
17
17
  options: import("@angular/core").InputSignalWithTransform<NgtsSkyOptions, "" | Partial<NgtsSkyOptions>>;
18
- parameters: import("@angular/core").Signal<Omit<NgtsSkyOptions, "distance" | "inclination" | "azimuth" | "sunPosition" | "turbidity" | "mieCoefficient" | "mieDirectionalG">>;
18
+ parameters: import("@angular/core").Signal<Omit<NgtsSkyOptions, "distance" | "inclination" | "azimuth" | "mieCoefficient" | "mieDirectionalG" | "turbidity" | "sunPosition">>;
19
19
  distance: import("@angular/core").Signal<number>;
20
20
  turbidity: import("@angular/core").Signal<number>;
21
21
  mieCoefficient: import("@angular/core").Signal<number>;
@@ -104,8 +104,8 @@ export declare class NgtsSpotLightShadow {
104
104
  export declare class NgtsSpotLight {
105
105
  protected readonly SpotLightHelper: typeof SpotLightHelper;
106
106
  options: import("@angular/core").InputSignalWithTransform<NgtsSpotLightOptions, "" | Partial<NgtsSpotLightOptions>>;
107
- parameters: import("@angular/core").Signal<Omit<NgtsSpotLightOptions, "opacity" | "color" | "volumetric" | "distance" | "angle" | "depthBuffer" | "attenuation" | "anglePower" | "radiusTop" | "radiusBottom" | "debug">>;
108
- volumetricOptions: import("@angular/core").Signal<Pick<NgtsSpotLightOptions, "opacity" | "color" | "distance" | "angle" | "depthBuffer" | "attenuation" | "anglePower" | "radiusTop" | "radiusBottom" | "debug">>;
107
+ parameters: import("@angular/core").Signal<Omit<NgtsSpotLightOptions, "opacity" | "color" | "distance" | "debug" | "depthBuffer" | "angle" | "attenuation" | "anglePower" | "radiusTop" | "radiusBottom" | "volumetric">>;
108
+ volumetricOptions: import("@angular/core").Signal<Pick<NgtsSpotLightOptions, "opacity" | "color" | "distance" | "debug" | "depthBuffer" | "angle" | "attenuation" | "anglePower" | "radiusTop" | "radiusBottom">>;
109
109
  spotLight: import("@angular/core").Signal<ElementRef<SpotLight>>;
110
110
  debug: import("@angular/core").Signal<boolean | undefined>;
111
111
  angle: import("@angular/core").Signal<number | undefined>;
@@ -3,7 +3,8 @@ import { Group } from 'three';
3
3
  import { NgtsAccumulativeShadowsOptions } from './accumulative-shadows';
4
4
  import { NgtsCenterOptions, NgtsCenterState } from './center';
5
5
  import { NgtsContactShadowsOptions } from './contact-shadows';
6
- import { NgtsEnvironmentOptions, NgtsEnvironmentPresets } from './environment';
6
+ import { NgtsEnvironmentOptions } from './environment/environment';
7
+ import { NgtsEnvironmentPresets } from './environment/inject-environment';
7
8
  import { NgtsRandomizedLightsOptions } from './randomized-lights';
8
9
  import * as i0 from "@angular/core";
9
10
  type NgtsStageShadowsOptions = Partial<NgtsAccumulativeShadowsOptions> & Partial<NgtsRandomizedLightsOptions> & Partial<NgtsContactShadowsOptions> & {
@@ -54,14 +55,11 @@ export declare class NgtsStage {
54
55
  intensity: import("@angular/core").Signal<number>;
55
56
  shadows: import("@angular/core").Signal<boolean | "contact" | "accumulative" | NgtsStageShadowsOptions>;
56
57
  environment: import("@angular/core").Signal<"apartment" | "city" | "dawn" | "forest" | "lobby" | "night" | "park" | "studio" | "sunset" | "warehouse" | Partial<NgtsEnvironmentOptions> | null>;
57
- preset: import("@angular/core").Signal<"rembrandt" | "portrait" | "upfront" | "soft" | {
58
+ preset: import("@angular/core").Signal<{
58
59
  main: [x: number, y: number, z: number];
59
60
  fill: [x: number, y: number, z: number];
60
- }>;
61
+ } | "rembrandt" | "portrait" | "upfront" | "soft">;
61
62
  config: import("@angular/core").Signal<{
62
- main: [x: number, y: number, z: number];
63
- fill: [x: number, y: number, z: number];
64
- } | {
65
63
  readonly main: readonly [1, 2, 1];
66
64
  readonly fill: readonly [-2, -0.5, -2];
67
65
  } | {
@@ -73,6 +71,9 @@ export declare class NgtsStage {
73
71
  } | {
74
72
  readonly main: readonly [-2, 4, 4];
75
73
  readonly fill: readonly [-1, 0.5, -1.5];
74
+ } | {
75
+ main: [x: number, y: number, z: number];
76
+ fill: [x: number, y: number, z: number];
76
77
  }>;
77
78
  shadowBias: import("@angular/core").Signal<number>;
78
79
  normalBias: import("@angular/core").Signal<number>;