refactor(animations): single animation engine code pass

This commit is contained in:
Matias Niemelä
2017-05-02 15:45:48 -07:00
committed by Jason Aden
parent 16c8167886
commit 8a6eb1ac78
30 changed files with 395 additions and 818 deletions

View File

@ -21,10 +21,14 @@ export declare type AnimateTimings = {
*/
export declare interface AnimationOptions {
delay?: number|string;
duration?: number|string;
params?: {[name: string]: any};
}
/**
* @experimental Animation support is experimental.
*/
export declare interface AnimateChildOptions extends AnimationOptions { duration?: number|string; }
/**
* @experimental Animation support is experimental.
*/
@ -635,7 +639,7 @@ export function animation(
/**
* @experimental Animation support is experimental.
*/
export function animateChild(options: AnimationOptions | null = null):
export function animateChild(options: AnimateChildOptions | null = null):
AnimationAnimateChildMetadata {
return {type: AnimationMetadataType.AnimateChild, options};
}