@babylonjs/loaders 7.22.5 → 7.23.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. package/OBJ/objFileLoader.d.ts +4 -5
  2. package/OBJ/objFileLoader.js +3 -4
  3. package/OBJ/objFileLoader.js.map +1 -1
  4. package/OBJ/objFileLoader.metadata.d.ts +4 -0
  5. package/OBJ/objFileLoader.metadata.js +5 -0
  6. package/OBJ/objFileLoader.metadata.js.map +1 -0
  7. package/SPLAT/index.d.ts +1 -0
  8. package/SPLAT/index.js +1 -0
  9. package/SPLAT/index.js.map +1 -1
  10. package/SPLAT/splatFileLoader.d.ts +36 -29
  11. package/SPLAT/splatFileLoader.js +354 -52
  12. package/SPLAT/splatFileLoader.js.map +1 -1
  13. package/SPLAT/splatFileLoader.metadata.d.ts +11 -0
  14. package/SPLAT/splatFileLoader.metadata.js +10 -0
  15. package/SPLAT/splatFileLoader.metadata.js.map +1 -0
  16. package/SPLAT/splatLoadingOptions.d.ts +9 -0
  17. package/SPLAT/splatLoadingOptions.js +2 -0
  18. package/SPLAT/splatLoadingOptions.js.map +1 -0
  19. package/STL/stlFileLoader.d.ts +3 -4
  20. package/STL/stlFileLoader.js +3 -5
  21. package/STL/stlFileLoader.js.map +1 -1
  22. package/STL/stlFileLoader.metadata.d.ts +8 -0
  23. package/STL/stlFileLoader.metadata.js +8 -0
  24. package/STL/stlFileLoader.metadata.js.map +1 -0
  25. package/dynamic.d.ts +5 -0
  26. package/dynamic.js +48 -0
  27. package/dynamic.js.map +1 -0
  28. package/glTF/2.0/Extensions/EXT_lights_image_based.js +3 -1
  29. package/glTF/2.0/Extensions/EXT_lights_image_based.js.map +1 -1
  30. package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js +3 -1
  31. package/glTF/2.0/Extensions/EXT_mesh_gpu_instancing.js.map +1 -1
  32. package/glTF/2.0/Extensions/EXT_meshopt_compression.js +3 -1
  33. package/glTF/2.0/Extensions/EXT_meshopt_compression.js.map +1 -1
  34. package/glTF/2.0/Extensions/EXT_texture_avif.js +3 -1
  35. package/glTF/2.0/Extensions/EXT_texture_avif.js.map +1 -1
  36. package/glTF/2.0/Extensions/EXT_texture_webp.js +3 -1
  37. package/glTF/2.0/Extensions/EXT_texture_webp.js.map +1 -1
  38. package/glTF/2.0/Extensions/ExtrasAsMetadata.d.ts +1 -1
  39. package/glTF/2.0/Extensions/ExtrasAsMetadata.js +3 -2
  40. package/glTF/2.0/Extensions/ExtrasAsMetadata.js.map +1 -1
  41. package/glTF/2.0/Extensions/KHR_animation_pointer.d.ts +1 -1
  42. package/glTF/2.0/Extensions/KHR_animation_pointer.js +3 -2
  43. package/glTF/2.0/Extensions/KHR_animation_pointer.js.map +1 -1
  44. package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js +3 -1
  45. package/glTF/2.0/Extensions/KHR_draco_mesh_compression.js.map +1 -1
  46. package/glTF/2.0/Extensions/KHR_interactivity.d.ts +1 -1
  47. package/glTF/2.0/Extensions/KHR_interactivity.js +3 -2
  48. package/glTF/2.0/Extensions/KHR_interactivity.js.map +1 -1
  49. package/glTF/2.0/Extensions/KHR_lights_punctual.js +3 -1
  50. package/glTF/2.0/Extensions/KHR_lights_punctual.js.map +1 -1
  51. package/glTF/2.0/Extensions/KHR_materials_anisotropy.js +3 -1
  52. package/glTF/2.0/Extensions/KHR_materials_anisotropy.js.map +1 -1
  53. package/glTF/2.0/Extensions/KHR_materials_clearcoat.js +3 -1
  54. package/glTF/2.0/Extensions/KHR_materials_clearcoat.js.map +1 -1
  55. package/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.js +3 -1
  56. package/glTF/2.0/Extensions/KHR_materials_diffuse_transmission.js.map +1 -1
  57. package/glTF/2.0/Extensions/KHR_materials_dispersion.js +3 -1
  58. package/glTF/2.0/Extensions/KHR_materials_dispersion.js.map +1 -1
  59. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js +3 -1
  60. package/glTF/2.0/Extensions/KHR_materials_emissive_strength.js.map +1 -1
  61. package/glTF/2.0/Extensions/KHR_materials_ior.js +3 -1
  62. package/glTF/2.0/Extensions/KHR_materials_ior.js.map +1 -1
  63. package/glTF/2.0/Extensions/KHR_materials_iridescence.js +3 -1
  64. package/glTF/2.0/Extensions/KHR_materials_iridescence.js.map +1 -1
  65. package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js +3 -1
  66. package/glTF/2.0/Extensions/KHR_materials_pbrSpecularGlossiness.js.map +1 -1
  67. package/glTF/2.0/Extensions/KHR_materials_sheen.js +3 -1
  68. package/glTF/2.0/Extensions/KHR_materials_sheen.js.map +1 -1
  69. package/glTF/2.0/Extensions/KHR_materials_specular.js +3 -1
  70. package/glTF/2.0/Extensions/KHR_materials_specular.js.map +1 -1
  71. package/glTF/2.0/Extensions/KHR_materials_transmission.js +3 -1
  72. package/glTF/2.0/Extensions/KHR_materials_transmission.js.map +1 -1
  73. package/glTF/2.0/Extensions/KHR_materials_unlit.js +3 -1
  74. package/glTF/2.0/Extensions/KHR_materials_unlit.js.map +1 -1
  75. package/glTF/2.0/Extensions/KHR_materials_variants.js +3 -1
  76. package/glTF/2.0/Extensions/KHR_materials_variants.js.map +1 -1
  77. package/glTF/2.0/Extensions/KHR_materials_volume.js +4 -1
  78. package/glTF/2.0/Extensions/KHR_materials_volume.js.map +1 -1
  79. package/glTF/2.0/Extensions/KHR_mesh_quantization.d.ts +1 -1
  80. package/glTF/2.0/Extensions/KHR_mesh_quantization.js +3 -2
  81. package/glTF/2.0/Extensions/KHR_mesh_quantization.js.map +1 -1
  82. package/glTF/2.0/Extensions/KHR_texture_basisu.js +3 -1
  83. package/glTF/2.0/Extensions/KHR_texture_basisu.js.map +1 -1
  84. package/glTF/2.0/Extensions/KHR_texture_transform.js +3 -1
  85. package/glTF/2.0/Extensions/KHR_texture_transform.js.map +1 -1
  86. package/glTF/2.0/Extensions/KHR_xmp_json_ld.d.ts +1 -1
  87. package/glTF/2.0/Extensions/KHR_xmp_json_ld.js +3 -2
  88. package/glTF/2.0/Extensions/KHR_xmp_json_ld.js.map +1 -1
  89. package/glTF/2.0/Extensions/MSFT_audio_emitter.js +3 -1
  90. package/glTF/2.0/Extensions/MSFT_audio_emitter.js.map +1 -1
  91. package/glTF/2.0/Extensions/MSFT_lod.js +3 -1
  92. package/glTF/2.0/Extensions/MSFT_lod.js.map +1 -1
  93. package/glTF/2.0/Extensions/MSFT_minecraftMesh.js +3 -1
  94. package/glTF/2.0/Extensions/MSFT_minecraftMesh.js.map +1 -1
  95. package/glTF/2.0/Extensions/MSFT_sRGBFactors.js +3 -1
  96. package/glTF/2.0/Extensions/MSFT_sRGBFactors.js.map +1 -1
  97. package/glTF/2.0/Extensions/dynamic.d.ts +4 -0
  98. package/glTF/2.0/Extensions/dynamic.js +136 -0
  99. package/glTF/2.0/Extensions/dynamic.js.map +1 -0
  100. package/glTF/2.0/glTFLoader.d.ts +6 -6
  101. package/glTF/2.0/glTFLoader.js +24 -28
  102. package/glTF/2.0/glTFLoader.js.map +1 -1
  103. package/glTF/2.0/glTFLoaderExtensionRegistry.d.ts +25 -0
  104. package/glTF/2.0/glTFLoaderExtensionRegistry.js +30 -0
  105. package/glTF/2.0/glTFLoaderExtensionRegistry.js.map +1 -0
  106. package/glTF/glTFFileLoader.d.ts +4 -6
  107. package/glTF/glTFFileLoader.js +9 -17
  108. package/glTF/glTFFileLoader.js.map +1 -1
  109. package/glTF/glTFFileLoader.metadata.d.ts +13 -0
  110. package/glTF/glTFFileLoader.metadata.js +18 -0
  111. package/glTF/glTFFileLoader.metadata.js.map +1 -0
  112. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glTFFileLoader.metadata.js","sourceRoot":"","sources":["../../../../dev/loaders/src/glTF/glTFFileLoader.metadata.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,sBAAsB,GAAG,QAAQ,CAAC,CAAC,8CAA8C;AAE9F,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,IAAI,EAAE,MAAM;IAEZ,UAAU,EAAE;QACR,gEAAgE;QAChE,OAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE;QAC5B,gEAAgE;QAChE,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;KACmB;IAEjD,aAAa,CAAC,IAAY;QACtB,OAAO,CACH,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;YAChE,IAAI,CAAC,UAAU,CAAC,cAAc,GAAG,sBAAsB,CAAC,IAAI,8EAA8E;YAC1I,IAAI,CAAC,UAAU,CAAC,eAAe,GAAG,sBAAsB,CAAC;YACzD,IAAI,CAAC,UAAU,CAAC,uCAAuC,GAAG,sBAAsB,CAAC;YACjF,IAAI,CAAC,UAAU,CAAC,gCAAgC,GAAG,sBAAsB,CAAC,CAC7E,CAAC;IACN,CAAC;CAC0C,CAAC","sourcesContent":["// eslint-disable-next-line import/no-internal-modules\r\nimport type { ISceneLoaderPluginExtensions, ISceneLoaderPluginMetadata } from \"core/index\";\r\n\r\nexport const GLTFMagicBase64Encoded = \"Z2xURg\"; // \"glTF\" base64 encoded (without the quotes!)\r\n\r\nexport const GLTFFileLoaderMetadata = {\r\n name: \"gltf\",\r\n\r\n extensions: {\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n \".gltf\": { isBinary: false },\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n \".glb\": { isBinary: true },\r\n } as const satisfies ISceneLoaderPluginExtensions,\r\n\r\n canDirectLoad(data: string): boolean {\r\n return (\r\n (data.indexOf(\"asset\") !== -1 && data.indexOf(\"version\") !== -1) ||\r\n data.startsWith(\"data:base64,\" + GLTFMagicBase64Encoded) || // this is technically incorrect, but will continue to support for backcompat.\r\n data.startsWith(\"data:;base64,\" + GLTFMagicBase64Encoded) ||\r\n data.startsWith(\"data:application/octet-stream;base64,\" + GLTFMagicBase64Encoded) ||\r\n data.startsWith(\"data:model/gltf-binary;base64,\" + GLTFMagicBase64Encoded)\r\n );\r\n },\r\n} as const satisfies ISceneLoaderPluginMetadata;\r\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs/loaders",
3
- "version": "7.22.5",
3
+ "version": "7.23.1",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "types": "index.d.ts",
@@ -18,10 +18,10 @@
18
18
  "postcompile": "build-tools -c add-js-to-es6"
19
19
  },
20
20
  "devDependencies": {
21
- "@babylonjs/core": "^7.22.5",
21
+ "@babylonjs/core": "^7.23.1",
22
22
  "@dev/build-tools": "^1.0.0",
23
23
  "@lts/loaders": "^1.0.0",
24
- "babylonjs-gltf2interface": "^7.22.5"
24
+ "babylonjs-gltf2interface": "^7.23.1"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "@babylonjs/core": "^7.0.0",