{"_id":"d3-octree","_rev":"4362908","name":"d3-octree","description":"Three-dimensional recursive spatial subdivision.","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"vasturiano","email":""}],"time":{"modified":"2026-04-08T10:33:14.000Z","created":"2017-03-16T05:56:30.383Z","1.1.0":"2025-01-02T19:55:48.553Z","1.0.2":"2023-02-07T23:16:37.623Z","1.0.1":"2023-02-07T13:15:50.302Z","1.0.0":"2023-02-07T05:10:20.347Z","0.2.2":"2022-02-09T23:28:08.978Z","0.2.0":"2021-03-17T00:22:50.191Z","0.1.8":"2020-03-15T23:01:44.044Z","0.1.7":"2020-03-15T22:59:50.370Z","0.1.6":"2020-03-15T22:44:54.934Z","0.1.5":"2019-10-17T00:54:28.844Z","0.1.4":"2018-10-11T05:15:10.317Z","0.1.3":"2018-10-11T04:51:42.380Z","0.1.2":"2017-03-16T09:08:50.636Z","0.1.1":"2017-03-16T08:39:15.653Z","0.1.0":"2017-03-16T05:56:30.383Z"},"users":{},"author":{"name":"Vasco Asturiano","url":"https://github.com/vasturiano"},"repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"versions":{"1.1.0":{"name":"d3-octree","version":"1.1.0","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"https://github.com/vasturiano"},"type":"module","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","main":"src/index.js","module":"src/index.js","exports":{"umd":"./dist/d3-octree.min.js","default":"./src/index.js"},"repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"sideEffects":false,"scripts":{"test":"mocha 'test/**/*-test.js' && eslint src test","prepare":"rm -rf dist && yarn test && rollup -c"},"devDependencies":{"@rollup/plugin-terser":"^0.4.4","eslint":"^8.57.1","mocha":"^11.0.1","rollup":"^4.29.1"},"_id":"d3-octree@1.1.0","gitHead":"28beff983b94757c90b003c51c2c8a053ddd63be","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_nodeVersion":"20.15.1","_npmVersion":"10.7.0","dist":{"shasum":"f07e353b76df872644e7130ab1a74c5ef2f4287e","size":12504,"noattachment":false,"key":"/d3-octree/-/d3-octree-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-1.1.0.tgz"},"_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"directories":{},"maintainers":[{"name":"vasturiano","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/d3-octree_1.1.0_1735847748337_0.08487944773014777"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-01-02T19:55:48.553Z","publish_time":1735847748553,"_source_registry_name":"default","_cnpm_publish_time":1735847748553},"1.0.2":{"name":"d3-octree","version":"1.0.2","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"https://github.com/vasturiano"},"type":"module","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","main":"src/index.js","module":"src/index.js","exports":{"umd":"./dist/d3-octree.min.js","default":"./src/index.js"},"repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"sideEffects":false,"scripts":{"test":"mocha 'test/**/*-test.js' && eslint src test","prepare":"rm -rf dist && yarn test && rollup -c"},"devDependencies":{"@rollup/plugin-terser":"^0.4.0","eslint":"^8.33.0","mocha":"^10.2.0","rollup":"^3.14.0"},"gitHead":"a6756b9ac5fbf06fbc2ded9f4f3e7cd690b64f98","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@1.0.2","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"b39026b82701e45c7163e34ee056dc492035a017","size":11960,"noattachment":false,"key":"/d3-octree/-/d3-octree-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-1.0.2.tgz"},"_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"directories":{},"maintainers":[{"name":"vasturiano","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_1.0.2_1675811797442_0.17827005282289687"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-07T23:16:37.623Z","publish_time":1675811797623,"_cnpm_publish_time":1675811797623},"1.0.1":{"name":"d3-octree","version":"1.0.1","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"type":"module","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","main":"src/index.js","module":"src/index.js","exports":{"umd":"./dist/d3-octree.min.js","default":"./src/index.js"},"repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"sideEffects":false,"scripts":{"test":"mocha 'test/**/*-test.js' && eslint src test","prepare":"rm -rf dist && yarn test && rollup -c"},"devDependencies":{"@rollup/plugin-terser":"^0.4.0","eslint":"^8.33.0","mocha":"^10.2.0","rollup":"^3.14.0"},"gitHead":"29c1c361a89b16b3bf33d1bedbb748a4e643f00d","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@1.0.1","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"19ae4e0c122861f5e31f040eae1cef09a73997ac","size":11973,"noattachment":false,"key":"/d3-octree/-/d3-octree-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-1.0.1.tgz"},"_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"directories":{},"maintainers":[{"name":"vasturiano","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_1.0.1_1675775750141_0.6869205574094022"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-07T13:15:50.302Z","publish_time":1675775750302,"_cnpm_publish_time":1675775750302},"1.0.0":{"name":"d3-octree","version":"1.0.0","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"type":"module","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","main":"src/index.js","module":"src/index.js","exports":{"umd":"./dist/d3-octree.min.js","default":"./src/index.js"},"repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"sideEffects":false,"scripts":{"test":"mocha 'test/**/*-test.js' && eslint src test","prepare":"rm -rf dist && yarn test && rollup -c"},"devDependencies":{"@rollup/plugin-terser":"^0.4.0","eslint":"7","mocha":"8","rollup":"3"},"gitHead":"1bab4cdbb099e826055b6fca125f0fcca86f8323","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@1.0.0","_nodeVersion":"18.12.0","_npmVersion":"8.19.2","dist":{"shasum":"05e77866194c784b0770cff0c3dc4648b756e813","size":11967,"noattachment":false,"key":"/d3-octree/-/d3-octree-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-1.0.0.tgz"},"_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"directories":{},"maintainers":[{"name":"vasturiano","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_1.0.0_1675746620203_0.13933571132799694"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-07T05:10:20.347Z","publish_time":1675746620347,"_cnpm_publish_time":1675746620347},"0.2.2":{"name":"d3-octree","version":"0.2.2","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"dist/d3-octree.js","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","module":"src/index.js","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"sideEffects":false,"scripts":{"pretest":"rollup -c","test":"tape 'test/**/*-test.js' && eslint src test","prepare":"rm -rf dist && yarn test"},"devDependencies":{"d3-array":"^2.12.0","eslint":"^7.22.0","rollup":"^2.41.4","rollup-plugin-terser":"^7.0.2","tape":"^5.2.2"},"gitHead":"8b4f805da625cdc83a2af6198af93571f741ff15","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.2.2","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"shasum":"24c513d809252d14fd3b0bf7eb5af321c30bd69b","size":12137,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.2.2.tgz"},"_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"directories":{},"maintainers":[{"name":"vasturiano","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_0.2.2_1644449288439_0.4285048299852463"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-09T23:28:14.350Z","publish_time":1644449288978,"_cnpm_publish_time":1644449288978},"0.2.0":{"name":"d3-octree","version":"0.2.0","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"dist/d3-octree.js","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","module":"src/index.js","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"sideEffects":false,"scripts":{"pretest":"rollup -c","test":"tape 'test/**/*-test.js' && eslint src test","prepare":"rm -rf dist && yarn test"},"devDependencies":{"d3-array":"^2.12.0","eslint":"^7.22.0","rollup":"^2.41.4","rollup-plugin-terser":"^7.0.2","tape":"^5.2.2"},"gitHead":"cff9a35b52b5648ca07da87df7c05207ce9d197a","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.2.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"d3b3e578733cd0bbb7b6a15f80b0d7b38ab2e54c","size":12130,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.2.0.tgz"},"_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"directories":{},"maintainers":[{"name":"vasturiano","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_0.2.0_1615940569999_0.44016011034697033"},"_hasShrinkwrap":false,"publish_time":1615940570191,"_cnpm_publish_time":1615940570191,"_cnpmcore_publish_time":"2021-12-18T18:23:13.408Z"},"0.1.8":{"name":"d3-octree","version":"0.1.8","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"dist/d3-octree.js","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","module":"src/index.js","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"scripts":{"pretest":"rollup -c","test":"tape 'test/**/*-test.js' && eslint src test","prepare":"rm -rf dist && yarn test"},"devDependencies":{"d3-array":"^2.4.0","eslint":"^6.8.0","rollup":"^2.0.6","rollup-plugin-terser":"^5.3.0","tape":"^4.13.2"},"gitHead":"5d8a8608ee6901661a1239c83efa149fb291d552","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.1.8","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"a7b16d0432b9551ad2b1145f2c25b5461fd991cf","size":12062,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.1.8.tgz"},"maintainers":[{"name":"vasturiano","email":""}],"_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_0.1.8_1584313303885_0.13630659134963707"},"_hasShrinkwrap":false,"publish_time":1584313304044,"_cnpm_publish_time":1584313304044,"_cnpmcore_publish_time":"2021-12-18T18:23:13.602Z"},"0.1.7":{"name":"d3-octree","version":"0.1.7","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"dist/d3-octree.js","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","module":"src/index.js","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"scripts":{"pretest":"rollup -c","test":"tape 'test/**/*-test.js' && eslint src test","prepare":"rm -rf dist && yarn test"},"devDependencies":{"d3-array":"^2.4.0","eslint":"^6.8.0","rollup":"^2.0.6","rollup-plugin-terser":"^5.3.0","tape":"^4.13.2"},"gitHead":"75158a0fd5dd915cb7e9569dc93a93f1090020e0","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.1.7","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"f9490060301a0ce710bac57c0fc9ea2ca6590998","size":11046,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.1.7.tgz"},"maintainers":[{"name":"vasturiano","email":""}],"_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_0.1.7_1584313190238_0.22846567339310875"},"_hasShrinkwrap":false,"publish_time":1584313190370,"_cnpm_publish_time":1584313190370,"_cnpmcore_publish_time":"2021-12-18T18:23:13.858Z"},"0.1.6":{"name":"d3-octree","version":"0.1.6","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"dist/d3-octree.js","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","module":"src/index.js","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"scripts":{"pretest":"rollup -c","test":"tape 'test/**/*-test.js' && eslint src test","prepare":"rm -rf dist && yarn test"},"devDependencies":{"d3-array":"2","eslint":"6","rollup":"2","rollup-plugin-terser":"5","tape":"4"},"gitHead":"c9b89c8f81d7b9cdc685a71dca78b86556de6d19","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.1.6","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"339095195d21925330c14bda3cebb3700221427e","size":11027,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.1.6.tgz"},"maintainers":[{"name":"vasturiano","email":""}],"_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_0.1.6_1584312294826_0.1713394601492768"},"_hasShrinkwrap":false,"publish_time":1584312294934,"_cnpm_publish_time":1584312294934,"_cnpmcore_publish_time":"2021-12-18T18:23:14.071Z"},"0.1.5":{"name":"d3-octree","version":"0.1.5","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"dist/d3-octree.js","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","module":"src/index.js","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"scripts":{"pretest":"rollup -c","test":"tape 'test/**/*-test.js' && eslint src test","prepublishOnly":"rm -rf dist && yarn test"},"devDependencies":{"d3-array":"2","eslint":"6","rollup":"1.24","rollup-plugin-terser":"5","tape":"4"},"gitHead":"e44bc3e01856bbac2f6acda8a409517f1beae281","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.1.5","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"dist":{"shasum":"7640398111f6d2ab19ae2101fab4b871d3171ed3","size":34896,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.1.5.tgz"},"maintainers":[{"name":"vasturiano","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_0.1.5_1571273668678_0.8985441247650312"},"_hasShrinkwrap":false,"publish_time":1571273668844,"_cnpm_publish_time":1571273668844,"_cnpmcore_publish_time":"2021-12-18T18:23:14.353Z"},"0.1.4":{"name":"d3-octree","version":"0.1.4","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"dist/d3-octree.js","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","module":"src/index.js","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"scripts":{"pretest":"rollup -c","test":"tape 'test/**/*-test.js' && eslint src test","prepublishOnly":"rm -rf dist && yarn test"},"devDependencies":{"d3-array":"1","eslint":"5","rollup":"0.64","rollup-plugin-terser":"1","tape":"4"},"gitHead":"0744213b8fc97c3026fca68ad75af98560ef3228","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.1.4","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"dist":{"shasum":"c3d6daf84f6b78fb11b38623e53b393e3a9276b0","size":30180,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.1.4.tgz"},"maintainers":[{"name":"vasturiano","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_0.1.4_1539234910197_0.015415194353460171"},"_hasShrinkwrap":false,"publish_time":1539234910317,"_cnpm_publish_time":1539234910317,"_cnpmcore_publish_time":"2021-12-18T18:23:14.557Z"},"0.1.3":{"name":"d3-octree","version":"0.1.3","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"MIT","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"dist/d3-octree.js","unpkg":"dist/d3-octree.min.js","jsdelivr":"dist/d3-octree.min.js","module":"src/index.js","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"scripts":{"pretest":"rollup -c","test":"tape 'test/**/*-test.js' && eslint src test","prepublishOnly":"rm -rf dist && yarn test"},"devDependencies":{"d3-array":"1","eslint":"5","rollup":"0.64","rollup-plugin-terser":"1","tape":"4"},"gitHead":"4d794c0d69c6ba931382c5f46c949f7f44788916","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.1.3","_npmVersion":"5.6.0","_nodeVersion":"8.10.0","_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"dist":{"shasum":"56f9a0d482c856a8eb002611f43bb574a5437181","size":31331,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.1.3.tgz"},"maintainers":[{"name":"vasturiano","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/d3-octree_0.1.3_1539233502201_0.9764581343650012"},"_hasShrinkwrap":false,"publish_time":1539233502380,"_cnpm_publish_time":1539233502380,"_cnpmcore_publish_time":"2021-12-18T18:23:14.780Z"},"0.1.2":{"name":"d3-octree","version":"0.1.2","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"BSD-3-Clause","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"build/d3-octree.js","module":"index","jsnext:main":"index","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"scripts":{"pretest":"rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-octree.js -- index.js","test":"tape 'test/**/*-test.js' && eslint index.js src","prepublish":"npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-octree.js -c -m -o build/d3-octree.min.js"},"devDependencies":{"d3-array":"1","eslint":"3","package-preamble":"0.0","rollup":"0.41","tape":"4","uglify-js":"^2.8.11"},"gitHead":"c0b8d6775a7d6122aec6874c8e0a5f33455b1196","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.1.2","_shasum":"37bf919df79e661eda5865921eb6ca7f03897fcc","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.0","_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"dist":{"shasum":"37bf919df79e661eda5865921eb6ca7f03897fcc","size":18449,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.1.2.tgz"},"maintainers":[{"name":"vasturiano","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/d3-octree-0.1.2.tgz_1489655328784_0.9134471900761127"},"directories":{},"publish_time":1489655330636,"_hasShrinkwrap":false,"_cnpm_publish_time":1489655330636,"_cnpmcore_publish_time":"2021-12-18T18:23:14.995Z"},"0.1.1":{"name":"d3-octree","version":"0.1.1","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"BSD-3-Clause","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"build/d3-octree.js","module":"index","jsnext:main":"index","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"scripts":{"pretest":"rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-octree.js -- index.js","test":"tape 'test/**/*-test.js' && eslint index.js src","prepublish":"npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-octree.js -c -m -o build/d3-octree.min.js"},"devDependencies":{"d3-array":"1","eslint":"3","package-preamble":"0.0","rollup":"0.41","tape":"4","uglify-js":"^2.8.11"},"gitHead":"e3ead4fb8fc336325227ffce8d5ce1ebd1bb3d8a","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.1.1","_shasum":"300a629a7c56010bc0f2f2522b8a625e002c27cd","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.0","_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"dist":{"shasum":"300a629a7c56010bc0f2f2522b8a625e002c27cd","size":18376,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.1.1.tgz"},"maintainers":[{"name":"vasturiano","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/d3-octree-0.1.1.tgz_1489653553809_0.23718560067936778"},"directories":{},"publish_time":1489653555653,"_hasShrinkwrap":false,"_cnpm_publish_time":1489653555653,"_cnpmcore_publish_time":"2021-12-18T18:23:15.217Z"},"0.1.0":{"name":"d3-octree","version":"0.1.0","description":"Three-dimensional recursive spatial subdivision.","keywords":["d3","d3-module","octree","3d"],"homepage":"https://github.com/vasturiano/d3-octree","license":"BSD-3-Clause","author":{"name":"Vasco Asturiano","url":"http://bl.ocks.org/vasturiano"},"main":"build/d3-octree.js","module":"index","jsnext:main":"index","repository":{"type":"git","url":"git+https://github.com/vasturiano/d3-octree.git"},"scripts":{"pretest":"rm -rf build && mkdir build && rollup --banner \"$(preamble)\" -f umd -n d3 -o build/d3-octree.js -- index.js","test":"tape 'test/**/*-test.js' && eslint index.js src","prepublish":"npm run test && uglifyjs --preamble \"$(preamble)\" build/d3-octree.js -c -m -o build/d3-octree.min.js"},"devDependencies":{"d3-array":"1","eslint":"3","package-preamble":"0.0","rollup":"0.41","tape":"4","uglify-js":"^2.8.11"},"gitHead":"3d49d43cb679480bc294f2c1899c69f32abef1cd","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"_id":"d3-octree@0.1.0","_shasum":"a6949fc8248ea1f74475b9d5ff3b0c7475741e4a","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.0","_npmUser":{"name":"vasturiano","email":"vastur@gmail.com"},"dist":{"shasum":"a6949fc8248ea1f74475b9d5ff3b0c7475741e4a","size":18448,"noattachment":false,"key":"/d3-octree/-/d3-octree-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/d3-octree/download/d3-octree-0.1.0.tgz"},"maintainers":[{"name":"vasturiano","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/d3-octree-0.1.0.tgz_1489643788528_0.9935332532040775"},"directories":{},"publish_time":1489643790383,"_hasShrinkwrap":false,"_cnpm_publish_time":1489643790383,"_cnpmcore_publish_time":"2021-12-18T18:23:15.417Z"}},"readme":"d3-octree\n==============\n\n[![NPM package][npm-img]][npm-url]\n[![Build Size][build-size-img]][build-size-url]\n[![NPM Downloads][npm-downloads-img]][npm-downloads-url]\n\nPorted version of D3's [Quadtree](https://github.com/d3/d3-quadtree), to use with three dimensional data structures, by adding the z coordinate.\n\nAn [octree](https://en.wikipedia.org/wiki/Octree) recursively partitions three-dimensional space into cubes, dividing each cube into eight equally-sized cubes. Each distinct point exists in a unique leaf [node](#nodes); coincident points are represented by a linked list. Octrees can accelerate various spatial operations, such as the [Barnes–Hut approximation](https://en.wikipedia.org/wiki/Barnes–Hut_simulation) for computing many-body forces, collision detection, and searching for nearby points.\n\nSee also [d3-binarytree](https://github.com/vasturiano/d3-binarytree) and [d3-quadtree](https://github.com/d3/d3-quadtree).\n\n## Installing\n\nIf you use npm, `npm install d3-octree`. You can also load directly from the global [npmJS](https://npmjs.com) registry, as a bundled [standalone library](https://unpkg.com/d3-octree). In vanilla, a `d3` global is exported:\n\n```html\n<script src=\"https://unpkg.com/d3-octree\"></script>\n<script>\n\nconst octree = d3.octree();\n\n</script>\n```\n\n## API Reference\n\n<a name=\"octree\" href=\"#octree\">#</a> d3.<b>octree</b>([<i>data</i>[, <i>x</i>, <i>y</i>, <i>z</i>]])\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/octree.js#L15 \"Source\")\n\nCreates a new, empty octree with an empty [extent](#octree_extent) and the default [*x*-](#octree_x), [*y*-](#octree_y) and [*z*-](#octree_z)accessors. If *data* is specified, [adds](#octree_addAll) the specified array of data to the octree. This is equivalent to:\n\n```js\nconst tree = d3.octree()\n    .addAll(data);\n```\n\nIf *x*, *y* and *z* are also specified, sets the [*x*-](#octree_x), [*y*-](#octree_y) and [*z*-](#octree_z) accessors to the specified functions before adding the specified array of data to the octree, equivalent to:\n\n```js\nconst tree = d3.octree()\n    .x(x)\n    .y(y)\n    .z(z)\n    .addAll(data);\n```\n\n<a name=\"octree_x\" href=\"#octree_x\">#</a> <i>octree</i>.<b>x</b>([<i>x</i>]) [<>](https://github.com/vasturiano/d3-octree/blob/master/src/x.js \"Source\")\n\nIf *x* is specified, sets the current *x*-coordinate accessor and returns the octree. If *x* is not specified, returns the current *x*-accessor, which defaults to:\n\n```js\nfunction x(d) {\n  return d[0];\n}\n```\n\nThe *x*-acccessor is used to derive the *x*-coordinate of data when [adding](#octree_add) to and [removing](#octree_remove) from the tree. It is also used when [finding](#octree_find) to re-access the coordinates of data previously added to the tree; therefore, the *x*-, *y*- and *z*-accessors must be consistent, returning the same value given the same input.\n\n<a name=\"octree_y\" href=\"#octree_y\">#</a> <i>octree</i>.<b>y</b>([<i>y</i>])\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/y.js \"Source\")\n\nIf *y* is specified, sets the current *y*-coordinate accessor and returns the octree. If *y* is not specified, returns the current *y*-accessor, which defaults to:\n\n```js\nfunction y(d) {\n  return d[1];\n}\n```\n\nThe *y*-acccessor is used to derive the *y*-coordinate of data when [adding](#octree_add) to and [removing](#octree_remove) from the tree. It is also used when [finding](#octree_find) to re-access the coordinates of data previously added to the tree; therefore, the *x*-, *y*- and *z*-accessors must be consistent, returning the same value given the same input.\n\n<a name=\"octree_z\" href=\"#octree_z\">#</a> <i>octree</i>.<b>z</b>([<i>z</i>])\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/z.js \"Source\")\n\nIf *z* is specified, sets the current *z*-coordinate accessor and returns the octree. If *z* is not specified, returns the current *z*-accessor, which defaults to:\n\n```js\nfunction z(d) {\n  return d[2];\n}\n```\n\nThe *z*-acccessor is used to derive the *z*-coordinate of data when [adding](#octree_add) to and [removing](#octree_remove) from the tree. It is also used when [finding](#octree_find) to re-access the coordinates of data previously added to the tree; therefore, the *x*-, *y*- and *z*-accessors must be consistent, returning the same value given the same input.\n\n<a name=\"octree_extent\" href=\"#octree_extent\">#</a> <i>octree</i>.<b>extent</b>([*extent*])\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/extent.js \"Source\")\n\nIf *extent* is specified, expands the octree to [cover](#octree_cover) the specified points [[*x0*, *y0*, *z0*], [*x1*, *y1*, *z1*]] and returns the octree. If *extent* is not specified, returns the octree’s current extent [[*x0*, *y0*, *z0*], [*x1*, *y1*, *z1*]], where *x0*, *y0* and *z0* are the inclusive lower bounds and *x1*, *y1* and *z1* are the inclusive upper bounds, or undefined if the octree has no extent. The extent may also be expanded by calling [*octree*.cover](#octree_cover) or [*octree*.add](#octree_add).\n\n<a name=\"octree_cover\" href=\"#octree_cover\">#</a> <i>octree</i>.<b>cover</b>(<i>x</i>, <i>y</i>, <i>z</i>)\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/cover.js \"Source\")\n\nExpands the octree to cover the specified point ⟨*x*,*y*,*z*⟩, and returns the octree. If the octree’s extent already covers the specified point, this method does nothing. If the octree has an extent, the extent is repeatedly doubled to cover the specified point, wrapping the [root](#octree_root) [node](#nodes) as necessary; if the octree is empty, the extent is initialized to the extent [[⌊*x*⌋, ⌊*y*⌋, ⌊*z*⌋], [⌈*x*⌉, ⌈*y*⌉, ⌈*z*⌉]]. (Rounding is necessary such that if the extent is later doubled, the boundaries of existing octants do not change due to floating point error.)\n\n<a name=\"octree_add\" href=\"#octree_add\">#</a> <i>octree</i>.<b>add</b>(<i>datum</i>)\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/add.js \"Source\")\n\nAdds the specified *datum* to the octree, deriving its coordinates ⟨*x*,*y*,*z*⟩ using the current [*x*-](#octree_x), [*y*-](#octree_y) and [*z*-](#octree_z)accessors, and returns the octree. If the new point is outside the current [extent](#octree_extent) of the octree, the octree is automatically expanded to [cover](#octree_cover) the new point.\n\n<a name=\"octree_addAll\" href=\"#octree_addAll\">#</a> <i>octree</i>.<b>addAll</b>(<i>data</i>)\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/add.js#L59 \"Source\")\n\nAdds the specified array of *data* to the octree, deriving each element’s coordinates ⟨*x*,*y*,*z*⟩ using the current [*x*-](#octree_x), [*y*-](#octree_y) and [*z*-](#octree_z)accessors, and return this octree. This is approximately equivalent to calling [*octree*.add](#octree_add) repeatedly:\n\n```js\nfor (let i = 0, n = data.length; i < n; ++i) {\n  octree.add(data[i]);\n}\n```\n\nHowever, this method results in a more compact octree because the extent of the *data* is computed first before adding the data.\n\n<a name=\"octree_remove\" href=\"#octree_remove\">#</a> <i>octree</i>.<b>remove</b>(<i>datum</i>)\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/remove.js \"Source\")\n\nRemoves the specified *datum* to the octree, deriving its coordinates ⟨*x*,*y*,*z*⟩ using the current [*x*-](#octree_x), [*y*-](#octree_y) and [*z*-](#octree_z)accessors, and returns the octree. If the specified *datum* does not exist in this octree, this method does nothing.\n\n<a name=\"octree_removeAll\" href=\"#octree_removeAll\">#</a> <i>octree</i>.<b>removeAll</b>(<i>data</i>)\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/remove.js#L65 \"Source\")\n\nRemoves the specified *data* from the octree, deriving their coordinates ⟨*x*,*y*,*z*⟩ using the current [*x*-](#octree_x), [*y*-](#octree_y) and [*z*-](#octree_z)accessors, and returns the octree. If a specified *datum* does not exist in this octree, it is ignored.\n\n<a name=\"octree_copy\" href=\"#octree_copy\">#</a> <i>octree</i>.<b>copy</b>()\n\nReturns a copy of the octree. All [nodes](#nodes) in the returned octree are identical copies of the corresponding node in the octree; however, any data in the octree is shared by reference and not copied.\n\n<a name=\"octree_root\" href=\"#octree_root\">#</a> <i>octree</i>.<b>root</b>()\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/root.js \"Source\")\n\nReturns the root [node](#nodes) of the octree.\n\n<a name=\"octree_data\" href=\"#octree_data\">#</a> <i>octree</i>.<b>data</b>()\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/data.js \"Source\")\n\nReturns an array of all data in the octree.\n\n<a name=\"octree_size\" href=\"#octree_size\">#</a> <i>octree</i>.<b>size</b>()\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/size.js \"Source\")\n\nReturns the total number of data in the octree.\n\n<a name=\"octree_find\" href=\"#octree_find\">#</a> <i>octree</i>.<b>find</b>(<i>x</i>, <i>y</i>, <i>z</i>[, <i>radius</i>])\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/find.js \"Source\")\n\nReturns the datum closest to the position ⟨*x*,*y*,*z*⟩ with the given search *radius*. If *radius* is not specified, it defaults to infinity. If there is no datum within the search area, returns undefined.\n\n<a name=\"octree_findAllWithinRadius\" href=\"#octree_findAllWithinRadius\">#</a> <i>octree</i>.<b>findAllWithinRadius</b>(<i>x</i>, <i>y</i>, <i>z</i>, <i>radius</i>)\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/findAll.js \"Source\")\n\nReturns all the data points within the given search *radius* of the position ⟨*x*,*y*,*z*⟩. If there is no data points within the search area, returns an empty array.\n\n<a name=\"octree_visit\" href=\"#octree_visit\">#</a> <i>octree</i>.<b>visit</b>(<i>callback</i>)\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/visit.js \"Source\")\n\nVisits each [node](#nodes) in the octree in pre-order traversal, invoking the specified *callback* with arguments *node*, *x0*, *y0*, *z0*, *x1*, *y1*, *z1* for each node, where *node* is the node being visited, ⟨*x0*, *y0*, *z0*⟩ are the lower bounds of the node, and ⟨*x1*, *y1*, *z1*⟩ are the upper bounds, and returns the octree. (Assuming that positive *x* is right, positive *y* is down and positive *z* is far, as is typically the case, ⟨*x0*, *y0*, *z0*⟩ is the top-left-front corner and ⟨*x1*, *y1*, *z1*⟩ is the lower-right-back corner; however, the coordinate system is arbitrary, so more formally *x0* <= *x1*, *y0* <= *y1* and *z0* <= *z1*.)\n\nIf the *callback* returns true for a given node, then the children of that node are not visited; otherwise, all child nodes are visited. This can be used to quickly visit only parts of the tree, for example when using the [Barnes–Hut approximation](https://en.wikipedia.org/wiki/Barnes–Hut_simulation). Note, however, that child octants are always visited in sibling order: top-left-front, top-right-front, bottom-left-front, bottom-right-front, top-left-back, top-right-back, bottom-left-back, bottom-right-back. In cases such as [search](#octree_find), visiting siblings in a specific order may be faster.\n\nAs an example, the following visits the octree and returns all the nodes within a cubic extent [xmin, ymin, zmin, xmax, ymax, zmax], ignoring octants that cannot possibly contain any such node:\n\n```js\nfunction search(octree, xmin, ymin, zmin, xmax, ymax, zmax) {\n  const results = [];\n  octree.visit(function(node, x1, y1, z1, x2, y2, z2) {\n    if (!node.length) {\n      do {\n        const d = node.data;\n        if (d[0] >= xmin && d[0] < xmax && d[1] >= ymin && d[1] < ymax && d[2] >= zmin && d[2] < zmax) {\n          results.push(d);\n        }\n      } while (node = node.next);\n    }\n    return x1 >= xmax || y1 >= ymax || z1 >= zmax || x2 < xmin || y2 < ymin || z2 < zmin;\n  });\n  return results;\n}\n```\n\n<a name=\"octree_visitAfter\" href=\"#octree_visitAfter\">#</a> <i>octree</i>.<b>visitAfter</b>(<i>callback</i>)\n [<>](https://github.com/vasturiano/d3-octree/blob/master/src/visitAfter.js \"Source\")\n\nVisits each [node](#nodes) in the octree in post-order traversal, invoking the specified *callback* with arguments *node*, *x0*, *y0*, *z0*, *x1*, *y1*, *z1* for each node, where *node* is the node being visited, ⟨*x0*, *y0*, *z0*⟩ are the lower bounds of the node, and ⟨*x1*, *y1*, *z1*⟩ are the upper bounds, and returns the octree. (Assuming that positive *x* is right, positive *y* is down and positive *z* is far, as is typically the case, ⟨*x0*, *y0*, *z0*⟩ is the top-left-front corner and ⟨*x1*, *y1*, *z1*⟩ is the lower-right-back corner; however, the coordinate system is arbitrary, so more formally *x0* <= *x1*, *y0* <= *y1* and *z0* <= *z1*.) Returns *root*.\n\n### Nodes\n\nInternal nodes of the octree are represented as eight-element arrays in left-to-right, top-to-bottom, front-to-back order:\n\n* `0` - the top-left-front octant, if any.\n* `1` - the top-right-front octant, if any.\n* `2` - the bottom-left-front octant, if any.\n* `3` - the bottom-right-front octant, if any.\n* `4` - the top-left-back octant, if any.\n* `5` - the top-right-back octant, if any.\n* `6` - the bottom-left-back octant, if any.\n* `7` - the bottom-right-back octant, if any.\n\nA child octant may be undefined if it is empty.\n\nLeaf nodes are represented as objects with the following properties:\n\n* `data` - the data associated with this point, as passed to [*octree*.add](#octree_add).\n* `next` - the next datum in this leaf, if any.\n\nThe `length` property may be used to distinguish leaf nodes from internal nodes: it is undefined for leaf nodes, and 8 for internal nodes. For example, to iterate over all data in a leaf node:\n\n```js\nif (!node.length) do console.log(node.data); while (node = node.next);\n```\n\nThe point’s *x*-, *y*- and *z*-coordinates **must not be modified** while the point is in the octree. To update a point’s position, [remove](#octree_remove) the point and then re-[add](#octree_add) it to the octree at the new position. Alternatively, you may discard the existing octree entirely and create a new one from scratch; this may be more efficient if many of the points have moved.\n\n\n[npm-img]: https://img.shields.io/npm/v/d3-octree\n[npm-url]: https://npmjs.org/package/d3-octree\n[build-size-img]: https://img.shields.io/bundlephobia/minzip/d3-octree\n[build-size-url]: https://bundlephobia.com/result?p=d3-octree\n[npm-downloads-img]: https://img.shields.io/npm/dt/d3-octree\n[npm-downloads-url]: https://www.npmtrends.com/d3-octree\n","_attachments":{},"homepage":"https://github.com/vasturiano/d3-octree","bugs":{"url":"https://github.com/vasturiano/d3-octree/issues"},"license":"MIT"}