@univerjs-pro/engine-formula v0.5.4


Class: FormulaDependencyTree

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:285

A dependency tree, capable of calculating mutual dependencies, is used to determine the order of formula calculations.

Extends

  • FormulaDependencyTreeCalculator

Constructors

new FormulaDependencyTree()

new FormulaDependencyTree(treeId): FormulaDependencyTree

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:320

Parameters

ParameterType
treeIdnumber

Returns

FormulaDependencyTree

Overrides

FormulaDependencyTreeCalculator.constructor

Properties

PropertyTypeDefault valueInherited fromDefined in
addressFunctionNodesFunctionNode[][]-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:318
childrenSet<number>undefinedFormulaDependencyTreeCalculator.childrensubmodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:71
columnnumber-1-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:308
columnCountnumberNumber.NEGATIVE_INFINITY-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:312
featureDirtyRangesIUnitRange[][]-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:289
featureIdNullable<string>undefined-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:288
formulastring''-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:304
formulaIdNullable<string>undefined-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:296
getDirtyDataGetDirtyDataTypeundefined-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:345
isCachebooleanfalse-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:286
isDirtybooleanfalse-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:314
nodeNullable<AstRootNode>undefined-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:316
parentsSet<number>undefinedFormulaDependencyTreeCalculator.parentssubmodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:73
rangeListIUnitRange[][]-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:302
refOffsetXnumber0-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:291
refOffsetYnumber0-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:292
rownumber-1-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:306
rowCountnumberNumber.NEGATIVE_INFINITY-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:310
subUnitIdstring''-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:298
treeIdnumberundefinedFormulaDependencyTreeCalculator.treeIdsubmodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:69
typeFormulaDependencyTreeTypeFormulaDependencyTreeType.NORMAL_FORMULA-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:294
unitIdstring''-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:300

Accessors

isVirtual

Get Signature

get isVirtual(): boolean

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:325

Returns

boolean


nodeData

Get Signature

get nodeData(): {
  node: Nullable<AstRootNode>;
  refOffsetX: number;
  refOffsetY: number;
}

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:329

Returns
{
  node: Nullable<AstRootNode>;
  refOffsetX: number;
  refOffsetY: number;
}
NameTypeDefault valueDefined in
nodeNullable<AstRootNode>-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:331
refOffsetXnumber0submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:332
refOffsetYnumber0submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:333

Methods

dependencySheetName()

dependencySheetName(dirtyUnitSheetNameMap?): boolean

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:375

Parameters

ParameterType
dirtyUnitSheetNameMap?IDirtyUnitSheetNameMap

Returns

boolean


dispose()

dispose(): void

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:347

Returns

void


hasChildren()

hasChildren(treeId): boolean

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:80

Parameters

ParameterType
treeIdnumber

Returns

boolean

Inherited from

FormulaDependencyTreeCalculator.hasChildren

inRangeData()

inRangeData(range): boolean

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:359

Parameters

ParameterType
rangeIRange

Returns

boolean


isAdded()

isAdded(): boolean

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:57

Returns

boolean

Inherited from

FormulaDependencyTreeCalculator.isAdded

isExcludeRange()

isExcludeRange(unitExcludedCell): boolean

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:398

Parameters

ParameterType
unitExcludedCellNullable<IUnitExcludedCell>

Returns

boolean


isSkip()

isSkip(): boolean

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:65

Returns

boolean

Inherited from

FormulaDependencyTreeCalculator.isSkip

pushChildren()

pushChildren(tree): void

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:75

Parameters

ParameterType
treeFormulaDependencyTreeCalculator

Returns

void

Inherited from

FormulaDependencyTreeCalculator.pushChildren

pushRangeList()

pushRangeList(ranges): void

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:450

Add the range corresponding to the current ast node.

Parameters

ParameterType
rangesIUnitRange[]

Returns

void


resetState()

resetState(): void

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:49

Returns

void

Inherited from

FormulaDependencyTreeCalculator.resetState

setAdded()

setAdded(): void

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:53

Returns

void

Inherited from

FormulaDependencyTreeCalculator.setAdded

setSkip()

setSkip(): void

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:61

Returns

void

Inherited from

FormulaDependencyTreeCalculator.setSkip

shouldBePushRangeList()

shouldBePushRangeList(): boolean

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:454

Returns

boolean


toJson()

toJson(): {
  formula: string;
  refOffsetX: number;
  refOffsetY: number;
}

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:337

Returns

{
  formula: string;
  refOffsetX: number;
  refOffsetY: number;
}
NameTypeDefined in
formulastringsubmodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:339
refOffsetXnumbersubmodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:340
refOffsetYnumbersubmodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:341

toRTreeItem()

toRTreeItem(): IUnitRange[]

Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:462

Returns

IUnitRange[]