Skip to content

EdgeIndex

Unofficial

Spatial index (R-tree) for efficient hit-testing and spatial queries on canvas edges and nodes.

Import:

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

Signature:

export interface EdgeIndex extends EdgeIndexBase

Extends: EdgeIndexBase

Properties

Property Type Description
_maxEntries number Maximum number of entries per R-tree node before splitting.
_minEntries number Minimum number of entries per R-tree node before merging.
data EdgeIndexData Root data node of the R-tree.

Methods

Method Returns Description
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.
insert(arg1) unknown Insert an item into the spatial index.
(Inherited from EdgeIndexBase)
remove(arg1) unknown Remove an item from the spatial index.
(Inherited from EdgeIndexBase)
toBBox(arg1) unknown Convert an item to its bounding box representation.
(Inherited from EdgeIndexBase)

Links to this page: