@univerjs/engine-formula v0.5.4
Class: DependencyManagerService
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:224
Passively marked as dirty, register the reference and execution actions of the feature plugin. After execution, a dirty area and calculated data will be returned, causing the formula to be marked dirty again, thereby completing the calculation of the entire dependency tree.
Extends
Implements
Constructors
new DependencyManagerService()
new DependencyManagerService(): DependencyManagerService
Returns
Inherited from
DependencyManagerBaseService
.constructor
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_allTreeMap | protected | Map <number , IFormulaDependencyTree > | undefined | - | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:225 |
_definedNameMap | protected | Map <string , Map <string , Set <number >>> | undefined | DependencyManagerBaseService ._definedNameMap | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:78 |
_dependencyRTreeCache | protected | RTree | undefined | DependencyManagerBaseService ._dependencyRTreeCache | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:82 |
_disposed | protected | boolean | false | DependencyManagerBaseService ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
_featureFormulaData | protected | Map <string , Map <string , Map <string , Nullable <number >>>> | undefined | DependencyManagerBaseService ._featureFormulaData | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:74 |
_formulaData | protected | Map <string , Map <string , ObjectMatrix <number >>> | undefined | DependencyManagerBaseService ._formulaData | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:76 |
_otherFormulaData | protected | Map <string , Map <string , Map <string , ObjectMatrix <number >>>> | undefined | DependencyManagerBaseService ._otherFormulaData | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:72 |
_otherFormulaDataMainData | protected | Set <string > | undefined | DependencyManagerBaseService ._otherFormulaDataMainData | submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:80 |
Methods
_addAllTreeMap()
protected _addAllTreeMap(tree): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:650
Parameters
Parameter | Type |
---|---|
tree | IFormulaDependencyTree |
Returns
void
Overrides
DependencyManagerBaseService
._addAllTreeMap
_addDefinedName()
protected _addDefinedName(
unitId,
definedName,
treeId): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:191
Parameters
Parameter | Type |
---|---|
unitId | string |
definedName | string |
treeId | number |
Returns
void
Inherited from
DependencyManagerBaseService
._addDefinedName
_removeAllTreeMap()
protected _removeAllTreeMap(treeId): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:643
Parameters
Parameter | Type |
---|---|
treeId | Nullable <number > |
Returns
void
_removeDependencyRTreeCacheById()
protected _removeDependencyRTreeCacheById(unitId, sheetId): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:150
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
Returns
void
Inherited from
DependencyManagerBaseService
._removeDependencyRTreeCacheById
_restDependencyTreeId()
protected _restDependencyTreeId(): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:134
Returns
void
Inherited from
DependencyManagerBaseService
._restDependencyTreeId
addDependencyRTreeCache()
addDependencyRTreeCache(tree): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:162
Parameters
Parameter | Type |
---|---|
tree | IFormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addDependencyRTreeCache
Inherited from
DependencyManagerBaseService
.addDependencyRTreeCache
addFeatureFormulaDependency()
addFeatureFormulaDependency(
unitId,
sheetId,
featureId,
dependencyTree): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:441
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
featureId | string |
dependencyTree | FormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addFeatureFormulaDependency
Overrides
DependencyManagerBaseService
.addFeatureFormulaDependency
addFormulaDependency()
addFormulaDependency(
unitId,
sheetId,
row,
column,
dependencyTree): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:508
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
dependencyTree | IFormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addFormulaDependency
Overrides
DependencyManagerBaseService
.addFormulaDependency
addFormulaDependencyByDefinedName()
addFormulaDependencyByDefinedName(tree, node): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:206
Parameters
Parameter | Type |
---|---|
tree | IFormulaDependencyTree |
node | Nullable <AstRootNode > |
Returns
void
Implementation of
IDependencyManagerService
.addFormulaDependencyByDefinedName
Inherited from
DependencyManagerBaseService
.addFormulaDependencyByDefinedName
addOtherFormulaDependency()
addOtherFormulaDependency(
unitId,
sheetId,
formulaId,
dependencyTree): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:335
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaId | string |
dependencyTree | IFormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addOtherFormulaDependency
Overrides
DependencyManagerBaseService
.addOtherFormulaDependency
addOtherFormulaDependencyMainData()
addOtherFormulaDependencyMainData(formulaId): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:142
Parameters
Parameter | Type |
---|---|
formulaId | string |
Returns
void
Implementation of
IDependencyManagerService
.addOtherFormulaDependencyMainData
Inherited from
DependencyManagerBaseService
.addOtherFormulaDependencyMainData
buildDependencyTree()
buildDependencyTree(shouldBeBuildTrees, dependencyTrees): IFormulaDependencyTree[]
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:231
Parameters
Parameter | Type | Default value |
---|---|---|
shouldBeBuildTrees | IFormulaDependencyTree [] | undefined |
dependencyTrees | IFormulaDependencyTree [] | [] |
Returns
Implementation of
IDependencyManagerService
.buildDependencyTree
Overrides
DependencyManagerBaseService
.buildDependencyTree
clearDependencyForTree()
clearDependencyForTree(shouldBeClearTree): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:579
Clear the dependency relationship of the tree. establish the relationship between the parent and the child.
Parameters
Parameter | Type |
---|---|
shouldBeClearTree | Nullable <IFormulaDependencyTree > |
Returns
void
clearFeatureFormulaDependency()
clearFeatureFormulaDependency(unitId, sheetId?): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:477
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearFeatureFormulaDependency
Overrides
DependencyManagerBaseService
.clearFeatureFormulaDependency
clearFormulaDependency()
clearFormulaDependency(unitId, sheetId?): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:541
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearFormulaDependency
Overrides
DependencyManagerBaseService
.clearFormulaDependency
clearOtherFormulaDependency()
clearOtherFormulaDependency(unitId, sheetId?): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:390
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearOtherFormulaDependency
Overrides
DependencyManagerBaseService
.clearOtherFormulaDependency
dispose()
dispose(): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:227
Returns
void
Implementation of
IDependencyManagerService
.dispose
Overrides
DependencyManagerBaseService
.dispose
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
DependencyManagerBaseService
.disposeWithMe
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
DependencyManagerBaseService
.ensureNotDisposed
getAllTree()
getAllTree(): IFormulaDependencyTree[]
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:310
Get all FormulaDependencyTree from _otherFormulaData, _featureFormulaData, _formulaData return FormulaDependencyTree[]
Returns
Implementation of
IDependencyManagerService
.getAllTree
Overrides
DependencyManagerBaseService
.getAllTree
getFeatureFormulaDependency()
getFeatureFormulaDependency(
unitId,
sheetId,
featureId): Nullable<number>
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:154
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
featureId | string |
Returns
Nullable
<number
>
Implementation of
IDependencyManagerService
.getFeatureFormulaDependency
Inherited from
DependencyManagerBaseService
.getFeatureFormulaDependency
getFormulaDependency()
getFormulaDependency(
unitId,
sheetId,
row,
column): Nullable<number>
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:158
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
Returns
Nullable
<number
>
Implementation of
IDependencyManagerService
.getFormulaDependency
Inherited from
DependencyManagerBaseService
.getFormulaDependency
getLastTreeId()
getLastTreeId(): number
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:181
Returns
number
Implementation of
IDependencyManagerService
.getLastTreeId
Inherited from
DependencyManagerBaseService
.getLastTreeId
getOtherFormulaDependency()
getOtherFormulaDependency(
unitId,
sheetId,
formulaId):
| undefined
| ObjectMatrix<number>
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:138
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaId | string |
Returns
| undefined
| ObjectMatrix
<number
>
Implementation of
IDependencyManagerService
.getOtherFormulaDependency
Inherited from
DependencyManagerBaseService
.getOtherFormulaDependency
getTreeById()
getTreeById(treeId):
| undefined
| IFormulaDependencyTree
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:320
Parameters
Parameter | Type |
---|---|
treeId | number |
Returns
| undefined
| IFormulaDependencyTree
Implementation of
IDependencyManagerService
.getTreeById
Overrides
DependencyManagerBaseService
.getTreeById
hasOtherFormulaDataMainData()
hasOtherFormulaDataMainData(formulaId): boolean
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:146
Parameters
Parameter | Type |
---|---|
formulaId | string |
Returns
boolean
Implementation of
IDependencyManagerService
.hasOtherFormulaDataMainData
Inherited from
DependencyManagerBaseService
.hasOtherFormulaDataMainData
removeFeatureFormulaDependency()
removeFeatureFormulaDependency(
unitId,
sheetId,
featureIds): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:458
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
featureIds | string [] |
Returns
void
Implementation of
IDependencyManagerService
.removeFeatureFormulaDependency
Overrides
DependencyManagerBaseService
.removeFeatureFormulaDependency
removeFormulaDependency()
removeFormulaDependency(
unitId,
sheetId,
row,
column): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:524
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
Returns
void
Implementation of
IDependencyManagerService
.removeFormulaDependency
Overrides
DependencyManagerBaseService
.removeFormulaDependency
removeFormulaDependencyByDefinedName()
removeFormulaDependencyByDefinedName(unitId, definedName): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:627
Parameters
Parameter | Type |
---|---|
unitId | string |
definedName | string |
Returns
void
Implementation of
IDependencyManagerService
.removeFormulaDependencyByDefinedName
Overrides
DependencyManagerBaseService
.removeFormulaDependencyByDefinedName
removeOtherFormulaDependency()
removeOtherFormulaDependency(
unitId,
sheetId,
formulaIds): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:359
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaIds | string [] |
Returns
void
Implementation of
IDependencyManagerService
.removeOtherFormulaDependency
Overrides
DependencyManagerBaseService
.removeOtherFormulaDependency
reset()
reset(): void
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:324
Returns
void
Implementation of
IDependencyManagerService
.reset
Overrides
DependencyManagerBaseService
.reset
searchDependency()
searchDependency(search, exceptTreeIds?): Set<number>
Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:130
Parameters
Parameter | Type |
---|---|
search | IUnitRange [] |
exceptTreeIds ? | Set <number > |
Returns
Set
<number
>
Implementation of
IDependencyManagerService
.searchDependency