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.
@@ -2424,6 +2424,10 @@ declare module BABYLON {
2424
2424
  * Defines options for the KHR_materials_variants extension.
2425
2425
  */
2426
2426
  ["KHR_materials_variants"]: Partial<{
2427
+ /**
2428
+ * Specifies the name of the variant that should be selected by default.
2429
+ */
2430
+ defaultVariant: string;
2427
2431
  /**
2428
2432
  * Defines a callback that will be called if material variants are loaded.
2429
2433
  * @experimental
@@ -4988,7 +4992,7 @@ declare module BABYLON {
4988
4992
  /**
4989
4993
  * Defines options for the obj loader.
4990
4994
  */
4991
- [OBJFileLoaderMetadata.name]: {};
4995
+ [OBJFileLoaderMetadata.name]: Partial<OBJLoadingOptions>;
4992
4996
  }
4993
4997
  /**
4994
4998
  * OBJ file type loader.
@@ -5054,7 +5058,7 @@ declare module BABYLON {
5054
5058
  *
5055
5059
  * @param loadingOptions options for loading and parsing OBJ/MTL files.
5056
5060
  */
5057
- constructor(loadingOptions?: OBJLoadingOptions);
5061
+ constructor(loadingOptions?: Partial<Readonly<OBJLoadingOptions>>);
5058
5062
  private static get _DefaultLoadingOptions();
5059
5063
  /**
5060
5064
  * Calls synchronously the MTL file attached to this obj.
@@ -5068,11 +5072,8 @@ declare module BABYLON {
5068
5072
  * @param onFailure
5069
5073
  */
5070
5074
  private _loadMTL;
5071
- /**
5072
- * Instantiates a OBJ file loader plugin.
5073
- * @returns the created plugin
5074
- */
5075
- createPlugin(): ISceneLoaderPluginAsync | ISceneLoaderPlugin;
5075
+ /** @internal */
5076
+ createPlugin(options: SceneLoaderPluginOptions): ISceneLoaderPluginAsync | ISceneLoaderPlugin;
5076
5077
  /**
5077
5078
  * If the data string can be loaded directly.
5078
5079
  * @returns if the data can be loaded directly