@univerjscoreclassesRtree

@univerjs/core v0.5.4


Class: RTree

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:44

Constructors

new RTree()

new RTree(_enableOneCellCache): RTree

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:52

Parameters

ParameterTypeDefault value
_enableOneCellCachebooleanfalse

Returns

RTree

Methods

bulkInsert()

bulkInsert(items): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:240

Parameters

ParameterType
itemsIRTreeItem[]

Returns

void


bulkRemove()

bulkRemove(searchList): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:329

Parameters

ParameterType
searchListIRTreeItem[]

Returns

void


bulkSearch()

bulkSearch(searchList, exceptTreeIds?): Set<StringOrNumber>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:273

Parameters

ParameterType
searchListIUnitRange[]
exceptTreeIds?Set<number>

Returns

Set<StringOrNumber>


clear()

clear(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:335

Returns

void


closeKdTree()

closeKdTree(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:194

Returns

void


dispose()

dispose(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:56

Returns

void


fromJSON()

fromJSON(data): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:352

Parameters

ParameterType
dataIRTreeData

Returns

void


getTree()

getTree(unitId, subUnitId): RBush<IRBushItem>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:60

Parameters

ParameterType
unitIdstring
subUnitIdstring

Returns

RBush<IRBushItem>


insert()

insert(item): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:202

Parameters

ParameterType
itemIRTreeItem

Returns

void


openKdTree()

openKdTree(): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:174

Open the kd-tree search state. The kd-tree is used to search for data in a single cell.

Returns

void


remove()

remove(search): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:314

Parameters

ParameterType
searchIRTreeItem

Returns

void


removeById()

removeById(unitId, subUnitId?): void

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:286

Parameters

ParameterType
unitIdstring
subUnitId?string

Returns

void


searchGenerator()

searchGenerator(search): IterableIterator<StringOrNumber>

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:246

Parameters

ParameterType
searchIUnitRange

Returns

IterableIterator<StringOrNumber>


toJSON()

toJSON(): IRTreeData

Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:340

Returns

IRTreeData