Callback that is invoked when the panel animation completes.
(state: string)
| 453 | |
| 454 | /** Callback that is invoked when the panel animation completes. */ |
| 455 | protected _onAnimationDone(state: string) { |
| 456 | const isExit = state === EXIT_ANIMATION; |
| 457 | |
| 458 | if (isExit || state === ENTER_ANIMATION) { |
| 459 | if (isExit) { |
| 460 | clearTimeout(this._exitFallbackTimeout); |
| 461 | this._exitFallbackTimeout = undefined; |
| 462 | } |
| 463 | this._animationDone.next(isExit ? 'void' : 'enter'); |
| 464 | this._isAnimating.set(false); |
| 465 | } |
| 466 | } |
| 467 | |
| 468 | protected _onAnimationStart(state: string) { |
| 469 | if (state === ENTER_ANIMATION || state === EXIT_ANIMATION) { |
no test coverage detected