RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles
Fixed a rare race condition that led to an error when inserting infinity-area rectangles. #94 (Thanks @DiogoDoreto!)
rbush(...)
to new RBush(...)
. #93format
constructor argument, eliminating eval
-like code and making RBush fully compliant with strict CSP environments. The new way to define custom formats is described here.Added default export for better ES6 modules / transpiler support.
all
method for getting all of the tree items. #11
toBBox
, compareMinX
, compareMinY
methods public, made it possible to avoid Content Security Policy issues by overriding them for custom format. #14 #12
collides
method for fast collision detection.