( animations: Map<number, EnterNodeAnimations | LeaveNodeAnimations>, tNode: TNode, fn: RunEnterAnimationFn | RunLeaveAnimationFn, )
| 405 | * @param fn The animation function to be called later |
| 406 | */ |
| 407 | export function addAnimationToLView( |
| 408 | animations: Map<number, EnterNodeAnimations | LeaveNodeAnimations>, |
| 409 | tNode: TNode, |
| 410 | fn: RunEnterAnimationFn | RunLeaveAnimationFn, |
| 411 | ) { |
| 412 | const nodeAnimations = animations.get(tNode.index) ?? {animateFns: []}; |
| 413 | nodeAnimations.animateFns.push(fn); |
| 414 | animations.set(tNode.index, nodeAnimations); |
| 415 | } |
| 416 | |
| 417 | export function cleanupAfterLeaveAnimations( |
| 418 | resolvers: VoidFunction[] | undefined, |
no test coverage detected