@gridworkjs/quadtree 1.0.0 → 1.1.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/quadtree.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridworkjs/quadtree",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "quadtree spatial index for sparse, uneven point and region data",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/quadtree.js CHANGED
@@ -255,6 +255,8 @@ export function createQuadtree(accessor, options = {}) {
255
255
  const index = {
256
256
  [SPATIAL_INDEX]: true,
257
257
 
258
+ accessor,
259
+
258
260
  get size() { return size },
259
261
 
260
262
  get bounds() { return root ? root.bounds : null },