virtua 0.40.3 → 0.40.4

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.
@@ -36,6 +36,26 @@ export interface VGridHandle {
36
36
  * Get current offsetWidth.
37
37
  */
38
38
  readonly viewportWidth: number;
39
+ /**
40
+ * Find the start index of visible range of items.
41
+ */
42
+ findStartIndex: () => [x: number, y: number];
43
+ /**
44
+ * Find the end index of visible range of items.
45
+ */
46
+ findEndIndex: () => [x: number, y: number];
47
+ /**
48
+ * Get item offset from start.
49
+ * @param indexX horizontal index of item
50
+ * @param indexY vertical of item
51
+ */
52
+ getItemOffset(indexX: number, indexY: number): [x: number, y: number];
53
+ /**
54
+ * Get item size.
55
+ * @param indexX horizontal index of item
56
+ * @param indexY vertical of item
57
+ */
58
+ getItemSize(indexX: number, indexY: number): [width: number, height: number];
39
59
  /**
40
60
  * Scroll to the item specified by index.
41
61
  * @param indexX horizontal index of item
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtua",
3
- "version": "0.40.3",
3
+ "version": "0.40.4",
4
4
  "description": "A zero-config, fast and small (~3kB) virtual list (and grid) component for React, Vue, Solid and Svelte.",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.mjs",
@@ -112,7 +112,7 @@
112
112
  "eslint-import-resolver-typescript": "^3.7.0",
113
113
  "eslint-plugin-import": "^2.31.0",
114
114
  "eslint-plugin-react": "^7.37.4",
115
- "eslint-plugin-react-compiler": "19.0.0-beta-e1e972c-20250221",
115
+ "eslint-plugin-react-compiler": "19.0.0-beta-e993439-20250328",
116
116
  "eslint-plugin-react-hooks": "^5.0.0",
117
117
  "eslint-plugin-solid": "^0.14.5",
118
118
  "eslint-plugin-vue": "^9.32.0",