@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
Parameter | Type |
---|---|
treeId | number |
Returns
Overrides
FormulaDependencyTreeCalculator.constructor
Properties
Property | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|
addressFunctionNodes | FunctionNode [] | [] | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:318 |
children | Set <number > | undefined | FormulaDependencyTreeCalculator.children | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:71 |
column | number | -1 | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:308 |
columnCount | number | Number.NEGATIVE_INFINITY | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:312 |
featureDirtyRanges | IUnitRange [] | [] | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:289 |
featureId | Nullable <string > | undefined | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:288 |
formula | string | '' | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:304 |
formulaId | Nullable <string > | undefined | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:296 |
getDirtyData | GetDirtyDataType | undefined | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:345 |
isCache | boolean | false | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:286 |
isDirty | boolean | false | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:314 |
node | Nullable <AstRootNode > | undefined | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:316 |
parents | Set <number > | undefined | FormulaDependencyTreeCalculator.parents | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:73 |
rangeList | IUnitRange [] | [] | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:302 |
refOffsetX | number | 0 | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:291 |
refOffsetY | number | 0 | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:292 |
row | number | -1 | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:306 |
rowCount | number | Number.NEGATIVE_INFINITY | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:310 |
subUnitId | string | '' | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:298 |
treeId | number | undefined | FormulaDependencyTreeCalculator.treeId | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:69 |
type | FormulaDependencyTreeType | FormulaDependencyTreeType.NORMAL_FORMULA | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:294 |
unitId | string | '' | - | 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;
}
Name | Type | Default value | Defined in |
---|---|---|---|
node | Nullable <AstRootNode > | - | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:331 |
refOffsetX | number | 0 | submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:332 |
refOffsetY | number | 0 | submodules/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
Parameter | Type |
---|---|
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
Parameter | Type |
---|---|
treeId | number |
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
Parameter | Type |
---|---|
range | IRange |
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
Parameter | Type |
---|---|
unitExcludedCell | Nullable <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
Parameter | Type |
---|---|
tree | FormulaDependencyTreeCalculator |
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
Parameter | Type |
---|---|
ranges | IUnitRange [] |
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;
}
toRTreeItem()
toRTreeItem(): IUnitRange[]
Defined in: submodules/univer/packages/engine-formula/src/engine/dependency/dependency-tree.ts:462