@leankylin-sheet/core 7.0.39 → 7.0.41

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,5 +1,10 @@
1
1
  import type { Cell, Rect, Selection } from "../types";
2
2
  import { Context } from "../context";
3
+ type FormulaParseEntry = {
4
+ f: string;
5
+ ranges: any[];
6
+ };
7
+ type FormulaParseCacheStore = Record<string, Record<string, FormulaParseEntry>>;
3
8
  export declare class FormulaCache {
4
9
  parser: any;
5
10
  func_selectedrange?: Selection;
@@ -25,6 +30,8 @@ export declare class FormulaCache {
25
30
  execFunctionExist?: any[];
26
31
  execFunctionGlobalData: any;
27
32
  _lastDataRowCache: Record<string, number> | null;
33
+ formulaParseCache: FormulaParseCacheStore | null;
34
+ formulaParseCacheSignature: string | null;
28
35
  constructor();
29
36
  tryGetCellAsNumber(cell: Cell): string | number | boolean | null;
30
37
  }
@@ -53,3 +60,4 @@ export declare function rangeDrag(ctx: Context, e: MouseEvent, cellInput: HTMLDi
53
60
  export declare function rangeDragColumn(ctx: Context, e: MouseEvent, cellInput: HTMLDivElement, scrollLeft: number, scrollTop: number, container: HTMLDivElement, fxInput?: HTMLDivElement | null): void;
54
61
  export declare function rangeDragRow(ctx: Context, e: MouseEvent, cellInput: HTMLDivElement, scrollLeft: number, scrollTop: number, container: HTMLDivElement, fxInput?: HTMLDivElement | null): void;
55
62
  export declare function functionCopy(ctx: Context, txt: string, mode: string, step: number): string;
63
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "7.0.39",
3
+ "version": "7.0.41",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "build": "father-build"
14
14
  },
15
15
  "dependencies": {
16
- "@leankylin-sheet/formula-parser": "7.0.39",
16
+ "@leankylin-sheet/formula-parser": "7.0.41",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",