mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
refactor(nav): transitions
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user