@gridworkjs/kd 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/kd.js +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridworkjs/kd",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "KD-tree spatial index for static point sets and nearest-neighbor queries",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/kd.js CHANGED
@@ -256,6 +256,8 @@ export function createKdTree(accessor) {
256
256
  const index = {
257
257
  [SPATIAL_INDEX]: true,
258
258
 
259
+ accessor,
260
+
259
261
  get size() { return size },
260
262
 
261
263
  get bounds() { return totalBounds },