UNPKG

three-mesh-bvh

Version:

A BVH implementation to speed up raycasting against three.js meshes.

93 lines (92 loc) 2.58 kB
{ "name": "three-mesh-bvh", "version": "0.9.9", "description": "A BVH implementation to speed up raycasting against three.js meshes.", "module": "src/index.js", "main": "build/index.umd.cjs", "exports": { ".": { "import": "./src/index.js", "require": "./build/index.umd.cjs" }, "./worker": "./src/workers/index.js", "./webgpu": "./src/webgpu/index.js", "./src/*": "./src/*" }, "type": "module", "types": "src/index.d.ts", "sideEffects": false, "scripts": { "start": "concurrently \"rollup -w -c rollup-templating.config.js\" \"vite --config ./vite.config.js\"", "build": "rollup -c rollup-templating.config.js && rollup -c", "build-silent": "rollup -c rollup-templating.config.js --silent && rollup -c --silent", "build-examples": "npm run build && vite build --config ./vite.config.js && cp ./example/coi-serviceworker.js ./example/bundle/", "test": "npm run build-silent && vitest run", "lint": "eslint . && tsc --noEmit", "benchmark": "npm run build-silent && node benchmark/run-benchmark.js", "prepublishOnly": "npm run build" }, "files": [ "src/*", "build/*" ], "keywords": [ "graphics", "raycast", "tree", "bounds", "threejs", "three-js", "bounds-hierarchy", "performance", "raytracing", "pathtracing", "geometry", "mesh", "distance", "intersection", "acceleration", "bvh", "webvr", "webxr" ], "repository": { "type": "git", "url": "git+https://github.com/gkjohnson/three-mesh-bvh.git" }, "author": "Garrett Johnson <garrett.kjohnson@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/gkjohnson/three-mesh-bvh/issues" }, "homepage": "https://github.com/gkjohnson/three-mesh-bvh#readme", "peerDependencies": { "three": ">= 0.159.0" }, "devDependencies": { "@eslint/js": "^9.0.0", "@types/node": "^24.3.1", "@types/three": "^0.179.0", "@vitest/browser": "^4.0.14", "@vitest/eslint-plugin": "^1.5.0", "concurrently": "^8.2.1", "eslint": "^9.0.0", "eslint-config-mdcs": "^5.0.0", "glob": "^10.3.3", "globals": "^16.5.0", "jsdom": "^26.0.0", "jsdom-worker": "^0.3.0", "preprocess": "^3.2.0", "puppeteer": "^24.31.0", "rollup": "^3.28.1", "seedrandom": "^3.0.5", "simple-git": "^3.19.1", "simplex-noise": "^2.4.0", "stats.js": "^0.17.0", "three": "^0.179.0", "typescript": "^5.9.2", "typescript-eslint": "^8.48.1", "vite": "^6.2.2", "vitest": "^4.0.14" } }