API Reference
@univerjs
@univerjs/engine-formula
interfaces
Idependencymanagerservice

@univerjs/engine-formula v0.4.2Docs


Interface: IDependencyManagerService

Methods

addDependencyRTreeCache()

addDependencyRTreeCache(tree): void

Parameters

ParameterType
treeFormulaDependencyTree

Returns

void

Defined in

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


addFeatureFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdstring
dependencyTreeFormulaDependencyTree

Returns

void

Defined in

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


addFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber
dependencyTreeFormulaDependencyTree

Returns

void

Defined in

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


addOtherFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring
dependencyTreeFormulaDependencyTree

Returns

void

Defined in

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


buildDependencyTree()

buildDependencyTree(shouldBeBuildTrees, dependencyTrees?): FormulaDependencyTree[]

Parameters

ParameterType
shouldBeBuildTreesFormulaDependencyTree[]
dependencyTrees?FormulaDependencyTree[]

Returns

FormulaDependencyTree[]

Defined in

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


clearDependencyAll()

clearDependencyAll(): void

Returns

void

Defined in

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


clearDependencyForTree()

clearDependencyForTree(shouldBeClearTree): void

Parameters

ParameterType
shouldBeClearTreeNullable<FormulaDependencyTree>

Returns

void

Defined in

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


clearFeatureFormulaDependency()

clearFeatureFormulaDependency(unitId, sheetId?): void

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Defined in

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


clearFormulaDependency()

clearFormulaDependency(unitId, sheetId?): void

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Defined in

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


clearOtherFormulaDependency()

clearOtherFormulaDependency(unitId, sheetId?): void

Parameters

ParameterType
unitIdstring
sheetId?string

Returns

void

Defined in

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


closeKdTree()

closeKdTree(): void

Returns

void

Defined in

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


dispose()

dispose(): void

Returns

void

Defined in

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


getAllTree()

getAllTree(): FormulaDependencyTree[]

Returns

FormulaDependencyTree[]

Defined in

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


getFeatureFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdstring

Returns

Nullable<FormulaDependencyTree>

Defined in

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


getFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

Returns

Nullable<FormulaDependencyTree>

Defined in

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


getLastTreeId()

getLastTreeId(): number

Returns

number

Defined in

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


getOtherFormulaDependency()

getOtherFormulaDependency(
   unitId, 
   sheetId, 
formulaId): Nullable<FormulaDependencyTree>

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring

Returns

Nullable<FormulaDependencyTree>

Defined in

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


getTreeById()

getTreeById(treeId): Nullable<FormulaDependencyTree>

Parameters

ParameterType
treeIdnumber

Returns

Nullable<FormulaDependencyTree>

Defined in

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


openKdTree()

openKdTree(): void

Returns

void

Defined in

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


removeFeatureFormulaDependency()

removeFeatureFormulaDependency(
   unitId, 
   sheetId, 
   featureIds): void

Parameters

ParameterType
unitIdstring
sheetIdstring
featureIdsstring[]

Returns

void

Defined in

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


removeFormulaDependency()

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

Parameters

ParameterType
unitIdstring
sheetIdstring
rownumber
columnnumber

Returns

void

Defined in

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


removeFormulaDependencyByDefinedName()

removeFormulaDependencyByDefinedName(unitId, definedName): void

Parameters

ParameterType
unitIdstring
definedNamestring

Returns

void

Defined in

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


removeOtherFormulaDependency()

removeOtherFormulaDependency(
   unitId, 
   sheetId, 
   formulaId): void

Parameters

ParameterType
unitIdstring
sheetIdstring
formulaIdstring[]

Returns

void

Defined in

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


reset()

reset(): void

Returns

void

Defined in

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


searchDependency()

searchDependency(search): Set<number>

Parameters

ParameterType
searchIUnitRange[]

Returns

Set<number>

Defined in

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


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