babylonjs-addons 8.29.2 → 8.30.1

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.
@@ -966,12 +966,17 @@ export function CreateNavigationPluginWorkerAsync(): Promise<RecastNavigationJSP
966
966
  }
967
967
  declare module "babylonjs-addons/navigation/factory/factory.single-thread" {
968
968
  import { RecastNavigationJSPluginV2 } from "babylonjs-addons/navigation/plugin/RecastNavigationJSPlugin";
969
+ import { RecastInjection } from "babylonjs-addons/navigation/types";
969
970
  /**
970
971
  * Creates a navigation plugin for the given scene.
971
972
  * @returns A promise that resolves to the created navigation plugin.
973
+ * @param options Optional configuration. options.version: The version of Recast to use. options.instance: A custom Recast instance to inject instead of loading one.
972
974
  * @remarks This function initializes the Recast module and sets up the navigation plugin.
973
975
  */
974
- export function CreateNavigationPluginAsync(): Promise<RecastNavigationJSPluginV2>;
976
+ export function CreateNavigationPluginAsync(options?: {
977
+ version?: string;
978
+ instance?: RecastInjection;
979
+ }): Promise<RecastNavigationJSPluginV2>;
975
980
 
976
981
  }
977
982
  declare module "babylonjs-addons/navigation/factory/common" {
@@ -988,12 +993,14 @@ export function GetRecast(): RecastInjection;
988
993
  */
989
994
  export function SetRecast(recast: RecastInjection): void;
990
995
  /**
991
- * Initialize the Manifold library
992
- * @param version defines the version of the library to use, default is "0.43.0"
993
- * @param options defines the options to use to initialize the library
996
+ * Initializes the Recast navigation library.
997
+ *
998
+ * @param options Optional configuration. options.version: The version of Recast to use. options.instance: A custom Recast instance to inject instead of loading one.
999
+ * @returns A promise that resolves when initialization is complete.
994
1000
  */
995
- export function InitRecast(version?: string, options?: {
996
- instance: RecastInjection;
1001
+ export function InitRecast(options?: {
1002
+ version?: string;
1003
+ instance?: RecastInjection;
997
1004
  }): Promise<void>;
998
1005
 
999
1006
  }
@@ -4341,9 +4348,13 @@ declare module ADDONS {
4341
4348
  /**
4342
4349
  * Creates a navigation plugin for the given scene.
4343
4350
  * @returns A promise that resolves to the created navigation plugin.
4351
+ * @param options Optional configuration. options.version: The version of Recast to use. options.instance: A custom Recast instance to inject instead of loading one.
4344
4352
  * @remarks This function initializes the Recast module and sets up the navigation plugin.
4345
4353
  */
4346
- export function CreateNavigationPluginAsync(): Promise<RecastNavigationJSPluginV2>;
4354
+ export function CreateNavigationPluginAsync(options?: {
4355
+ version?: string;
4356
+ instance?: RecastInjection;
4357
+ }): Promise<RecastNavigationJSPluginV2>;
4347
4358
 
4348
4359
 
4349
4360
  /**
@@ -4358,12 +4369,14 @@ declare module ADDONS {
4358
4369
  */
4359
4370
  export function SetRecast(recast: RecastInjection): void;
4360
4371
  /**
4361
- * Initialize the Manifold library
4362
- * @param version defines the version of the library to use, default is "0.43.0"
4363
- * @param options defines the options to use to initialize the library
4372
+ * Initializes the Recast navigation library.
4373
+ *
4374
+ * @param options Optional configuration. options.version: The version of Recast to use. options.instance: A custom Recast instance to inject instead of loading one.
4375
+ * @returns A promise that resolves when initialization is complete.
4364
4376
  */
4365
- export function InitRecast(version?: string, options?: {
4366
- instance: RecastInjection;
4377
+ export function InitRecast(options?: {
4378
+ version?: string;
4379
+ instance?: RecastInjection;
4367
4380
  }): Promise<void>;
4368
4381
 
4369
4382
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-addons",
3
- "version": "8.29.2",
3
+ "version": "8.30.1",
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.29.2"
18
+ "babylonjs": "^8.30.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@dev/build-tools": "1.0.0",