babylonjs-loaders 8.22.2 → 8.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,6 @@
1
1
 
2
2
  declare module "babylonjs-loaders/index" {
3
+ export * from "babylonjs-loaders/BVH/index";
3
4
  export * from "babylonjs-loaders/glTF/index";
4
5
  export * from "babylonjs-loaders/OBJ/index";
5
6
  export * from "babylonjs-loaders/STL/index";
@@ -5445,6 +5446,7 @@ export * from "babylonjs-loaders/OBJ/objFileLoader";
5445
5446
  }
5446
5447
  declare module "babylonjs-loaders/BVH/index" {
5447
5448
  export * from "babylonjs-loaders/BVH/bvhLoader";
5449
+ export * from "babylonjs-loaders/BVH/bvhFileLoader";
5448
5450
 
5449
5451
  }
5450
5452
  declare module "babylonjs-loaders/BVH/bvhLoadingOptions" {
@@ -5528,9 +5530,12 @@ export class BVHFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlugi
5528
5530
  createPlugin(options: SceneLoaderPluginOptions): ISceneLoaderPluginAsync;
5529
5531
  /**
5530
5532
  * If the data string can be loaded directly.
5533
+ * @param data - direct load data
5531
5534
  * @returns if the data can be loaded directly
5532
5535
  */
5533
- canDirectLoad(): boolean;
5536
+ canDirectLoad(data: string): boolean;
5537
+ isBvhHeader(text: string): boolean;
5538
+ isNotBvhHeader(text: string): boolean;
5534
5539
  /**
5535
5540
  * Imports from the loaded gaussian splatting data and adds them to the scene
5536
5541
  * @param _meshesNames a string or array of strings of the mesh names that should be loaded from the file
@@ -5558,6 +5563,7 @@ export class BVHFileLoader implements ISceneLoaderPluginAsync, ISceneLoaderPlugi
5558
5563
  }
5559
5564
  declare module "babylonjs-loaders/legacy/legacy" {
5560
5565
  export * from "babylonjs-loaders/index";
5566
+ export * from "babylonjs-loaders/legacy/legacy-bvhFileLoader";
5561
5567
  export * from "babylonjs-loaders/legacy/legacy-glTF";
5562
5568
  export * from "babylonjs-loaders/legacy/legacy-glTF1";
5563
5569
  export * from "babylonjs-loaders/legacy/legacy-glTF2";
@@ -5603,6 +5609,10 @@ declare module "babylonjs-loaders/legacy/legacy-glTF" {
5603
5609
  export * from "babylonjs-loaders/glTF/glTFFileLoader";
5604
5610
  export * from "babylonjs-loaders/glTF/glTFValidation";
5605
5611
 
5612
+ }
5613
+ declare module "babylonjs-loaders/legacy/legacy-bvhFileLoader" {
5614
+ export * from "babylonjs-loaders/BVH/index";
5615
+
5606
5616
  }
5607
5617
 
5608
5618
  declare module "babylonjs-loaders" {
@@ -10902,9 +10912,12 @@ declare module BABYLON {
10902
10912
  createPlugin(options: SceneLoaderPluginOptions): ISceneLoaderPluginAsync;
10903
10913
  /**
10904
10914
  * If the data string can be loaded directly.
10915
+ * @param data - direct load data
10905
10916
  * @returns if the data can be loaded directly
10906
10917
  */
10907
- canDirectLoad(): boolean;
10918
+ canDirectLoad(data: string): boolean;
10919
+ isBvhHeader(text: string): boolean;
10920
+ isNotBvhHeader(text: string): boolean;
10908
10921
  /**
10909
10922
  * Imports from the loaded gaussian splatting data and adds them to the scene
10910
10923
  * @param _meshesNames a string or array of strings of the mesh names that should be loaded from the file
@@ -10946,6 +10959,8 @@ declare module BABYLON {
10946
10959
 
10947
10960
 
10948
10961
 
10962
+
10963
+
10949
10964
 
10950
10965
  }
10951
10966
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-loaders",
3
- "version": "8.22.2",
3
+ "version": "8.23.0",
4
4
  "main": "babylonjs.loaders.min.js",
5
5
  "types": "babylonjs.loaders.module.d.ts",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.loaders.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "^8.22.2",
19
- "babylonjs-gltf2interface": "^8.22.2"
18
+ "babylonjs": "^8.23.0",
19
+ "babylonjs-gltf2interface": "^8.23.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@dev/build-tools": "1.0.0",
@@ -0,0 +1,3 @@
1
+ import * as loaders from "@lts/loaders/legacy/legacy-bvhFileLoader";
2
+ export { loaders };
3
+ export default loaders;
package/webpack.config.js CHANGED
@@ -7,6 +7,7 @@ module.exports = (env) => {
7
7
  outputPath: path.resolve(__dirname),
8
8
  entryPoints: {
9
9
  loaders: "./src/index.ts",
10
+ bvhFileLoader: "./src/bvhFileLoader.ts",
10
11
  glTF1FileLoader: "./src/glTF1FileLoader.ts",
11
12
  glTF2FileLoader: "./src/glTF2FileLoader.ts",
12
13
  glTFFileLoader: "./src/glTFFileLoader.ts",