babylonjs-loaders 7.39.0 → 7.39.2

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.
@@ -847,10 +847,16 @@ export interface IGLTF extends GLTF2.IGLTF {
847
847
  /**
848
848
  * Loader interface with additional members.
849
849
  */
850
+ /** @internal */
850
851
  export interface IKHRLightsPunctual_Light extends GLTF2.IKHRLightsPunctual_Light, IArrayItem {
851
852
  /** @hidden */
852
853
  _babylonLight?: Light;
853
854
  }
855
+ /** @internal */
856
+ export interface IEXTLightsIES_Light extends GLTF2.IEXTLightsIES_Light, IArrayItem {
857
+ /** @hidden */
858
+ _babylonLight?: Light;
859
+ }
854
860
 
855
861
  }
856
862
  declare module "babylonjs-loaders/glTF/2.0/glTFLoaderExtensionRegistry" {
@@ -1558,6 +1564,7 @@ export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_mesh_gpu_instancing";
1558
1564
  export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_meshopt_compression";
1559
1565
  export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_texture_webp";
1560
1566
  export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_texture_avif";
1567
+ export * from "babylonjs-loaders/glTF/2.0/Extensions/EXT_lights_ies";
1561
1568
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_draco_mesh_compression";
1562
1569
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_lights_punctual";
1563
1570
  export * from "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness";
@@ -2008,6 +2015,40 @@ export class KHR_node_visibility implements IGLTFLoaderExtension {
2008
2015
  dispose(): void;
2009
2016
  }
2010
2017
 
2018
+ }
2019
+ declare module "babylonjs-loaders/glTF/2.0/Extensions/KHR_node_hoverability" {
2020
+ import { GLTFLoader } from "babylonjs-loaders/glTF/2.0/glTFLoader";
2021
+ import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
2022
+ module "babylonjs-loaders/glTF/glTFFileLoader" {
2023
+ interface GLTFLoaderExtensionOptions {
2024
+ /**
2025
+ * Defines options for the KHR_node_hoverability extension.
2026
+ */
2027
+ ["KHR_node_hoverability"]: {};
2028
+ }
2029
+ }
2030
+ /**
2031
+ * Loader extension for KHR_node_hoverability
2032
+ * @see https://github.com/KhronosGroup/glTF/pull/2426
2033
+ */
2034
+ export class KHR_node_hoverability implements IGLTFLoaderExtension {
2035
+ /**
2036
+ * The name of this extension.
2037
+ */
2038
+ readonly name: string;
2039
+ /**
2040
+ * Defines whether this extension is enabled.
2041
+ */
2042
+ enabled: boolean;
2043
+ private _loader;
2044
+ /**
2045
+ * @internal
2046
+ */
2047
+ constructor(loader: GLTFLoader);
2048
+ onReady(): Promise<void>;
2049
+ dispose(): void;
2050
+ }
2051
+
2011
2052
  }
2012
2053
  declare module "babylonjs-loaders/glTF/2.0/Extensions/KHR_mesh_quantization" {
2013
2054
  import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
@@ -3164,6 +3205,15 @@ export const animationPointerTree: {
3164
3205
  };
3165
3206
  };
3166
3207
  };
3208
+ EXT_lights_ies: {
3209
+ lights: {
3210
+ __array__: {
3211
+ __target__: boolean;
3212
+ color: LightAnimationPropertyInfo[];
3213
+ multiplier: LightAnimationPropertyInfo[];
3214
+ };
3215
+ };
3216
+ };
3167
3217
  };
3168
3218
  };
3169
3219
  export {};
@@ -3476,6 +3526,50 @@ export class EXT_lights_image_based implements IGLTFLoaderExtension {
3476
3526
  private _loadLightAsync;
3477
3527
  }
3478
3528
 
3529
+ }
3530
+ declare module "babylonjs-loaders/glTF/2.0/Extensions/EXT_lights_ies" {
3531
+ import { Nullable } from "babylonjs/types";
3532
+ import { TransformNode } from "babylonjs/Meshes/transformNode";
3533
+ import { INode } from "babylonjs-loaders/glTF/2.0/glTFLoaderInterfaces";
3534
+ import { IGLTFLoaderExtension } from "babylonjs-loaders/glTF/2.0/glTFLoaderExtension";
3535
+ import { GLTFLoader } from "babylonjs-loaders/glTF/2.0/glTFLoader";
3536
+ module "babylonjs-loaders/glTF/glTFFileLoader" {
3537
+ interface GLTFLoaderExtensionOptions {
3538
+ /**
3539
+ * Defines options for the EXT_lights_ies extension.
3540
+ */
3541
+ ["EXT_lights_ies"]: {};
3542
+ }
3543
+ }
3544
+ /**
3545
+ * [Specification](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor/EXT_lights_ies)
3546
+ */
3547
+ export class EXT_lights_ies implements IGLTFLoaderExtension {
3548
+ /**
3549
+ * The name of this extension.
3550
+ */
3551
+ readonly name: string;
3552
+ /**
3553
+ * Defines whether this extension is enabled.
3554
+ */
3555
+ enabled: boolean;
3556
+ /** hidden */
3557
+ private _loader;
3558
+ private _lights?;
3559
+ /**
3560
+ * @internal
3561
+ */
3562
+ constructor(loader: GLTFLoader);
3563
+ /** @internal */
3564
+ dispose(): void;
3565
+ /** @internal */
3566
+ onLoading(): void;
3567
+ /**
3568
+ * @internal
3569
+ */
3570
+ loadNodeAsync(context: string, node: INode, assign: (babylonTransformNode: TransformNode) => void): Nullable<Promise<TransformNode>>;
3571
+ }
3572
+
3479
3573
  }
3480
3574
  declare module "babylonjs-loaders/glTF/1.0/index" {
3481
3575
  export * from "babylonjs-loaders/glTF/1.0/glTFBinaryExtension";
@@ -5665,10 +5759,16 @@ declare module BABYLON.GLTF2.Loader {
5665
5759
  /**
5666
5760
  * Loader interface with additional members.
5667
5761
  */
5762
+ /** @internal */
5668
5763
  export interface IKHRLightsPunctual_Light extends GLTF2.IKHRLightsPunctual_Light, IArrayItem {
5669
5764
  /** @hidden */
5670
5765
  _babylonLight?: Light;
5671
5766
  }
5767
+ /** @internal */
5768
+ export interface IEXTLightsIES_Light extends GLTF2.IEXTLightsIES_Light, IArrayItem {
5769
+ /** @hidden */
5770
+ _babylonLight?: Light;
5771
+ }
5672
5772
 
5673
5773
 
5674
5774
 
@@ -6789,6 +6889,41 @@ declare module BABYLON {
6789
6889
  ["KHR_node_visibility"]: {};
6790
6890
  }
6791
6891
 
6892
+ }
6893
+ declare module BABYLON.GLTF2.Loader.Extensions {
6894
+ /**
6895
+ * Loader extension for KHR_node_hoverability
6896
+ * @see https://github.com/KhronosGroup/glTF/pull/2426
6897
+ */
6898
+ export class KHR_node_hoverability implements BABYLON.GLTF2.IGLTFLoaderExtension {
6899
+ /**
6900
+ * The name of this extension.
6901
+ */
6902
+ readonly name = "KHR_node_hoverability";
6903
+ /**
6904
+ * Defines whether this extension is enabled.
6905
+ */
6906
+ enabled: boolean;
6907
+ private _loader;
6908
+ /**
6909
+ * @internal
6910
+ */
6911
+ constructor(loader: BABYLON.GLTF2.GLTFLoader);
6912
+ onReady(): Promise<void>;
6913
+ dispose(): void;
6914
+ }
6915
+
6916
+
6917
+
6918
+ }
6919
+ declare module BABYLON {
6920
+ interface GLTFLoaderExtensionOptions {
6921
+ /**
6922
+ * Defines options for the KHR_node_hoverability extension.
6923
+ */
6924
+ ["KHR_node_hoverability"]: {};
6925
+ }
6926
+
6792
6927
  }
6793
6928
  declare module BABYLON.GLTF2.Loader.Extensions {
6794
6929
  /**
@@ -7906,6 +8041,15 @@ declare module BABYLON.GLTF2.Loader.Extensions {
7906
8041
  };
7907
8042
  };
7908
8043
  };
8044
+ EXT_lights_ies: {
8045
+ lights: {
8046
+ __array__: {
8047
+ __target__: boolean;
8048
+ color: LightAnimationPropertyInfo[];
8049
+ multiplier: LightAnimationPropertyInfo[];
8050
+ };
8051
+ };
8052
+ };
7909
8053
  };
7910
8054
  };
7911
8055
 
@@ -8204,6 +8348,48 @@ declare module BABYLON {
8204
8348
  ["EXT_lights_image_based"]: {};
8205
8349
  }
8206
8350
 
8351
+ }
8352
+ declare module BABYLON.GLTF2.Loader.Extensions {
8353
+ /**
8354
+ * [Specification](https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Vendor/EXT_lights_ies)
8355
+ */
8356
+ export class EXT_lights_ies implements BABYLON.GLTF2.IGLTFLoaderExtension {
8357
+ /**
8358
+ * The name of this extension.
8359
+ */
8360
+ readonly name = "EXT_lights_ies";
8361
+ /**
8362
+ * Defines whether this extension is enabled.
8363
+ */
8364
+ enabled: boolean;
8365
+ /** hidden */
8366
+ private _loader;
8367
+ private _lights?;
8368
+ /**
8369
+ * @internal
8370
+ */
8371
+ constructor(loader: BABYLON.GLTF2.GLTFLoader);
8372
+ /** @internal */
8373
+ dispose(): void;
8374
+ /** @internal */
8375
+ onLoading(): void;
8376
+ /**
8377
+ * @internal
8378
+ */
8379
+ loadNodeAsync(context: string, node: BABYLON.GLTF2.Loader.INode, assign: (babylonTransformNode: TransformNode) => void): Nullable<Promise<TransformNode>>;
8380
+ }
8381
+
8382
+
8383
+
8384
+ }
8385
+ declare module BABYLON {
8386
+ interface GLTFLoaderExtensionOptions {
8387
+ /**
8388
+ * Defines options for the EXT_lights_ies extension.
8389
+ */
8390
+ ["EXT_lights_ies"]: {};
8391
+ }
8392
+
8207
8393
  }
8208
8394
  declare module BABYLON.GLTF1 {
8209
8395
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "7.39.0",
3
+ "version": "7.39.2",
4
4
  "main": "babylonjs.loaders.js",
5
5
  "types": "babylonjs.loaders.module.d.ts",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.loaders.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^7.39.0",
19
- "babylonjs-gltf2interface": "^7.39.0"
18
+ "babylonjs": "^7.39.2",
19
+ "babylonjs-gltf2interface": "^7.39.2"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",