illutions 0.21.7 → 0.21.8

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/CHANGELOG.md CHANGED
@@ -4,4 +4,4 @@
4
4
 
5
5
  ### Changed
6
6
 
7
- - Removed the Illutions Engine defaults from `render.webgl.parameters` and `render.webgpu.parameters`. Both renderers now use the default parameter values provided by Three.js.
7
+ - Add cfg.audio.enable in config
package/dist/main.d.ts CHANGED
@@ -92,7 +92,7 @@ export declare interface AnimFadeEvent {
92
92
  * @category Core
93
93
  */
94
94
  export declare class App<TClasses extends Classes = {}> {
95
- readonly audio: Audio_2;
95
+ readonly audio: Audio_2 | null;
96
96
  readonly cfgCtrl: CfgCtrl;
97
97
  readonly engine: Engine;
98
98
  readonly envCtrls: EnvCtrls;
@@ -217,6 +217,11 @@ export { Audio_2 as Audio }
217
217
  * @category Cfg
218
218
  */
219
219
  export declare interface AudioCfg {
220
+ /**
221
+ * Whether audio support is initialized when the application starts.
222
+ * @default false
223
+ */
224
+ enable: boolean;
220
225
  /**
221
226
  * Whether the GUI audio dropdown is open.
222
227
  * @default false
@@ -470,7 +475,7 @@ export declare class CfgCtrl {
470
475
  * @param params.coneOuterAngle - {@link AudioCfg.coneOuterAngle}.
471
476
  * @param params.coneOuterGain - {@link AudioCfg.coneOuterGain}.
472
477
  */
473
- setAudio(params: Partial<AudioCfg>): void;
478
+ setAudio(params: Partial<Omit<AudioCfg, 'enable'>>): void;
474
479
  /**
475
480
  * Applies runtime updates to `RenderCfg`.
476
481
  *