Skip to content

EdgeIndexBaseBase

Unofficial

R-tree spatial index base implementation for efficient spatial queries on canvas elements.

Import:

import type { EdgeIndexBaseBase } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface EdgeIndexBaseBase

Methods

MethodReturnsDescription
_adjustParentBBoxes(arg1, arg2, arg3)unknownAdjust parent bounding boxes after an insertion or modification.
_all(arg1, arg2)unknownTraverse all items in the tree, calling the callback for each.
_allDistMargin(arg1, arg2, arg3, arg4)unknownCalculate the distribution margin for all possible splits along an axis.
_build(arg1, arg2, arg3, arg4)unknownBuild the R-tree from a set of items.
_chooseSplitAxis(arg1, arg2, arg3)unknownChoose the best axis for splitting an overflowing node.
_chooseSplitIndex(arg1, arg2, arg3)unknownChoose the best split index along the chosen axis.
_chooseSubtree(arg1, arg2, arg3, arg4)unknownChoose the best subtree for inserting a new item.
_condense(arg1)unknownCondense the tree by removing empty branches after a deletion.
_insert(arg1, arg2, arg3)unknownInternal insert method that places an item at the specified tree level.
_split(arg1, arg2)unknownSplit an overflowing tree node into two nodes.
_splitRoot(arg1, arg2)unknownSplit the root node when it overflows.
all()unknownReturn all items stored in the index.
clear()unknownRemove all items from the index.
collides(arg1)unknownCheck whether any items in the index collide with the given bounding box.
compareMinX(arg1, arg2)unknownCompare two items by their minimum X coordinate for sorting.
compareMinY(arg1, arg2)unknownCompare two items by their minimum Y coordinate for sorting.
fromJSON(arg1)unknownLoad the index state from a JSON representation.
insert(arg1)unknownInsert an item into the spatial index.
load(arg1)unknownBulk-load a set of items into the index.
remove(arg1, arg2)unknownRemove an item from the index, optionally using a custom equality function.
search(arg1)unknownSearch for all items that intersect the given bounding box.
toBBox(arg1)unknownConvert an item to its bounding box representation.
toJSON()unknownSerialize the index state to a JSON representation.

Links to this page: