Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

three-pathfinding

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three-pathfinding - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

dist/three-pathfinding.js

10

package.json
{
"name": "three-pathfinding",
"version": "0.5.1",
"version": "0.5.2",
"description": "Navigation mesh toolkit for three.js, based on PatrolJS",

@@ -9,2 +9,4 @@ "main": "src/index.js",

"docs": "documentation build src/index.js --shallow -f md | replace-between --target README.md --token API",
"dist": "browserify browser.js -o dist/three-pathfinding.js && uglifyjs dist/three-pathfinding.js --mangle > dist/three-pathfinding.min.js",
"version": "npm run dist && git add -A dist",
"postversion": "git push && git push --tags && npm publish"

@@ -29,6 +31,10 @@ },

"devDependencies": {
"babel-core": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babelify": "^8.0.0",
"browserify": "^14.4.0",
"budo": "^10.0.4",
"documentation": "^5.3.3",
"replace-between": "0.0.8"
"replace-between": "0.0.8",
"uglify-js": "^3.3.3"
},

@@ -35,0 +41,0 @@ "browserify": {

6

README.md

@@ -16,8 +16,8 @@ # three-pathfinding

```js
const Path = require('three-pathfinding');
const pathfinder = new Path();
const Pathfinder = require('three-pathfinding');
const pathfinder = new Pathfinder();
// Create level.
const ZONE = 'level1';
pathfinder.setZoneData(ZONE, Path.createZone(this.navMesh.geometry));
pathfinder.setZoneData(ZONE, Pathfinder.createZone(mesh.geometry));

@@ -24,0 +24,0 @@ // Find path from A to B.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc