refactor(nav): transitions

This commit is contained in:
Manu Mtz.-Almeida
2018-03-20 14:12:16 +01:00
parent c85f7483c9
commit f16a9672b4
20 changed files with 489 additions and 874 deletions

View File

@ -1,4 +1,3 @@
import { ViewController } from '../..';
export interface AnimationController {
create(animationBuilder?: AnimationBuilder, baseEl?: any, opts?: any): Promise<Animation>;
@ -48,19 +47,6 @@ export interface AnimationBuilder {
(Animation: Animation, baseEl?: HTMLElement, opts?: any): Promise<Animation>;
}
export interface AnimationOptions {
animation?: string;
duration?: number;
easing?: string;
direction?: string;
isRTL?: boolean;
ev?: any;
enteringView: ViewController;
leavingView: ViewController;
nav: HTMLIonNavElement;
}
export interface PlayOptions {
duration?: number;
promise?: boolean;

View File

@ -1,4 +1,4 @@
import { AnimationOptions, EffectProperty, EffectState, PlayOptions } from './animation-interface';
import { EffectProperty, EffectState, PlayOptions } from './animation-interface';
import { CSS_PROP, CSS_VALUE_REGEX, DURATION_MIN, TRANSITION_END_FALLBACK_PADDING_MS } from './constants';
import { transitionEnd } from './transition-end';
@ -54,7 +54,6 @@ export class Animator {
private _destroyed = false;
parent: Animator|undefined;
opts: AnimationOptions;
hasChildren = false;
isPlaying = false;
hasCompleted = false;