@oxog/scrollex 1.1.0 → 1.1.1
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/CHANGELOG.md +12 -1
- package/README.md +22 -5
- package/dist/{chunk-ND5PV5MU.cjs → chunk-MEEFAXSA.cjs} +7 -6
- package/dist/chunk-MEEFAXSA.cjs.map +1 -0
- package/dist/{chunk-CIB3EBBJ.js → chunk-VLA5K5HH.js} +7 -6
- package/dist/chunk-VLA5K5HH.js.map +1 -0
- package/dist/index.cjs +117 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +97 -10
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.cjs +12 -12
- package/dist/plugins/index.cjs.map +1 -1
- package/dist/plugins/index.d.cts +1 -1
- package/dist/plugins/index.d.ts +1 -1
- package/dist/plugins/index.js +4 -4
- package/dist/plugins/index.js.map +1 -1
- package/dist/{scroll-controller-D5AV1E2p.d.cts → scroll-controller-CBna5Yim.d.cts} +24 -3
- package/dist/{scroll-controller-D5AV1E2p.d.ts → scroll-controller-CBna5Yim.d.ts} +24 -3
- package/package.json +1 -1
- package/dist/chunk-CIB3EBBJ.js.map +0 -1
- package/dist/chunk-ND5PV5MU.cjs.map +0 -1
package/dist/plugins/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VirtualItem, Plugin, ScrollPosition, Range } from '../index.cjs';
|
|
2
|
-
export { A as AutoMeasurerAPI, j as AutoMeasurerOptions, n as GridRendererAPI, o as GridRendererOptions, I as InfiniteLoaderAPI, p as InfiniteLoaderOptions, L as ListRendererAPI, u as ListRendererOptions, v as LoadDirection, H as ScrollControllerAPI, J as ScrollControllerOptions, a1 as autoMeasurerPlugin, a2 as gridRendererPlugin, a3 as infiniteLoaderPlugin, a4 as listRendererPlugin, a5 as scrollControllerPlugin } from '../scroll-controller-
|
|
2
|
+
export { A as AutoMeasurerAPI, j as AutoMeasurerOptions, n as GridRendererAPI, o as GridRendererOptions, I as InfiniteLoaderAPI, p as InfiniteLoaderOptions, L as ListRendererAPI, u as ListRendererOptions, v as LoadDirection, H as ScrollControllerAPI, J as ScrollControllerOptions, a1 as autoMeasurerPlugin, a2 as gridRendererPlugin, a3 as infiniteLoaderPlugin, a4 as listRendererPlugin, a5 as scrollControllerPlugin } from '../scroll-controller-CBna5Yim.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VirtualItem, Plugin, ScrollPosition, Range } from '../index.js';
|
|
2
|
-
export { A as AutoMeasurerAPI, j as AutoMeasurerOptions, n as GridRendererAPI, o as GridRendererOptions, I as InfiniteLoaderAPI, p as InfiniteLoaderOptions, L as ListRendererAPI, u as ListRendererOptions, v as LoadDirection, H as ScrollControllerAPI, J as ScrollControllerOptions, a1 as autoMeasurerPlugin, a2 as gridRendererPlugin, a3 as infiniteLoaderPlugin, a4 as listRendererPlugin, a5 as scrollControllerPlugin } from '../scroll-controller-
|
|
2
|
+
export { A as AutoMeasurerAPI, j as AutoMeasurerOptions, n as GridRendererAPI, o as GridRendererOptions, I as InfiniteLoaderAPI, p as InfiniteLoaderOptions, L as ListRendererAPI, u as ListRendererOptions, v as LoadDirection, H as ScrollControllerAPI, J as ScrollControllerOptions, a1 as autoMeasurerPlugin, a2 as gridRendererPlugin, a3 as infiniteLoaderPlugin, a4 as listRendererPlugin, a5 as scrollControllerPlugin } from '../scroll-controller-CBna5Yim.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/plugins/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { normalizeColumnCount, debounce, autoColumnCount } from '../chunk-
|
|
2
|
-
export { autoMeasurerPlugin, gridRendererPlugin, infiniteLoaderPlugin, listRendererPlugin, scrollControllerPlugin } from '../chunk-
|
|
1
|
+
import { normalizeColumnCount, debounce, autoColumnCount } from '../chunk-VLA5K5HH.js';
|
|
2
|
+
export { autoMeasurerPlugin, gridRendererPlugin, infiniteLoaderPlugin, listRendererPlugin, scrollControllerPlugin } from '../chunk-VLA5K5HH.js';
|
|
3
3
|
import { useMemo, useCallback, useState, useEffect } from 'react';
|
|
4
4
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
5
5
|
|
|
@@ -622,7 +622,7 @@ function scrollRestoration(options) {
|
|
|
622
622
|
const horizontal = kernel.getOptions().direction === "horizontal";
|
|
623
623
|
const viewport = kernel.getViewport();
|
|
624
624
|
const target = horizontal ? state.scrollLeft : state.scrollTop;
|
|
625
|
-
const maxScroll = kernel.getTotalSize() - (horizontal ? viewport.width : viewport.height);
|
|
625
|
+
const maxScroll = kernel.getTotalSize() + (kernel.getOptions().scrollMargin ?? 0) - (horizontal ? viewport.width : viewport.height);
|
|
626
626
|
if (target > maxScroll + 1) {
|
|
627
627
|
awaitingContent = true;
|
|
628
628
|
return;
|
|
@@ -1129,7 +1129,7 @@ function debugPanel(options = {}) {
|
|
|
1129
1129
|
const horizontal = kernel.getOptions().direction === "horizontal";
|
|
1130
1130
|
const viewport = kernel.getViewport();
|
|
1131
1131
|
const scrollOffset = horizontal ? scrollPos.scrollLeft : scrollPos.scrollTop;
|
|
1132
|
-
const maxScroll = kernel.getTotalSize() - (horizontal ? viewport.width : viewport.height);
|
|
1132
|
+
const maxScroll = kernel.getTotalSize() + (kernel.getOptions().scrollMargin ?? 0) - (horizontal ? viewport.width : viewport.height);
|
|
1133
1133
|
state.stats = {
|
|
1134
1134
|
...state.stats,
|
|
1135
1135
|
memoryUsage,
|