{"name":"detect-collisions","version":"9.27.2","keywords":["javascript","typescript","library","computational-geometry","alghoritm","computational-geometry-alghoritm","collisions","collision-checking","concave","rotation","angle","separating-axis-theorem","bounding-volume-hierarchy","Circle","Polygon","Box","Ellipse","Line","Point"],"author":{"name":"Jacek Pietal"},"license":"MIT","_id":"detect-collisions@9.27.2","maintainers":[{"name":"jacekpietal","email":"prozi85@gmail.com"},{"name":"pietal.dev","email":"prozi85+pietal.dev@gmail.com"}],"homepage":"https://prozi.github.io/detect-collisions/","bugs":{"url":"https://github.com/Prozi/detect-collisions/issues"},"dist":{"shasum":"37691a1d816c27bbe20c2c6c9bd0f38ffe675947","tarball":"http://registry-npm.ywwl.com/detect-collisions/download/detect-collisions-9.27.2.tgz","fileCount":34,"integrity":"sha512-yQ2/ux0L4qCsSJCYhYxvr12/pzSFcG1oCsiLhPW53dQd3Fpci6t0JIfxCuGeD4jsgBqrdKGSCZgd3eps/O3law==","signatures":[{"sig":"MEUCIQCTfeGSZt3ctj8dpLRK41pM//76wQW0jRayDJrl1CDuEwIgRXcmEq0WjAGTbPlUuE4vzOlGUeUNJ3/zDjChZq733f0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":250543,"size":57651,"noattachment":false,"key":"/detect-collisions/-/detect-collisions-9.27.2.tgz"},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./esm/index.js","exports":{"import":"./esm/index.js","require":"./dist/index.js"},"gitHead":"4b17a35df1b680afe95e10a04c70fad063b3d224","scripts":{"dev":"webpack serve --port 3000","demo":"npm run build:demo && npm start","docs":"npm run build:docs && chef-express docs --debug --port 3000","lint":"eslint src --fix","test":"jest --silent --verbose --forceExit","amend":"NO_BENCH=1 npm run precommit;git commit -a --am --no-edit","build":"yarn build:commonjs && yarn build:esm","start":"chef-express dist/demo --debug","prebuild":"npm run copy-npm-modules","benchmark":"./clean-dist.sh && npm run benchmark-insertion && npm run benchmark-stress","build:esm":"rollup -c","postbuild":"npm run test && npm run build:docs && npm run build:demo && [ -z \"$NO_BENCH\" ] && npm run benchmark","precommit":"npm run lint && npm run build","build:demo":"webpack","build:docs":"typedoc --customCss typedoc.css","copy-rbush":"cp node_modules/rbush/index.js src/external/rbush.js","prebuild:esm":"rm -rf esm","prebuild:docs":"rm -rf docs","build:commonjs":"tsc","postbuild:demo":"cp -r dist/demo docs","postbuild:docs":"npm run docs-from-master || echo ok","benchmark-stress":"node -e 'import(\"./dist/benchmarks/index.js\").then(({ stressBenchmark }) => stressBenchmark());'","copy-npm-modules":"npm run copy-rbush && npm run copy-quickselect && npm run use-latest-quickselect","copy-quickselect":"cp node_modules/quickselect/index.js src/external/quickselect.js","docs-from-master":"npm run docs-from-master-macos || npm run docs-from-master-linux","prebuild:commonjs":"rm -rf dist","benchmark-insertion":"node -e 'import(\"./dist/benchmarks/index.js\").then(({ insertionBenchmark }) => insertionBenchmark());'","docs-from-master-linux":"find docs -type f -name '*.html' -exec sed -i -r 's_/blob/[^/]+/_/blob/master/_g' {} +","docs-from-master-macos":"find docs -type f -name '*.html' -exec sed -i '' -r 's_/blob/[^/]+/_/blob/master/_g' {} +","use-latest-quickselect":"npm run use-latest-quickselect-macos || npm run use-latest-quickselect-linux","use-latest-quickselect-linux":"sed -i -r \"s_'quickselect'_'./quickselect'_g\" src/external/rbush.js","use-latest-quickselect-macos":"sed -i '' -e \"s_'quickselect'_'./quickselect'_g\" src/external/rbush.js"},"_npmUser":{"name":"pietal.dev","email":"prozi85+pietal.dev@gmail.com"},"repository":{"url":"git://github.com/Prozi/detect-collisions.git","type":"git"},"_npmVersion":"10.9.2","description":"Points, Lines, Boxes, Polygons (also hollow), Ellipses, Circles. RayCasting, offsets, rotation, scaling, bounding box padding, flags for static and ghost/trigger bodies","directories":{},"resolutions":{"json5":"^2.2.2","canvas":"^2.11.2","semver":"^7.5.3","terser":"^5.14.2","express":"^4.19.2","minimist":"^1.2.6","escodegen":"^2.1.0","@types/node":"^22.4.1"},"_nodeVersion":"22.15.0","dependencies":{"sat":"^0.9.0","@types/sat":"^0.0.35","poly-decomp-es":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","husky":"^9.1.7","rbush":"^4.0.1","eslint":"^9.26.0","rollup":"^4.40.2","ts-jest":"^29.3.2","typedoc":"^0.28.4","webpack":"^5.99.8","tinybench":"^4.0.1","ts-loader":"^9.5.2","typescript":"^5","@types/node":"^22.15.13","quickselect":"^3.0.0","random-seed":"^0.3.0","webpack-cli":"^6.0.1","@types/rbush":"^4.0.0","chef-express":"^3.2.1","eslint-plugin-json":"^4.0.1","webpack-dev-server":"^5.2.1","html-webpack-plugin":"^5.6.3","@rollup/plugin-commonjs":"^28.0.3","@stylistic/eslint-plugin":"^4.2.0","@rollup/plugin-typescript":"^12.1.2","@rollup/plugin-node-resolve":"^16.0.1"},"_npmOperationalInternal":{"tmp":"tmp/detect-collisions_9.27.2_1746551264110_0.06416805984186769","host":"s3://npm-registry-packages-npm-production"},"readme":"# detect-collisions\n\n## Moved\n\n* what was `detect-collisions` became `check2d`\n\n* package moved here https://www.npmjs.com/package/check2d\n\n* sorry for confusion, update your `package.json` with confidence\n\n## Introduction\n\n`check2d` is a lightning-fast ⚡️ TypeScript library built to detect collisions between diverse shapes like Points, Lines, Boxes, Polygons (including concave), Ellipses, and Circles. Utilizing Bounding Volume Hierarchy (BVH) and the Separating Axis Theorem (SAT), it offers rapid and accurate collision detection. The library supports RayCasting, offsets, rotation, scaling, and optimizations for: bounding box, flags for non-moving and ghost/trigger bodies and collision groups filtering - making it an ideal choice for high-speed applications in gaming and simulations.\n\n## Demos\n\n- [Tank](https://jackie-aniki.github.io/check2d/demo/)\n- [Stress Test](https://jackie-aniki.github.io/check2d/demo/?stress)\n- [Stackblitz](https://stackblitz.com/edit/check2d)\n- [CodePan](https://jackie-aniki.github.io/codepan/#/boilerplate/check2d?pans=console,html)\n\n## Installation\n\n```bash\nnpm i check2d --save\n```\n","publish_time":1746551264330,"_cnpm_publish_time":1746551264330,"dist-tags":{"latest":"10.10.2025"}}