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


Interface: IDependencyManagerService

Methods

addDependencyRTreeCache()

addDependencyRTreeCache(tree): void

Parameters

ParameterType
treeIFormulaDependencyTree

Returns

void

Defined in

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


addFeatureFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdstring
dependencyTreeFormulaDependencyTree

Returns

void

Defined in

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


addFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber
dependencyTreeIFormulaDependencyTree

Returns

void

Defined in

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


addFormulaDependencyByDefinedName()

addFormulaDependencyByDefinedName(tree, node): void

Parameters

ParameterType
treeIFormulaDependencyTree
nodeNullable<AstRootNode>

Returns

void

Defined in

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


addOtherFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring
dependencyTreeIFormulaDependencyTree

Returns

void

Defined in

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


addOtherFormulaDependencyMainData()

addOtherFormulaDependencyMainData(formulaId): void

Parameters

ParameterType
formulaIdstring

Returns

void

Defined in

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


buildDependencyTree()

buildDependencyTree(shouldBeBuildTrees, dependencyTrees?): IFormulaDependencyTree[]

Parameters

ParameterType
shouldBeBuildTreesIFormulaDependencyTree[]
dependencyTrees?IFormulaDependencyTree[]

Returns

IFormulaDependencyTree[]

Defined in

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


clearFeatureFormulaDependency()

clearFeatureFormulaDependency(unitId, sheetId?): void

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Defined in

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


clearFormulaDependency()

clearFormulaDependency(unitId, sheetId?): void

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Defined in

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


clearOtherFormulaDependency()

clearOtherFormulaDependency(unitId, sheetId?): void

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Defined in

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


dispose()

dispose(): void

Returns

void

Defined in

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


getAllTree()

getAllTree(): IFormulaDependencyTree[]

Returns

IFormulaDependencyTree[]

Defined in

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


getFeatureFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdstring

Returns

Nullable<number>

Defined in

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


getFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

Returns

Nullable<number>

Defined in

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


getLastTreeId()

getLastTreeId(): number

Returns

number

Defined in

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


getOtherFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring

Returns

Nullable<ObjectMatrix<number>>

Defined in

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


getTreeById()

getTreeById(treeId): Nullable<IFormulaDependencyTree>

Parameters

ParameterType
treeIdnumber

Returns

Nullable<IFormulaDependencyTree>

Defined in

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


hasOtherFormulaDataMainData()

hasOtherFormulaDataMainData(formulaId): boolean

Parameters

ParameterType
formulaIdstring

Returns

boolean

Defined in

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


removeFeatureFormulaDependency()

removeFeatureFormulaDependency(
   unitId, 
   sheetId, 
   featureIds): void

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdsstring[]

Returns

void

Defined in

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


removeFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

Returns

void

Defined in

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


removeFormulaDependencyByDefinedName()

removeFormulaDependencyByDefinedName(unitId, definedName): void

Parameters

ParameterType
unitIdstring
definedNamestring

Returns

void

Defined in

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


removeOtherFormulaDependency()

removeOtherFormulaDependency(
   unitId, 
   sheetId, 
   formulaId): void

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring[]

Returns

void

Defined in

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


reset()

reset(): void

Returns

void

Defined in

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


searchDependency()

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

Parameters

ParameterType
searchIUnitRange[]
exceptTreeIds?Set<number>

Returns

Set<number>

Defined in

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