babylonjs-loaders 7.37.1 → 7.37.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.
- package/babylon.glTF2FileLoader.js +4 -27
- package/babylon.glTF2FileLoader.min.js +1 -1
- package/babylon.glTF2FileLoader.min.js.map +1 -1
- package/babylon.glTFFileLoader.js +4 -27
- package/babylon.glTFFileLoader.min.js +1 -1
- package/babylon.glTFFileLoader.min.js.map +1 -1
- package/babylonjs.loaders.d.ts +12 -13
- package/babylonjs.loaders.js +4 -27
- package/babylonjs.loaders.min.js +1 -1
- package/babylonjs.loaders.min.js.map +1 -1
- package/babylonjs.loaders.module.d.ts +25 -27
- package/package.json +3 -3
|
@@ -2094,10 +2094,19 @@ import { GLTFLoader } from "babylonjs-loaders/glTF/2.0/glTFLoader";
|
|
|
2094
2094
|
import { AbstractMesh } from "babylonjs/Meshes/abstractMesh";
|
|
2095
2095
|
import { INode, IMeshPrimitive, IMesh } from "babylonjs-loaders/glTF/2.0/glTFLoaderInterfaces";
|
|
2096
2096
|
import { TransformNode } from "babylonjs/Meshes/transformNode";
|
|
2097
|
-
import {
|
|
2098
|
-
|
|
2099
|
-
export type MaterialVariantsController = Parameters<Required<GLTFLoaderExtensionOptions[typeof NAME]>["onLoaded"]>[0];
|
|
2097
|
+
import { MaterialVariantsController } from "babylonjs-loaders/glTF/glTFFileLoader";
|
|
2098
|
+
export { MaterialVariantsController };
|
|
2100
2099
|
module "babylonjs-loaders/glTF/glTFFileLoader" {
|
|
2100
|
+
type MaterialVariantsController = {
|
|
2101
|
+
/**
|
|
2102
|
+
* The list of available variant names for this asset.
|
|
2103
|
+
*/
|
|
2104
|
+
readonly variants: readonly string[];
|
|
2105
|
+
/**
|
|
2106
|
+
* Gets or sets the selected variant.
|
|
2107
|
+
*/
|
|
2108
|
+
selectedVariant: string;
|
|
2109
|
+
};
|
|
2101
2110
|
interface GLTFLoaderExtensionOptions {
|
|
2102
2111
|
/**
|
|
2103
2112
|
* Defines options for the KHR_materials_variants extension.
|
|
@@ -2107,16 +2116,7 @@ module "babylonjs-loaders/glTF/glTFFileLoader" {
|
|
|
2107
2116
|
* Defines a callback that will be called if material variants are loaded.
|
|
2108
2117
|
* @experimental
|
|
2109
2118
|
*/
|
|
2110
|
-
onLoaded: (controller:
|
|
2111
|
-
/**
|
|
2112
|
-
* The list of available variant names for this asset.
|
|
2113
|
-
*/
|
|
2114
|
-
readonly variants: readonly string[];
|
|
2115
|
-
/**
|
|
2116
|
-
* Gets or sets the selected variant.
|
|
2117
|
-
*/
|
|
2118
|
-
selectedVariant: string;
|
|
2119
|
-
}) => void;
|
|
2119
|
+
onLoaded: (controller: MaterialVariantsController) => void;
|
|
2120
2120
|
}>;
|
|
2121
2121
|
}
|
|
2122
2122
|
}
|
|
@@ -2196,7 +2196,6 @@ export class KHR_materials_variants implements IGLTFLoaderExtension {
|
|
|
2196
2196
|
*/
|
|
2197
2197
|
_loadMeshPrimitiveAsync(context: string, name: string, node: INode, mesh: IMesh, primitive: IMeshPrimitive, assign: (babylonMesh: AbstractMesh) => void): Nullable<Promise<AbstractMesh>>;
|
|
2198
2198
|
}
|
|
2199
|
-
export {};
|
|
2200
2199
|
|
|
2201
2200
|
}
|
|
2202
2201
|
declare module "babylonjs-loaders/glTF/2.0/Extensions/KHR_materials_unlit" {
|
|
@@ -6869,9 +6868,7 @@ declare module BABYLON {
|
|
|
6869
6868
|
|
|
6870
6869
|
}
|
|
6871
6870
|
declare module BABYLON.GLTF2.Loader.Extensions {
|
|
6872
|
-
|
|
6873
|
-
export type MaterialVariantsController = Parameters<Required<GLTFLoaderExtensionOptions[typeof NAME]>["onLoaded"]>[0];
|
|
6874
|
-
/**
|
|
6871
|
+
/**
|
|
6875
6872
|
* [Specification](https://github.com/KhronosGroup/glTF/blob/main/extensions/2.0/Khronos/KHR_materials_variants/README.md)
|
|
6876
6873
|
*/
|
|
6877
6874
|
export class KHR_materials_variants implements BABYLON.GLTF2.IGLTFLoaderExtension {
|
|
@@ -6952,6 +6949,16 @@ declare module BABYLON.GLTF2.Loader.Extensions {
|
|
|
6952
6949
|
|
|
6953
6950
|
}
|
|
6954
6951
|
declare module BABYLON {
|
|
6952
|
+
type MaterialVariantsController = {
|
|
6953
|
+
/**
|
|
6954
|
+
* The list of available variant names for this asset.
|
|
6955
|
+
*/
|
|
6956
|
+
readonly variants: readonly string[];
|
|
6957
|
+
/**
|
|
6958
|
+
* Gets or sets the selected variant.
|
|
6959
|
+
*/
|
|
6960
|
+
selectedVariant: string;
|
|
6961
|
+
};
|
|
6955
6962
|
interface GLTFLoaderExtensionOptions {
|
|
6956
6963
|
/**
|
|
6957
6964
|
* Defines options for the KHR_materials_variants extension.
|
|
@@ -6961,16 +6968,7 @@ declare module BABYLON {
|
|
|
6961
6968
|
* Defines a callback that will be called if material variants are loaded.
|
|
6962
6969
|
* @experimental
|
|
6963
6970
|
*/
|
|
6964
|
-
onLoaded: (controller:
|
|
6965
|
-
/**
|
|
6966
|
-
* The list of available variant names for this asset.
|
|
6967
|
-
*/
|
|
6968
|
-
readonly variants: readonly string[];
|
|
6969
|
-
/**
|
|
6970
|
-
* Gets or sets the selected variant.
|
|
6971
|
-
*/
|
|
6972
|
-
selectedVariant: string;
|
|
6973
|
-
}) => void;
|
|
6971
|
+
onLoaded: (controller: MaterialVariantsController) => void;
|
|
6974
6972
|
}>;
|
|
6975
6973
|
}
|
|
6976
6974
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babylonjs-loaders",
|
|
3
|
-
"version": "7.37.
|
|
3
|
+
"version": "7.37.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.37.
|
|
19
|
-
"babylonjs-gltf2interface": "^7.37.
|
|
18
|
+
"babylonjs": "^7.37.2",
|
|
19
|
+
"babylonjs-gltf2interface": "^7.37.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@dev/build-tools": "1.0.0",
|