Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export interfaces for transition params #5221

Merged
merged 1 commit into from
Mar 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/runtime/transition/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface TransitionConfig {
tick?: (t: number, u: number) => void;
}

interface BlurParams {
export interface BlurParams {
delay?: number;
duration?: number;
easing?: EasingFunction;
Expand Down Expand Up @@ -40,7 +40,7 @@ export function blur(node: Element, {
};
}

interface FadeParams {
export interface FadeParams {
delay?: number;
duration?: number;
easing?: EasingFunction;
Expand All @@ -61,7 +61,7 @@ export function fade(node: Element, {
};
}

interface FlyParams {
export interface FlyParams {
delay?: number;
duration?: number;
easing?: EasingFunction;
Expand Down Expand Up @@ -94,7 +94,7 @@ export function fly(node: Element, {
};
}

interface SlideParams {
export interface SlideParams {
delay?: number;
duration?: number;
easing?: EasingFunction;
Expand Down Expand Up @@ -132,7 +132,7 @@ export function slide(node: Element, {
};
}

interface ScaleParams {
export interface ScaleParams {
delay?: number;
duration?: number;
easing?: EasingFunction;
Expand Down Expand Up @@ -165,7 +165,7 @@ export function scale(node: Element, {
};
}

interface DrawParams {
export interface DrawParams {
delay?: number;
speed?: number;
duration?: number | ((len: number) => number);
Expand Down Expand Up @@ -198,7 +198,7 @@ export function draw(node: SVGElement & { getTotalLength(): number }, {
};
}

interface CrossfadeParams {
export interface CrossfadeParams {
delay?: number;
duration?: number | ((len: number) => number);
easing?: EasingFunction;
Expand Down