flatbush icon indicating copy to clipboard operation
flatbush copied to clipboard

A very fast static spatial index for 2D points and rectangles in JavaScript 🌱

Results 9 flatbush issues
Sort by recently updated
recently updated
newest added

Hi @mourner and thanks a lot for the great libs that you share with the world! I've been a user of Rbush for a few months now but only recently...

Flatbush is often used to index points, i.e., zero-width rectangles. How do you feel about changing the signature of `add` to ```js add(minX, minY, maxX = minX, maxY = minY)...

enhancement

I wonder if it's possible to use twice less memory specifically for point data, where we know that `maxX` and `maxY` duplicate `minX` and `minY`. This could look like an...

enhancement

Fixes #43 hey @mourner, this diff was the path of least resistance. i think potentially `this._levelBounds` init can be deferred until `finish()`, but is likely minor, though every little bit...

hey @mourner i'm currently reading back bounding box coords to render a hover rect over the matched index, it looks something like below bound to `mousemove`. this works well enough...

question

hi @mourner, i was wondering if it is possible to resize the index before calling finish()? looking at the code, i think it's possible. my situation is that i have...

enhancement

The magic number 4 appears in a bunch of places in the code base, mostly related to the 4 points of a box. Explicitly naming this 4 will help further...

hi @mourner — i think there may be some utility in having a function similar to `search` but is more efficient for the use case of when we want to...

enhancement