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-catalyst-latest';

Signature:

export interface EdgeIndex extends EdgeIndexBase

Extends: EdgeIndexBase

Properties

PropertyTypeDescription
_maxEntriesnumberMaximum number of entries per R-tree node before splitting.
_minEntriesnumberMinimum number of entries per R-tree node before merging.
dataEdgeIndexDataRoot data node of the R-tree.

Methods

MethodReturnsDescription
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.
insert(arg1)unknownInsert an item into the spatial index.
(Inherited from EdgeIndexBase)
remove(arg1)unknownRemove an item from the spatial index.
(Inherited from EdgeIndexBase)
toBBox(arg1)unknownConvert an item to its bounding box representation.
(Inherited from EdgeIndexBase)

Links to this page: