beautiful-grid 1.0.2 → 1.0.3
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/README.md +1 -1
- package/cjs/components/Table.js +111 -106
- package/cjs/components/selection/CellSelectionOverlayLayer.js +5 -5
- package/cjs/utils/coordinate.js +10 -10
- package/cjs/utils/index.js +1 -0
- package/cjs/utils/virtualScrollWindow.js +67 -0
- package/esm/components/Table.js +110 -106
- package/esm/components/selection/CellSelectionOverlayLayer.js +5 -5
- package/esm/utils/coordinate.js +4 -4
- package/esm/utils/index.js +1 -0
- package/esm/utils/virtualScrollWindow.js +59 -0
- package/package.json +1 -1
- package/types/components/selection/CellSelectionOverlay.d.ts +1 -0
- package/types/components/selection/CellSelectionOverlayLayer.d.ts +2 -1
- package/types/utils/coordinate.d.ts +5 -1
- package/types/utils/index.d.ts +1 -0
- package/types/utils/virtualScrollWindow.d.ts +24 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const BGRID_MAX_PHYSICAL_SCROLL_HEIGHT = 1000000;
|
|
2
|
+
export interface VirtualScrollWindowMetrics {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
logicalContentHeight: number;
|
|
5
|
+
physicalContentHeight: number;
|
|
6
|
+
logicalMaxScroll: number;
|
|
7
|
+
physicalMaxScroll: number;
|
|
8
|
+
}
|
|
9
|
+
interface GetVirtualScrollWindowMetricsParams {
|
|
10
|
+
logicalContentHeight: number;
|
|
11
|
+
viewportHeight: number;
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
maxPhysicalHeight?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface VirtualScrollWindowPosition {
|
|
16
|
+
base: number;
|
|
17
|
+
physicalScrollTop: number;
|
|
18
|
+
logicalScrollTop: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function getVirtualScrollWindowMetrics({ logicalContentHeight, viewportHeight, enabled, maxPhysicalHeight, }: GetVirtualScrollWindowMetricsParams): VirtualScrollWindowMetrics;
|
|
21
|
+
export declare function getLogicalScrollTop(base: number, physicalScrollTop: number, metrics: VirtualScrollWindowMetrics): number;
|
|
22
|
+
export declare function getVirtualScrollWindowPosition(logicalScrollTop: number, metrics: VirtualScrollWindowMetrics): VirtualScrollWindowPosition;
|
|
23
|
+
export declare function rebaseVirtualScrollWindow(base: number, physicalScrollTop: number, metrics: VirtualScrollWindowMetrics): VirtualScrollWindowPosition;
|
|
24
|
+
export {};
|