@univerjs/engine-formula v0.5.0-beta.1 • Docs
Class: DependencyManagerService
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:93 |
_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
Parameters
Parameter | Type |
---|---|
tree | IFormulaDependencyTree |
Returns
void
Overrides
DependencyManagerBaseService
._addAllTreeMap
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:650
_addDefinedName()
protected _addDefinedName(
unitId,
definedName,
treeId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
definedName | string |
treeId | number |
Returns
void
Inherited from
DependencyManagerBaseService
._addDefinedName
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:191
_removeAllTreeMap()
protected _removeAllTreeMap(treeId): void
Parameters
Parameter | Type |
---|---|
treeId | Nullable <number > |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:643
_removeDependencyRTreeCacheById()
protected _removeDependencyRTreeCacheById(unitId, sheetId): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
Returns
void
Inherited from
DependencyManagerBaseService
._removeDependencyRTreeCacheById
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:150
_restDependencyTreeId()
protected _restDependencyTreeId(): void
Returns
void
Inherited from
DependencyManagerBaseService
._restDependencyTreeId
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
Inherited from
DependencyManagerBaseService
.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
Overrides
DependencyManagerBaseService
.addFeatureFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:441
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
Overrides
DependencyManagerBaseService
.addFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:508
addFormulaDependencyByDefinedName()
addFormulaDependencyByDefinedName(tree, node): void
Parameters
Parameter | Type |
---|---|
tree | IFormulaDependencyTree |
node | Nullable <AstRootNode > |
Returns
void
Implementation of
IDependencyManagerService
.addFormulaDependencyByDefinedName
Inherited from
DependencyManagerBaseService
.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
Overrides
DependencyManagerBaseService
.addOtherFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:335
addOtherFormulaDependencyMainData()
addOtherFormulaDependencyMainData(formulaId): void
Parameters
Parameter | Type |
---|---|
formulaId | string |
Returns
void
Implementation of
IDependencyManagerService
.addOtherFormulaDependencyMainData
Inherited from
DependencyManagerBaseService
.addOtherFormulaDependencyMainData
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:142
buildDependencyTree()
buildDependencyTree(shouldBeBuildTrees, dependencyTrees): IFormulaDependencyTree[]
Parameters
Parameter | Type | Default value |
---|---|---|
shouldBeBuildTrees | IFormulaDependencyTree [] | undefined |
dependencyTrees | IFormulaDependencyTree [] | [] |
Returns
Implementation of
IDependencyManagerService
.buildDependencyTree
Overrides
DependencyManagerBaseService
.buildDependencyTree
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:231
clearDependencyForTree()
clearDependencyForTree(shouldBeClearTree): void
Clear the dependency relationship of the tree. establish the relationship between the parent and the child.
Parameters
Parameter | Type |
---|---|
shouldBeClearTree | Nullable <IFormulaDependencyTree > |
Returns
void
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:579
clearFeatureFormulaDependency()
clearFeatureFormulaDependency(unitId, sheetId?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearFeatureFormulaDependency
Overrides
DependencyManagerBaseService
.clearFeatureFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:477
clearFormulaDependency()
clearFormulaDependency(unitId, sheetId?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearFormulaDependency
Overrides
DependencyManagerBaseService
.clearFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:541
clearOtherFormulaDependency()
clearOtherFormulaDependency(unitId, sheetId?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearOtherFormulaDependency
Overrides
DependencyManagerBaseService
.clearOtherFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:390
dispose()
dispose(): void
Returns
void
Implementation of
IDependencyManagerService
.dispose
Overrides
DependencyManagerBaseService
.dispose
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:227
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
DependencyManagerBaseService
.disposeWithMe
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
DependencyManagerBaseService
.ensureNotDisposed
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100
getAllTree()
getAllTree(): IFormulaDependencyTree[]
Get all FormulaDependencyTree from _otherFormulaData, _featureFormulaData, _formulaData return FormulaDependencyTree[]
Returns
Implementation of
IDependencyManagerService
.getAllTree
Overrides
DependencyManagerBaseService
.getAllTree
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:310
getFeatureFormulaDependency()
getFeatureFormulaDependency(
unitId,
sheetId,
featureId): Nullable<number>
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
featureId | string |
Returns
Nullable
<number
>
Implementation of
IDependencyManagerService
.getFeatureFormulaDependency
Inherited from
DependencyManagerBaseService
.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
Inherited from
DependencyManagerBaseService
.getFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:158
getLastTreeId()
getLastTreeId(): number
Returns
number
Implementation of
IDependencyManagerService
.getLastTreeId
Inherited from
DependencyManagerBaseService
.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
Inherited from
DependencyManagerBaseService
.getOtherFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:138
getTreeById()
getTreeById(treeId): undefined | IFormulaDependencyTree
Parameters
Parameter | Type |
---|---|
treeId | number |
Returns
undefined
| IFormulaDependencyTree
Implementation of
IDependencyManagerService
.getTreeById
Overrides
DependencyManagerBaseService
.getTreeById
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:320
hasOtherFormulaDataMainData()
hasOtherFormulaDataMainData(formulaId): boolean
Parameters
Parameter | Type |
---|---|
formulaId | string |
Returns
boolean
Implementation of
IDependencyManagerService
.hasOtherFormulaDataMainData
Inherited from
DependencyManagerBaseService
.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
Overrides
DependencyManagerBaseService
.removeFeatureFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:458
removeFormulaDependency()
removeFormulaDependency(
unitId,
sheetId,
row,
column): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
Returns
void
Implementation of
IDependencyManagerService
.removeFormulaDependency
Overrides
DependencyManagerBaseService
.removeFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:524
removeFormulaDependencyByDefinedName()
removeFormulaDependencyByDefinedName(unitId, definedName): void
Parameters
Parameter | Type |
---|---|
unitId | string |
definedName | string |
Returns
void
Implementation of
IDependencyManagerService
.removeFormulaDependencyByDefinedName
Overrides
DependencyManagerBaseService
.removeFormulaDependencyByDefinedName
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:627
removeOtherFormulaDependency()
removeOtherFormulaDependency(
unitId,
sheetId,
formulaIds): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaIds | string [] |
Returns
void
Implementation of
IDependencyManagerService
.removeOtherFormulaDependency
Overrides
DependencyManagerBaseService
.removeOtherFormulaDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:359
reset()
reset(): void
Returns
void
Implementation of
IDependencyManagerService
.reset
Overrides
DependencyManagerBaseService
.reset
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:324
searchDependency()
searchDependency(search, exceptTreeIds?): Set<number>
Parameters
Parameter | Type |
---|---|
search | IUnitRange [] |
exceptTreeIds ? | Set <number > |
Returns
Set
<number
>
Implementation of
IDependencyManagerService
.searchDependency
Inherited from
DependencyManagerBaseService
.searchDependency
Defined in
submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:130