diff --git a/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts b/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts index d2d0c75c758..f3a7f9286e3 100644 --- a/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts +++ b/packages/sheets-formula/src/controllers/trigger-calculation.controller.ts @@ -81,30 +81,30 @@ export class TriggerCalculationController extends Disposable { private readonly _progress$ = new BehaviorSubject(NilProgress); readonly progress$ = this._progress$.asObservable(); - private _updateProgress(): void { + private _emitProgress(): void { this._progress$.next({ done: this._formulaCalculationDoneCount, count: this._totalCalculationTaskCount }); } private _addTotalCount(count: number): void { this._totalCalculationTaskCount += count; - this._updateProgress(); + this._emitProgress(); } private _addDoneTask(count: number): void { this._formulaCalculationDoneCount += count; this._formulaCalculationDoneCount = Math.min(this._formulaCalculationDoneCount, this._totalCalculationTaskCount); - this._updateProgress(); + this._emitProgress(); } private _completeProgress(): void { this._formulaCalculationDoneCount = this._totalCalculationTaskCount; - this._updateProgress(); + this._emitProgress(); } - private _clearPregress(): void { + private _clearProgress(): void { this._formulaCalculationDoneCount = 0; this._totalCalculationTaskCount = 0; - this._updateProgress(); + this._emitProgress(); } constructor( @@ -372,7 +372,7 @@ export class TriggerCalculationController extends Disposable { case FormulaExecutedStateType.STOP_EXECUTION: result = 'The execution of the formula has been stopped'; // this._executingCommandQueue = []; - this._clearPregress(); + this._clearProgress(); calculationProcessCount = 0; break; case FormulaExecutedStateType.SUCCESS: