Skip to content

Releases: mourner/flatbush

v3.2.1

18 Mar 16:32

Choose a tag to compare

Improve kNN performance by ~10-15%.

v3.2.0

06 Feb 08:26

Choose a tag to compare

index.add(x0, y0, x1, y1) now returns the item's index.

v3.1.1

04 Jan 15:50

Choose a tag to compare

Slightly faster kNN search.

v3.1.0

08 Nov 18:01

Choose a tag to compare

Add fast kNN search (index.neighbors(x, y[, maxResults, maxDistance, filterFn])).

v3.0.0

07 May 17:08

Choose a tag to compare

  • Improved internal storage format, making it ~10-15% smaller.
  • Made it much easier to reconstruct an index from a raw array buffer: Flatbush.from(index.data).
  • More resilient construction: Flatbush will catch more errors when given bad arguments or data.

Thanks to @tyrasd for the help!

v2.0.4

21 Mar 15:32

Choose a tag to compare

Fix infinite loop on new Flatbush(0) (throws an error now).

v2.0.3

21 Mar 14:48

Choose a tag to compare

Fixed search not throwing an error if called before finish.

v2.0.2

21 Mar 13:15

Choose a tag to compare

  • Slightly improved search performance.

v2.0.1

21 Mar 12:22

Choose a tag to compare

  • Improved search performance by ~30%.
  • Slightly better packing for cases where item bbox sizes vary a lot.

v2.0.0

21 Mar 11:10

Choose a tag to compare

  • ⚠️ Breaking: flatbush(...) should now be new Flatbush(...).
  • Add optional data constructor argument for reconstructing an index after transferring.
  • Use ES syntax in the exported module (doesn't affect node/browser builds).
  • Expose numItems, nodeSize, ArrayType, minX, minY, maxX, maxY properties.
  • Avoid worst case performance when data is already hilbert-sorted.