(opts: TransitionOptions)
| 107 | }; |
| 108 | |
| 109 | const getAnimationBuilder = async (opts: TransitionOptions): Promise<AnimationBuilder | undefined> => { |
| 110 | if (!opts.leavingEl || !opts.animated || opts.duration === 0) { |
| 111 | return undefined; |
| 112 | } |
| 113 | |
| 114 | if (opts.animationBuilder) { |
| 115 | return opts.animationBuilder; |
| 116 | } |
| 117 | |
| 118 | const getAnimation = |
| 119 | opts.mode === 'ios' |
| 120 | ? (await iosTransitionAnimation()).iosTransitionAnimation |
| 121 | : (await mdTransitionAnimation()).mdTransitionAnimation; |
| 122 | |
| 123 | return getAnimation; |
| 124 | }; |
| 125 | |
| 126 | const animation = async (animationBuilder: AnimationBuilder, opts: TransitionOptions): Promise<TransitionResult> => { |
| 127 | await waitForReady(opts, true); |
no test coverage detected