Constructors
constructor
- new RBush(maxEntries?): RBush
Properties
_maxEntries
_maxEntries: number
_minEntries
_minEntries: number
Methods
_adjustParentBBoxes
- _adjustParentBBoxes(bbox, path, level): void
Parameters
- bbox: any
- path: any
- level: any
Returns void
_all
- _all(node, result): any
Returns any
_allDistMargin
- _allDistMargin(node, m, M, compare): number
Parameters
- node: any
- m: any
- M: any
- compare: any
Returns number
_build
- _build(items, left, right, height): {
children: any;
height: number;
leaf: boolean;
maxX: number;
maxY: number;
minX: number;
minY: number;
} Parameters
- items: any
- left: any
- right: any
- height: any
Returns {
children: any;
height: number;
leaf: boolean;
maxX: number;
maxY: number;
minX: number;
minY: number;
}
children: any
height: number
leaf: boolean
maxX: number
maxY: number
minX: number
minY: number
_chooseSplitAxis
- _chooseSplitAxis(node, m, M): void
Returns void
_chooseSplitIndex
- _chooseSplitIndex(node, m, M): any
Returns any
_chooseSubtree
- _chooseSubtree(bbox, node, level, path): any
Parameters
- bbox: any
- node: any
- level: any
- path: any
Returns any
_condense
- _condense(path): void
Returns void
_insert
- _insert(item, level, isNode): void
Parameters
- item: any
- level: any
- isNode: any
Returns void
_split
- _split(insertPath, level): void
Parameters
- insertPath: any
- level: any
Returns void
_splitRoot
- _splitRoot(node, newNode): void
Returns void
collides
- collides(bbox): boolean
Returns boolean
compareMinX
- compareMinX(a, b): number
Returns number
compareMinY
- compareMinY(a, b): number
Returns number
remove
- remove(item, equalsFn): RBush
search
- search(bbox): any[]
Returns any[]
toBBox
- toBBox(item): any
Returns any