@leankylin-sheet/core 4.0.23 → 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 +3 -1
- package/dist/index.js +3 -1
- package/package.json +2 -2
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;
|
|
@@ -40800,7 +40803,6 @@ function scrollToHighlightCell(ctx, r, c) {
|
|
|
40800
40803
|
var _scrollAmount = Math.max(20, freezeW);
|
|
40801
40804
|
ctx.scrollLeft = col_pre - _scrollAmount;
|
|
40802
40805
|
}
|
|
40803
|
-
console.log(ctx.scrollLeft, c, r, col_pre, Math.max(20, freezeW), freezeW, column_focus, winW, col - scrollLeft - winW + 20 > 0);
|
|
40804
40806
|
}
|
|
40805
40807
|
}
|
|
40806
40808
|
function seletedHighlistByindex(ctx, r1, r2, c1, c2) {
|
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;
|
|
@@ -40810,7 +40813,6 @@ function scrollToHighlightCell(ctx, r, c) {
|
|
|
40810
40813
|
var _scrollAmount = Math.max(20, freezeW);
|
|
40811
40814
|
ctx.scrollLeft = col_pre - _scrollAmount;
|
|
40812
40815
|
}
|
|
40813
|
-
console.log(ctx.scrollLeft, c, r, col_pre, Math.max(20, freezeW), freezeW, column_focus, winW, col - scrollLeft - winW + 20 > 0);
|
|
40814
40816
|
}
|
|
40815
40817
|
}
|
|
40816
40818
|
function seletedHighlistByindex(ctx, r1, r2, c1, c2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "4.0.
|
|
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.
|
|
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",
|