API Reference
@univerjs
@univerjs/engine-formula
classes
Dependencymanagerservice

@univerjs/engine-formula v0.4.2Docs


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

DependencyManagerService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

addDependencyRTreeCache()

addDependencyRTreeCache(tree): void

Parameters

ParameterType
treeFormulaDependencyTree

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

ParameterType
unitIdstring
sheetIdstring
featureIdstring
dependencyTreeFormulaDependencyTree

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

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber
dependencyTreeFormulaDependencyTree

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

ParameterType
unitIdstring
sheetIdstring
formulaIdstring
dependencyTreeFormulaDependencyTree

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

ParameterTypeDefault value
shouldBeBuildTreesFormulaDependencyTree[]undefined
dependencyTreesFormulaDependencyTree[][]

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

ParameterType
shouldBeClearTreeNullable<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

ParameterType
unitIdstring
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

ParameterType
unitIdstring
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

ParameterType
unitIdstring
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

Disposable.dispose

Defined in

packages/engine-formula/src/services/dependency-manager.service.ts:102 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

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

ParameterType
unitIdstring
sheetIdstring
featureIdstring

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

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

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

ParameterType
unitIdstring
sheetIdstring
formulaIdstring

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

ParameterType
treeIdnumber

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

ParameterType
unitIdstring
sheetIdstring
formulaIdstring

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

ParameterType
unitIdstring
sheetIdstring
featureIdsstring[]

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

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

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

ParameterType
unitIdstring
definedNamestring

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

ParameterType
unitIdstring
sheetIdstring
formulaIdsstring[]

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

ParameterType
searchIUnitRange[]

Returns

Set<number>

Implementation of

IDependencyManagerService.searchDependency

Defined in

packages/engine-formula/src/services/dependency-manager.service.ts:198 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.