Skip to content

Commit e1912f1

Browse files
committed
0.48.5
1 parent 5341cd8 commit e1912f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+335
-335
lines changed

docs/react/interfaces/CacheSnapshot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Interface: CacheSnapshot
66

7-
Defined in: [src/core/types.ts:15](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/core/types.ts#L15)
7+
Defined in: [src/core/types.ts:15](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/core/types.ts#L15)
88

99
Serializable cache snapshot.
1010

@@ -16,4 +16,4 @@ Serializable cache snapshot.
1616

1717
> **\[cacheSymbol\]**: `never`
1818
19-
Defined in: [src/core/types.ts:16](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/core/types.ts#L16)
19+
Defined in: [src/core/types.ts:16](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/core/types.ts#L16)

docs/react/interfaces/CustomCellComponentProps.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Interface: CustomCellComponentProps
66

7-
Defined in: [src/react/VGrid.tsx:38](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L38)
7+
Defined in: [src/react/VGrid.tsx:38](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L38)
88

99
Props of customized cell component for [VGrid](../variables/experimental_VGrid.md).
1010

@@ -14,12 +14,12 @@ Props of customized cell component for [VGrid](../variables/experimental_VGrid.m
1414

1515
> **style**: `CSSProperties`
1616
17-
Defined in: [src/react/VGrid.tsx:39](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L39)
17+
Defined in: [src/react/VGrid.tsx:39](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L39)
1818

1919
***
2020

2121
### children
2222

2323
> **children**: `ReactNode`
2424
25-
Defined in: [src/react/VGrid.tsx:40](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L40)
25+
Defined in: [src/react/VGrid.tsx:40](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L40)

docs/react/interfaces/CustomContainerComponentProps.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,30 @@
44

55
# Interface: CustomContainerComponentProps
66

7-
Defined in: [src/react/types.ts:9](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/types.ts#L9)
7+
Defined in: [src/react/types.ts:9](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/types.ts#L9)
88

99
## Properties
1010

1111
### style
1212

1313
> **style**: `CSSProperties`
1414
15-
Defined in: [src/react/types.ts:10](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/types.ts#L10)
15+
Defined in: [src/react/types.ts:10](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/types.ts#L10)
1616

1717
***
1818

1919
### children
2020

2121
> **children**: `ReactNode`
2222
23-
Defined in: [src/react/types.ts:11](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/types.ts#L11)
23+
Defined in: [src/react/types.ts:11](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/types.ts#L11)
2424

2525
***
2626

2727
### ref?
2828

2929
> `optional` **ref**: `LegacyRef`\<`any`\>
3030
31-
Defined in: [src/react/types.ts:15](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/types.ts#L15)
31+
Defined in: [src/react/types.ts:15](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/types.ts#L15)
3232

3333
only available after React 19

docs/react/interfaces/CustomItemComponentProps.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Interface: CustomItemComponentProps
66

7-
Defined in: [src/react/types.ts:24](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/types.ts#L24)
7+
Defined in: [src/react/types.ts:24](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/types.ts#L24)
88

99
Props of customized item component for [Virtualizer](../variables/Virtualizer.md) or [WindowVirtualizer](../variables/WindowVirtualizer.md).
1010

@@ -14,30 +14,30 @@ Props of customized item component for [Virtualizer](../variables/Virtualizer.md
1414

1515
> **style**: `CSSProperties`
1616
17-
Defined in: [src/react/types.ts:25](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/types.ts#L25)
17+
Defined in: [src/react/types.ts:25](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/types.ts#L25)
1818

1919
***
2020

2121
### index
2222

2323
> **index**: `number`
2424
25-
Defined in: [src/react/types.ts:26](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/types.ts#L26)
25+
Defined in: [src/react/types.ts:26](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/types.ts#L26)
2626

2727
***
2828

2929
### children
3030

3131
> **children**: `ReactNode`
3232
33-
Defined in: [src/react/types.ts:27](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/types.ts#L27)
33+
Defined in: [src/react/types.ts:27](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/types.ts#L27)
3434

3535
***
3636

3737
### ref?
3838

3939
> `optional` **ref**: `LegacyRef`\<`any`\>
4040
41-
Defined in: [src/react/types.ts:31](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/types.ts#L31)
41+
Defined in: [src/react/types.ts:31](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/types.ts#L31)
4242

4343
only available after React 19

docs/react/interfaces/ScrollToIndexOpts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
# Interface: ScrollToIndexOpts
66

7-
Defined in: [src/core/types.ts:21](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/core/types.ts#L21)
7+
Defined in: [src/core/types.ts:21](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/core/types.ts#L21)
88

99
## Properties
1010

1111
### align?
1212

1313
> `optional` **align**: [`ScrollToIndexAlign`](../type-aliases/ScrollToIndexAlign.md)
1414
15-
Defined in: [src/core/types.ts:32](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/core/types.ts#L32)
15+
Defined in: [src/core/types.ts:32](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/core/types.ts#L32)
1616

1717
Alignment of item.
1818

@@ -33,7 +33,7 @@ Alignment of item.
3333

3434
> `optional` **smooth**: `boolean`
3535
36-
Defined in: [src/core/types.ts:38](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/core/types.ts#L38)
36+
Defined in: [src/core/types.ts:38](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/core/types.ts#L38)
3737

3838
If true, scrolling animates smoothly with [`behavior: smooth` of scrollTo](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo#behavior).
3939

@@ -45,7 +45,7 @@ If true, scrolling animates smoothly with [`behavior: smooth` of scrollTo](https
4545

4646
> `optional` **offset**: `number`
4747
48-
Defined in: [src/core/types.ts:43](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/core/types.ts#L43)
48+
Defined in: [src/core/types.ts:43](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/core/types.ts#L43)
4949

5050
Additional offset from the scrolled position.
5151

docs/react/interfaces/VGridHandle.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# Interface: VGridHandle
66

7-
Defined in: [src/react/VGrid.tsx:109](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L109)
7+
Defined in: [src/react/VGrid.tsx:109](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L109)
88

99
Methods of [VGrid](../variables/experimental_VGrid.md).
1010

@@ -14,7 +14,7 @@ Methods of [VGrid](../variables/experimental_VGrid.md).
1414

1515
> **getRowOffset**(`index`): `number`
1616
17-
Defined in: [src/react/VGrid.tsx:148](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L148)
17+
Defined in: [src/react/VGrid.tsx:148](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L148)
1818

1919
Get row offset from start.
2020

@@ -36,7 +36,7 @@ index of row
3636

3737
> **getColOffset**(`index`): `number`
3838
39-
Defined in: [src/react/VGrid.tsx:153](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L153)
39+
Defined in: [src/react/VGrid.tsx:153](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L153)
4040

4141
Get col offset from start.
4242

@@ -58,7 +58,7 @@ index of col
5858

5959
> **getRowSize**(`index`): `number`
6060
61-
Defined in: [src/react/VGrid.tsx:158](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L158)
61+
Defined in: [src/react/VGrid.tsx:158](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L158)
6262

6363
Get row size.
6464

@@ -80,7 +80,7 @@ index of row
8080

8181
> **getColSize**(`index`): `number`
8282
83-
Defined in: [src/react/VGrid.tsx:163](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L163)
83+
Defined in: [src/react/VGrid.tsx:163](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L163)
8484

8585
Get col size.
8686

@@ -102,7 +102,7 @@ index of col
102102

103103
> **resizeCols**(`cols`): `void`
104104
105-
Defined in: [src/react/VGrid.tsx:168](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L168)
105+
Defined in: [src/react/VGrid.tsx:168](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L168)
106106

107107
Resize individual columns.
108108

@@ -124,7 +124,7 @@ array of `[index, size]` to update column sizes
124124

125125
> **resizeRows**(`rows`): `void`
126126
127-
Defined in: [src/react/VGrid.tsx:173](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L173)
127+
Defined in: [src/react/VGrid.tsx:173](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L173)
128128

129129
Resize individual rows.
130130

@@ -146,7 +146,7 @@ array of `[index, size]` to update row sizes
146146

147147
> **scrollToIndex**(`indexX?`, `indexY?`): `void`
148148
149-
Defined in: [src/react/VGrid.tsx:179](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L179)
149+
Defined in: [src/react/VGrid.tsx:179](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L179)
150150

151151
Scroll to the item specified by index.
152152

@@ -174,7 +174,7 @@ vertical index of item
174174

175175
> **scrollTo**(`offsetX?`, `offsetY?`): `void`
176176
177-
Defined in: [src/react/VGrid.tsx:185](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L185)
177+
Defined in: [src/react/VGrid.tsx:185](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L185)
178178

179179
Scroll to the given offset.
180180

@@ -202,7 +202,7 @@ offset from top
202202

203203
> **scrollBy**(`offsetX?`, `offsetY?`): `void`
204204
205-
Defined in: [src/react/VGrid.tsx:191](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L191)
205+
Defined in: [src/react/VGrid.tsx:191](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L191)
206206

207207
Scroll by the given offset.
208208

@@ -230,7 +230,7 @@ vertical offset from current position
230230

231231
> `readonly` **scrollTop**: `number`
232232
233-
Defined in: [src/react/VGrid.tsx:113](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L113)
233+
Defined in: [src/react/VGrid.tsx:113](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L113)
234234

235235
Get current scrollTop.
236236

@@ -240,7 +240,7 @@ Get current scrollTop.
240240

241241
> `readonly` **scrollLeft**: `number`
242242
243-
Defined in: [src/react/VGrid.tsx:117](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L117)
243+
Defined in: [src/react/VGrid.tsx:117](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L117)
244244

245245
Get current scrollLeft.
246246

@@ -250,7 +250,7 @@ Get current scrollLeft.
250250

251251
> `readonly` **scrollHeight**: `number`
252252
253-
Defined in: [src/react/VGrid.tsx:121](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L121)
253+
Defined in: [src/react/VGrid.tsx:121](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L121)
254254

255255
Get current scrollHeight.
256256

@@ -260,7 +260,7 @@ Get current scrollHeight.
260260

261261
> `readonly` **scrollWidth**: `number`
262262
263-
Defined in: [src/react/VGrid.tsx:125](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L125)
263+
Defined in: [src/react/VGrid.tsx:125](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L125)
264264

265265
Get current scrollWidth.
266266

@@ -270,7 +270,7 @@ Get current scrollWidth.
270270

271271
> `readonly` **viewportHeight**: `number`
272272
273-
Defined in: [src/react/VGrid.tsx:129](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L129)
273+
Defined in: [src/react/VGrid.tsx:129](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L129)
274274

275275
Get current offsetHeight.
276276

@@ -280,7 +280,7 @@ Get current offsetHeight.
280280

281281
> `readonly` **viewportWidth**: `number`
282282
283-
Defined in: [src/react/VGrid.tsx:133](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L133)
283+
Defined in: [src/react/VGrid.tsx:133](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L133)
284284

285285
Get current offsetWidth.
286286

@@ -290,7 +290,7 @@ Get current offsetWidth.
290290

291291
> **findRowIndex**: (`offset`) => `number`
292292
293-
Defined in: [src/react/VGrid.tsx:138](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L138)
293+
Defined in: [src/react/VGrid.tsx:138](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L138)
294294

295295
Find nearest row index from offset.
296296

@@ -312,7 +312,7 @@ offset in pixels from the start of the scroll container
312312

313313
> **findColIndex**: (`offset`) => `number`
314314
315-
Defined in: [src/react/VGrid.tsx:143](https://github.com/inokawa/virtua/blob/762643c18afdf1278f9d1363ad56bf06e72beed8/src/react/VGrid.tsx#L143)
315+
Defined in: [src/react/VGrid.tsx:143](https://github.com/inokawa/virtua/blob/5341cd8c4d3a71dc1bc6bd235aa0bf16f0bf7697/src/react/VGrid.tsx#L143)
316316

317317
Find nearest col index from offset.
318318

0 commit comments

Comments
 (0)