@univerjs/engine-formula v0.5.0-beta.1 • Docs
Class: DependencyManagerBaseService
Extends
Extended by
Implements
Constructors
new DependencyManagerBaseService()
new DependencyManagerBaseService(): DependencyManagerBaseService
Returns
Inherited from
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_definedNameMap | protected | Map <string , Map <string , Set <number >>> | undefined | - | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:78 |
_dependencyRTreeCache | protected | RTree | undefined | - | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:82 |
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:93 |
_featureFormulaData | protected | Map <string , Map <string , Map <string , Nullable <number >>>> | undefined | - | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:74 |
_formulaData | protected | Map <string , Map <string , ObjectMatrix <number >>> | undefined | - | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:76 |
_otherFormulaData | protected | Map <string , Map <string , Map <string , ObjectMatrix <number >>>> | undefined | - | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:72 |
_otherFormulaDataMainData | protected | Set <string > | undefined | - | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:80 |
Methods
_addAllTreeMap()
protected _addAllTreeMap(tree): void
Parameters
Parameter | Type |
---|---|
tree | IFormulaDependencyTree |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:187
_addDefinedName()
protected _addDefinedName(
unitId,
definedName,
treeId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
definedName | string |
treeId | number |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:191
_removeDependencyRTreeCacheById()
protected _removeDependencyRTreeCacheById(unitId, sheetId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:150
_restDependencyTreeId()
protected _restDependencyTreeId(): void
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:134
addDependencyRTreeCache()
addDependencyRTreeCache(tree): void
Parameters
Parameter | Type |
---|---|
tree | IFormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addDependencyRTreeCache
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:162
addFeatureFormulaDependency()
addFeatureFormulaDependency(
unitId,
sheetId,
featureId,
dependencyTree): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
featureId | string |
dependencyTree | FormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addFeatureFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:102
addFormulaDependency()
addFormulaDependency(
unitId,
sheetId,
row,
column,
dependencyTree): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
dependencyTree | IFormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:114
addFormulaDependencyByDefinedName()
addFormulaDependencyByDefinedName(tree, node): void
Parameters
Parameter | Type |
---|---|
tree | IFormulaDependencyTree |
node | Nullable <AstRootNode > |
Returns
void
Implementation of
IDependencyManagerService
.addFormulaDependencyByDefinedName
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:206
addOtherFormulaDependency()
addOtherFormulaDependency(
unitId,
sheetId,
formulaId,
dependencyTree): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaId | string |
dependencyTree | IFormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addOtherFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:90
addOtherFormulaDependencyMainData()
addOtherFormulaDependencyMainData(formulaId): void
Parameters
Parameter | Type |
---|---|
formulaId | string |
Returns
void
Implementation of
IDependencyManagerService
.addOtherFormulaDependencyMainData
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:142
buildDependencyTree()
buildDependencyTree(shouldBeBuildTrees, dependencyTrees?): IFormulaDependencyTree[]
Parameters
Parameter | Type |
---|---|
shouldBeBuildTrees | IFormulaDependencyTree [] |
dependencyTrees ? | IFormulaDependencyTree [] |
Returns
Implementation of
IDependencyManagerService
.buildDependencyTree
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:60
clearFeatureFormulaDependency()
clearFeatureFormulaDependency(unitId, sheetId?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearFeatureFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:110
clearFormulaDependency()
clearFormulaDependency(unitId, sheetId?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:122
clearOtherFormulaDependency()
clearOtherFormulaDependency(unitId, sheetId?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearOtherFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:98
dispose()
dispose(): void
Returns
void
Implementation of
IDependencyManagerService
.dispose
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:106
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
getAllTree()
getAllTree(): IFormulaDependencyTree[]
Returns
Implementation of
IDependencyManagerService
.getAllTree
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:68
getFeatureFormulaDependency()
getFeatureFormulaDependency(
unitId,
sheetId,
featureId): Nullable<number>
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
featureId | string |
Returns
Nullable
<number
>
Implementation of
IDependencyManagerService
.getFeatureFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:154
getFormulaDependency()
getFormulaDependency(
unitId,
sheetId,
row,
column): Nullable<number>
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
Returns
Nullable
<number
>
Implementation of
IDependencyManagerService
.getFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:158
getLastTreeId()
getLastTreeId(): number
Returns
number
Implementation of
IDependencyManagerService
.getLastTreeId
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:181
getOtherFormulaDependency()
getOtherFormulaDependency(
unitId,
sheetId,
formulaId): undefined | ObjectMatrix<number>
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaId | string |
Returns
undefined
| ObjectMatrix
<number
>
Implementation of
IDependencyManagerService
.getOtherFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:138
getTreeById()
getTreeById(treeId): Nullable<IFormulaDependencyTree>
Parameters
Parameter | Type |
---|---|
treeId | number |
Returns
Nullable
<IFormulaDependencyTree
>
Implementation of
IDependencyManagerService
.getTreeById
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:64
hasOtherFormulaDataMainData()
hasOtherFormulaDataMainData(formulaId): boolean
Parameters
Parameter | Type |
---|---|
formulaId | string |
Returns
boolean
Implementation of
IDependencyManagerService
.hasOtherFormulaDataMainData
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:146
removeFeatureFormulaDependency()
removeFeatureFormulaDependency(
unitId,
sheetId,
featureIds): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
featureIds | string [] |
Returns
void
Implementation of
IDependencyManagerService
.removeFeatureFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:106
removeFormulaDependency()
removeFormulaDependency(
unitId,
sheetId,
row,
column): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
Returns
void
Implementation of
IDependencyManagerService
.removeFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:118
removeFormulaDependencyByDefinedName()
removeFormulaDependencyByDefinedName(unitId, definedName): void
Parameters
Parameter | Type |
---|---|
unitId | string |
definedName | string |
Returns
void
Implementation of
IDependencyManagerService
.removeFormulaDependencyByDefinedName
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:126
removeOtherFormulaDependency()
removeOtherFormulaDependency(
unitId,
sheetId,
formulaId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaId | string [] |
Returns
void
Implementation of
IDependencyManagerService
.removeOtherFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:94
reset()
reset(): void
Returns
void
Implementation of
IDependencyManagerService
.reset
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:86
searchDependency()
searchDependency(search, exceptTreeIds?): Set<number>
Parameters
Parameter | Type |
---|---|
search | IUnitRange [] |
exceptTreeIds ? | Set <number > |
Returns
Set
<number
>
Implementation of
IDependencyManagerService
.searchDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:130