@leankylin-sheet/core 4.0.8 → 4.0.9
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 +0 -12
- package/dist/index.js +0 -12
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -44322,7 +44322,6 @@ function scrollToFrozenRowCol(ctx, freeze) {
|
|
|
44322
44322
|
if (freezenverticaldata != null && column != null) {
|
|
44323
44323
|
var freezen_colindex = freezenverticaldata[1];
|
|
44324
44324
|
var offset = _.sortedIndex(freezenverticaldata[3], ctx.scrollLeft);
|
|
44325
|
-
var top = freezenverticaldata[4];
|
|
44326
44325
|
freezen_colindex += offset;
|
|
44327
44326
|
if (column >= ctx.visibledatacolumn.length) {
|
|
44328
44327
|
column = ctx.visibledatacolumn.length - 1;
|
|
@@ -44330,16 +44329,10 @@ function scrollToFrozenRowCol(ctx, freeze) {
|
|
|
44330
44329
|
if (freezen_colindex >= ctx.visibledatacolumn.length) {
|
|
44331
44330
|
freezen_colindex = ctx.visibledatacolumn.length - 1;
|
|
44332
44331
|
}
|
|
44333
|
-
var column_px = ctx.visibledatacolumn[column];
|
|
44334
|
-
var freezen_px = ctx.visibledatacolumn[freezen_colindex];
|
|
44335
|
-
if (column_px <= freezen_px + top) {
|
|
44336
|
-
ctx.scrollLeft = 0;
|
|
44337
|
-
}
|
|
44338
44332
|
}
|
|
44339
44333
|
if (freezenhorizontaldata != null && row != null) {
|
|
44340
44334
|
var freezen_rowindex = freezenhorizontaldata[1];
|
|
44341
44335
|
var _offset = _.sortedIndex(freezenhorizontaldata[3], ctx.scrollTop);
|
|
44342
|
-
var left = freezenhorizontaldata[4];
|
|
44343
44336
|
freezen_rowindex += _offset;
|
|
44344
44337
|
if (row >= ctx.visibledatarow.length) {
|
|
44345
44338
|
row = ctx.visibledatarow.length - 1;
|
|
@@ -44347,11 +44340,6 @@ function scrollToFrozenRowCol(ctx, freeze) {
|
|
|
44347
44340
|
if (freezen_rowindex >= ctx.visibledatarow.length) {
|
|
44348
44341
|
freezen_rowindex = ctx.visibledatarow.length - 1;
|
|
44349
44342
|
}
|
|
44350
|
-
var row_px = ctx.visibledatarow[row];
|
|
44351
|
-
var _freezen_px = ctx.visibledatarow[freezen_rowindex];
|
|
44352
|
-
if (row_px <= _freezen_px + left) {
|
|
44353
|
-
ctx.scrollTop = 0;
|
|
44354
|
-
}
|
|
44355
44343
|
}
|
|
44356
44344
|
}
|
|
44357
44345
|
function getFrozenHandleTop(ctx) {
|
package/dist/index.js
CHANGED
|
@@ -44332,7 +44332,6 @@ function scrollToFrozenRowCol(ctx, freeze) {
|
|
|
44332
44332
|
if (freezenverticaldata != null && column != null) {
|
|
44333
44333
|
var freezen_colindex = freezenverticaldata[1];
|
|
44334
44334
|
var offset = ___default['default'].sortedIndex(freezenverticaldata[3], ctx.scrollLeft);
|
|
44335
|
-
var top = freezenverticaldata[4];
|
|
44336
44335
|
freezen_colindex += offset;
|
|
44337
44336
|
if (column >= ctx.visibledatacolumn.length) {
|
|
44338
44337
|
column = ctx.visibledatacolumn.length - 1;
|
|
@@ -44340,16 +44339,10 @@ function scrollToFrozenRowCol(ctx, freeze) {
|
|
|
44340
44339
|
if (freezen_colindex >= ctx.visibledatacolumn.length) {
|
|
44341
44340
|
freezen_colindex = ctx.visibledatacolumn.length - 1;
|
|
44342
44341
|
}
|
|
44343
|
-
var column_px = ctx.visibledatacolumn[column];
|
|
44344
|
-
var freezen_px = ctx.visibledatacolumn[freezen_colindex];
|
|
44345
|
-
if (column_px <= freezen_px + top) {
|
|
44346
|
-
ctx.scrollLeft = 0;
|
|
44347
|
-
}
|
|
44348
44342
|
}
|
|
44349
44343
|
if (freezenhorizontaldata != null && row != null) {
|
|
44350
44344
|
var freezen_rowindex = freezenhorizontaldata[1];
|
|
44351
44345
|
var _offset = ___default['default'].sortedIndex(freezenhorizontaldata[3], ctx.scrollTop);
|
|
44352
|
-
var left = freezenhorizontaldata[4];
|
|
44353
44346
|
freezen_rowindex += _offset;
|
|
44354
44347
|
if (row >= ctx.visibledatarow.length) {
|
|
44355
44348
|
row = ctx.visibledatarow.length - 1;
|
|
@@ -44357,11 +44350,6 @@ function scrollToFrozenRowCol(ctx, freeze) {
|
|
|
44357
44350
|
if (freezen_rowindex >= ctx.visibledatarow.length) {
|
|
44358
44351
|
freezen_rowindex = ctx.visibledatarow.length - 1;
|
|
44359
44352
|
}
|
|
44360
|
-
var row_px = ctx.visibledatarow[row];
|
|
44361
|
-
var _freezen_px = ctx.visibledatarow[freezen_rowindex];
|
|
44362
|
-
if (row_px <= _freezen_px + left) {
|
|
44363
|
-
ctx.scrollTop = 0;
|
|
44364
|
-
}
|
|
44365
44353
|
}
|
|
44366
44354
|
}
|
|
44367
44355
|
function getFrozenHandleTop(ctx) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leankylin-sheet/core",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.9",
|
|
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.9",
|
|
17
17
|
"dayjs": "^1.11.0",
|
|
18
18
|
"immer": "^9.0.12",
|
|
19
19
|
"lodash": "^4.17.21",
|