@driftengine/nav 4.7.3 → 4.7.4
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.
- package/dist/portalGraph.js +1 -1
- package/package.json +2 -2
- package/src/portalGraph.ts +1 -1
package/dist/portalGraph.js
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* a graph and write to it rather than returning one.
|
|
41
41
|
*/
|
|
42
42
|
import { buildNavGraph } from '@driftengine/core';
|
|
43
|
-
import {
|
|
43
|
+
import { polyVertexCount } from './polymesh.js';
|
|
44
44
|
function gcd(a, b) {
|
|
45
45
|
let x = Math.abs(a);
|
|
46
46
|
let y = Math.abs(b);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driftengine/nav",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.4",
|
|
4
4
|
"description": "A navigation mesh: geometry to walkable convex polygons, and a straight line across them",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -53,6 +53,6 @@
|
|
|
53
53
|
"prepack": "node ../../scripts/build.mjs @driftengine/nav"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@driftengine/core": "4.7.
|
|
56
|
+
"@driftengine/core": "4.7.4"
|
|
57
57
|
}
|
|
58
58
|
}
|
package/src/portalGraph.ts
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
import { buildNavGraph } from '@driftengine/core';
|
|
43
43
|
import type { NavEdge, NavGraph } from '@driftengine/core';
|
|
44
44
|
|
|
45
|
-
import {
|
|
45
|
+
import { polyVertexCount, type PolyMesh } from './polymesh.ts';
|
|
46
46
|
|
|
47
47
|
export interface PortalGraph {
|
|
48
48
|
/** Nodes: one per portal, then the start, then the goal. */
|