( animations: Map<number, EnterNodeAnimations | LeaveNodeAnimations>, tNode: TNode, fn: RunEnterAnimationFn | RunLeaveAnimationFn, )
| 380 | * @param fn The animation function to be called later |
| 381 | */ |
| 382 | export function addAnimationToLView( |
| 383 | animations: Map<number, EnterNodeAnimations | LeaveNodeAnimations>, |
| 384 | tNode: TNode, |
| 385 | fn: RunEnterAnimationFn | RunLeaveAnimationFn, |
| 386 | ) { |
| 387 | const nodeAnimations = animations.get(tNode.index) ?? {animateFns: []}; |
| 388 | nodeAnimations.animateFns.push(fn); |
| 389 | animations.set(tNode.index, nodeAnimations); |
| 390 | } |
| 391 | |
| 392 | export function cleanupAfterLeaveAnimations( |
| 393 | resolvers: VoidFunction[] | undefined, |
no test coverage detected