@univerjsengine-formulaindexclassesDependencymanagerbaseservice

@univerjs/engine-formula v0.5.0-beta.1 • Docs


Class: DependencyManagerBaseService

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:93
_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

Parameters

ParameterType
treeIFormulaDependencyTree

Returns

void

Defined in

submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:187


_addDefinedName()

protected _addDefinedName(
   unitId, 
   definedName, 
   treeId): void

Parameters

ParameterType
unitIdstring
definedNamestring
treeIdnumber

Returns

void

Defined in

submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:191


_removeDependencyRTreeCacheById()

protected _removeDependencyRTreeCacheById(unitId, sheetId): void

Parameters

ParameterType
unitIdstring
sheetIdstring

Returns

void

Defined in

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


_restDependencyTreeId()

protected _restDependencyTreeId(): void

Returns

void

Defined in

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


addDependencyRTreeCache()

addDependencyRTreeCache(tree): void

Parameters

ParameterType
treeIFormulaDependencyTree

Returns

void

Implementation of

IDependencyManagerService.addDependencyRTreeCache

Defined in

submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:162


addFeatureFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdstring
dependencyTreeFormulaDependencyTree

Returns

void

Implementation of

IDependencyManagerService.addFeatureFormulaDependency

Defined in

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


addFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber
dependencyTreeIFormulaDependencyTree

Returns

void

Implementation of

IDependencyManagerService.addFormulaDependency

Defined in

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


addFormulaDependencyByDefinedName()

addFormulaDependencyByDefinedName(tree, node): void

Parameters

ParameterType
treeIFormulaDependencyTree
nodeNullable<AstRootNode>

Returns

void

Implementation of

IDependencyManagerService.addFormulaDependencyByDefinedName

Defined in

submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:206


addOtherFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring
dependencyTreeIFormulaDependencyTree

Returns

void

Implementation of

IDependencyManagerService.addOtherFormulaDependency

Defined in

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


addOtherFormulaDependencyMainData()

addOtherFormulaDependencyMainData(formulaId): void

Parameters

ParameterType
formulaIdstring

Returns

void

Implementation of

IDependencyManagerService.addOtherFormulaDependencyMainData

Defined in

submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:142


buildDependencyTree()

buildDependencyTree(shouldBeBuildTrees, dependencyTrees?): IFormulaDependencyTree[]

Parameters

ParameterType
shouldBeBuildTreesIFormulaDependencyTree[]
dependencyTrees?IFormulaDependencyTree[]

Returns

IFormulaDependencyTree[]

Implementation of

IDependencyManagerService.buildDependencyTree

Defined in

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


clearFeatureFormulaDependency()

clearFeatureFormulaDependency(unitId, sheetId?): void

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Implementation of

IDependencyManagerService.clearFeatureFormulaDependency

Defined in

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


clearFormulaDependency()

clearFormulaDependency(unitId, sheetId?): void

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Implementation of

IDependencyManagerService.clearFormulaDependency

Defined in

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


clearOtherFormulaDependency()

clearOtherFormulaDependency(unitId, sheetId?): void

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Implementation of

IDependencyManagerService.clearOtherFormulaDependency

Defined in

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


dispose()

dispose(): void

Returns

void

Implementation of

IDependencyManagerService.dispose

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


getAllTree()

getAllTree(): IFormulaDependencyTree[]

Returns

IFormulaDependencyTree[]

Implementation of

IDependencyManagerService.getAllTree

Defined in

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


getFeatureFormulaDependency()

getFeatureFormulaDependency(
   unitId, 
   sheetId, 
featureId): Nullable<number>

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdstring

Returns

Nullable<number>

Implementation of

IDependencyManagerService.getFeatureFormulaDependency

Defined in

submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:154


getFormulaDependency()

getFormulaDependency(
   unitId, 
   sheetId, 
   row, 
column): Nullable<number>

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

Returns

Nullable<number>

Implementation of

IDependencyManagerService.getFormulaDependency

Defined in

submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:158


getLastTreeId()

getLastTreeId(): number

Returns

number

Implementation of

IDependencyManagerService.getLastTreeId

Defined in

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


getOtherFormulaDependency()

getOtherFormulaDependency(
   unitId, 
   sheetId, 
formulaId): undefined | ObjectMatrix<number>

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring

Returns

undefined | ObjectMatrix<number>

Implementation of

IDependencyManagerService.getOtherFormulaDependency

Defined in

submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:138


getTreeById()

getTreeById(treeId): Nullable<IFormulaDependencyTree>

Parameters

ParameterType
treeIdnumber

Returns

Nullable<IFormulaDependencyTree>

Implementation of

IDependencyManagerService.getTreeById

Defined in

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


hasOtherFormulaDataMainData()

hasOtherFormulaDataMainData(formulaId): boolean

Parameters

ParameterType
formulaIdstring

Returns

boolean

Implementation of

IDependencyManagerService.hasOtherFormulaDataMainData

Defined in

submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:146


removeFeatureFormulaDependency()

removeFeatureFormulaDependency(
   unitId, 
   sheetId, 
   featureIds): void

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdsstring[]

Returns

void

Implementation of

IDependencyManagerService.removeFeatureFormulaDependency

Defined in

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


removeFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

Returns

void

Implementation of

IDependencyManagerService.removeFormulaDependency

Defined in

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


removeFormulaDependencyByDefinedName()

removeFormulaDependencyByDefinedName(unitId, definedName): void

Parameters

ParameterType
unitIdstring
definedNamestring

Returns

void

Implementation of

IDependencyManagerService.removeFormulaDependencyByDefinedName

Defined in

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


removeOtherFormulaDependency()

removeOtherFormulaDependency(
   unitId, 
   sheetId, 
   formulaId): void

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring[]

Returns

void

Implementation of

IDependencyManagerService.removeOtherFormulaDependency

Defined in

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


reset()

reset(): void

Returns

void

Implementation of

IDependencyManagerService.reset

Defined in

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


searchDependency()

searchDependency(search, exceptTreeIds?): Set<number>

Parameters

ParameterType
searchIUnitRange[]
exceptTreeIds?Set<number>

Returns

Set<number>

Implementation of

IDependencyManagerService.searchDependency

Defined in

submodules/univer/packages/engine-formula/src/services/dependency-manager.service.ts:130