@babylonjs/loaders 5.0.0-rc.1 → 5.0.0-rc.10
Sign up to get free protection for your applications and to get access to all the features.
- package/OBJ/index.d.ts +4 -4
- package/OBJ/index.js +4 -4
- package/OBJ/index.js.map +1 -1
- package/OBJ/mtlFileLoader.d.ts +41 -40
- package/OBJ/mtlFileLoader.js +232 -231
- package/OBJ/mtlFileLoader.js.map +1 -1
- package/OBJ/objFileLoader.d.ts +126 -133
- package/OBJ/objFileLoader.js +296 -300
- package/OBJ/objFileLoader.js.map +1 -1
- package/OBJ/objLoadingOptions.d.ts +43 -43
- package/OBJ/objLoadingOptions.js +1 -1
- package/OBJ/objLoadingOptions.js.map +1 -1
- package/OBJ/solidParser.d.ts +154 -153
- package/OBJ/solidParser.js +693 -699
- package/OBJ/solidParser.js.map +1 -1
- package/STL/index.d.ts +1 -1
- package/STL/index.js +1 -1
- package/STL/index.js.map +1 -1
- package/STL/stlFileLoader.d.ts +64 -71
- package/STL/stlFileLoader.js +233 -239
- package/STL/stlFileLoader.js.map +1 -1
- package/glTF/1.0/glTFBinaryExtension.d.ts +13 -13
- package/glTF/1.0/glTFBinaryExtension.js +60 -61
- package/glTF/1.0/glTFBinaryExtension.js.map +1 -1
- package/glTF/1.0/glTFLoader.d.ts +136 -106
- package/glTF/1.0/glTFLoader.js +1814 -1696
- package/glTF/1.0/glTFLoader.js.map +1 -1
- package/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -412
- package/glTF/1.0/glTFLoaderInterfaces.js +95 -95
- package/glTF/1.0/glTFLoaderInterfaces.js.map +1 -1
- package/glTF/1.0/glTFLoaderUtils.d.ts +63 -62
- package/glTF/1.0/glTFLoaderUtils.js +250 -232
- package/glTF/1.0/glTFLoaderUtils.js.map +1 -1
- package/glTF/1.0/glTFMaterialsCommonExtension.d.ts +10 -10
- package/glTF/1.0/glTFMaterialsCommonExtension.js +129 -127
- package/glTF/1.0/glTFMaterialsCommonExtension.js.map +1 -1
- package/glTF/1.0/index.d.ts +5 -5
- package/glTF/1.0/index.js +5 -5
- package/glTF/1.0/index.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +43 -36
- package/glTF/2.0/Extensions/EXT_lights_image_based.js +117 -110
- package/glTF/2.0/Extensions/EXT_lights_image_based.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +36 -28
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +88 -80
- package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +34 -27
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js +49 -42
- package/glTF/2.0/Extensions/EXT_meshopt_compression.js.map +1 -1
- package/glTF/2.0/Extensions/EXT_texture_webp.d.ts +29 -21
- package/glTF/2.0/Extensions/EXT_texture_webp.js +40 -32
- package/glTF/2.0/Extensions/EXT_texture_webp.js.map +1 -1
- package/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +50 -32
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -55
- package/glTF/2.0/Extensions/ExtrasAsMetadata.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +39 -31
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +112 -101
- package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +36 -28
- package/glTF/2.0/Extensions/KHR_lights_punctual.js +89 -81
- package/glTF/2.0/Extensions/KHR_lights_punctual.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +39 -31
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +94 -86
- package/glTF/2.0/Extensions/KHR_materials_clearcoat.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +38 -30
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +53 -45
- package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_ior.d.ts +42 -34
- package/glTF/2.0/Extensions/KHR_materials_ior.js +62 -54
- package/glTF/2.0/Extensions/KHR_materials_ior.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +38 -30
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -72
- package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +39 -31
- package/glTF/2.0/Extensions/KHR_materials_sheen.js +84 -76
- package/glTF/2.0/Extensions/KHR_materials_sheen.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_specular.d.ts +38 -30
- package/glTF/2.0/Extensions/KHR_materials_specular.js +74 -66
- package/glTF/2.0/Extensions/KHR_materials_specular.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_translucency.d.ts +39 -31
- package/glTF/2.0/Extensions/KHR_materials_translucency.js +83 -76
- package/glTF/2.0/Extensions/KHR_materials_translucency.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +38 -30
- package/glTF/2.0/Extensions/KHR_materials_transmission.js +288 -277
- package/glTF/2.0/Extensions/KHR_materials_transmission.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +38 -30
- package/glTF/2.0/Extensions/KHR_materials_unlit.js +73 -65
- package/glTF/2.0/Extensions/KHR_materials_unlit.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_variants.d.ts +87 -76
- package/glTF/2.0/Extensions/KHR_materials_variants.js +254 -243
- package/glTF/2.0/Extensions/KHR_materials_variants.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_materials_volume.d.ts +39 -31
- package/glTF/2.0/Extensions/KHR_materials_volume.js +85 -78
- package/glTF/2.0/Extensions/KHR_materials_volume.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +22 -19
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js +23 -21
- package/glTF/2.0/Extensions/KHR_mesh_quantization.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +29 -21
- package/glTF/2.0/Extensions/KHR_texture_basisu.js +40 -32
- package/glTF/2.0/Extensions/KHR_texture_basisu.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_texture_transform.d.ts +33 -25
- package/glTF/2.0/Extensions/KHR_texture_transform.js +61 -53
- package/glTF/2.0/Extensions/KHR_texture_transform.js.map +1 -1
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +32 -29
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +49 -46
- package/glTF/2.0/Extensions/KHR_xmp_json_ld.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +54 -38
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js +240 -216
- package/glTF/2.0/Extensions/MSFT_audio_emitter.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_lod.d.ts +109 -75
- package/glTF/2.0/Extensions/MSFT_lod.js +369 -333
- package/glTF/2.0/Extensions/MSFT_lod.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +14 -14
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.js +36 -36
- package/glTF/2.0/Extensions/MSFT_minecraftMesh.js.map +1 -1
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +14 -14
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.js +36 -36
- package/glTF/2.0/Extensions/MSFT_sRGBFactors.js.map +1 -1
- package/glTF/2.0/Extensions/index.d.ts +26 -26
- package/glTF/2.0/Extensions/index.js +26 -26
- package/glTF/2.0/Extensions/index.js.map +1 -1
- package/glTF/2.0/glTFLoader.d.ts +406 -357
- package/glTF/2.0/glTFLoader.js +2366 -2266
- package/glTF/2.0/glTFLoader.js.map +1 -1
- package/glTF/2.0/glTFLoaderExtension.d.ts +152 -152
- package/glTF/2.0/glTFLoaderExtension.js +1 -1
- package/glTF/2.0/glTFLoaderExtension.js.map +1 -1
- package/glTF/2.0/glTFLoaderInterfaces.d.ts +211 -209
- package/glTF/2.0/glTFLoaderInterfaces.js +1 -1
- package/glTF/2.0/glTFLoaderInterfaces.js.map +1 -1
- package/glTF/2.0/index.d.ts +4 -4
- package/glTF/2.0/index.js +5 -4
- package/glTF/2.0/index.js.map +1 -1
- package/glTF/glTFFileLoader.d.ts +433 -373
- package/glTF/glTFFileLoader.js +927 -870
- package/glTF/glTFFileLoader.js.map +1 -1
- package/glTF/glTFValidation.d.ts +29 -29
- package/glTF/glTFValidation.js +123 -121
- package/glTF/glTFValidation.js.map +1 -1
- package/glTF/index.d.ts +5 -5
- package/glTF/index.js +6 -5
- package/glTF/index.js.map +1 -1
- package/index.d.ts +3 -3
- package/index.js +4 -3
- package/index.js.map +1 -1
- package/legacy/legacy-glTF.d.ts +2 -2
- package/legacy/legacy-glTF.js +18 -18
- package/legacy/legacy-glTF.js.map +1 -1
- package/legacy/legacy-glTF1.d.ts +2 -2
- package/legacy/legacy-glTF1.js +15 -14
- package/legacy/legacy-glTF1.js.map +1 -1
- package/legacy/legacy-glTF1FileLoader.d.ts +2 -2
- package/legacy/legacy-glTF1FileLoader.js +3 -2
- package/legacy/legacy-glTF1FileLoader.js.map +1 -1
- package/legacy/legacy-glTF2.d.ts +2 -2
- package/legacy/legacy-glTF2.js +33 -32
- package/legacy/legacy-glTF2.js.map +1 -1
- package/legacy/legacy-glTF2FileLoader.d.ts +2 -2
- package/legacy/legacy-glTF2FileLoader.js +3 -2
- package/legacy/legacy-glTF2FileLoader.js.map +1 -1
- package/legacy/legacy-glTFFileLoader.d.ts +3 -3
- package/legacy/legacy-glTFFileLoader.js +4 -3
- package/legacy/legacy-glTFFileLoader.js.map +1 -1
- package/legacy/legacy-objFileLoader.d.ts +1 -1
- package/legacy/legacy-objFileLoader.js +13 -12
- package/legacy/legacy-objFileLoader.js.map +1 -1
- package/legacy/legacy-stlFileLoader.d.ts +1 -1
- package/legacy/legacy-stlFileLoader.js +13 -12
- package/legacy/legacy-stlFileLoader.js.map +1 -1
- package/legacy/legacy.d.ts +6 -6
- package/legacy/legacy.js +8 -6
- package/legacy/legacy.js.map +1 -1
- package/package.json +23 -198
- package/readme.md +2 -2
@@ -1,4 +1,5 @@
|
|
1
|
-
|
2
|
-
export * from "./legacy-
|
3
|
-
export * from "./legacy-
|
1
|
+
// eslint-disable-next-line import/export
|
2
|
+
export * from "./legacy-glTF";
|
3
|
+
export * from "./legacy-glTF1";
|
4
|
+
export * from "./legacy-glTF2";
|
4
5
|
//# sourceMappingURL=legacy-glTFFileLoader.js.map
|
@@ -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\nexport * from \"./legacy-glTF\";\nexport * from \"./legacy-glTF1\";\nexport * from \"./legacy-glTF2\";\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
export * from "../OBJ/index";
|
1
|
+
export * from "../OBJ/index";
|
@@ -1,13 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
*
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
12
|
-
|
1
|
+
/* eslint-disable import/no-internal-modules */
|
2
|
+
import * as Loaders from "../OBJ/index";
|
3
|
+
/**
|
4
|
+
* This is the entry point for the UMD module.
|
5
|
+
* The entry point for a future ESM package should be index.ts
|
6
|
+
*/
|
7
|
+
var globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
|
+
if (typeof globalObject !== "undefined") {
|
9
|
+
for (var key in Loaders) {
|
10
|
+
globalObject.BABYLON[key] = Loaders[key];
|
11
|
+
}
|
12
|
+
}
|
13
|
+
export * from "../OBJ/index";
|
13
14
|
//# 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,+CAA+C;AAC/C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC;;;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;AACD,cAAc,cAAc,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as Loaders from \"../OBJ/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in Loaders) {\n (<any>globalObject).BABYLON[key] = (<any>Loaders)[key];\n }\n}\nexport * from \"../OBJ/index\";\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
export * from "../STL/index";
|
1
|
+
export * from "../STL/index";
|
@@ -1,13 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
*
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
12
|
-
|
1
|
+
/* eslint-disable import/no-internal-modules */
|
2
|
+
import * as Loaders from "../STL/index";
|
3
|
+
/**
|
4
|
+
* This is the entry point for the UMD module.
|
5
|
+
* The entry point for a future ESM package should be index.ts
|
6
|
+
*/
|
7
|
+
var globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
|
8
|
+
if (typeof globalObject !== "undefined") {
|
9
|
+
for (var key in Loaders) {
|
10
|
+
globalObject.BABYLON[key] = Loaders[key];
|
11
|
+
}
|
12
|
+
}
|
13
|
+
export * from "../STL/index";
|
13
14
|
//# 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,+CAA+C;AAC/C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC;;;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;AACD,cAAc,cAAc,CAAC","sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport * as Loaders from \"../STL/index\";\n/**\n * This is the entry point for the UMD module.\n * The entry point for a future ESM package should be index.ts\n */\nconst globalObject = typeof global !== \"undefined\" ? global : typeof window !== \"undefined\" ? window : undefined;\nif (typeof globalObject !== \"undefined\") {\n for (const key in Loaders) {\n (<any>globalObject).BABYLON[key] = (<any>Loaders)[key];\n }\n}\nexport * from \"../STL/index\";\n"]}
|
package/legacy/legacy.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
2
|
-
export * from "./legacy-glTF";
|
3
|
-
export * from "./legacy-glTF1";
|
4
|
-
export * from "./legacy-glTF2";
|
5
|
-
export * from "./legacy-objFileLoader";
|
6
|
-
export * from "./legacy-stlFileLoader";
|
1
|
+
export * from "../index";
|
2
|
+
export * from "./legacy-glTF";
|
3
|
+
export * from "./legacy-glTF1";
|
4
|
+
export * from "./legacy-glTF2";
|
5
|
+
export * from "./legacy-objFileLoader";
|
6
|
+
export * from "./legacy-stlFileLoader";
|
package/legacy/legacy.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
-
import
|
2
|
-
|
3
|
-
export * from "
|
4
|
-
export * from "./legacy-
|
5
|
-
export * from "./legacy-
|
6
|
-
export * from "./legacy-
|
1
|
+
/* eslint-disable import/export */
|
2
|
+
/* eslint-disable import/no-internal-modules */
|
3
|
+
export * from "../index";
|
4
|
+
export * from "./legacy-glTF";
|
5
|
+
export * from "./legacy-glTF1";
|
6
|
+
export * from "./legacy-glTF2";
|
7
|
+
export * from "./legacy-objFileLoader";
|
8
|
+
export * from "./legacy-stlFileLoader";
|
7
9
|
//# sourceMappingURL=legacy.js.map
|
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,+CAA+C;AAC/C,cAAc,UAAU,CAAC;AACzB,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 */\n/* eslint-disable import/no-internal-modules */\nexport * from \"../index\";\nexport * from \"./legacy-glTF\";\nexport * from \"./legacy-glTF1\";\nexport * from \"./legacy-glTF2\";\nexport * from \"./legacy-objFileLoader\";\nexport * from \"./legacy-stlFileLoader\";\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.1",
|
8
|
-
"repository": {
|
9
|
-
"type": "git",
|
10
|
-
"url": "https://github.com/BabylonJS/Babylon.js.git"
|
11
|
-
},
|
3
|
+
"version": "5.0.0-rc.10",
|
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.10",
|
22
|
+
"babylonjs-gltf2interface": "^5.0.0-rc.10",
|
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).
|