mourner / rbush

RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is there any quick way to return the bounding box of tree itself?

jianyunli opened this issue · comments

currently I loop all items, is there any better way?

Just look at the root node (tree.data), it should have minX, minY, maxX, maxY properties.