@babylonjs/loaders 5.0.0-beta.9 → 5.0.0-rc.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. package/OBJ/index.d.ts +4 -4
  2. package/OBJ/index.js +4 -4
  3. package/OBJ/index.js.map +1 -1
  4. package/OBJ/mtlFileLoader.d.ts +41 -40
  5. package/OBJ/mtlFileLoader.js +232 -221
  6. package/OBJ/mtlFileLoader.js.map +1 -1
  7. package/OBJ/objFileLoader.d.ts +126 -133
  8. package/OBJ/objFileLoader.js +296 -300
  9. package/OBJ/objFileLoader.js.map +1 -1
  10. package/OBJ/objLoadingOptions.d.ts +43 -43
  11. package/OBJ/objLoadingOptions.js +1 -1
  12. package/OBJ/objLoadingOptions.js.map +1 -1
  13. package/OBJ/solidParser.d.ts +154 -153
  14. package/OBJ/solidParser.js +693 -699
  15. package/OBJ/solidParser.js.map +1 -1
  16. package/STL/index.d.ts +1 -1
  17. package/STL/index.js +1 -1
  18. package/STL/index.js.map +1 -1
  19. package/STL/stlFileLoader.d.ts +64 -71
  20. package/STL/stlFileLoader.js +233 -239
  21. package/STL/stlFileLoader.js.map +1 -1
  22. package/glTF/1.0/glTFBinaryExtension.d.ts +13 -13
  23. package/glTF/1.0/glTFBinaryExtension.js +60 -61
  24. package/glTF/1.0/glTFBinaryExtension.js.map +1 -1
  25. package/glTF/1.0/glTFLoader.d.ts +136 -106
  26. package/glTF/1.0/glTFLoader.js +1814 -1696
  27. package/glTF/1.0/glTFLoader.js.map +1 -1
  28. package/glTF/1.0/glTFLoaderInterfaces.d.ts +412 -412
  29. package/glTF/1.0/glTFLoaderInterfaces.js +95 -95
  30. package/glTF/1.0/glTFLoaderInterfaces.js.map +1 -1
  31. package/glTF/1.0/glTFLoaderUtils.d.ts +63 -62
  32. package/glTF/1.0/glTFLoaderUtils.js +250 -232
  33. package/glTF/1.0/glTFLoaderUtils.js.map +1 -1
  34. package/glTF/1.0/glTFMaterialsCommonExtension.d.ts +10 -10
  35. package/glTF/1.0/glTFMaterialsCommonExtension.js +129 -127
  36. package/glTF/1.0/glTFMaterialsCommonExtension.js.map +1 -1
  37. package/glTF/1.0/index.d.ts +5 -5
  38. package/glTF/1.0/index.js +5 -5
  39. package/glTF/1.0/index.js.map +1 -1
  40. package/glTF/2.0/Extensions/EXT_lights_image_based.d.ts +43 -36
  41. package/glTF/2.0/Extensions/EXT_lights_image_based.js +117 -110
  42. package/glTF/2.0/Extensions/EXT_lights_image_based.js.map +1 -1
  43. package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.d.ts +36 -27
  44. package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +88 -79
  45. package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js.map +1 -1
  46. package/glTF/2.0/Extensions/EXT_meshopt_compression.d.ts +34 -27
  47. package/glTF/2.0/Extensions/EXT_meshopt_compression.js +49 -42
  48. package/glTF/2.0/Extensions/EXT_meshopt_compression.js.map +1 -1
  49. package/glTF/2.0/Extensions/EXT_texture_webp.d.ts +29 -21
  50. package/glTF/2.0/Extensions/EXT_texture_webp.js +40 -32
  51. package/glTF/2.0/Extensions/EXT_texture_webp.js.map +1 -1
  52. package/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +50 -32
  53. package/glTF/2.0/Extensions/ExtrasAsMetadata.js +73 -55
  54. package/glTF/2.0/Extensions/ExtrasAsMetadata.js.map +1 -1
  55. package/glTF/2.0/Extensions/KHR_draco_mesh_compression.d.ts +39 -31
  56. package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +112 -101
  57. package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js.map +1 -1
  58. package/glTF/2.0/Extensions/KHR_lights_punctual.d.ts +36 -28
  59. package/glTF/2.0/Extensions/KHR_lights_punctual.js +89 -81
  60. package/glTF/2.0/Extensions/KHR_lights_punctual.js.map +1 -1
  61. package/glTF/2.0/Extensions/KHR_materials_clearcoat.d.ts +39 -31
  62. package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +94 -86
  63. package/glTF/2.0/Extensions/KHR_materials_clearcoat.js.map +1 -1
  64. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.d.ts +38 -30
  65. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +53 -45
  66. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js.map +1 -1
  67. package/glTF/2.0/Extensions/KHR_materials_ior.d.ts +42 -34
  68. package/glTF/2.0/Extensions/KHR_materials_ior.js +62 -54
  69. package/glTF/2.0/Extensions/KHR_materials_ior.js.map +1 -1
  70. package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.d.ts +38 -30
  71. package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +80 -72
  72. package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js.map +1 -1
  73. package/glTF/2.0/Extensions/KHR_materials_sheen.d.ts +39 -31
  74. package/glTF/2.0/Extensions/KHR_materials_sheen.js +84 -76
  75. package/glTF/2.0/Extensions/KHR_materials_sheen.js.map +1 -1
  76. package/glTF/2.0/Extensions/KHR_materials_specular.d.ts +38 -30
  77. package/glTF/2.0/Extensions/KHR_materials_specular.js +74 -66
  78. package/glTF/2.0/Extensions/KHR_materials_specular.js.map +1 -1
  79. package/glTF/2.0/Extensions/KHR_materials_translucency.d.ts +39 -31
  80. package/glTF/2.0/Extensions/KHR_materials_translucency.js +83 -76
  81. package/glTF/2.0/Extensions/KHR_materials_translucency.js.map +1 -1
  82. package/glTF/2.0/Extensions/KHR_materials_transmission.d.ts +38 -30
  83. package/glTF/2.0/Extensions/KHR_materials_transmission.js +288 -277
  84. package/glTF/2.0/Extensions/KHR_materials_transmission.js.map +1 -1
  85. package/glTF/2.0/Extensions/KHR_materials_unlit.d.ts +38 -30
  86. package/glTF/2.0/Extensions/KHR_materials_unlit.js +73 -65
  87. package/glTF/2.0/Extensions/KHR_materials_unlit.js.map +1 -1
  88. package/glTF/2.0/Extensions/KHR_materials_variants.d.ts +87 -76
  89. package/glTF/2.0/Extensions/KHR_materials_variants.js +254 -243
  90. package/glTF/2.0/Extensions/KHR_materials_variants.js.map +1 -1
  91. package/glTF/2.0/Extensions/KHR_materials_volume.d.ts +39 -31
  92. package/glTF/2.0/Extensions/KHR_materials_volume.js +85 -78
  93. package/glTF/2.0/Extensions/KHR_materials_volume.js.map +1 -1
  94. package/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +22 -19
  95. package/glTF/2.0/Extensions/KHR_mesh_quantization.js +23 -21
  96. package/glTF/2.0/Extensions/KHR_mesh_quantization.js.map +1 -1
  97. package/glTF/2.0/Extensions/KHR_texture_basisu.d.ts +29 -21
  98. package/glTF/2.0/Extensions/KHR_texture_basisu.js +40 -32
  99. package/glTF/2.0/Extensions/KHR_texture_basisu.js.map +1 -1
  100. package/glTF/2.0/Extensions/KHR_texture_transform.d.ts +33 -25
  101. package/glTF/2.0/Extensions/KHR_texture_transform.js +61 -53
  102. package/glTF/2.0/Extensions/KHR_texture_transform.js.map +1 -1
  103. package/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +32 -29
  104. package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +49 -46
  105. package/glTF/2.0/Extensions/KHR_xmp_json_ld.js.map +1 -1
  106. package/glTF/2.0/Extensions/MSFT_audio_emitter.d.ts +54 -38
  107. package/glTF/2.0/Extensions/MSFT_audio_emitter.js +240 -216
  108. package/glTF/2.0/Extensions/MSFT_audio_emitter.js.map +1 -1
  109. package/glTF/2.0/Extensions/MSFT_lod.d.ts +109 -75
  110. package/glTF/2.0/Extensions/MSFT_lod.js +369 -333
  111. package/glTF/2.0/Extensions/MSFT_lod.js.map +1 -1
  112. package/glTF/2.0/Extensions/MSFT_minecraftMesh.d.ts +14 -14
  113. package/glTF/2.0/Extensions/MSFT_minecraftMesh.js +36 -36
  114. package/glTF/2.0/Extensions/MSFT_minecraftMesh.js.map +1 -1
  115. package/glTF/2.0/Extensions/MSFT_sRGBFactors.d.ts +14 -14
  116. package/glTF/2.0/Extensions/MSFT_sRGBFactors.js +36 -36
  117. package/glTF/2.0/Extensions/MSFT_sRGBFactors.js.map +1 -1
  118. package/glTF/2.0/Extensions/index.d.ts +26 -26
  119. package/glTF/2.0/Extensions/index.js +26 -26
  120. package/glTF/2.0/Extensions/index.js.map +1 -1
  121. package/glTF/2.0/glTFLoader.d.ts +406 -357
  122. package/glTF/2.0/glTFLoader.js +2366 -2249
  123. package/glTF/2.0/glTFLoader.js.map +1 -1
  124. package/glTF/2.0/glTFLoaderExtension.d.ts +152 -152
  125. package/glTF/2.0/glTFLoaderExtension.js +1 -1
  126. package/glTF/2.0/glTFLoaderExtension.js.map +1 -1
  127. package/glTF/2.0/glTFLoaderInterfaces.d.ts +211 -209
  128. package/glTF/2.0/glTFLoaderInterfaces.js +1 -1
  129. package/glTF/2.0/glTFLoaderInterfaces.js.map +1 -1
  130. package/glTF/2.0/index.d.ts +4 -4
  131. package/glTF/2.0/index.js +5 -4
  132. package/glTF/2.0/index.js.map +1 -1
  133. package/glTF/glTFFileLoader.d.ts +433 -368
  134. package/glTF/glTFFileLoader.js +927 -869
  135. package/glTF/glTFFileLoader.js.map +1 -1
  136. package/glTF/glTFValidation.d.ts +29 -29
  137. package/glTF/glTFValidation.js +123 -121
  138. package/glTF/glTFValidation.js.map +1 -1
  139. package/glTF/index.d.ts +5 -5
  140. package/glTF/index.js +6 -5
  141. package/glTF/index.js.map +1 -1
  142. package/index.d.ts +3 -3
  143. package/index.js +4 -3
  144. package/index.js.map +1 -1
  145. package/legacy/legacy-glTF.d.ts +2 -2
  146. package/legacy/legacy-glTF.js +18 -18
  147. package/legacy/legacy-glTF.js.map +1 -1
  148. package/legacy/legacy-glTF1.d.ts +2 -2
  149. package/legacy/legacy-glTF1.js +15 -14
  150. package/legacy/legacy-glTF1.js.map +1 -1
  151. package/legacy/legacy-glTF1FileLoader.d.ts +2 -2
  152. package/legacy/legacy-glTF1FileLoader.js +3 -2
  153. package/legacy/legacy-glTF1FileLoader.js.map +1 -1
  154. package/legacy/legacy-glTF2.d.ts +2 -2
  155. package/legacy/legacy-glTF2.js +33 -32
  156. package/legacy/legacy-glTF2.js.map +1 -1
  157. package/legacy/legacy-glTF2FileLoader.d.ts +2 -2
  158. package/legacy/legacy-glTF2FileLoader.js +3 -2
  159. package/legacy/legacy-glTF2FileLoader.js.map +1 -1
  160. package/legacy/legacy-glTFFileLoader.d.ts +3 -3
  161. package/legacy/legacy-glTFFileLoader.js +4 -3
  162. package/legacy/legacy-glTFFileLoader.js.map +1 -1
  163. package/legacy/legacy-objFileLoader.d.ts +1 -1
  164. package/legacy/legacy-objFileLoader.js +13 -12
  165. package/legacy/legacy-objFileLoader.js.map +1 -1
  166. package/legacy/legacy-stlFileLoader.d.ts +1 -1
  167. package/legacy/legacy-stlFileLoader.js +13 -12
  168. package/legacy/legacy-stlFileLoader.js.map +1 -1
  169. package/legacy/legacy.d.ts +6 -6
  170. package/legacy/legacy.js +8 -6
  171. package/legacy/legacy.js.map +1 -1
  172. package/package.json +23 -198
  173. package/readme.md +2 -2
@@ -1,4 +1,5 @@
1
- export * from "./legacy-glTF.js";
2
- export * from "./legacy-glTF1.js";
3
- export * from "./legacy-glTF2.js";
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":["../../../sourceES6/loaders/src/legacy/legacy-glTFFileLoader.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC","sourcesContent":["export * from \"./legacy-glTF\";\r\nexport * from \"./legacy-glTF1\";\r\nexport * from \"./legacy-glTF2\";"]}
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
- import * as Loaders from "../OBJ/index.js";
2
- /**
3
- * This is the entry point for the UMD module.
4
- * The entry point for a future ESM package should be index.ts
5
- */
6
- var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
7
- if (typeof globalObject !== "undefined") {
8
- for (var key in Loaders) {
9
- globalObject.BABYLON[key] = Loaders[key];
10
- }
11
- }
12
- export * from "../OBJ/index.js";
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":["../../../sourceES6/loaders/src/legacy/legacy-objFileLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC;;;GAGG;AACH,IAAI,YAAY,GAAG,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACrH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,IAAI,GAAG,IAAI,OAAO,EAAE;QACf,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,OAAQ,CAAC,GAAG,CAAC,CAAC;KAC1D;CACJ;AAED,cAAc,cAAc,CAAC","sourcesContent":["import * as Loaders from \"../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\nvar globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);\r\nif (typeof globalObject !== \"undefined\") {\r\n for (var key in Loaders) {\r\n (<any>globalObject).BABYLON[key] = (<any>Loaders)[key];\r\n }\r\n}\r\n\r\nexport * from \"../OBJ/index\";"]}
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
- import * as Loaders from "../STL/index.js";
2
- /**
3
- * This is the entry point for the UMD module.
4
- * The entry point for a future ESM package should be index.ts
5
- */
6
- var globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);
7
- if (typeof globalObject !== "undefined") {
8
- for (var key in Loaders) {
9
- globalObject.BABYLON[key] = Loaders[key];
10
- }
11
- }
12
- export * from "../STL/index.js";
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":["../../../sourceES6/loaders/src/legacy/legacy-stlFileLoader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC;;;GAGG;AACH,IAAI,YAAY,GAAG,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;AACrH,IAAI,OAAO,YAAY,KAAK,WAAW,EAAE;IACrC,KAAK,IAAI,GAAG,IAAI,OAAO,EAAE;QACf,YAAa,CAAC,OAAO,CAAC,GAAG,CAAC,GAAS,OAAQ,CAAC,GAAG,CAAC,CAAC;KAC1D;CACJ;AAED,cAAc,cAAc,CAAC","sourcesContent":["import * as Loaders from \"../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\nvar globalObject = (typeof global !== 'undefined') ? global : ((typeof window !== 'undefined') ? window : undefined);\r\nif (typeof globalObject !== \"undefined\") {\r\n for (var key in Loaders) {\r\n (<any>globalObject).BABYLON[key] = (<any>Loaders)[key];\r\n }\r\n}\r\n\r\nexport * from \"../STL/index\";"]}
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"]}
@@ -1,6 +1,6 @@
1
- import "../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";
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 "../index.js";
2
- export * from "./legacy-glTF.js";
3
- export * from "./legacy-glTF1.js";
4
- export * from "./legacy-glTF2.js";
5
- export * from "./legacy-objFileLoader.js";
6
- export * from "./legacy-stlFileLoader.js";
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
@@ -1 +1 @@
1
- {"version":3,"file":"legacy.js","sourceRoot":"","sources":["../../../sourceES6/loaders/src/legacy/legacy.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAC;AAClB,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC","sourcesContent":["import \"../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\";"]}
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
- "description": "The Babylon.js file loaders library is an extension you can use to load different 3D file types into a Babylon scene.",
7
- "version": "5.0.0-beta.9",
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
- "glTF/1.0/glTFBinaryExtension.d.ts",
15
- "glTF/1.0/glTFBinaryExtension.js",
16
- "glTF/1.0/glTFBinaryExtension.js.map",
17
- "glTF/1.0/glTFLoader.d.ts",
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
- "typings": "index.d.ts",
188
- "keywords": [
189
- "3D",
190
- "javascript",
191
- "html5",
192
- "webgl",
193
- "loaders"
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-gltf2interface": "5.0.0-beta.9",
198
- "@babylonjs/core": "5.0.0-beta.9",
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
- "engines": {
202
- "node": "*"
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
- "module": "index.js",
205
- "esnext": "index.js",
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 the your project using:
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 [our ES6 dedicated documentation](https://doc.babylonjs.com/features/es6_support).
24
+ For more information you can have a look at our [ES6 dedicated documentation](https://doc.babylonjs.com/features/es6_support).