@leankylin-sheet/core 4.0.22 → 4.0.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
@@ -40771,6 +40771,9 @@ function scrollToHighlightCell(ctx, r, c) {
40771
40771
  scrollTop = ctx.scrollTop;
40772
40772
  var winH = ctx.cellmainHeight;
40773
40773
  var winW = ctx.cellmainWidth;
40774
+ if (winW <= 0 || winH <= 0) {
40775
+ return;
40776
+ }
40774
40777
  var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
40775
40778
  var sheet = sheetIndex == null ? null : ctx.luckysheetfile[sheetIndex];
40776
40779
  if (!sheet) return;
package/dist/index.js CHANGED
@@ -40781,6 +40781,9 @@ function scrollToHighlightCell(ctx, r, c) {
40781
40781
  scrollTop = ctx.scrollTop;
40782
40782
  var winH = ctx.cellmainHeight;
40783
40783
  var winW = ctx.cellmainWidth;
40784
+ if (winW <= 0 || winH <= 0) {
40785
+ return;
40786
+ }
40784
40787
  var sheetIndex = getSheetIndex(ctx, ctx.currentSheetId);
40785
40788
  var sheet = sheetIndex == null ? null : ctx.luckysheetfile[sheetIndex];
40786
40789
  if (!sheet) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leankylin-sheet/core",
3
- "version": "4.0.22",
3
+ "version": "4.0.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": "4.0.22",
16
+ "@leankylin-sheet/formula-parser": "4.0.24",
17
17
  "dayjs": "^1.11.0",
18
18
  "immer": "^9.0.12",
19
19
  "lodash": "^4.17.21",