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

Method Returns Description
_adjustParentBBoxes(arg1, arg2, arg3) unknown Adjust parent bounding boxes after an insertion or modification.
_all(arg1, arg2) unknown Traverse all items in the tree, calling the callback for each.
_allDistMargin(arg1, arg2, arg3, arg4) unknown Calculate the distribution margin for all possible splits along an axis.
_build(arg1, arg2, arg3, arg4) unknown Build the R-tree from a set of items.
_chooseSplitAxis(arg1, arg2, arg3) unknown Choose the best axis for splitting an overflowing node.
_chooseSplitIndex(arg1, arg2, arg3) unknown Choose the best split index along the chosen axis.
_chooseSubtree(arg1, arg2, arg3, arg4) unknown Choose the best subtree for inserting a new item.
_condense(arg1) unknown Condense the tree by removing empty branches after a deletion.
_insert(arg1, arg2, arg3) unknown Internal insert method that places an item at the specified tree level.
_split(arg1, arg2) unknown Split an overflowing tree node into two nodes.
_splitRoot(arg1, arg2) unknown Split the root node when it overflows.
all() unknown Return all items stored in the index.
clear() unknown Remove all items from the index.
collides(arg1) unknown Check whether any items in the index collide with the given bounding box.
compareMinX(arg1, arg2) unknown Compare two items by their minimum X coordinate for sorting.
compareMinY(arg1, arg2) unknown Compare two items by their minimum Y coordinate for sorting.
fromJSON(arg1) unknown Load the index state from a JSON representation.
insert(arg1) unknown Insert an item into the spatial index.
load(arg1) unknown Bulk-load a set of items into the index.
remove(arg1, arg2) unknown Remove an item from the index, optionally using a custom equality function.
search(arg1) unknown Search for all items that intersect the given bounding box.
toBBox(arg1) unknown Convert an item to its bounding box representation.
toJSON() unknown Serialize the index state to a JSON representation.

Links to this page: