@recast-navigation/playcanvas 0.40.0 → 0.42.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,5 @@
1
- import { DebugDrawerPrimitive, NavMesh, NavMeshQuery, RecastCompactHeightfield, RecastContourSet, RecastHeightfield, RecastHeightfieldLayer, RecastHeightfieldLayerSet, RecastPolyMesh, RecastPolyMeshDetail } from '@recast-navigation/core';
2
- import { AppBase, Entity, GraphicsDevice, StandardMaterial } from 'playcanvas';
1
+ import { type DebugDrawerPrimitive, type NavMesh, type NavMeshQuery, type RecastCompactHeightfield, type RecastContourSet, type RecastHeightfield, type RecastHeightfieldLayer, type RecastHeightfieldLayerSet, type RecastPolyMesh, type RecastPolyMeshDetail } from '@recast-navigation/core';
2
+ import { type AppBase, Entity, type GraphicsDevice, StandardMaterial } from 'playcanvas';
3
3
  /**
4
4
  * Parameters for creating DebugDrawer.
5
5
  */
@@ -1,5 +1,5 @@
1
- import { Crowd, CrowdAgent } from '@recast-navigation/core';
2
- import { Entity, GraphNode, GraphicsDevice, Material } from 'playcanvas';
1
+ import type { Crowd, CrowdAgent } from '@recast-navigation/core';
2
+ import { Entity, GraphNode, type GraphicsDevice, type Material } from 'playcanvas';
3
3
  export type CrowdHelperParams = {
4
4
  agentMaterial?: Material;
5
5
  };
@@ -1,5 +1,5 @@
1
- import { NavMesh } from '@recast-navigation/core';
2
- import { Entity, GraphicsDevice, Material, Mesh, StandardMaterial } from 'playcanvas';
1
+ import { type NavMesh } from '@recast-navigation/core';
2
+ import { Entity, type GraphicsDevice, type Material, Mesh, StandardMaterial } from 'playcanvas';
3
3
  export type NavMeshHelperParams = {
4
4
  navMeshMaterial?: Material;
5
5
  };
@@ -1,5 +1,5 @@
1
- import { Obstacle, TileCache } from '@recast-navigation/core';
2
- import { Entity, Material } from 'playcanvas';
1
+ import type { Obstacle, TileCache } from '@recast-navigation/core';
2
+ import { Entity, type Material } from 'playcanvas';
3
3
  /**
4
4
  * Parameters for creating TileCacheHelper.
5
5
  */
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { DebugDrawerUtils, getNavMeshPositionsAndIndices } from '@recast-navigation/core';
2
- import { Entity, StandardMaterial, Color, BLEND_NORMAL, MeshInstance, VertexFormat, SEMANTIC_POSITION, TYPE_FLOAT32, SEMANTIC_COLOR, VertexBuffer, BUFFER_STATIC, Mesh, PRIMITIVE_POINTS, PRIMITIVE_LINES, PRIMITIVE_TRIANGLES, Vec3, GraphNode, CylinderGeometry, calculateNormals, RENDERSTYLE_WIREFRAME, VertexIterator, INDEXFORMAT_UINT32 } from 'playcanvas';
2
+ import { Entity, StandardMaterial, Color, BLEND_NORMAL, MeshInstance, VertexFormat, TYPE_FLOAT32, SEMANTIC_POSITION, SEMANTIC_COLOR, VertexBuffer, BUFFER_STATIC, Mesh, PRIMITIVE_POINTS, PRIMITIVE_LINES, PRIMITIVE_TRIANGLES, Vec3, GraphNode, CylinderGeometry, calculateNormals, RENDERSTYLE_WIREFRAME, VertexIterator, INDEXFORMAT_UINT32 } from 'playcanvas';
3
3
  import { mergePositionsAndIndices, generateSoloNavMesh, generateTiledNavMesh, generateTileCache } from '@recast-navigation/generators';
4
4
 
5
5
  /**
@@ -612,9 +612,9 @@ const pcToTiledNavMesh = (meshes, navMeshGeneratorConfig = {}, keepIntermediates
612
612
  const [positions, indices] = getPositionsAndIndices(meshes);
613
613
  return generateTiledNavMesh(positions, indices, navMeshGeneratorConfig, keepIntermediates);
614
614
  };
615
- const threeToTileCache = (meshes, navMeshGeneratorConfig = {}, keepIntermediates = false) => {
615
+ const pcToTileCache = (meshes, navMeshGeneratorConfig = {}, keepIntermediates = false) => {
616
616
  const [positions, indices] = getPositionsAndIndices(meshes);
617
617
  return generateTileCache(positions, indices, navMeshGeneratorConfig, keepIntermediates);
618
618
  };
619
619
 
620
- export { CrowdHelper, DebugDrawer, NavMeshHelper, TileCacheHelper, getPositionsAndIndices, pcToSoloNavMesh, pcToTiledNavMesh, threeToTileCache };
620
+ export { CrowdHelper, DebugDrawer, NavMeshHelper, TileCacheHelper, getPositionsAndIndices, pcToSoloNavMesh, pcToTileCache, pcToTiledNavMesh };
@@ -1,5 +1,5 @@
1
- import { SoloNavMeshGeneratorConfig, TileCacheGeneratorConfig, TiledNavMeshGeneratorConfig } from '@recast-navigation/generators';
2
- import { MeshInstance } from 'playcanvas';
1
+ import { type SoloNavMeshGeneratorConfig, type TileCacheGeneratorConfig, type TiledNavMeshGeneratorConfig } from '@recast-navigation/generators';
2
+ import type { MeshInstance } from 'playcanvas';
3
3
  export declare const pcToSoloNavMesh: (meshes: MeshInstance[], navMeshGeneratorConfig?: Partial<SoloNavMeshGeneratorConfig>, keepIntermediates?: boolean) => import("@recast-navigation/generators").GenerateSoloNavMeshResult;
4
4
  export declare const pcToTiledNavMesh: (meshes: MeshInstance[], navMeshGeneratorConfig?: Partial<TiledNavMeshGeneratorConfig>, keepIntermediates?: boolean) => import("@recast-navigation/generators").GenerateTiledNavMeshResult;
5
- export declare const threeToTileCache: (meshes: MeshInstance[], navMeshGeneratorConfig?: Partial<TileCacheGeneratorConfig>, keepIntermediates?: boolean) => import("@recast-navigation/generators").TileCacheGeneratorResult;
5
+ export declare const pcToTileCache: (meshes: MeshInstance[], navMeshGeneratorConfig?: Partial<TileCacheGeneratorConfig>, keepIntermediates?: boolean) => import("@recast-navigation/generators").TileCacheGeneratorResult;
@@ -1,2 +1,2 @@
1
- import { MeshInstance } from 'playcanvas';
1
+ import { type MeshInstance } from 'playcanvas';
2
2
  export declare const getPositionsAndIndices: (meshInstances: MeshInstance[]) => [Float32Array, Uint32Array];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@recast-navigation/playcanvas",
3
3
  "description": "Utilities for using recast-navigation with PlayCanvas",
4
- "version": "0.40.0",
4
+ "version": "0.42.0",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/isaac-mason/recast-navigation-js",
7
7
  "bugs": {
@@ -18,29 +18,25 @@
18
18
  ],
19
19
  "scripts": {
20
20
  "build": "rollup --config rollup.config.js --bundleConfigAsCjs",
21
- "test": "tsc",
22
- "lint": "eslint src"
21
+ "test": "tsc"
23
22
  },
24
23
  "dependencies": {
25
- "@recast-navigation/core": "0.40.0",
26
- "@recast-navigation/generators": "0.40.0"
24
+ "@recast-navigation/core": "0.42.0",
25
+ "@recast-navigation/generators": "0.42.0"
27
26
  },
28
27
  "devDependencies": {
29
- "@babel/core": "^7.24.5",
30
- "@babel/preset-env": "^7.24.5",
31
- "@babel/preset-typescript": "^7.24.1",
32
- "@isaac-mason/eslint-config-typescript": "^0.0.9",
28
+ "@babel/core": "^7.28.0",
29
+ "@babel/preset-env": "^7.28.0",
30
+ "@babel/preset-typescript": "^7.27.1",
33
31
  "@rollup/plugin-babel": "^6.0.4",
34
- "@rollup/plugin-commonjs": "^25.0.7",
35
- "@rollup/plugin-node-resolve": "^15.0.1",
36
- "@rollup/plugin-typescript": "^11.1.6",
37
- "eslint": "^9.6.0",
32
+ "@rollup/plugin-commonjs": "^28.0.6",
33
+ "@rollup/plugin-node-resolve": "^16.0.1",
34
+ "@rollup/plugin-typescript": "^12.1.4",
38
35
  "playcanvas": "^2.0.0",
39
- "prettier": "^3.1.0",
40
- "rollup": "^4.14.0",
41
- "rollup-plugin-copy": "^3.4.0",
36
+ "rollup": "^4.44.2",
37
+ "rollup-plugin-copy": "^3.5.0",
42
38
  "rollup-plugin-filesize": "^10.0.0",
43
- "typescript": "^5.4.3"
39
+ "typescript": "^5.8.3"
44
40
  },
45
41
  "packageManager": "yarn@3.2.1",
46
42
  "peerDependencies": {