@univerjs-proengine-formulaindexclassesDependencymanagerbaseservice

@univerjs-pro/engine-formula v0.5.4


Class: DependencyManagerBaseService

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

Extends

Extended by

Implements

Constructors

new DependencyManagerBaseService()

new DependencyManagerBaseService(): DependencyManagerBaseService

Returns

DependencyManagerBaseService

Inherited from

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_definedNameMapprotectedMap<string, Map<string, Set<number>>>undefined-submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:78
_dependencyRTreeCacheprotectedRTreeundefined-submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:82
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
_featureFormulaDataprotectedMap<string, Map<string, Map<string, Nullable<number>>>>undefined-submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:74
_formulaDataprotectedMap<string, Map<string, ObjectMatrix<number>>>undefined-submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:76
_otherFormulaDataprotectedMap<string, Map<string, Map<string, ObjectMatrix<number>>>>undefined-submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:72
_otherFormulaDataMainDataprotectedSet<string>undefined-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:187

Parameters

ParameterType
treeIFormulaDependencyTree

Returns

void


_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


_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


_restDependencyTreeId()

protected _restDependencyTreeId(): void

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

Returns

void


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


addFeatureFormulaDependency()

addFeatureFormulaDependency(
   unitId, 
   sheetId, 
   featureId, 
   dependencyTree): void

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

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdstring
dependencyTreeFormulaDependencyTree

Returns

void

Implementation of

IDependencyManagerService.addFeatureFormulaDependency


addFormulaDependency()

addFormulaDependency(
   unitId, 
   sheetId, 
   row, 
   column, 
   dependencyTree): void

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

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber
dependencyTreeIFormulaDependencyTree

Returns

void

Implementation of

IDependencyManagerService.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


addOtherFormulaDependency()

addOtherFormulaDependency(
   unitId, 
   sheetId, 
   formulaId, 
   dependencyTree): void

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

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring
dependencyTreeIFormulaDependencyTree

Returns

void

Implementation of

IDependencyManagerService.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


buildDependencyTree()

buildDependencyTree(shouldBeBuildTrees, dependencyTrees?): IFormulaDependencyTree[]

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

Parameters

ParameterType
shouldBeBuildTreesIFormulaDependencyTree[]
dependencyTrees?IFormulaDependencyTree[]

Returns

IFormulaDependencyTree[]

Implementation of

IDependencyManagerService.buildDependencyTree


clearFeatureFormulaDependency()

clearFeatureFormulaDependency(unitId, sheetId?): void

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

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Implementation of

IDependencyManagerService.clearFeatureFormulaDependency


clearFormulaDependency()

clearFormulaDependency(unitId, sheetId?): void

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

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Implementation of

IDependencyManagerService.clearFormulaDependency


clearOtherFormulaDependency()

clearOtherFormulaDependency(unitId, sheetId?): void

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

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Implementation of

IDependencyManagerService.clearOtherFormulaDependency


dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Implementation of

IDependencyManagerService.dispose

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getAllTree()

getAllTree(): IFormulaDependencyTree[]

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

Returns

IFormulaDependencyTree[]

Implementation of

IDependencyManagerService.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


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


getLastTreeId()

getLastTreeId(): number

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

Returns

number

Implementation of

IDependencyManagerService.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


getTreeById()

getTreeById(treeId): Nullable<IFormulaDependencyTree>

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

Parameters

ParameterType
treeIdnumber

Returns

Nullable<IFormulaDependencyTree>

Implementation of

IDependencyManagerService.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


removeFeatureFormulaDependency()

removeFeatureFormulaDependency(
   unitId, 
   sheetId, 
   featureIds): void

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

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdsstring[]

Returns

void

Implementation of

IDependencyManagerService.removeFeatureFormulaDependency


removeFormulaDependency()

removeFormulaDependency(
   unitId, 
   sheetId, 
   row, 
   column): void

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

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

Returns

void

Implementation of

IDependencyManagerService.removeFormulaDependency


removeFormulaDependencyByDefinedName()

removeFormulaDependencyByDefinedName(unitId, definedName): void

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

Parameters

ParameterType
unitIdstring
definedNamestring

Returns

void

Implementation of

IDependencyManagerService.removeFormulaDependencyByDefinedName


removeOtherFormulaDependency()

removeOtherFormulaDependency(
   unitId, 
   sheetId, 
   formulaId): void

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

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring[]

Returns

void

Implementation of

IDependencyManagerService.removeOtherFormulaDependency


reset()

reset(): void

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

Returns

void

Implementation of

IDependencyManagerService.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