@babylonjs/loaders 5.0.0-rc.3 → 5.0.0-rc.6
Sign up to get free protection for your applications and to get access to all the features.
- package/OBJ/index.js.map +1 -1
- package/OBJ/mtlFileLoader.d.ts +7 -6
- package/OBJ/mtlFileLoader.js +15 -14
- package/OBJ/mtlFileLoader.js.map +1 -1
- package/OBJ/objFileLoader.d.ts +11 -18
- package/OBJ/objFileLoader.js +19 -23
- package/OBJ/objFileLoader.js.map +1 -1
- package/OBJ/objLoadingOptions.d.ts +1 -1
- package/OBJ/objLoadingOptions.js.map +1 -1
- package/OBJ/solidParser.d.ts +6 -5
- package/OBJ/solidParser.js +15 -21
- package/OBJ/solidParser.js.map +1 -1
- package/STL/index.js.map +1 -1
- package/STL/stlFileLoader.d.ts +7 -14
- package/STL/stlFileLoader.js +15 -21
- package/STL/stlFileLoader.js.map +1 -1
- package/glTF/1.0/glTFBinaryExtension.d.ts +4 -4
- package/glTF/1.0/glTFBinaryExtension.js +4 -5
- package/glTF/1.0/glTFBinaryExtension.js.map +1 -1
- package/glTF/1.0/glTFLoader.d.ts +80 -50
- package/glTF/1.0/glTFLoader.js +265 -146
- package/glTF/1.0/glTFLoader.js.map +1 -1
- package/glTF/1.0/glTFLoaderInterfaces.d.ts +10 -10
- package/glTF/1.0/glTFLoaderInterfaces.js +3 -3
- package/glTF/1.0/glTFLoaderInterfaces.js.map +1 -1
- package/glTF/1.0/glTFLoaderUtils.d.ts +25 -25
- package/glTF/1.0/glTFLoaderUtils.js +70 -52
- package/glTF/1.0/glTFLoaderUtils.js.map +1 -1
- package/glTF/1.0/glTFMaterialsCommonExtension.d.ts +2 -2
- package/glTF/1.0/glTFMaterialsCommonExtension.js +13 -11
- package/glTF/1.0/glTFMaterialsCommonExtension.js.map +1 -1
- package/glTF/1.0/index.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +11 -4
- package/glTF/2.0/Extensions/EXT_lights_image_based.js +9 -2
- package/glTF/2.0/Extensions/EXT_lights_image_based.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +13 -5
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +12 -4
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +10 -3
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js +10 -3
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_texture_webp.d.ts +12 -4
- package/glTF/2.0/Extensions/EXT_texture_webp.js +11 -3
- package/glTF/2.0/Extensions/EXT_texture_webp.js.map +1 -1
- package/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +26 -8
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js +22 -4
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +14 -6
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +17 -6
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_lights_punctual.js +11 -3
- package/glTF/2.0/Extensions/KHR_lights_punctual.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +10 -2
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +10 -2
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_ior.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_materials_ior.js +10 -2
- package/glTF/2.0/Extensions/KHR_materials_ior.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +10 -2
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_materials_sheen.js +11 -3
- package/glTF/2.0/Extensions/KHR_materials_sheen.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_specular.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_materials_specular.js +11 -3
- package/glTF/2.0/Extensions/KHR_materials_specular.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_translucency.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_materials_translucency.js +11 -4
- package/glTF/2.0/Extensions/KHR_materials_translucency.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_materials_transmission.js +24 -13
- package/glTF/2.0/Extensions/KHR_materials_transmission.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_materials_unlit.js +10 -2
- package/glTF/2.0/Extensions/KHR_materials_unlit.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_variants.d.ts +17 -6
- package/glTF/2.0/Extensions/KHR_materials_variants.js +19 -8
- package/glTF/2.0/Extensions/KHR_materials_variants.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_volume.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_materials_volume.js +12 -5
- package/glTF/2.0/Extensions/KHR_materials_volume.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +4 -1
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js +5 -3
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_texture_basisu.js +11 -3
- package/glTF/2.0/Extensions/KHR_texture_basisu.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_texture_transform.d.ts +12 -4
- package/glTF/2.0/Extensions/KHR_texture_transform.js +10 -2
- package/glTF/2.0/Extensions/KHR_texture_transform.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +4 -1
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +4 -1
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +23 -7
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js +38 -14
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_lod.d.ts +45 -11
- package/glTF/2.0/Extensions/MSFT_lod.js +44 -8
- package/glTF/2.0/Extensions/MSFT_lod.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +2 -2
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +2 -2
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.js.map +1 -1
- package/glTF/2.0/Extensions/index.js.map +1 -1
- package/glTF/2.0/glTFLoader.d.ts +70 -22
- package/glTF/2.0/glTFLoader.js +180 -93
- package/glTF/2.0/glTFLoader.js.map +1 -1
- package/glTF/2.0/glTFLoaderExtension.d.ts +11 -11
- package/glTF/2.0/glTFLoaderExtension.js.map +1 -1
- package/glTF/2.0/glTFLoaderInterfaces.d.ts +7 -7
- package/glTF/2.0/glTFLoaderInterfaces.js.map +1 -1
- package/glTF/2.0/index.js.map +1 -1
- package/glTF/glTFFileLoader.d.ts +87 -27
- package/glTF/glTFFileLoader.js +102 -45
- package/glTF/glTFFileLoader.js.map +1 -1
- package/glTF/glTFValidation.d.ts +1 -1
- package/glTF/glTFValidation.js +12 -12
- package/glTF/glTFValidation.js.map +1 -1
- package/glTF/index.js.map +1 -1
- package/index.js.map +1 -1
- package/legacy/legacy-glTF.d.ts +2 -2
- package/legacy/legacy-glTF.js +5 -5
- package/legacy/legacy-glTF.js.map +1 -1
- package/legacy/legacy-glTF1.d.ts +1 -1
- package/legacy/legacy-glTF1.js +2 -2
- package/legacy/legacy-glTF1.js.map +1 -1
- package/legacy/legacy-glTF1FileLoader.js +1 -0
- package/legacy/legacy-glTF1FileLoader.js.map +1 -1
- package/legacy/legacy-glTF2.d.ts +1 -1
- package/legacy/legacy-glTF2.js +11 -11
- package/legacy/legacy-glTF2.js.map +1 -1
- package/legacy/legacy-glTF2FileLoader.js +1 -0
- package/legacy/legacy-glTF2FileLoader.js.map +1 -1
- package/legacy/legacy-glTFFileLoader.js +1 -0
- package/legacy/legacy-glTFFileLoader.js.map +1 -1
- package/legacy/legacy-objFileLoader.d.ts +1 -1
- package/legacy/legacy-objFileLoader.js +3 -3
- package/legacy/legacy-objFileLoader.js.map +1 -1
- package/legacy/legacy-stlFileLoader.d.ts +1 -1
- package/legacy/legacy-stlFileLoader.js +3 -3
- package/legacy/legacy-stlFileLoader.js.map +1 -1
- package/legacy/legacy.d.ts +1 -1
- package/legacy/legacy.js +2 -1
- package/legacy/legacy.js.map +1 -1
- package/package.json +23 -198
- package/readme.md +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-glTF2.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"legacy-glTF2.js","sourceRoot":"","sources":["../../../../../lts/loaders/generated/legacy/legacy-glTF2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,uCAA0C;AAChE,OAAO,KAAK,UAAU,2CAA8C;AACpE,OAAO,KAAK,KAAK,4BAA+B;AAEhD;;;GAGG;AACH,IAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IAC/B,YAAa,CAAC,OAAO,GAAS,YAAa,CAAC,OAAO,IAAI,EAAE,CAAC;IAChE,IAAM,SAAO,GAAS,YAAa,CAAC,OAAO,CAAC;IAC5C,SAAO,CAAC,KAAK,GAAG,SAAO,CAAC,KAAK,IAAI,EAAE,CAAC;IACpC,SAAO,CAAC,KAAK,CAAC,MAAM,GAAG,SAAO,CAAC,KAAK,CAAC,MAAM,IAAI,EAAE,CAAC;IAClD,SAAO,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,GAAG,SAAO,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;IAExE,IAAM,IAAI,GAAG,EAAE,CAAC;IAChB,KAAK,IAAM,GAAG,IAAI,UAAU,EAAE;QAC1B,SAAO,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,GAAS,UAAW,CAAC,GAAG,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAClB;IACD,KAAK,IAAM,GAAG,IAAI,UAAU,EAAE;QAC1B,SAAO,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,GAAS,UAAW,CAAC,GAAG,CAAC,CAAC;QACnD,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAClB;IAED,KAAK,IAAM,GAAG,IAAI,KAAK,EAAE;QACrB,wBAAwB;QACxB,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;YACxB,SAAS;SACZ;QAED,SAAO,CAAC,KAAK,CAAC,GAAG,CAAC,GAAS,KAAM,CAAC,GAAG,CAAC,CAAC;KAC1C;CACJ;AAED,OAAO,EAAE,KAAK,EAAE,CAAC","sourcesContent":["import * as Extensions from \"loaders/glTF/2.0/Extensions/index\";\r\nimport * as Interfaces from \"loaders/glTF/2.0/glTFLoaderInterfaces\";\r\nimport * as GLTF2 from \"loaders/glTF/2.0/index\";\r\n\r\n/**\r\n * This is the entry point for the UMD module.\r\n * The entry point for a future ESM package should be index.ts\r\n */\r\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\r\nif (typeof globalObject !== \"undefined\") {\r\n (<any>globalObject).BABYLON = (<any>globalObject).BABYLON || {};\r\n const BABYLON = (<any>globalObject).BABYLON;\r\n BABYLON.GLTF2 = BABYLON.GLTF2 || {};\r\n BABYLON.GLTF2.Loader = BABYLON.GLTF2.Loader || {};\r\n BABYLON.GLTF2.Loader.Extensions = BABYLON.GLTF2.Loader.Extensions || {};\r\n\r\n const keys = [];\r\n for (const key in Extensions) {\r\n BABYLON.GLTF2.Loader.Extensions[key] = (<any>Extensions)[key];\r\n keys.push(key);\r\n }\r\n for (const key in Interfaces) {\r\n BABYLON.GLTF2.Loader[key] = (<any>Interfaces)[key];\r\n keys.push(key);\r\n }\r\n\r\n for (const key in GLTF2) {\r\n // Prevent Reassignment.\r\n if (keys.indexOf(key) > -1) {\r\n continue;\r\n }\r\n\r\n BABYLON.GLTF2[key] = (<any>GLTF2)[key];\r\n }\r\n}\r\n\r\nexport { GLTF2 };\r\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-glTF2FileLoader.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"legacy-glTF2FileLoader.js","sourceRoot":"","sources":["../../../../../lts/loaders/generated/legacy/legacy-glTF2FileLoader.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC","sourcesContent":["// eslint-disable-next-line import/export\r\nexport * from \"./legacy-glTF\";\r\nexport * from \"./legacy-glTF2\";\r\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-glTFFileLoader.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"legacy-glTFFileLoader.js","sourceRoot":"","sources":["../../../../../lts/loaders/generated/legacy/legacy-glTFFileLoader.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC","sourcesContent":["// eslint-disable-next-line import/export\r\nexport * from \"./legacy-glTF\";\r\nexport * from \"./legacy-glTF1\";\r\nexport * from \"./legacy-glTF2\";\r\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
export * from "
|
1
|
+
export * from "./OBJ/index.js";
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import * as Loaders from "
|
1
|
+
import * as Loaders from "./OBJ/index.js";
|
2
2
|
/**
|
3
3
|
* This is the entry point for the UMD module.
|
4
4
|
* The entry point for a future ESM package should be index.ts
|
5
5
|
*/
|
6
|
-
var globalObject =
|
6
|
+
var globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
7
7
|
if (typeof globalObject !== "undefined") {
|
8
8
|
for (var key in Loaders) {
|
9
9
|
globalObject.BABYLON[key] = Loaders[key];
|
10
10
|
}
|
11
11
|
}
|
12
|
-
export * from "
|
12
|
+
export * from "./OBJ/index.js";
|
13
13
|
//# sourceMappingURL=legacy-objFileLoader.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-objFileLoader.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"legacy-objFileLoader.js","sourceRoot":"","sources":["../../../../../lts/loaders/generated/legacy/legacy-objFileLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,uBAA0B;AAE7C;;;GAGG;AACH,IAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,IAAM,GAAG,IAAI,OAAO,EAAE;QACjB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,OAAQ,CAAC,GAAG,CAAC,CAAC;KAC1D;CACJ;AAED,+BAAkC","sourcesContent":["import * as Loaders from \"loaders/OBJ/index\";\r\n\r\n/**\r\n * This is the entry point for the UMD module.\r\n * The entry point for a future ESM package should be index.ts\r\n */\r\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\r\nif (typeof globalObject !== \"undefined\") {\r\n for (const key in Loaders) {\r\n (<any>globalObject).BABYLON[key] = (<any>Loaders)[key];\r\n }\r\n}\r\n\r\nexport * from \"loaders/OBJ/index\";\r\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
export * from "
|
1
|
+
export * from "./STL/index.js";
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import * as Loaders from "
|
1
|
+
import * as Loaders from "./STL/index.js";
|
2
2
|
/**
|
3
3
|
* This is the entry point for the UMD module.
|
4
4
|
* The entry point for a future ESM package should be index.ts
|
5
5
|
*/
|
6
|
-
var globalObject =
|
6
|
+
var globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
7
7
|
if (typeof globalObject !== "undefined") {
|
8
8
|
for (var key in Loaders) {
|
9
9
|
globalObject.BABYLON[key] = Loaders[key];
|
10
10
|
}
|
11
11
|
}
|
12
|
-
export * from "
|
12
|
+
export * from "./STL/index.js";
|
13
13
|
//# sourceMappingURL=legacy-stlFileLoader.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy-stlFileLoader.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"legacy-stlFileLoader.js","sourceRoot":"","sources":["../../../../../lts/loaders/generated/legacy/legacy-stlFileLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,uBAA0B;AAE7C;;;GAGG;AACH,IAAM,YAAY,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;AACjH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,IAAM,GAAG,IAAI,OAAO,EAAE;QACjB,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,OAAQ,CAAC,GAAG,CAAC,CAAC;KAC1D;CACJ;AAED,+BAAkC","sourcesContent":["import * as Loaders from \"loaders/STL/index\";\r\n\r\n/**\r\n * This is the entry point for the UMD module.\r\n * The entry point for a future ESM package should be index.ts\r\n */\r\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\r\nif (typeof globalObject !== \"undefined\") {\r\n for (const key in Loaders) {\r\n (<any>globalObject).BABYLON[key] = (<any>Loaders)[key];\r\n }\r\n}\r\n\r\nexport * from \"loaders/STL/index\";\r\n"]}
|
package/legacy/legacy.d.ts
CHANGED
package/legacy/legacy.js
CHANGED
package/legacy/legacy.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"legacy.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../../../lts/loaders/generated/legacy/legacy.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,2BAA8B;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC","sourcesContent":["/* eslint-disable import/export */\r\nexport * from \"loaders/index\";\r\nexport * from \"./legacy-glTF\";\r\nexport * from \"./legacy-glTF1\";\r\nexport * from \"./legacy-glTF2\";\r\nexport * from \"./legacy-objFileLoader\";\r\nexport * from \"./legacy-stlFileLoader\";\r\n"]}
|
package/package.json
CHANGED
@@ -1,207 +1,32 @@
|
|
1
1
|
{
|
2
|
-
"author": {
|
3
|
-
"name": "David CATUHE"
|
4
|
-
},
|
5
2
|
"name": "@babylonjs/loaders",
|
6
|
-
"
|
7
|
-
"version": "5.0.0-rc.3",
|
8
|
-
"repository": {
|
9
|
-
"type": "git",
|
10
|
-
"url": "https://github.com/BabylonJS/Babylon.js.git"
|
11
|
-
},
|
3
|
+
"version": "5.0.0-rc.6",
|
12
4
|
"main": "index.js",
|
5
|
+
"module": "index.js",
|
6
|
+
"types": "index.d.ts",
|
13
7
|
"files": [
|
14
|
-
"
|
15
|
-
"
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"glTF/1.0/glTFLoader.js",
|
19
|
-
"glTF/1.0/glTFLoader.js.map",
|
20
|
-
"glTF/1.0/glTFLoaderInterfaces.d.ts",
|
21
|
-
"glTF/1.0/glTFLoaderInterfaces.js",
|
22
|
-
"glTF/1.0/glTFLoaderInterfaces.js.map",
|
23
|
-
"glTF/1.0/glTFLoaderUtils.d.ts",
|
24
|
-
"glTF/1.0/glTFLoaderUtils.js",
|
25
|
-
"glTF/1.0/glTFLoaderUtils.js.map",
|
26
|
-
"glTF/1.0/glTFMaterialsCommonExtension.d.ts",
|
27
|
-
"glTF/1.0/glTFMaterialsCommonExtension.js",
|
28
|
-
"glTF/1.0/glTFMaterialsCommonExtension.js.map",
|
29
|
-
"glTF/1.0/index.d.ts",
|
30
|
-
"glTF/1.0/index.js",
|
31
|
-
"glTF/1.0/index.js.map",
|
32
|
-
"glTF/2.0/Extensions/ExtrasAsMetadata.d.ts",
|
33
|
-
"glTF/2.0/Extensions/ExtrasAsMetadata.js",
|
34
|
-
"glTF/2.0/Extensions/ExtrasAsMetadata.js.map",
|
35
|
-
"glTF/2.0/Extensions/EXT_lights_image_based.d.ts",
|
36
|
-
"glTF/2.0/Extensions/EXT_lights_image_based.js",
|
37
|
-
"glTF/2.0/Extensions/EXT_lights_image_based.js.map",
|
38
|
-
"glTF/2.0/Extensions/EXT_meshopt_compression.d.ts",
|
39
|
-
"glTF/2.0/Extensions/EXT_meshopt_compression.js",
|
40
|
-
"glTF/2.0/Extensions/EXT_meshopt_compression.js.map",
|
41
|
-
"glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts",
|
42
|
-
"glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js",
|
43
|
-
"glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js.map",
|
44
|
-
"glTF/2.0/Extensions/EXT_texture_webp.d.ts",
|
45
|
-
"glTF/2.0/Extensions/EXT_texture_webp.js",
|
46
|
-
"glTF/2.0/Extensions/EXT_texture_webp.js.map",
|
47
|
-
"glTF/2.0/Extensions/index.d.ts",
|
48
|
-
"glTF/2.0/Extensions/index.js",
|
49
|
-
"glTF/2.0/Extensions/index.js.map",
|
50
|
-
"glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts",
|
51
|
-
"glTF/2.0/Extensions/KHR_draco_mesh_compression.js",
|
52
|
-
"glTF/2.0/Extensions/KHR_draco_mesh_compression.js.map",
|
53
|
-
"glTF/2.0/Extensions/KHR_lights_punctual.d.ts",
|
54
|
-
"glTF/2.0/Extensions/KHR_lights_punctual.js",
|
55
|
-
"glTF/2.0/Extensions/KHR_lights_punctual.js.map",
|
56
|
-
"glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts",
|
57
|
-
"glTF/2.0/Extensions/KHR_materials_clearcoat.js",
|
58
|
-
"glTF/2.0/Extensions/KHR_materials_clearcoat.js.map",
|
59
|
-
"glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts",
|
60
|
-
"glTF/2.0/Extensions/KHR_materials_emissive_strength.js",
|
61
|
-
"glTF/2.0/Extensions/KHR_materials_emissive_strength.js.map",
|
62
|
-
"glTF/2.0/Extensions/KHR_materials_ior.d.ts",
|
63
|
-
"glTF/2.0/Extensions/KHR_materials_ior.js",
|
64
|
-
"glTF/2.0/Extensions/KHR_materials_ior.js.map",
|
65
|
-
"glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts",
|
66
|
-
"glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js",
|
67
|
-
"glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js.map",
|
68
|
-
"glTF/2.0/Extensions/KHR_materials_sheen.d.ts",
|
69
|
-
"glTF/2.0/Extensions/KHR_materials_sheen.js",
|
70
|
-
"glTF/2.0/Extensions/KHR_materials_sheen.js.map",
|
71
|
-
"glTF/2.0/Extensions/KHR_materials_specular.d.ts",
|
72
|
-
"glTF/2.0/Extensions/KHR_materials_specular.js",
|
73
|
-
"glTF/2.0/Extensions/KHR_materials_specular.js.map",
|
74
|
-
"glTF/2.0/Extensions/KHR_materials_translucency.d.ts",
|
75
|
-
"glTF/2.0/Extensions/KHR_materials_translucency.js",
|
76
|
-
"glTF/2.0/Extensions/KHR_materials_translucency.js.map",
|
77
|
-
"glTF/2.0/Extensions/KHR_materials_transmission.d.ts",
|
78
|
-
"glTF/2.0/Extensions/KHR_materials_transmission.js",
|
79
|
-
"glTF/2.0/Extensions/KHR_materials_transmission.js.map",
|
80
|
-
"glTF/2.0/Extensions/KHR_materials_unlit.d.ts",
|
81
|
-
"glTF/2.0/Extensions/KHR_materials_unlit.js",
|
82
|
-
"glTF/2.0/Extensions/KHR_materials_unlit.js.map",
|
83
|
-
"glTF/2.0/Extensions/KHR_materials_variants.d.ts",
|
84
|
-
"glTF/2.0/Extensions/KHR_materials_variants.js",
|
85
|
-
"glTF/2.0/Extensions/KHR_materials_variants.js.map",
|
86
|
-
"glTF/2.0/Extensions/KHR_materials_volume.d.ts",
|
87
|
-
"glTF/2.0/Extensions/KHR_materials_volume.js",
|
88
|
-
"glTF/2.0/Extensions/KHR_materials_volume.js.map",
|
89
|
-
"glTF/2.0/Extensions/KHR_mesh_quantization.d.ts",
|
90
|
-
"glTF/2.0/Extensions/KHR_mesh_quantization.js",
|
91
|
-
"glTF/2.0/Extensions/KHR_mesh_quantization.js.map",
|
92
|
-
"glTF/2.0/Extensions/KHR_texture_basisu.d.ts",
|
93
|
-
"glTF/2.0/Extensions/KHR_texture_basisu.js",
|
94
|
-
"glTF/2.0/Extensions/KHR_texture_basisu.js.map",
|
95
|
-
"glTF/2.0/Extensions/KHR_texture_transform.d.ts",
|
96
|
-
"glTF/2.0/Extensions/KHR_texture_transform.js",
|
97
|
-
"glTF/2.0/Extensions/KHR_texture_transform.js.map",
|
98
|
-
"glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts",
|
99
|
-
"glTF/2.0/Extensions/KHR_xmp_json_ld.js",
|
100
|
-
"glTF/2.0/Extensions/KHR_xmp_json_ld.js.map",
|
101
|
-
"glTF/2.0/Extensions/MSFT_audio_emitter.d.ts",
|
102
|
-
"glTF/2.0/Extensions/MSFT_audio_emitter.js",
|
103
|
-
"glTF/2.0/Extensions/MSFT_audio_emitter.js.map",
|
104
|
-
"glTF/2.0/Extensions/MSFT_lod.d.ts",
|
105
|
-
"glTF/2.0/Extensions/MSFT_lod.js",
|
106
|
-
"glTF/2.0/Extensions/MSFT_lod.js.map",
|
107
|
-
"glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts",
|
108
|
-
"glTF/2.0/Extensions/MSFT_minecraftMesh.js",
|
109
|
-
"glTF/2.0/Extensions/MSFT_minecraftMesh.js.map",
|
110
|
-
"glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts",
|
111
|
-
"glTF/2.0/Extensions/MSFT_sRGBFactors.js",
|
112
|
-
"glTF/2.0/Extensions/MSFT_sRGBFactors.js.map",
|
113
|
-
"glTF/2.0/glTFLoader.d.ts",
|
114
|
-
"glTF/2.0/glTFLoader.js",
|
115
|
-
"glTF/2.0/glTFLoader.js.map",
|
116
|
-
"glTF/2.0/glTFLoaderExtension.d.ts",
|
117
|
-
"glTF/2.0/glTFLoaderExtension.js",
|
118
|
-
"glTF/2.0/glTFLoaderExtension.js.map",
|
119
|
-
"glTF/2.0/glTFLoaderInterfaces.d.ts",
|
120
|
-
"glTF/2.0/glTFLoaderInterfaces.js",
|
121
|
-
"glTF/2.0/glTFLoaderInterfaces.js.map",
|
122
|
-
"glTF/2.0/index.d.ts",
|
123
|
-
"glTF/2.0/index.js",
|
124
|
-
"glTF/2.0/index.js.map",
|
125
|
-
"glTF/glTFFileLoader.d.ts",
|
126
|
-
"glTF/glTFFileLoader.js",
|
127
|
-
"glTF/glTFFileLoader.js.map",
|
128
|
-
"glTF/glTFValidation.d.ts",
|
129
|
-
"glTF/glTFValidation.js",
|
130
|
-
"glTF/glTFValidation.js.map",
|
131
|
-
"glTF/index.d.ts",
|
132
|
-
"glTF/index.js",
|
133
|
-
"glTF/index.js.map",
|
134
|
-
"index.d.ts",
|
135
|
-
"index.js",
|
136
|
-
"index.js.map",
|
137
|
-
"legacy/legacy-glTF.d.ts",
|
138
|
-
"legacy/legacy-glTF.js",
|
139
|
-
"legacy/legacy-glTF.js.map",
|
140
|
-
"legacy/legacy-glTF1.d.ts",
|
141
|
-
"legacy/legacy-glTF1.js",
|
142
|
-
"legacy/legacy-glTF1.js.map",
|
143
|
-
"legacy/legacy-glTF1FileLoader.d.ts",
|
144
|
-
"legacy/legacy-glTF1FileLoader.js",
|
145
|
-
"legacy/legacy-glTF1FileLoader.js.map",
|
146
|
-
"legacy/legacy-glTF2.d.ts",
|
147
|
-
"legacy/legacy-glTF2.js",
|
148
|
-
"legacy/legacy-glTF2.js.map",
|
149
|
-
"legacy/legacy-glTF2FileLoader.d.ts",
|
150
|
-
"legacy/legacy-glTF2FileLoader.js",
|
151
|
-
"legacy/legacy-glTF2FileLoader.js.map",
|
152
|
-
"legacy/legacy-glTFFileLoader.d.ts",
|
153
|
-
"legacy/legacy-glTFFileLoader.js",
|
154
|
-
"legacy/legacy-glTFFileLoader.js.map",
|
155
|
-
"legacy/legacy-objFileLoader.d.ts",
|
156
|
-
"legacy/legacy-objFileLoader.js",
|
157
|
-
"legacy/legacy-objFileLoader.js.map",
|
158
|
-
"legacy/legacy-stlFileLoader.d.ts",
|
159
|
-
"legacy/legacy-stlFileLoader.js",
|
160
|
-
"legacy/legacy-stlFileLoader.js.map",
|
161
|
-
"legacy/legacy.d.ts",
|
162
|
-
"legacy/legacy.js",
|
163
|
-
"legacy/legacy.js.map",
|
164
|
-
"OBJ/index.d.ts",
|
165
|
-
"OBJ/index.js",
|
166
|
-
"OBJ/index.js.map",
|
167
|
-
"OBJ/mtlFileLoader.d.ts",
|
168
|
-
"OBJ/mtlFileLoader.js",
|
169
|
-
"OBJ/mtlFileLoader.js.map",
|
170
|
-
"OBJ/objFileLoader.d.ts",
|
171
|
-
"OBJ/objFileLoader.js",
|
172
|
-
"OBJ/objFileLoader.js.map",
|
173
|
-
"OBJ/objLoadingOptions.d.ts",
|
174
|
-
"OBJ/objLoadingOptions.js",
|
175
|
-
"OBJ/objLoadingOptions.js.map",
|
176
|
-
"OBJ/solidParser.d.ts",
|
177
|
-
"OBJ/solidParser.js",
|
178
|
-
"OBJ/solidParser.js.map",
|
179
|
-
"readme.md",
|
180
|
-
"STL/index.d.ts",
|
181
|
-
"STL/index.js",
|
182
|
-
"STL/index.js.map",
|
183
|
-
"STL/stlFileLoader.d.ts",
|
184
|
-
"STL/stlFileLoader.js",
|
185
|
-
"STL/stlFileLoader.js.map"
|
8
|
+
"**/*.js",
|
9
|
+
"**/*.d.ts",
|
10
|
+
"**/*.map",
|
11
|
+
"readme.md"
|
186
12
|
],
|
187
|
-
"
|
188
|
-
|
189
|
-
"
|
190
|
-
"
|
191
|
-
"
|
192
|
-
"
|
193
|
-
|
194
|
-
],
|
195
|
-
"license": "Apache-2.0",
|
13
|
+
"scripts": {
|
14
|
+
"build": "npm run clean && npm run compile",
|
15
|
+
"clean": "rimraf dist && rimraf *.tsbuildinfo && rimraf \"./**/*.!(md|json|build.json)\"",
|
16
|
+
"compile": "tsc -b tsconfig.build.json",
|
17
|
+
"postcompile": "build-tools -c add-js-to-es6 --path ./dist/**/*.js",
|
18
|
+
"prepublishOnly": "build-tools -c prepare-es6-build"
|
19
|
+
},
|
196
20
|
"dependencies": {
|
197
|
-
"babylonjs
|
198
|
-
"
|
21
|
+
"@babylonjs/core": "^5.0.0-rc.6",
|
22
|
+
"babylonjs-gltf2interface": "^5.0.0-rc.6",
|
199
23
|
"tslib": "^2.3.1"
|
200
24
|
},
|
201
|
-
"
|
202
|
-
"
|
25
|
+
"devDependencies": {
|
26
|
+
"@dev/build-tools": "^1.0.0",
|
27
|
+
"@lts/loaders": "^1.0.0",
|
28
|
+
"rimraf": "^3.0.2",
|
29
|
+
"typescript": "^4.4.4"
|
203
30
|
},
|
204
|
-
"
|
205
|
-
|
206
|
-
"type": "module"
|
207
|
-
}
|
31
|
+
"sideEffects": true
|
32
|
+
}
|
package/readme.md
CHANGED
@@ -13,7 +13,7 @@ npm install --save-dev @babylonjs/core @babylonjs/loaders
|
|
13
13
|
|
14
14
|
# How to use
|
15
15
|
|
16
|
-
Afterwards it can be imported to
|
16
|
+
Afterwards it can be imported to your project using:
|
17
17
|
|
18
18
|
```
|
19
19
|
import "@babylonjs/loaders/glTF";
|
@@ -21,4 +21,4 @@ import "@babylonjs/loaders/glTF";
|
|
21
21
|
|
22
22
|
This will extend Babylon's loader plugins to allow the load of gltf and glb files.
|
23
23
|
|
24
|
-
For more information you can have a look at our [
|
24
|
+
For more information you can have a look at our [ES6 dedicated documentation](https://doc.babylonjs.com/features/es6_support).
|