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


Interface: ICalculateFormulaService

Properties

PropertyTypeDefined in
executionCompleteListener$Observable<IAllRuntimeData>submodules/univer/packages/engine-formula/src/services/calculate-formula.service.ts:61
executionInProgressListener$Observable<IExecutionInProgressParams>submodules/univer/packages/engine-formula/src/services/calculate-formula.service.ts:60

Methods

calculate()

calculate(formulaString, transformSuffix?): void

Parameters

ParameterType
formulaStringstring
transformSuffix?boolean

Returns

void

Defined in

submodules/univer/packages/engine-formula/src/services/calculate-formula.service.ts:71


execute()

execute(formulaDatasetConfig): Promise<void>

Parameters

ParameterType
formulaDatasetConfigIFormulaDatasetConfig

Returns

Promise<void>

Defined in

submodules/univer/packages/engine-formula/src/services/calculate-formula.service.ts:67


setRuntimeFeatureCellData()

setRuntimeFeatureCellData(featureId, featureData): void

Parameters

ParameterType
featureIdstring
featureDataIRuntimeUnitDataType

Returns

void

Defined in

submodules/univer/packages/engine-formula/src/services/calculate-formula.service.ts:63


setRuntimeFeatureRange()

setRuntimeFeatureRange(featureId, featureRange): void

Parameters

ParameterType
featureIdstring
featureRangeIFeatureDirtyRangeType

Returns

void

Defined in

submodules/univer/packages/engine-formula/src/services/calculate-formula.service.ts:65


stopFormulaExecution()

stopFormulaExecution(): void

Returns

void

Defined in

submodules/univer/packages/engine-formula/src/services/calculate-formula.service.ts:69