@univerjs-pro/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

DependencyManagerService

Inherited from

DependencyManagerBaseService.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_allTreeMapprotectedMap<number, IFormulaDependencyTree>undefined-submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:225
_definedNameMapprotectedMap<string, Map<string, Set<number>>>undefinedDependencyManagerBaseService._definedNameMapsubmodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:78
_dependencyRTreeCacheprotectedRTreeundefinedDependencyManagerBaseService._dependencyRTreeCachesubmodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:82
_disposedprotectedbooleanfalseDependencyManagerBaseService._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
_featureFormulaDataprotectedMap<string, Map<string, Map<string, Nullable<number>>>>undefinedDependencyManagerBaseService._featureFormulaDatasubmodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:74
_formulaDataprotectedMap<string, Map<string, ObjectMatrix<number>>>undefinedDependencyManagerBaseService._formulaDatasubmodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:76
_otherFormulaDataprotectedMap<string, Map<string, Map<string, ObjectMatrix<number>>>>undefinedDependencyManagerBaseService._otherFormulaDatasubmodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:72
_otherFormulaDataMainDataprotectedSet<string>undefinedDependencyManagerBaseService._otherFormulaDataMainDatasubmodules/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

ParameterType
treeIFormulaDependencyTree

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

ParameterType
unitIdstring
definedNamestring
treeIdnumber

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

ParameterType
treeIdNullable<number>

Returns

void


_removeDependencyRTreeCacheById()

protected _removeDependencyRTreeCacheById(unitId, sheetId): void

Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:150

Parameters

ParameterType
unitIdstring
sheetIdstring

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

ParameterType
treeIFormulaDependencyTree

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

ParameterType
unitIdstring
sheetIdstring
featureIdstring
dependencyTreeFormulaDependencyTree

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

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber
dependencyTreeIFormulaDependencyTree

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

ParameterType
treeIFormulaDependencyTree
nodeNullable<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

ParameterType
unitIdstring
sheetIdstring
formulaIdstring
dependencyTreeIFormulaDependencyTree

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

ParameterType
formulaIdstring

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

ParameterTypeDefault value
shouldBeBuildTreesIFormulaDependencyTree[]undefined
dependencyTreesIFormulaDependencyTree[][]

Returns

IFormulaDependencyTree[]

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

ParameterType
shouldBeClearTreeNullable<IFormulaDependencyTree>

Returns

void


clearFeatureFormulaDependency()

clearFeatureFormulaDependency(unitId, sheetId?): void

Defined in: submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:477

Parameters

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

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

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

ParameterType
disposableDisposableLike

Returns

IDisposable

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

IFormulaDependencyTree[]

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

ParameterType
unitIdstring
sheetIdstring
featureIdstring

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

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

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

ParameterType
unitIdstring
sheetIdstring
formulaIdstring

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

ParameterType
treeIdnumber

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

ParameterType
formulaIdstring

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

ParameterType
unitIdstring
sheetIdstring
featureIdsstring[]

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

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

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

ParameterType
unitIdstring
definedNamestring

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

ParameterType
unitIdstring
sheetIdstring
formulaIdsstring[]

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

ParameterType
searchIUnitRange[]
exceptTreeIds?Set<number>

Returns

Set<number>

Implementation of

IDependencyManagerService.searchDependency

Inherited from

DependencyManagerBaseService.searchDependency