@extend-ai/react-xlsx 0.16.4 → 0.16.5
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.cjs +12 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -11793,6 +11793,12 @@ function resolveCellTextClipOverscan(overscan, usesWrappedText) {
|
|
|
11793
11793
|
};
|
|
11794
11794
|
}
|
|
11795
11795
|
|
|
11796
|
+
// src/scroll-display-limit.ts
|
|
11797
|
+
function growScrollDisplayLimit(current, growth, maximum, readOnly) {
|
|
11798
|
+
const nextLimit = current + growth;
|
|
11799
|
+
return readOnly ? Math.max(current, Math.min(maximum, nextLimit)) : nextLimit;
|
|
11800
|
+
}
|
|
11801
|
+
|
|
11796
11802
|
// src/chart-renderer.tsx
|
|
11797
11803
|
var import_d3_hierarchy = require("d3-hierarchy");
|
|
11798
11804
|
var import_d3_geo = require("d3-geo");
|
|
@@ -25544,16 +25550,14 @@ function XlsxGrid({
|
|
|
25544
25550
|
const shouldSyncDrawingViewportImmediately = Math.abs(currentScroller.scrollLeft - paintedViewport.left) > CANVAS_IMMEDIATE_VIEWPORT_SYNC_THRESHOLD_PX || Math.abs(currentScroller.scrollTop - paintedViewport.top) > CANVAS_IMMEDIATE_VIEWPORT_SYNC_THRESHOLD_PX;
|
|
25545
25551
|
syncDrawingViewport(currentScroller, { immediate: shouldSyncDrawingViewportImmediately });
|
|
25546
25552
|
if (currentScroller.scrollHeight - (currentScroller.scrollTop + currentScroller.clientHeight) < OPEN_GRID_VERTICAL_EDGE_PX) {
|
|
25547
|
-
setDisplayRowLimit(
|
|
25548
|
-
|
|
25549
|
-
|
|
25550
|
-
});
|
|
25553
|
+
setDisplayRowLimit(
|
|
25554
|
+
(current) => growScrollDisplayLimit(current, OPEN_GRID_ROW_GROWTH, maxRowDisplayLimit, readOnly)
|
|
25555
|
+
);
|
|
25551
25556
|
}
|
|
25552
25557
|
if (currentScroller.scrollWidth - (currentScroller.scrollLeft + currentScroller.clientWidth) < OPEN_GRID_HORIZONTAL_EDGE_PX) {
|
|
25553
|
-
setDisplayColLimit(
|
|
25554
|
-
|
|
25555
|
-
|
|
25556
|
-
});
|
|
25558
|
+
setDisplayColLimit(
|
|
25559
|
+
(current) => growScrollDisplayLimit(current, OPEN_GRID_COL_GROWTH, maxColDisplayLimit, readOnly)
|
|
25560
|
+
);
|
|
25557
25561
|
}
|
|
25558
25562
|
}, [maxColDisplayLimit, maxRowDisplayLimit, readOnly, syncDrawingViewport]);
|
|
25559
25563
|
React4.useEffect(() => {
|