|
|
@ -12,11 +12,11 @@ export interface TransitionConfig {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface BlurParams {
|
|
|
|
interface BlurParams {
|
|
|
|
delay: number;
|
|
|
|
delay?: number;
|
|
|
|
duration: number;
|
|
|
|
duration?: number;
|
|
|
|
easing?: EasingFunction;
|
|
|
|
easing?: EasingFunction;
|
|
|
|
amount: number;
|
|
|
|
amount?: number;
|
|
|
|
opacity: number;
|
|
|
|
opacity?: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function blur(node: Element, {
|
|
|
|
export function blur(node: Element, {
|
|
|
@ -41,9 +41,9 @@ export function blur(node: Element, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface FadeParams {
|
|
|
|
interface FadeParams {
|
|
|
|
delay: number;
|
|
|
|
delay?: number;
|
|
|
|
duration: number;
|
|
|
|
duration?: number;
|
|
|
|
easing: EasingFunction;
|
|
|
|
easing?: EasingFunction;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function fade(node: Element, {
|
|
|
|
export function fade(node: Element, {
|
|
|
@ -62,12 +62,12 @@ export function fade(node: Element, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface FlyParams {
|
|
|
|
interface FlyParams {
|
|
|
|
delay: number;
|
|
|
|
delay?: number;
|
|
|
|
duration: number;
|
|
|
|
duration?: number;
|
|
|
|
easing: EasingFunction;
|
|
|
|
easing?: EasingFunction;
|
|
|
|
x: number;
|
|
|
|
x?: number;
|
|
|
|
y: number;
|
|
|
|
y?: number;
|
|
|
|
opacity: number;
|
|
|
|
opacity?: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function fly(node: Element, {
|
|
|
|
export function fly(node: Element, {
|
|
|
@ -95,9 +95,9 @@ export function fly(node: Element, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface SlideParams {
|
|
|
|
interface SlideParams {
|
|
|
|
delay: number;
|
|
|
|
delay?: number;
|
|
|
|
duration: number;
|
|
|
|
duration?: number;
|
|
|
|
easing: EasingFunction;
|
|
|
|
easing?: EasingFunction;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function slide(node: Element, {
|
|
|
|
export function slide(node: Element, {
|
|
|
@ -133,11 +133,11 @@ export function slide(node: Element, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface ScaleParams {
|
|
|
|
interface ScaleParams {
|
|
|
|
delay: number;
|
|
|
|
delay?: number;
|
|
|
|
duration: number;
|
|
|
|
duration?: number;
|
|
|
|
easing: EasingFunction;
|
|
|
|
easing?: EasingFunction;
|
|
|
|
start: number;
|
|
|
|
start?: number;
|
|
|
|
opacity: number;
|
|
|
|
opacity?: number;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function scale(node: Element, {
|
|
|
|
export function scale(node: Element, {
|
|
|
@ -166,10 +166,10 @@ export function scale(node: Element, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface DrawParams {
|
|
|
|
interface DrawParams {
|
|
|
|
delay: number;
|
|
|
|
delay?: number;
|
|
|
|
speed: number;
|
|
|
|
speed?: number;
|
|
|
|
duration: number | ((len: number) => number);
|
|
|
|
duration?: number | ((len: number) => number);
|
|
|
|
easing: EasingFunction;
|
|
|
|
easing?: EasingFunction;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function draw(node: SVGElement & { getTotalLength(): number }, {
|
|
|
|
export function draw(node: SVGElement & { getTotalLength(): number }, {
|
|
|
@ -199,9 +199,9 @@ export function draw(node: SVGElement & { getTotalLength(): number }, {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
interface CrossfadeParams {
|
|
|
|
interface CrossfadeParams {
|
|
|
|
delay: number;
|
|
|
|
delay?: number;
|
|
|
|
duration: number | ((len: number) => number);
|
|
|
|
duration?: number | ((len: number) => number);
|
|
|
|
easing: EasingFunction;
|
|
|
|
easing?: EasingFunction;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type ClientRectMap = Map<any, { rect: ClientRect }>;
|
|
|
|
type ClientRectMap = Map<any, { rect: ClientRect }>;
|
|
|
|