babylonjs-addons 8.56.2 → 9.1.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.
@@ -882,7 +882,7 @@ import { Mesh } from "babylonjs/Meshes/mesh";
882
882
  import { INavMeshParametersV2 } from "babylonjs-addons/navigation/types";
883
883
  /**
884
884
  * Builds a any and any from meshes using provided parameters.
885
- * @param meshes The array of meshes used to create the any
885
+ * @param meshes The array of meshes used to create the any.
886
886
  * @param parameters The parameters used to configure the any generation.
887
887
  * @param workerOptions Options for the worker, including a completion callback and the worker instance.
888
888
  * @throws Error if the any data is invalid or cannot be deserialized.
@@ -890,8 +890,8 @@ import { INavMeshParametersV2 } from "babylonjs-addons/navigation/types";
890
890
  export function GenerateNavMeshWithWorker(meshes: Array<Mesh>, parameters: INavMeshParametersV2, workerOptions: {
891
891
  /**
892
892
  * Completion callback that is called when the any generation is complete.
893
- * @param navMesh The generated any
894
- * @param navMeshQuery The any associated with the generated any
893
+ * @param navMesh The generated any.
894
+ * @param navMeshQuery The any associated with the generated any.
895
895
  * @param tileCache Optional any if tile cache generation was used.
896
896
  */
897
897
  completion: (navMesh: any, navMeshQuery: any, tileCache?: any) => void;
@@ -1103,8 +1103,8 @@ export class NavigationDebugger {
1103
1103
  * * You can modify this property to include or exclude specific primitive types based on your debugging needs.
1104
1104
  * @returns An array of primitive types that the debug drawer will render.
1105
1105
  */
1106
- get primitiveTypes(): any;
1107
- set primitiveTypes(value: any);
1106
+ get primitiveTypes(): any[];
1107
+ set primitiveTypes(value: any[]);
1108
1108
  private _lineMaterialOptions;
1109
1109
  private _pointMesh;
1110
1110
  private _debugDrawerUtils;
@@ -1113,7 +1113,7 @@ export class NavigationDebugger {
1113
1113
  parent?: {
1114
1114
  node?: TransformNode | string;
1115
1115
  };
1116
- primitiveTypes?: any;
1116
+ primitiveTypes?: any[];
1117
1117
  materials?: {
1118
1118
  triMaterial?: StandardMaterial;
1119
1119
  pointMaterial?: StandardMaterial;
@@ -1139,7 +1139,7 @@ export class NavigationDebugger {
1139
1139
  * @param primitives An array of debug drawer primitives to be drawn.
1140
1140
  * @param options Optional parameters to control the drawing behavior, such as whether to join meshes.
1141
1141
  */
1142
- drawPrimitives(primitives: any, options?: {
1142
+ drawPrimitives(primitives: any[], options?: {
1143
1143
  joinMeshes?: boolean;
1144
1144
  }): void;
1145
1145
  /**
@@ -1254,11 +1254,11 @@ export class NavigationDebugger {
1254
1254
  * @returns An object containing lists of heightfields, compact heightfields, contour sets
1255
1255
  */
1256
1256
  getIntermediates: (intermediates: GeneratorIntermediates) => {
1257
- heightfieldList: any;
1258
- compactHeightfieldList: any;
1259
- contourSetList: any;
1260
- polyMeshList: any;
1261
- polyMeshDetailList: any;
1257
+ heightfieldList: any[];
1258
+ compactHeightfieldList: any[];
1259
+ contourSetList: any[];
1260
+ polyMeshList: any[];
1261
+ polyMeshDetailList: any[];
1262
1262
  };
1263
1263
  /**
1264
1264
  * Draw debug information based on the selected option
@@ -1310,7 +1310,7 @@ declare module "babylonjs-addons/navigation/common/tile-cache" {
1310
1310
  * @param flags the flags to be set for each poly
1311
1311
  * @returns the tile cache mesh process function
1312
1312
  */
1313
- export function CreateDefaultTileCacheMeshProcess(offMeshConnections?: any, area?: number, flags?: number): any;
1313
+ export function CreateDefaultTileCacheMeshProcess(offMeshConnections?: any[], area?: number, flags?: number): any;
1314
1314
  /**
1315
1315
  * Waits until the tile cache is fully updated
1316
1316
  * @param navMesh The any
@@ -1679,7 +1679,7 @@ export const msdfPixelShader: {
1679
1679
  }
1680
1680
  declare module "babylonjs-addons/msdfText/sdf/paragraph" {
1681
1681
  import { FontAsset } from "babylonjs-addons/msdfText/fontAsset";
1682
- import { type ParagraphOptions } from "babylonjs-addons/msdfText/paragraphOptions";
1682
+ import { ParagraphOptions } from "babylonjs-addons/msdfText/paragraphOptions";
1683
1683
  import { SdfGlyph } from "babylonjs-addons/msdfText/sdf/glyph";
1684
1684
  import { SdfTextLine } from "babylonjs-addons/msdfText/sdf/line";
1685
1685
  /** @internal */
@@ -3596,7 +3596,7 @@ declare module "babylonjs-addons" {
3596
3596
  }
3597
3597
 
3598
3598
 
3599
- declare module ADDONS {
3599
+ declare namespace ADDONS {
3600
3600
 
3601
3601
 
3602
3602
  /**
@@ -4430,7 +4430,7 @@ declare module ADDONS {
4430
4430
  */
4431
4431
  /**
4432
4432
  * Builds a any and any from meshes using provided parameters.
4433
- * @param meshes The array of meshes used to create the any
4433
+ * @param meshes The array of meshes used to create the any.
4434
4434
  * @param parameters The parameters used to configure the any generation.
4435
4435
  * @param workerOptions Options for the worker, including a completion callback and the worker instance.
4436
4436
  * @throws Error if the any data is invalid or cannot be deserialized.
@@ -4438,8 +4438,8 @@ declare module ADDONS {
4438
4438
  export function GenerateNavMeshWithWorker(meshes: Array<BABYLON.Mesh>, parameters: INavMeshParametersV2, workerOptions: {
4439
4439
  /**
4440
4440
  * Completion callback that is called when the any generation is complete.
4441
- * @param navMesh The generated any
4442
- * @param navMeshQuery The any associated with the generated any
4441
+ * @param navMesh The generated any.
4442
+ * @param navMeshQuery The any associated with the generated any.
4443
4443
  * @param tileCache Optional any if tile cache generation was used.
4444
4444
  */
4445
4445
  completion: (navMesh: any, navMeshQuery: any, tileCache?: any) => void;
@@ -4621,8 +4621,8 @@ declare module ADDONS {
4621
4621
  * * You can modify this property to include or exclude specific primitive types based on your debugging needs.
4622
4622
  * @returns An array of primitive types that the debug drawer will render.
4623
4623
  */
4624
- get primitiveTypes(): any;
4625
- set primitiveTypes(value: any);
4624
+ get primitiveTypes(): any[];
4625
+ set primitiveTypes(value: any[]);
4626
4626
  private _lineMaterialOptions;
4627
4627
  private _pointMesh;
4628
4628
  private _debugDrawerUtils;
@@ -4631,7 +4631,7 @@ declare module ADDONS {
4631
4631
  parent?: {
4632
4632
  node?: BABYLON.TransformNode | string;
4633
4633
  };
4634
- primitiveTypes?: any;
4634
+ primitiveTypes?: any[];
4635
4635
  materials?: {
4636
4636
  triMaterial?: BABYLON.StandardMaterial;
4637
4637
  pointMaterial?: BABYLON.StandardMaterial;
@@ -4657,7 +4657,7 @@ declare module ADDONS {
4657
4657
  * @param primitives An array of debug drawer primitives to be drawn.
4658
4658
  * @param options Optional parameters to control the drawing behavior, such as whether to join meshes.
4659
4659
  */
4660
- drawPrimitives(primitives: any, options?: {
4660
+ drawPrimitives(primitives: any[], options?: {
4661
4661
  joinMeshes?: boolean;
4662
4662
  }): void;
4663
4663
  /**
@@ -4772,11 +4772,11 @@ declare module ADDONS {
4772
4772
  * @returns An object containing lists of heightfields, compact heightfields, contour sets
4773
4773
  */
4774
4774
  getIntermediates: (intermediates: GeneratorIntermediates) => {
4775
- heightfieldList: any;
4776
- compactHeightfieldList: any;
4777
- contourSetList: any;
4778
- polyMeshList: any;
4779
- polyMeshDetailList: any;
4775
+ heightfieldList: any[];
4776
+ compactHeightfieldList: any[];
4777
+ contourSetList: any[];
4778
+ polyMeshList: any[];
4779
+ polyMeshDetailList: any[];
4780
4780
  };
4781
4781
  /**
4782
4782
  * Draw debug information based on the selected option
@@ -4823,7 +4823,7 @@ declare module ADDONS {
4823
4823
  * @param flags the flags to be set for each poly
4824
4824
  * @returns the tile cache mesh process function
4825
4825
  */
4826
- export function CreateDefaultTileCacheMeshProcess(offMeshConnections?: any, area?: number, flags?: number): any;
4826
+ export function CreateDefaultTileCacheMeshProcess(offMeshConnections?: any[], area?: number, flags?: number): any;
4827
4827
  /**
4828
4828
  * Waits until the tile cache is fully updated
4829
4829
  * @param navMesh The any
@@ -5411,7 +5411,7 @@ declare module ADDONS {
5411
5411
  interface Window {
5412
5412
  "pointer-events-capture-debug": boolean | null;
5413
5413
  }
5414
- declare module ADDONS {
5414
+ declare namespace ADDONS {
5415
5415
 
5416
5416
 
5417
5417
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-addons",
3
- "version": "8.56.2",
3
+ "version": "9.1.0",
4
4
  "main": "babylonjs.addons.min.js",
5
5
  "types": "babylonjs.addons.module.d.ts",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "test:escheck": "es-check es6 ./babylonjs.addons.js"
16
16
  },
17
17
  "dependencies": {
18
- "babylonjs": "8.56.2"
18
+ "babylonjs": "9.1.0"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/addons": "1.0.0",
package/readme.md CHANGED
@@ -1 +1,13 @@
1
1
  # Babylon.js Addons Library
2
+
3
+ > We recommend using the [ES6 package `@babylonjs/addons`](https://www.npmjs.com/package/@babylonjs/addons) for new projects.
4
+
5
+ A collection of addons and extensions for Babylon.js.
6
+
7
+ ## Installation
8
+
9
+ To install using npm:
10
+
11
+ ```bash
12
+ npm install babylonjs babylonjs-addons
13
+ ```
@@ -4,12 +4,13 @@
4
4
  "compilerOptions": {
5
5
  "outDir": "./dist",
6
6
  "target": "ES5",
7
+ "ignoreDeprecations": "6.0",
7
8
  "rootDir": "../../../",
8
9
  "declaration": false,
9
10
  "importHelpers": true,
10
11
  "paths": {
11
- "core/*": ["dev/core/dist/*"],
12
- "addons/*": ["dev/addons/src/*"]
12
+ "core/*": ["../../../dev/core/dist/*"],
13
+ "addons/*": ["../../../dev/addons/src/*"]
13
14
  }
14
15
  },
15
16
  "include": ["./src/**/*", "../../../dev/addons/src/**/*"]
package/tsconfig.json CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  "compilerOptions": {
5
5
  "paths": {
6
- "addons/*": ["dev/addons/src/*"]
6
+ "addons/*": ["../../../dev/addons/src/*"]
7
7
  }
8
8
  }
9
9
  }
package/webpack.config.js CHANGED
@@ -1,20 +1,20 @@
1
- const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
2
- const path = require("path");
3
- module.exports = (env) => {
4
- const commonConfig = commonConfigGenerator({
5
- mode: env.production ? "production" : "development",
6
- devPackageName: "addons",
7
- outputPath: path.resolve(__dirname),
8
- entryPoints: {
9
- addons: "./src/index.ts",
10
- },
11
- alias: {
12
- addons: path.resolve(__dirname, "../../../dev/addons/src"),
13
- },
14
- overrideFilename: () => {
15
- return `babylonjs.[name]${env.production ? ".min" : ""}.js`;
16
- },
17
- minToMax: true,
18
- });
19
- return commonConfig;
20
- };
1
+ const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
2
+ const path = require("path");
3
+ module.exports = (env) => {
4
+ const commonConfig = commonConfigGenerator({
5
+ mode: env.production ? "production" : "development",
6
+ devPackageName: "addons",
7
+ outputPath: path.resolve(__dirname),
8
+ entryPoints: {
9
+ addons: "./src/index.ts",
10
+ },
11
+ alias: {
12
+ addons: path.resolve(__dirname, "../../../dev/addons/src"),
13
+ },
14
+ overrideFilename: () => {
15
+ return `babylonjs.[name]${env.production ? ".min" : ""}.js`;
16
+ },
17
+ minToMax: true,
18
+ });
19
+ return commonConfig;
20
+ };