@univerjs/engine-formula 0.2.11 → 0.2.12

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,16 +1,11 @@
1
- import { Injector, Plugin, Ctor } from '@univerjs/core';
2
- import { IFunctionNames } from './basics/function';
3
- import { BaseFunction } from './functions/base-function';
4
- interface IUniverFormulaEngine {
5
- notExecuteFormula?: boolean;
6
- function?: Array<[Ctor<BaseFunction>, IFunctionNames]>;
7
- }
1
+ import { IConfigService, Injector, Plugin } from '@univerjs/core';
2
+ import { IUniverEngineFormulaConfig } from './controller/config.schema';
8
3
  export declare class UniverFormulaEnginePlugin extends Plugin {
9
- private _config;
4
+ private readonly _config;
10
5
  protected _injector: Injector;
6
+ private readonly _configService;
11
7
  static pluginName: string;
12
- constructor(_config: IUniverFormulaEngine, _injector: Injector);
8
+ constructor(_config: Partial<IUniverEngineFormulaConfig>, _injector: Injector, _configService: IConfigService);
13
9
  onStarting(): void;
14
10
  private _initialize;
15
11
  }
16
- export {};
@@ -54,18 +54,13 @@ export declare class DependencyManagerService extends Disposable implements IDep
54
54
  */
55
55
  getAllTree(): FormulaDependencyTree[];
56
56
  buildDependencyTree(shouldBeBuildTrees: FormulaDependencyTree[] | FormulaDependencyTreeCache, dependencyTrees?: FormulaDependencyTree[]): FormulaDependencyTree[];
57
+ private _buildDependencyTreeWithCache;
57
58
  /**
58
59
  * Build the dependency relationship between the trees.
59
60
  * @param allTrees all FormulaDependencyTree
60
61
  * @param shouldBeBuildTrees FormulaDependencyTree[] | FormulaDependencyTreeCache
61
62
  */
62
63
  private _buildDependencyTree;
63
- /**
64
- * Build the reverse dependency relationship between the trees.
65
- * @param allTrees
66
- * @param dependencyTrees
67
- */
68
- private _buildReverseDependency;
69
64
  /**
70
65
  * Clear the dependency relationship of the tree.
71
66
  * establish the relationship between the parent and the child.