sheet-happens 0.0.15 → 0.0.16
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.js +16 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -400,6 +400,11 @@ function findApproxMaxEditDataIndex(editData) {
|
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
x += growthIncrement;
|
|
403
|
+
|
|
404
|
+
if (x > maxSearchableRowOrCol) {
|
|
405
|
+
break;
|
|
406
|
+
}
|
|
407
|
+
|
|
403
408
|
growthIncrement = Math.floor(growthIncrement * growthIncrementFactor);
|
|
404
409
|
}
|
|
405
410
|
|
|
@@ -424,6 +429,11 @@ function findApproxMaxEditDataIndex(editData) {
|
|
|
424
429
|
}
|
|
425
430
|
|
|
426
431
|
y += growthIncrement;
|
|
432
|
+
|
|
433
|
+
if (y > maxSearchableRowOrCol) {
|
|
434
|
+
break;
|
|
435
|
+
}
|
|
436
|
+
|
|
427
437
|
growthIncrement = Math.floor(growthIncrement * growthIncrementFactor);
|
|
428
438
|
}
|
|
429
439
|
|
|
@@ -1476,16 +1486,17 @@ function Sheet(props) {
|
|
|
1476
1486
|
dx2 = selection.x1;
|
|
1477
1487
|
}
|
|
1478
1488
|
|
|
1479
|
-
var max = findApproxMaxEditDataIndex(editData);
|
|
1480
|
-
|
|
1481
1489
|
if (dx1 === -1 && dx2 === -1) {
|
|
1490
|
+
var max = findApproxMaxEditDataIndex(editData);
|
|
1482
1491
|
dx1 = 0;
|
|
1483
1492
|
dx2 = max.x;
|
|
1484
1493
|
}
|
|
1485
1494
|
|
|
1486
1495
|
if (dy1 === -1 && dy2 === -1) {
|
|
1496
|
+
var _max = findApproxMaxEditDataIndex(editData);
|
|
1497
|
+
|
|
1487
1498
|
dy1 = 0;
|
|
1488
|
-
dy2 =
|
|
1499
|
+
dy2 = _max.y;
|
|
1489
1500
|
}
|
|
1490
1501
|
|
|
1491
1502
|
var cptext = '';
|
|
@@ -1679,9 +1690,9 @@ function Sheet(props) {
|
|
|
1679
1690
|
if (selection.x1 === -1 && selection.x2 === -1 && selection.y1 !== -1 && selection.y2 !== -1) {
|
|
1680
1691
|
var _min = Math.min(selection.y1, selection.y2);
|
|
1681
1692
|
|
|
1682
|
-
var
|
|
1693
|
+
var _max2 = Math.max(selection.y1, selection.y2);
|
|
1683
1694
|
|
|
1684
|
-
for (var _i5 = _min; _i5 <=
|
|
1695
|
+
for (var _i5 = _min; _i5 <= _max2; _i5++) {
|
|
1685
1696
|
_indices.push(_i5);
|
|
1686
1697
|
}
|
|
1687
1698
|
}
|