@univerjs/engine-formula 0.3.0-alpha.1 → 0.3.0-nightly.202410101606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import { IExecutionOptions, IMutation, Nullable } from '@univerjs/core';
2
2
  import { IRuntimeOtherUnitDataType, IRuntimeUnitDataPrimitiveType } from '../../basics/common';
3
- import { FormulaExecutedStateType, IExecutionInProgressParams } from '../../services/runtime.service';
4
3
  import { IFormulaDirtyData } from '../../services/current-data.service';
4
+ import { FormulaExecutedStateType, IExecutionInProgressParams } from '../../services/runtime.service';
5
5
  export interface ISetFormulaCalculationStartMutation extends IFormulaDirtyData {
6
6
  options: Nullable<IExecutionOptions>;
7
7
  forceCalculation: boolean;
@@ -4,6 +4,9 @@ export interface ISetFormulaDataMutationParams {
4
4
  formulaData: IFormulaData;
5
5
  }
6
6
  /**
7
- * There is no need to process data here, it is used as the main thread to send data to the worker. The main thread has already updated the data in advance, and there is no need to update it again here.
7
+ * There is no need to process data here, it is used as the main thread to send data to the worker.
8
+ * The main thread has already updated the data in advance, and there is no need to update it again here.
9
+ *
10
+ * @deprecated Do not use command system as rpc calling method.
8
11
  */
9
12
  export declare const SetFormulaDataMutation: IMutation<ISetFormulaDataMutationParams>;
@@ -1,16 +1,15 @@
1
- import { Disposable, ICommandService, IUniverInstanceService } from '@univerjs/core';
1
+ import { Disposable, ICommandService } from '@univerjs/core';
2
2
  import { FormulaDataModel } from '../models/formula-data.model';
3
3
  import { CalculateFormulaService } from '../services/calculate-formula.service';
4
4
  export declare class CalculateController extends Disposable {
5
5
  private readonly _commandService;
6
6
  private readonly _calculateFormulaService;
7
- private readonly _univerInstanceService;
8
7
  private readonly _formulaDataModel;
9
- constructor(_commandService: ICommandService, _calculateFormulaService: CalculateFormulaService, _univerInstanceService: IUniverInstanceService, _formulaDataModel: FormulaDataModel);
8
+ constructor(_commandService: ICommandService, _calculateFormulaService: CalculateFormulaService, _formulaDataModel: FormulaDataModel);
10
9
  private _initialize;
11
10
  private _commandExecutedListener;
12
11
  private _calculate;
13
12
  private _initialExecuteFormulaListener;
14
13
  private _initialExecuteFormulaProcessListener;
15
- private _applyFormula;
14
+ private _applyResult;
16
15
  }
@@ -1,6 +1,6 @@
1
1
  import { Disposable, ICommandService } from '@univerjs/core';
2
- import { IOtherFormulaManagerService } from '../services/other-formula-manager.service';
3
2
  import { IDependencyManagerService } from '../services/dependency-manager.service';
3
+ import { IOtherFormulaManagerService } from '../services/other-formula-manager.service';
4
4
  export declare class SetOtherFormulaController extends Disposable {
5
5
  private readonly _commandService;
6
6
  private readonly _otherFormulaManagerService;
@@ -1,12 +1,12 @@
1
1
  import { Disposable } from '@univerjs/core';
2
2
  import { IFormulaCurrentConfigService } from '../../services/current-data.service';
3
+ import { IDependencyManagerService } from '../../services/dependency-manager.service';
3
4
  import { IFeatureCalculationManagerService } from '../../services/feature-calculation-manager.service';
4
5
  import { IOtherFormulaManagerService } from '../../services/other-formula-manager.service';
5
6
  import { IFormulaRuntimeService } from '../../services/runtime.service';
6
7
  import { Lexer } from '../analysis/lexer';
7
8
  import { AstTreeBuilder } from '../analysis/parser';
8
9
  import { Interpreter } from '../interpreter/interpreter';
9
- import { IDependencyManagerService } from '../../services/dependency-manager.service';
10
10
  import { FormulaDependencyTree } from './dependency-tree';
11
11
  export declare class FormulaDependencyGenerator extends Disposable {
12
12
  private readonly _currentConfigService;
@@ -1,5 +1,5 @@
1
- import { IConfigService, Injector, Plugin } from '@univerjs/core';
2
1
  import { IUniverEngineFormulaConfig } from './controller/config.schema';
2
+ import { IConfigService, Injector, Plugin } from '@univerjs/core';
3
3
  export declare class UniverFormulaEnginePlugin extends Plugin {
4
4
  private readonly _config;
5
5
  protected _injector: Injector;
@@ -7,5 +7,7 @@ export declare class UniverFormulaEnginePlugin extends Plugin {
7
7
  static pluginName: string;
8
8
  constructor(_config: Partial<IUniverEngineFormulaConfig> | undefined, _injector: Injector, _configService: IConfigService);
9
9
  onStarting(): void;
10
+ onReady(): void;
11
+ onRendered(): void;
10
12
  private _initialize;
11
13
  }
@@ -1,12 +1,12 @@
1
- import { Disposable, IConfigService } from '@univerjs/core';
2
1
  import { IFeatureDirtyRangeType, IFormulaDatasetConfig, IRuntimeUnitDataType } from '../basics/common';
2
+ import { IAllRuntimeData, IExecutionInProgressParams, IFormulaRuntimeService } from './runtime.service';
3
+ import { Disposable, IConfigService } from '@univerjs/core';
3
4
  import { Lexer } from '../engine/analysis/lexer';
4
5
  import { AstTreeBuilder } from '../engine/analysis/parser';
5
6
  import { ErrorNode } from '../engine/ast-node/base-ast-node';
6
7
  import { FormulaDependencyGenerator } from '../engine/dependency/formula-dependency';
7
8
  import { Interpreter } from '../engine/interpreter/interpreter';
8
9
  import { IFormulaCurrentConfigService } from './current-data.service';
9
- import { IAllRuntimeData, IExecutionInProgressParams, IFormulaRuntimeService } from './runtime.service';
10
10
  export declare const DEFAULT_CYCLE_REFERENCE_COUNT = 1;
11
11
  export declare const CYCLE_REFERENCE_COUNT = "cycleReferenceCount";
12
12
  export declare const EVERY_N_FUNCTION_EXECUTION_PAUSE = 100;