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


Class: FormulaDependencyTree

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

Parameters

ParameterType
treeIdnumber

Returns

FormulaDependencyTree

Overrides

FormulaDependencyTreeCalculator.constructor

Defined in

submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:316

Properties

PropertyTypeDefault valueInherited fromDefined in
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:306
columnCountnumberNumber.NEGATIVE_INFINITY-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:310
featureDirtyRangesIUnitRange[][]-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:287
featureIdNullable<string>undefined-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:286
formulastring''-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:302
formulaIdNullable<string>undefined-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:294
getDirtyDataGetDirtyDataTypeundefined-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:341
isCachebooleanfalse-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:284
isDirtybooleanfalse-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:312
nodeNullable<AstRootNode>undefined-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:314
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:300
refOffsetXnumber0-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:289
refOffsetYnumber0-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:290
rownumber-1-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:304
rowCountnumberNumber.NEGATIVE_INFINITY-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:308
subUnitIdstring''-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:296
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:292
unitIdstring''-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:298

Accessors

isVirtual

Get Signature

get isVirtual(): boolean
Returns

boolean

Defined in

submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:321


nodeData

Get Signature

get nodeData(): {
  node: Nullable<AstRootNode>;
  refOffsetX: 0;
  refOffsetY: 0;
}
Returns
{
  node: Nullable<AstRootNode>;
  refOffsetX: 0;
  refOffsetY: 0;
}
NameTypeDefault valueDefined in
nodeNullable<AstRootNode>-submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:327
refOffsetXnumber0submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:328
refOffsetYnumber0submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:329

Defined in

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

Methods

dependencySheetName()

dependencySheetName(dirtyUnitSheetNameMap?): boolean

Parameters

ParameterType
dirtyUnitSheetNameMap?IDirtyUnitSheetNameMap

Returns

boolean

Defined in

submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:369


dispose()

dispose(): void

Returns

void

Defined in

submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:343


hasChildren()

hasChildren(treeId): boolean

Parameters

ParameterType
treeIdnumber

Returns

boolean

Inherited from

FormulaDependencyTreeCalculator.hasChildren

Defined in

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


inRangeData()

inRangeData(range): boolean

Parameters

ParameterType
rangeIRange

Returns

boolean

Defined in

submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:353


isAdded()

isAdded(): boolean

Returns

boolean

Inherited from

FormulaDependencyTreeCalculator.isAdded

Defined in

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


isExcludeRange()

isExcludeRange(unitExcludedCell): boolean

Parameters

ParameterType
unitExcludedCellNullable<IUnitExcludedCell>

Returns

boolean

Defined in

submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:392


isSkip()

isSkip(): boolean

Returns

boolean

Inherited from

FormulaDependencyTreeCalculator.isSkip

Defined in

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


pushChildren()

pushChildren(tree): void

Parameters

ParameterType
treeFormulaDependencyTreeCalculator

Returns

void

Inherited from

FormulaDependencyTreeCalculator.pushChildren

Defined in

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


pushRangeList()

pushRangeList(ranges): void

Add the range corresponding to the current ast node.

Parameters

ParameterType
rangesIUnitRange[]

Returns

void

Defined in

submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:444


resetState()

resetState(): void

Returns

void

Inherited from

FormulaDependencyTreeCalculator.resetState

Defined in

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


setAdded()

setAdded(): void

Returns

void

Inherited from

FormulaDependencyTreeCalculator.setAdded

Defined in

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


setSkip()

setSkip(): void

Returns

void

Inherited from

FormulaDependencyTreeCalculator.setSkip

Defined in

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


shouldBePushRangeList()

shouldBePushRangeList(): boolean

Returns

boolean

Defined in

submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:448


toJson()

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

Returns

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

Defined in

submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:333


toRTreeItem()

toRTreeItem(): IUnitRange[]

Returns

IUnitRange[]

Defined in

submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:456