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
Parameter | Type | Default value |
---|---|---|
_enableOneCellCache | boolean | false |
Returns
Methods
bulkInsert()
bulkInsert(items): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:240
Parameters
Parameter | Type |
---|---|
items | IRTreeItem [] |
Returns
void
bulkRemove()
bulkRemove(searchList): void
Defined in: packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/r-tree.ts:329
Parameters
Parameter | Type |
---|---|
searchList | IRTreeItem [] |
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
Parameter | Type |
---|---|
searchList | IUnitRange [] |
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
Parameter | Type |
---|---|
data | IRTreeData |
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
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
Parameter | Type |
---|---|
item | IRTreeItem |
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
Parameter | Type |
---|---|
search | IRTreeItem |
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
Parameter | Type |
---|---|
unitId | string |
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
Parameter | Type |
---|---|
search | IUnitRange |
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