@univerjs/engine-formula v0.4.2 • 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
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
addDependencyRTreeCache()
addDependencyRTreeCache(tree): void
Parameters
Parameter | Type |
---|---|
tree | FormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addDependencyRTreeCache
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:525 (opens in a new tab)
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
packages/engine-formula/src/services/dependency-manager.service.ts:379 (opens in a new tab)
addFormulaDependency()
addFormulaDependency(
unitId,
sheetId,
row,
column,
dependencyTree): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
dependencyTree | FormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addFormulaDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:450 (opens in a new tab)
addOtherFormulaDependency()
addOtherFormulaDependency(
unitId,
sheetId,
formulaId,
dependencyTree): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaId | string |
dependencyTree | FormulaDependencyTree |
Returns
void
Implementation of
IDependencyManagerService
.addOtherFormulaDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:305 (opens in a new tab)
buildDependencyTree()
buildDependencyTree(shouldBeBuildTrees, dependencyTrees): FormulaDependencyTree[]
Parameters
Parameter | Type | Default value |
---|---|---|
shouldBeBuildTrees | FormulaDependencyTree [] | undefined |
dependencyTrees | FormulaDependencyTree [] | [] |
Returns
FormulaDependencyTree
[]
Implementation of
IDependencyManagerService
.buildDependencyTree
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:186 (opens in a new tab)
clearDependencyAll()
clearDependencyAll(): void
Returns
void
Implementation of
IDependencyManagerService
.clearDependencyAll
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:509 (opens in a new tab)
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 <FormulaDependencyTree > |
Returns
void
Implementation of
IDependencyManagerService
.clearDependencyForTree
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:272 (opens in a new tab)
clearFeatureFormulaDependency()
clearFeatureFormulaDependency(unitId, sheetId?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearFeatureFormulaDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:407 (opens in a new tab)
clearFormulaDependency()
clearFormulaDependency(unitId, sheetId?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearFormulaDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:475 (opens in a new tab)
clearOtherFormulaDependency()
clearOtherFormulaDependency(unitId, sheetId?): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId ? | string |
Returns
void
Implementation of
IDependencyManagerService
.clearOtherFormulaDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:345 (opens in a new tab)
closeKdTree()
closeKdTree(): void
Returns
void
Implementation of
IDependencyManagerService
.closeKdTree
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:596 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Implementation of
IDependencyManagerService
.dispose
Overrides
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:102 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
getAllTree()
getAllTree(): FormulaDependencyTree[]
Get all FormulaDependencyTree from _otherFormulaData, _featureFormulaData, _formulaData return FormulaDependencyTree[]
Returns
FormulaDependencyTree
[]
Implementation of
IDependencyManagerService
.getAllTree
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:115 (opens in a new tab)
getFeatureFormulaDependency()
getFeatureFormulaDependency(
unitId,
sheetId,
featureId): undefined | null | FormulaDependencyTree
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
featureId | string |
Returns
undefined
| null
| FormulaDependencyTree
Implementation of
IDependencyManagerService
.getFeatureFormulaDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:442 (opens in a new tab)
getFormulaDependency()
getFormulaDependency(
unitId,
sheetId,
row,
column): undefined | null | FormulaDependencyTree
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
row | number |
column | number |
Returns
undefined
| null
| FormulaDependencyTree
Implementation of
IDependencyManagerService
.getFormulaDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:517 (opens in a new tab)
getLastTreeId()
getLastTreeId(): number
Returns
number
Implementation of
IDependencyManagerService
.getLastTreeId
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:546 (opens in a new tab)
getOtherFormulaDependency()
getOtherFormulaDependency(
unitId,
sheetId,
formulaId): undefined | FormulaDependencyTree
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaId | string |
Returns
undefined
| FormulaDependencyTree
Implementation of
IDependencyManagerService
.getOtherFormulaDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:333 (opens in a new tab)
getTreeById()
getTreeById(treeId): undefined | FormulaDependencyTree
Parameters
Parameter | Type |
---|---|
treeId | number |
Returns
undefined
| FormulaDependencyTree
Implementation of
IDependencyManagerService
.getTreeById
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:182 (opens in a new tab)
hasOtherFormulaDependency()
hasOtherFormulaDependency(
unitId,
sheetId,
formulaId): boolean
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaId | string |
Returns
boolean
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:341 (opens in a new tab)
openKdTree()
openKdTree(): void
Returns
void
Implementation of
IDependencyManagerService
.openKdTree
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:592 (opens in a new tab)
removeFeatureFormulaDependency()
removeFeatureFormulaDependency(
unitId,
sheetId,
featureIds): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
featureIds | string [] |
Returns
void
Implementation of
IDependencyManagerService
.removeFeatureFormulaDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:391 (opens in a new tab)
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
packages/engine-formula/src/services/dependency-manager.service.ts:461 (opens in a new tab)
removeFormulaDependencyByDefinedName()
removeFormulaDependencyByDefinedName(unitId, definedName): void
Parameters
Parameter | Type |
---|---|
unitId | string |
definedName | string |
Returns
void
Implementation of
IDependencyManagerService
.removeFormulaDependencyByDefinedName
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:577 (opens in a new tab)
removeOtherFormulaDependency()
removeOtherFormulaDependency(
unitId,
sheetId,
formulaIds): void
Parameters
Parameter | Type |
---|---|
unitId | string |
sheetId | string |
formulaIds | string [] |
Returns
void
Implementation of
IDependencyManagerService
.removeOtherFormulaDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:317 (opens in a new tab)
reset()
reset(): void
Returns
void
Implementation of
IDependencyManagerService
.reset
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:296 (opens in a new tab)
searchDependency()
searchDependency(search): Set<number>
Parameters
Parameter | Type |
---|---|
search | IUnitRange [] |
Returns
Set
<number
>
Implementation of
IDependencyManagerService
.searchDependency
Defined in
packages/engine-formula/src/services/dependency-manager.service.ts:198 (opens in a new tab)