babylonjs-loaders 7.53.2 → 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.
@@ -5188,7 +5188,7 @@ export const OBJFileLoaderMetadata: {
5188
5188
  }
5189
5189
  declare module "babylonjs-loaders/OBJ/objFileLoader" {
5190
5190
  import { Vector2 } from "babylonjs/Maths/math.vector";
5191
- import { ISceneLoaderPluginAsync, ISceneLoaderPluginFactory, ISceneLoaderPlugin, ISceneLoaderAsyncResult } from "babylonjs/Loading/sceneLoader";
5191
+ import { ISceneLoaderPluginAsync, ISceneLoaderPluginFactory, ISceneLoaderPlugin, ISceneLoaderAsyncResult, SceneLoaderPluginOptions } from "babylonjs/Loading/sceneLoader";
5192
5192
  import { AssetContainer } from "babylonjs/assetContainer";
5193
5193
  import { Scene } from "babylonjs/scene";
5194
5194
  import { OBJFileLoaderMetadata } from "babylonjs-loaders/OBJ/objFileLoader.metadata";
@@ -5198,7 +5198,7 @@ module "babylonjs/Loading/sceneLoader" {
5198
5198
  /**
5199
5199
  * Defines options for the obj loader.
5200
5200
  */
5201
- [OBJFileLoaderMetadata.name]: {};
5201
+ [OBJFileLoaderMetadata.name]: Partial<OBJLoadingOptions>;
5202
5202
  }
5203
5203
  }
5204
5204
  /**
@@ -5265,7 +5265,7 @@ export class OBJFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlugi
5265
5265
  *
5266
5266
  * @param loadingOptions options for loading and parsing OBJ/MTL files.
5267
5267
  */
5268
- constructor(loadingOptions?: OBJLoadingOptions);
5268
+ constructor(loadingOptions?: Partial<Readonly<OBJLoadingOptions>>);
5269
5269
  private static get _DefaultLoadingOptions();
5270
5270
  /**
5271
5271
  * Calls synchronously the MTL file attached to this obj.
@@ -5279,11 +5279,8 @@ export class OBJFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlugi
5279
5279
  * @param onFailure
5280
5280
  */
5281
5281
  private _loadMTL;
5282
- /**
5283
- * Instantiates a OBJ file loader plugin.
5284
- * @returns the created plugin
5285
- */
5286
- createPlugin(): ISceneLoaderPluginAsync | ISceneLoaderPlugin;
5282
+ /** @internal */
5283
+ createPlugin(options: SceneLoaderPluginOptions): ISceneLoaderPluginAsync | ISceneLoaderPlugin;
5287
5284
  /**
5288
5285
  * If the data string can be loaded directly.
5289
5286
  * @returns if the data can be loaded directly
@@ -10426,7 +10423,7 @@ declare module BABYLON {
10426
10423
  /**
10427
10424
  * Defines options for the obj loader.
10428
10425
  */
10429
- [OBJFileLoaderMetadata.name]: {};
10426
+ [OBJFileLoaderMetadata.name]: Partial<OBJLoadingOptions>;
10430
10427
  }
10431
10428
  /**
10432
10429
  * OBJ file type loader.
@@ -10492,7 +10489,7 @@ declare module BABYLON {
10492
10489
  *
10493
10490
  * @param loadingOptions options for loading and parsing OBJ/MTL files.
10494
10491
  */
10495
- constructor(loadingOptions?: OBJLoadingOptions);
10492
+ constructor(loadingOptions?: Partial<Readonly<OBJLoadingOptions>>);
10496
10493
  private static get _DefaultLoadingOptions();
10497
10494
  /**
10498
10495
  * Calls synchronously the MTL file attached to this obj.
@@ -10506,11 +10503,8 @@ declare module BABYLON {
10506
10503
  * @param onFailure
10507
10504
  */
10508
10505
  private _loadMTL;
10509
- /**
10510
- * Instantiates a OBJ file loader plugin.
10511
- * @returns the created plugin
10512
- */
10513
- createPlugin(): ISceneLoaderPluginAsync | ISceneLoaderPlugin;
10506
+ /** @internal */
10507
+ createPlugin(options: SceneLoaderPluginOptions): ISceneLoaderPluginAsync | ISceneLoaderPlugin;
10514
10508
  /**
10515
10509
  * If the data string can be loaded directly.
10516
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.2",
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.2",
19
- "babylonjs-gltf2interface": "^7.53.2"
18
+ "babylonjs": "^7.53.3",
19
+ "babylonjs-gltf2interface": "^7.53.3"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",