@leankylin-sheet/core 5.2.23 → 5.2.24

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.
package/dist/index.esm.js CHANGED
@@ -46587,15 +46587,15 @@ function copySheet(ctx, sheetId, hooks) {
46587
46587
  }
46588
46588
  function calculateSheetFromula(ctx, id, isrefresh) {
46589
46589
  console.time("calcTime:".concat(id));
46590
- var index$1 = getSheetIndex(ctx, id);
46591
- var luckysheetfile = ctx.luckysheetfile;
46592
- var sheetData = luckysheetfile[index$1].data;
46593
- if (!sheetData) return;
46594
- var calcChain = luckysheetfile[index$1].calcChain || [];
46595
- if (isrefresh && calcChain.length > 0) {
46596
- execFunctionGroup(ctx, null, null, null, id, sheetData, true);
46590
+ if (isrefresh) {
46591
+ execFunctionGroup(ctx, null, null, null, id, [], true);
46597
46592
  groupValuesRefresh(ctx);
46598
46593
  } else {
46594
+ var index$1 = getSheetIndex(ctx, id);
46595
+ var luckysheetfile = ctx.luckysheetfile;
46596
+ var sheetData = luckysheetfile[index$1].data;
46597
+ if (!sheetData) return;
46598
+ var calcChain = luckysheetfile[index$1].calcChain || [];
46599
46599
  var cellsToUpdate = [];
46600
46600
  for (var i = 0; i < calcChain.length; i += 1) {
46601
46601
  var _calcChain$i = calcChain[i],
@@ -46626,7 +46626,6 @@ function calculateSheetFromula(ctx, id, isrefresh) {
46626
46626
  });
46627
46627
  }
46628
46628
  }
46629
- ctx.luckysheetfile = luckysheetfile;
46630
46629
  console.timeEnd("calcTime:".concat(id));
46631
46630
  }
46632
46631
  function updateFunctionGroup(ctx) {
package/dist/index.js CHANGED
@@ -46597,15 +46597,15 @@ function copySheet(ctx, sheetId, hooks) {
46597
46597
  }
46598
46598
  function calculateSheetFromula(ctx, id, isrefresh) {
46599
46599
  console.time("calcTime:".concat(id));
46600
- var index$1 = getSheetIndex(ctx, id);
46601
- var luckysheetfile = ctx.luckysheetfile;
46602
- var sheetData = luckysheetfile[index$1].data;
46603
- if (!sheetData) return;
46604
- var calcChain = luckysheetfile[index$1].calcChain || [];
46605
- if (isrefresh && calcChain.length > 0) {
46606
- execFunctionGroup(ctx, null, null, null, id, sheetData, true);
46600
+ if (isrefresh) {
46601
+ execFunctionGroup(ctx, null, null, null, id, [], true);
46607
46602
  groupValuesRefresh(ctx);
46608
46603
  } else {
46604
+ var index$1 = getSheetIndex(ctx, id);
46605
+ var luckysheetfile = ctx.luckysheetfile;
46606
+ var sheetData = luckysheetfile[index$1].data;
46607
+ if (!sheetData) return;
46608
+ var calcChain = luckysheetfile[index$1].calcChain || [];
46609
46609
  var cellsToUpdate = [];
46610
46610
  for (var i = 0; i < calcChain.length; i += 1) {
46611
46611
  var _calcChain$i = calcChain[i],
@@ -46636,7 +46636,6 @@ function calculateSheetFromula(ctx, id, isrefresh) {
46636
46636
  });
46637
46637
  }
46638
46638
  }
46639
- ctx.luckysheetfile = luckysheetfile;
46640
46639
  console.timeEnd("calcTime:".concat(id));
46641
46640
  }
46642
46641
  function updateFunctionGroup(ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "5.2.23",
3
+ "version": "5.2.24",
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": "5.2.23",
16
+ "@leankylin-sheet/formula-parser": "5.2.24",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",