babylonjs-loaders 7.53.1 → 7.53.3

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.
@@ -2460,6 +2460,10 @@ module "babylonjs-loaders/glTF/glTFFileLoader" {
2460
2460
  * Defines options for the KHR_materials_variants extension.
2461
2461
  */
2462
2462
  ["KHR_materials_variants"]: Partial<{
2463
+ /**
2464
+ * Specifies the name of the variant that should be selected by default.
2465
+ */
2466
+ defaultVariant: string;
2463
2467
  /**
2464
2468
  * Defines a callback that will be called if material variants are loaded.
2465
2469
  * @experimental
@@ -5184,7 +5188,7 @@ export const OBJFileLoaderMetadata: {
5184
5188
  }
5185
5189
  declare module "babylonjs-loaders/OBJ/objFileLoader" {
5186
5190
  import { Vector2 } from "babylonjs/Maths/math.vector";
5187
- import { ISceneLoaderPluginAsync, ISceneLoaderPluginFactory, ISceneLoaderPlugin, ISceneLoaderAsyncResult } from "babylonjs/Loading/sceneLoader";
5191
+ import { ISceneLoaderPluginAsync, ISceneLoaderPluginFactory, ISceneLoaderPlugin, ISceneLoaderAsyncResult, SceneLoaderPluginOptions } from "babylonjs/Loading/sceneLoader";
5188
5192
  import { AssetContainer } from "babylonjs/assetContainer";
5189
5193
  import { Scene } from "babylonjs/scene";
5190
5194
  import { OBJFileLoaderMetadata } from "babylonjs-loaders/OBJ/objFileLoader.metadata";
@@ -5194,7 +5198,7 @@ module "babylonjs/Loading/sceneLoader" {
5194
5198
  /**
5195
5199
  * Defines options for the obj loader.
5196
5200
  */
5197
- [OBJFileLoaderMetadata.name]: {};
5201
+ [OBJFileLoaderMetadata.name]: Partial<OBJLoadingOptions>;
5198
5202
  }
5199
5203
  }
5200
5204
  /**
@@ -5261,7 +5265,7 @@ export class OBJFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlugi
5261
5265
  *
5262
5266
  * @param loadingOptions options for loading and parsing OBJ/MTL files.
5263
5267
  */
5264
- constructor(loadingOptions?: OBJLoadingOptions);
5268
+ constructor(loadingOptions?: Partial<Readonly<OBJLoadingOptions>>);
5265
5269
  private static get _DefaultLoadingOptions();
5266
5270
  /**
5267
5271
  * Calls synchronously the MTL file attached to this obj.
@@ -5275,11 +5279,8 @@ export class OBJFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlugi
5275
5279
  * @param onFailure
5276
5280
  */
5277
5281
  private _loadMTL;
5278
- /**
5279
- * Instantiates a OBJ file loader plugin.
5280
- * @returns the created plugin
5281
- */
5282
- createPlugin(): ISceneLoaderPluginAsync | ISceneLoaderPlugin;
5282
+ /** @internal */
5283
+ createPlugin(options: SceneLoaderPluginOptions): ISceneLoaderPluginAsync | ISceneLoaderPlugin;
5283
5284
  /**
5284
5285
  * If the data string can be loaded directly.
5285
5286
  * @returns if the data can be loaded directly
@@ -7854,6 +7855,10 @@ declare module BABYLON {
7854
7855
  * Defines options for the KHR_materials_variants extension.
7855
7856
  */
7856
7857
  ["KHR_materials_variants"]: Partial<{
7858
+ /**
7859
+ * Specifies the name of the variant that should be selected by default.
7860
+ */
7861
+ defaultVariant: string;
7857
7862
  /**
7858
7863
  * Defines a callback that will be called if material variants are loaded.
7859
7864
  * @experimental
@@ -10418,7 +10423,7 @@ declare module BABYLON {
10418
10423
  /**
10419
10424
  * Defines options for the obj loader.
10420
10425
  */
10421
- [OBJFileLoaderMetadata.name]: {};
10426
+ [OBJFileLoaderMetadata.name]: Partial<OBJLoadingOptions>;
10422
10427
  }
10423
10428
  /**
10424
10429
  * OBJ file type loader.
@@ -10484,7 +10489,7 @@ declare module BABYLON {
10484
10489
  *
10485
10490
  * @param loadingOptions options for loading and parsing OBJ/MTL files.
10486
10491
  */
10487
- constructor(loadingOptions?: OBJLoadingOptions);
10492
+ constructor(loadingOptions?: Partial<Readonly<OBJLoadingOptions>>);
10488
10493
  private static get _DefaultLoadingOptions();
10489
10494
  /**
10490
10495
  * Calls synchronously the MTL file attached to this obj.
@@ -10498,11 +10503,8 @@ declare module BABYLON {
10498
10503
  * @param onFailure
10499
10504
  */
10500
10505
  private _loadMTL;
10501
- /**
10502
- * Instantiates a OBJ file loader plugin.
10503
- * @returns the created plugin
10504
- */
10505
- createPlugin(): ISceneLoaderPluginAsync | ISceneLoaderPlugin;
10506
+ /** @internal */
10507
+ createPlugin(options: SceneLoaderPluginOptions): ISceneLoaderPluginAsync | ISceneLoaderPlugin;
10506
10508
  /**
10507
10509
  * If the data string can be loaded directly.
10508
10510
  * @returns if the data can be loaded directly
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "7.53.1",
3
+ "version": "7.53.3",
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.53.1",
19
- "babylonjs-gltf2interface": "^7.53.1"
18
+ "babylonjs": "^7.53.3",
19
+ "babylonjs-gltf2interface": "^7.53.3"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",