Skip to content

Commit

Permalink
Update typeod and its setting
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed May 8, 2023
1 parent 41cc47a commit 362c42a
Show file tree
Hide file tree
Showing 13 changed files with 830 additions and 305 deletions.
47 changes: 25 additions & 22 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@

### Interfaces

- [AnimationOptions](interfaces/AnimationOptions.md)
- [TypedKeyframeEffectOptions](interfaces/TypedKeyframeEffectOptions.md)
- [TransitionGroupProps](interfaces/TransitionGroupProps.md)
- [BaseAnimationHandle](interfaces/BaseAnimationHandle.md)
- [AnimationHandle](interfaces/AnimationHandle.md)
- [AnimationOptions](interfaces/AnimationOptions.md)
- [AnimationFunctionHandle](interfaces/AnimationFunctionHandle.md)
- [AnimationFunctionOptions](interfaces/AnimationFunctionOptions.md)
- [TransitionAnimationHandle](interfaces/TransitionAnimationHandle.md)
- [TransitionAnimationOptions](interfaces/TransitionAnimationOptions.md)

### Type Aliases

Expand All @@ -26,7 +29,7 @@
- [AnimatableCSSProperties](API.md#animatablecssproperties)
- [PlayOptions](API.md#playoptions)
- [WaitingAnimationEventName](API.md#waitinganimationeventname)
- [PlayArgs](API.md#playargs)
- [PlayOptionsWithArgs](API.md#playoptionswithargs)
- [ComputedTimingContext](API.md#computedtimingcontext)
- [AnimationFunction](API.md#animationfunction)
- [TransitionAnimationDefinition](API.md#transitionanimationdefinition)
Expand All @@ -35,23 +38,23 @@

### TransitionGroup

**TransitionGroup**(`__namedParameters`): `ReactElement`<`any`, `string` \| `JSXElementConstructor`<`any`\>\>
**TransitionGroup**(`«destructured»`): `ReactElement`<`any`, `string` \| `JSXElementConstructor`<`any`\>\>

A component to manage enter/update/exit of its children by key, that works similar to [TransitionGroup of react-transition-group](https://reactcommunity.org/react-transition-group/transition-group).

#### Parameters

| Name | Type |
| :------ | :------ |
| `__namedParameters` | [`TransitionGroupProps`](interfaces/TransitionGroupProps.md) |
| `«destructured»` | [`TransitionGroupProps`](interfaces/TransitionGroupProps.md) |

#### Returns

`ReactElement`<`any`, `string` \| `JSXElementConstructor`<`any`\>\>

#### Defined in

[src/react/components/TransitionGroup.tsx:74](https://github.com/inokawa/react-animatable/blob/3724fbf/src/react/components/TransitionGroup.tsx#L74)
[src/react/components/TransitionGroup.tsx:74](https://github.com/inokawa/react-animatable/blob/41cc47a/src/react/components/TransitionGroup.tsx#L74)

___

Expand Down Expand Up @@ -80,7 +83,7 @@ A basic hook to use Web Animations API. See [AnimationHandle](interfaces/Animati

#### Defined in

[src/react/hooks/useAnimation.ts:91](https://github.com/inokawa/react-animatable/blob/3724fbf/src/react/hooks/useAnimation.ts#L91)
[src/react/hooks/useAnimation.ts:162](https://github.com/inokawa/react-animatable/blob/41cc47a/src/react/hooks/useAnimation.ts#L162)

___

Expand All @@ -101,15 +104,15 @@ Same as [useAnimation](API.md#useanimation), but it drives function not React el
| Name | Type |
| :------ | :------ |
| `onUpdate` | [`AnimationFunction`](API.md#animationfunction)<`Args`\> |
| `options?` | [`AnimationOptions`](interfaces/AnimationOptions.md) |
| `options?` | [`AnimationFunctionOptions`](interfaces/AnimationFunctionOptions.md) |

#### Returns

[`AnimationFunctionHandle`](interfaces/AnimationFunctionHandle.md)<`Args`\>

#### Defined in

[src/react/hooks/useAnimationFunction.ts:66](https://github.com/inokawa/react-animatable/blob/3724fbf/src/react/hooks/useAnimationFunction.ts#L66)
[src/react/hooks/useAnimationFunction.ts:69](https://github.com/inokawa/react-animatable/blob/41cc47a/src/react/hooks/useAnimationFunction.ts#L69)

___

Expand All @@ -135,7 +138,7 @@ This hook must be used under [TransitionGroup](API.md#transitiongroup) component

#### Defined in

[src/react/hooks/useTransitionAnimation.ts:33](https://github.com/inokawa/react-animatable/blob/3724fbf/src/react/hooks/useTransitionAnimation.ts#L33)
[src/react/hooks/useTransitionAnimation.ts:37](https://github.com/inokawa/react-animatable/blob/41cc47a/src/react/hooks/useTransitionAnimation.ts#L37)

## Type Aliases

Expand All @@ -147,7 +150,7 @@ Strictly typed [Keyframe](https://developer.mozilla.org/en-US/docs/Web/API/Web_A

#### Defined in

[src/core/waapi.ts:17](https://github.com/inokawa/react-animatable/blob/3724fbf/src/core/waapi.ts#L17)
[src/core/waapi.ts:17](https://github.com/inokawa/react-animatable/blob/41cc47a/src/core/waapi.ts#L17)

___

Expand All @@ -157,7 +160,7 @@ ___

#### Defined in

[src/core/waapi.ts:22](https://github.com/inokawa/react-animatable/blob/3724fbf/src/core/waapi.ts#L22)
[src/core/waapi.ts:22](https://github.com/inokawa/react-animatable/blob/41cc47a/src/core/waapi.ts#L22)

___

Expand All @@ -177,7 +180,7 @@ A function to define keyframe dynamically

#### Defined in

[src/core/waapi.ts:31](https://github.com/inokawa/react-animatable/blob/3724fbf/src/core/waapi.ts#L31)
[src/core/waapi.ts:31](https://github.com/inokawa/react-animatable/blob/41cc47a/src/core/waapi.ts#L31)

___

Expand All @@ -187,7 +190,7 @@ ___

#### Defined in

[src/core/waapi.ts:4](https://github.com/inokawa/react-animatable/blob/3724fbf/src/core/waapi.ts#L4)
[src/core/waapi.ts:4](https://github.com/inokawa/react-animatable/blob/41cc47a/src/core/waapi.ts#L4)

___

Expand All @@ -203,7 +206,7 @@ ___

#### Defined in

[src/core/waapi.ts:85](https://github.com/inokawa/react-animatable/blob/3724fbf/src/core/waapi.ts#L85)
[src/core/waapi.ts:74](https://github.com/inokawa/react-animatable/blob/41cc47a/src/core/waapi.ts#L74)

___

Expand All @@ -213,13 +216,13 @@ ___

#### Defined in

[src/core/waapi.ts:156](https://github.com/inokawa/react-animatable/blob/3724fbf/src/core/waapi.ts#L156)
[src/core/waapi.ts:145](https://github.com/inokawa/react-animatable/blob/41cc47a/src/core/waapi.ts#L145)

___

### PlayArgs
### PlayOptionsWithArgs

Ƭ **PlayArgs**<`Args`\>: `Args` extends `void` ? [PlayOptions?] : [`Expand`<[`PlayOptions`](API.md#playoptions) & `Args` extends `void` ? {} : { `args`: `Args` }\>]
Ƭ **PlayOptionsWithArgs**<`Args`\>: [`PlayOptions`](API.md#playoptions) & { `args`: `Args` }

#### Type parameters

Expand All @@ -229,7 +232,7 @@ ___

#### Defined in

[src/react/hooks/useAnimation.ts:23](https://github.com/inokawa/react-animatable/blob/3724fbf/src/react/hooks/useAnimation.ts#L23)
[src/react/hooks/useAnimation.ts:28](https://github.com/inokawa/react-animatable/blob/41cc47a/src/react/hooks/useAnimation.ts#L28)

___

Expand All @@ -241,7 +244,7 @@ Non nullable [ComputedEffectTiming](https://developer.mozilla.org/en-US/docs/Web

#### Defined in

[src/react/hooks/useAnimationFunction.ts:29](https://github.com/inokawa/react-animatable/blob/3724fbf/src/react/hooks/useAnimationFunction.ts#L29)
[src/react/hooks/useAnimationFunction.ts:32](https://github.com/inokawa/react-animatable/blob/41cc47a/src/react/hooks/useAnimationFunction.ts#L32)

___

Expand All @@ -262,14 +265,14 @@ In this callback you can update any state or ref in JS.

#### Defined in

[src/react/hooks/useAnimationFunction.ts:39](https://github.com/inokawa/react-animatable/blob/3724fbf/src/react/hooks/useAnimationFunction.ts#L39)
[src/react/hooks/useAnimationFunction.ts:42](https://github.com/inokawa/react-animatable/blob/41cc47a/src/react/hooks/useAnimationFunction.ts#L42)

___

### TransitionAnimationDefinition

Ƭ **TransitionAnimationDefinition**: [keyframe: TypedKeyframe \| TypedKeyframe[] \| GetKeyframeFunction, options?: AnimationOptions]
Ƭ **TransitionAnimationDefinition**: [keyframe: TypedKeyframe \| TypedKeyframe[] \| GetKeyframeFunction, options?: TransitionAnimationOptions]

#### Defined in

[src/react/hooks/useTransitionAnimation.ts:23](https://github.com/inokawa/react-animatable/blob/3724fbf/src/react/hooks/useTransitionAnimation.ts#L23)
[src/react/hooks/useTransitionAnimation.ts:27](https://github.com/inokawa/react-animatable/blob/41cc47a/src/react/hooks/useTransitionAnimation.ts#L27)
Loading

0 comments on commit 362c42a

Please sign in to comment.