Use typescript types for RBush
The `toJSON` function simply returns the `data` property. See: https://github.com/mourner/rbush/blob/v2.0.2/index.js#L184
This commit is contained in:
@@ -221,8 +221,7 @@ class RBush {
|
||||
* @return {import("../extent.js").Extent} Extent.
|
||||
*/
|
||||
getExtent(opt_extent) {
|
||||
// FIXME add getExtent() to rbush
|
||||
const data = this.rbush_.data;
|
||||
const data = this.rbush_.toJSON();
|
||||
return createOrUpdate(data.minX, data.minY, data.maxX, data.maxY, opt_extent);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user