Skip to content

Commit

Permalink
0.27.5
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Feb 22, 2024
1 parent b44a920 commit f17cf6d
Show file tree
Hide file tree
Showing 25 changed files with 224 additions and 173 deletions.
24 changes: 12 additions & 12 deletions docs/classes/vue.VList.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Get item offset from start.

#### Defined in

[src/vue/Virtualizer.tsx:48](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L48)
[src/vue/Virtualizer.tsx:48](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L48)

___

Expand All @@ -110,7 +110,7 @@ Scroll to the item specified by index.

#### Defined in

[src/vue/Virtualizer.tsx:54](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L54)
[src/vue/Virtualizer.tsx:54](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L54)

___

Expand All @@ -132,7 +132,7 @@ Scroll to the given offset.

#### Defined in

[src/vue/Virtualizer.tsx:59](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L59)
[src/vue/Virtualizer.tsx:59](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L59)

___

Expand All @@ -154,7 +154,7 @@ Scroll by the given offset.

#### Defined in

[src/vue/Virtualizer.tsx:64](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L64)
[src/vue/Virtualizer.tsx:64](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L64)

## Properties

Expand Down Expand Up @@ -332,7 +332,7 @@ While true is set, scroll position will be maintained from the end not usual sta

#### Defined in

[src/vue/VList.tsx:34](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/VList.tsx#L34)
[src/vue/VList.tsx:34](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/VList.tsx#L34)

___

Expand All @@ -344,7 +344,7 @@ The data items rendered by this component.

#### Defined in

[src/vue/VList.tsx:18](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/VList.tsx#L18)
[src/vue/VList.tsx:18](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/VList.tsx#L18)

___

Expand All @@ -362,7 +362,7 @@ Number of items to render above/below the visible bounds of the list. You can in

#### Defined in

[src/vue/VList.tsx:23](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/VList.tsx#L23)
[src/vue/VList.tsx:23](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/VList.tsx#L23)

___

Expand All @@ -377,7 +377,7 @@ Item size hint for unmeasured items. It will help to reduce scroll jump when ite

#### Defined in

[src/vue/VList.tsx:30](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/VList.tsx#L30)
[src/vue/VList.tsx:30](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/VList.tsx#L30)

___

Expand All @@ -389,7 +389,7 @@ If true, rendered as a horizontally scrollable list. Otherwise rendered as a ver

#### Defined in

[src/vue/VList.tsx:38](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/VList.tsx#L38)
[src/vue/VList.tsx:38](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/VList.tsx#L38)

___

Expand All @@ -413,7 +413,7 @@ Get current scrollTop or scrollLeft.

#### Defined in

[src/vue/Virtualizer.tsx:35](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L35)
[src/vue/Virtualizer.tsx:35](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L35)

___

Expand All @@ -425,7 +425,7 @@ Get current scrollHeight or scrollWidth.

#### Defined in

[src/vue/Virtualizer.tsx:39](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L39)
[src/vue/Virtualizer.tsx:39](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L39)

___

Expand All @@ -437,4 +437,4 @@ Get current offsetHeight or offsetWidth.

#### Defined in

[src/vue/Virtualizer.tsx:43](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L43)
[src/vue/Virtualizer.tsx:43](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L43)
54 changes: 40 additions & 14 deletions docs/classes/vue.Virtualizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
- [overscan](vue.Virtualizer.md#overscan)
- [itemSize](vue.Virtualizer.md#itemsize)
- [horizontal](vue.Virtualizer.md#horizontal)
- [startMargin](vue.Virtualizer.md#startmargin)
- [endMargin](vue.Virtualizer.md#endmargin)
- [onScrollEnd](vue.Virtualizer.md#onscrollend)
- [onRangeChange](vue.Virtualizer.md#onrangechange)
- [scrollOffset](vue.Virtualizer.md#scrolloffset)
Expand Down Expand Up @@ -87,7 +89,7 @@ Get item offset from start.

#### Defined in

[src/vue/Virtualizer.tsx:48](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L48)
[src/vue/Virtualizer.tsx:48](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L48)

___

Expand All @@ -110,7 +112,7 @@ Scroll to the item specified by index.

#### Defined in

[src/vue/Virtualizer.tsx:54](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L54)
[src/vue/Virtualizer.tsx:54](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L54)

___

Expand All @@ -132,7 +134,7 @@ Scroll to the given offset.

#### Defined in

[src/vue/Virtualizer.tsx:59](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L59)
[src/vue/Virtualizer.tsx:59](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L59)

___

Expand All @@ -154,7 +156,7 @@ Scroll by the given offset.

#### Defined in

[src/vue/Virtualizer.tsx:64](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L64)
[src/vue/Virtualizer.tsx:64](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L64)

## Properties

Expand All @@ -180,7 +182,7 @@ ___

### $props

• **$props**: `Partial`\<\{ `shift`: `boolean` = Boolean; `overscan`: `number` ; `horizontal`: `boolean` = Boolean }\> & `Omit`\<\{ `shift`: `boolean` = Boolean; `data`: `unknown`[] ; `overscan`: `number` ; `horizontal`: `boolean` = Boolean; `itemSize?`: `number` = Number; `onScroll`: `undefined` \| (...`args`: [offset: number]) => `any` ; `onScrollEnd`: `undefined` \| (...`args`: []) => `any` ; `onRangeChange`: `undefined` \| (...`args`: [startIndex: number, endIndex: number]) => `any` } & `VNodeProps` & `AllowedComponentProps` & `ComponentCustomProps` & `Readonly`\<`ExtractPropTypes`\<\{ `data`: \{ `type`: `ArrayConstructor` = Array; `required`: ``true`` = true } ; `overscan`: \{ `type`: `NumberConstructor` = Number; `default`: `number` = 4 } ; `itemSize`: `NumberConstructor` = Number; `shift`: `BooleanConstructor` = Boolean; `horizontal`: `BooleanConstructor` = Boolean }\>\> & \{ `onScroll`: `undefined` \| (...`args`: [offset: number]) => `any` ; `onScrollEnd`: `undefined` \| (...`args`: []) => `any` ; `onRangeChange`: `undefined` \| (...`args`: [startIndex: number, endIndex: number]) => `any` }, `DefaultKeys`\<\{ `data`: \{ `type`: `ArrayConstructor` = Array; `required`: ``true`` = true } ; `overscan`: \{ `type`: `NumberConstructor` = Number; `default`: `number` = 4 } ; `itemSize`: `NumberConstructor` = Number; `shift`: `BooleanConstructor` = Boolean; `horizontal`: `BooleanConstructor` = Boolean }\>\>
• **$props**: `Partial`\<\{ `shift`: `boolean` = Boolean; `overscan`: `number` ; `horizontal`: `boolean` = Boolean }\> & `Omit`\<\{ `shift`: `boolean` = Boolean; `data`: `unknown`[] ; `overscan`: `number` ; `horizontal`: `boolean` = Boolean; `itemSize?`: `number` = Number; `startMargin?`: `number` = Number; `endMargin?`: `number` = Number; `onScroll`: `undefined` \| (...`args`: [offset: number]) => `any` ; `onScrollEnd`: `undefined` \| (...`args`: []) => `any` ; `onRangeChange`: `undefined` \| (...`args`: [startIndex: number, endIndex: number]) => `any` } & `VNodeProps` & `AllowedComponentProps` & `ComponentCustomProps` & `Readonly`\<`ExtractPropTypes`\<\{ `data`: \{ `type`: `ArrayConstructor` = Array; `required`: ``true`` = true } ; `overscan`: \{ `type`: `NumberConstructor` = Number; `default`: `number` = 4 } ; `itemSize`: `NumberConstructor` = Number; `shift`: `BooleanConstructor` = Boolean; `horizontal`: `BooleanConstructor` = Boolean; `startMargin`: `NumberConstructor` = Number; `endMargin`: `NumberConstructor` = Number }\>\> & \{ `onScroll`: `undefined` \| (...`args`: [offset: number]) => `any` ; `onScrollEnd`: `undefined` \| (...`args`: []) => `any` ; `onRangeChange`: `undefined` \| (...`args`: [startIndex: number, endIndex: number]) => `any` }, `DefaultKeys`\<\{ `data`: \{ `type`: `ArrayConstructor` = Array; `required`: ``true`` = true } ; `overscan`: \{ `type`: `NumberConstructor` = Number; `default`: `number` = 4 } ; `itemSize`: `NumberConstructor` = Number; `shift`: `BooleanConstructor` = Boolean; `horizontal`: `BooleanConstructor` = Boolean; `startMargin`: `NumberConstructor` = Number; `endMargin`: `NumberConstructor` = Number }\>\>

#### Defined in

Expand Down Expand Up @@ -260,7 +262,7 @@ ___

### $options

**$options**: `ComponentOptionsBase`\<`ResolveProps`\<\{ `data`: \{ `type`: `ArrayConstructor` = Array; `required`: ``true`` = true } ; `overscan`: \{ `type`: `NumberConstructor` = Number; `default`: `number` = 4 } ; `itemSize`: `NumberConstructor` = Number; `shift`: `BooleanConstructor` = Boolean; `horizontal`: `BooleanConstructor` = Boolean }, \{ `scroll`: (`offset`: `number`) => `void` ; `scrollEnd`: () => `void` ; `rangeChange`: (`startIndex`: `number`, `endIndex`: `number`) => `void` }\>, `VirtualizerHandle`, {}, {}, {}, `ComponentOptionsMixin`, `ComponentOptionsMixin`, \{ `scroll`: (`offset`: `number`) => `void` ; `scrollEnd`: () => `void` ; `rangeChange`: (`startIndex`: `number`, `endIndex`: `number`) => `void` }, `string`, \{ `shift`: `boolean` = Boolean; `overscan`: `number` ; `horizontal`: `boolean` = Boolean }, {}, `string`, `SlotsType`\<\{ `default`: `any` }\>\> & `MergedComponentOptionsOverride`
**$options**: `ComponentOptionsBase`\<`ResolveProps`\<\{ `data`: \{ `type`: `ArrayConstructor` = Array; `required`: ``true`` = true } ; `overscan`: \{ `type`: `NumberConstructor` = Number; `default`: `number` = 4 } ; `itemSize`: `NumberConstructor` = Number; `shift`: `BooleanConstructor` = Boolean; `horizontal`: `BooleanConstructor` = Boolean; `startMargin`: `NumberConstructor` = Number; `endMargin`: `NumberConstructor` = Number }, \{ `scroll`: (`offset`: `number`) => `void` ; `scrollEnd`: () => `void` ; `rangeChange`: (`startIndex`: `number`, `endIndex`: `number`) => `void` }\>, `VirtualizerHandle`, {}, {}, {}, `ComponentOptionsMixin`, `ComponentOptionsMixin`, \{ `scroll`: (`offset`: `number`) => `void` ; `scrollEnd`: () => `void` ; `rangeChange`: (`startIndex`: `number`, `endIndex`: `number`) => `void` }, `string`, \{ `shift`: `boolean` = Boolean; `overscan`: `number` ; `horizontal`: `boolean` = Boolean }, {}, `string`, `SlotsType`\<\{ `default`: `any` }\>\> & `MergedComponentOptionsOverride`

#### Defined in

Expand Down Expand Up @@ -332,7 +334,7 @@ While true is set, scroll position will be maintained from the end not usual sta

#### Defined in

[src/vue/Virtualizer.tsx:87](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L87)
[src/vue/Virtualizer.tsx:87](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L87)

___

Expand All @@ -344,7 +346,7 @@ The data items rendered by this component.

#### Defined in

[src/vue/Virtualizer.tsx:71](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L71)
[src/vue/Virtualizer.tsx:71](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L71)

___

Expand All @@ -362,7 +364,7 @@ Number of items to render above/below the visible bounds of the list. You can in

#### Defined in

[src/vue/Virtualizer.tsx:76](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L76)
[src/vue/Virtualizer.tsx:76](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L76)

___

Expand All @@ -377,7 +379,7 @@ Item size hint for unmeasured items. It will help to reduce scroll jump when ite

#### Defined in

[src/vue/Virtualizer.tsx:83](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L83)
[src/vue/Virtualizer.tsx:83](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L83)

___

Expand All @@ -389,7 +391,31 @@ If true, rendered as a horizontally scrollable list. Otherwise rendered as a ver

#### Defined in

[src/vue/Virtualizer.tsx:91](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L91)
[src/vue/Virtualizer.tsx:91](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L91)

___

### startMargin

`Optional` `Readonly` **startMargin**: `number` = `Number`

If you put an element before virtualizer, you have to define its height with this prop.

#### Defined in

[src/vue/Virtualizer.tsx:95](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L95)

___

### endMargin

`Optional` `Readonly` **endMargin**: `number` = `Number`

If you put an element after virtualizer, you have to define its height with this prop.

#### Defined in

[src/vue/Virtualizer.tsx:99](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L99)

___

Expand All @@ -413,7 +439,7 @@ Get current scrollTop or scrollLeft.

#### Defined in

[src/vue/Virtualizer.tsx:35](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L35)
[src/vue/Virtualizer.tsx:35](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L35)

___

Expand All @@ -425,7 +451,7 @@ Get current scrollHeight or scrollWidth.

#### Defined in

[src/vue/Virtualizer.tsx:39](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L39)
[src/vue/Virtualizer.tsx:39](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L39)

___

Expand All @@ -437,4 +463,4 @@ Get current offsetHeight or offsetWidth.

#### Defined in

[src/vue/Virtualizer.tsx:43](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/Virtualizer.tsx#L43)
[src/vue/Virtualizer.tsx:43](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/Virtualizer.tsx#L43)
10 changes: 5 additions & 5 deletions docs/classes/vue.WindowVirtualizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ While true is set, scroll position will be maintained from the end not usual sta

#### Defined in

[src/vue/WindowVirtualizer.tsx:48](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/WindowVirtualizer.tsx#L48)
[src/vue/WindowVirtualizer.tsx:48](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/WindowVirtualizer.tsx#L48)

___

Expand All @@ -241,7 +241,7 @@ The data items rendered by this component.

#### Defined in

[src/vue/WindowVirtualizer.tsx:32](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/WindowVirtualizer.tsx#L32)
[src/vue/WindowVirtualizer.tsx:32](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/WindowVirtualizer.tsx#L32)

___

Expand All @@ -259,7 +259,7 @@ Number of items to render above/below the visible bounds of the list. You can in

#### Defined in

[src/vue/WindowVirtualizer.tsx:37](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/WindowVirtualizer.tsx#L37)
[src/vue/WindowVirtualizer.tsx:37](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/WindowVirtualizer.tsx#L37)

___

Expand All @@ -274,7 +274,7 @@ Item size hint for unmeasured items. It will help to reduce scroll jump when ite

#### Defined in

[src/vue/WindowVirtualizer.tsx:44](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/WindowVirtualizer.tsx#L44)
[src/vue/WindowVirtualizer.tsx:44](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/WindowVirtualizer.tsx#L44)

___

Expand All @@ -286,7 +286,7 @@ If true, rendered as a horizontally scrollable list. Otherwise rendered as a ver

#### Defined in

[src/vue/WindowVirtualizer.tsx:52](https://github.com/inokawa/virtua/blob/2a92d85a/src/vue/WindowVirtualizer.tsx#L52)
[src/vue/WindowVirtualizer.tsx:52](https://github.com/inokawa/virtua/blob/b44a9200/src/vue/WindowVirtualizer.tsx#L52)

___

Expand Down
2 changes: 1 addition & 1 deletion docs/interfaces/react.CacheSnapshot.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ Serializable cache snapshot.

#### Defined in

[src/core/types.ts:13](https://github.com/inokawa/virtua/blob/2a92d85a/src/core/types.ts#L13)
[src/core/types.ts:13](https://github.com/inokawa/virtua/blob/b44a9200/src/core/types.ts#L13)
4 changes: 2 additions & 2 deletions docs/interfaces/react.CustomCellComponentProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Props of customized cell component for [VGrid](../modules/react.md#experimental_

#### Defined in

[src/react/VGrid.tsx:35](https://github.com/inokawa/virtua/blob/2a92d85a/src/react/VGrid.tsx#L35)
[src/react/VGrid.tsx:35](https://github.com/inokawa/virtua/blob/b44a9200/src/react/VGrid.tsx#L35)

___

Expand All @@ -29,4 +29,4 @@ ___

#### Defined in

[src/react/VGrid.tsx:36](https://github.com/inokawa/virtua/blob/2a92d85a/src/react/VGrid.tsx#L36)
[src/react/VGrid.tsx:36](https://github.com/inokawa/virtua/blob/b44a9200/src/react/VGrid.tsx#L36)
4 changes: 2 additions & 2 deletions docs/interfaces/react.CustomContainerComponentProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#### Defined in

[src/react/types.ts:10](https://github.com/inokawa/virtua/blob/2a92d85a/src/react/types.ts#L10)
[src/react/types.ts:10](https://github.com/inokawa/virtua/blob/b44a9200/src/react/types.ts#L10)

___

Expand All @@ -27,4 +27,4 @@ ___

#### Defined in

[src/react/types.ts:11](https://github.com/inokawa/virtua/blob/2a92d85a/src/react/types.ts#L11)
[src/react/types.ts:11](https://github.com/inokawa/virtua/blob/b44a9200/src/react/types.ts#L11)
6 changes: 3 additions & 3 deletions docs/interfaces/react.CustomItemComponentProps.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Props of customized item component for [Virtualizer](../modules/react.md#virtual

#### Defined in

[src/react/types.ts:23](https://github.com/inokawa/virtua/blob/2a92d85a/src/react/types.ts#L23)
[src/react/types.ts:23](https://github.com/inokawa/virtua/blob/b44a9200/src/react/types.ts#L23)

___

Expand All @@ -30,7 +30,7 @@ ___

#### Defined in

[src/react/types.ts:24](https://github.com/inokawa/virtua/blob/2a92d85a/src/react/types.ts#L24)
[src/react/types.ts:24](https://github.com/inokawa/virtua/blob/b44a9200/src/react/types.ts#L24)

___

Expand All @@ -40,4 +40,4 @@ ___

#### Defined in

[src/react/types.ts:25](https://github.com/inokawa/virtua/blob/2a92d85a/src/react/types.ts#L25)
[src/react/types.ts:25](https://github.com/inokawa/virtua/blob/b44a9200/src/react/types.ts#L25)
Loading

0 comments on commit f17cf6d

Please sign in to comment.