• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

IgniteUI / igniteui-angular / 26023601418

18 May 2026 08:57AM UTC coverage: 4.854% (-85.3%) from 90.174%
26023601418

Pull #17281

github

web-flow
Merge e7ce7a18e into 5a85df190
Pull Request #17281: feat: Added virtual scroll component and sample implementation

400 of 17347 branches covered (2.31%)

Branch coverage included in aggregate %.

63 of 222 new or added lines in 4 files covered. (28.38%)

27932 existing lines in 341 files now uncovered.

2022 of 32547 relevant lines covered (6.21%)

0.72 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/projects/igniteui-angular/animations/src/util.ts
1
import { AnimationReferenceMetadata } from '@angular/animations';
2
import { fadeIn, fadeOut } from './fade';
3
import { flipBottom, flipHorBck, flipHorFwd, flipLeft, flipRight, flipTop, flipVerBck, flipVerFwd } from './flip';
4
import { growVerIn, growVerOut } from './grow';
5
import { blink, heartbeat, pulsateBck, pulsateFwd, shakeBl, shakeBottom, shakeBr, shakeCenter, shakeHor, shakeLeft, shakeRight, shakeTl, shakeTop, shakeTr, shakeVer } from './misc';
6
import { rotateInBl, rotateInBottom, rotateInBr, rotateInCenter, rotateInDiagonal1, rotateInDiagonal2, rotateInHor, rotateInLeft, rotateInRight, rotateInTl, rotateInTop, rotateInTr, rotateInVer, rotateOutBl, rotateOutBottom, rotateOutBr, rotateOutCenter, rotateOutDiagonal1, rotateOutDiagonal2, rotateOutHor, rotateOutLeft, rotateOutRight, rotateOutTl, rotateOutTop, rotateOutTr, rotateOutVer } from './rotate';
7
import { scaleInBl, scaleInBottom, scaleInBr, scaleInCenter, scaleInHorCenter, scaleInHorLeft, scaleInHorRight, scaleInLeft, scaleInRight, scaleInTl, scaleInTop, scaleInTr, scaleInVerBottom, scaleInVerCenter, scaleInVerTop, scaleOutBl, scaleOutBottom, scaleOutBr, scaleOutCenter, scaleOutHorCenter, scaleOutHorLeft, scaleOutHorRight, scaleOutLeft, scaleOutRight, scaleOutTl, scaleOutTop, scaleOutTr, scaleOutVerBottom, scaleOutVerCenter, scaleOutVerTop } from './scale';
8
import { slideInTop, slideInBottom, slideOutTop, slideOutBottom, slideInRight, slideInLeft, slideOutRight, slideOutLeft, slideInTr, slideInBl, slideOutTr, slideOutBl, slideInBr, slideInTl, slideOutBr, slideOutTl } from './slide';
9
import { swingInTopFwd, swingInBottomFwd, swingOutTopFwd, swingOutBottomFwd, swingInRightFwd, swingInLeftFwd, swingOutRightFwd, swingOutLefttFwd, swingInTopBck, swingInBottomBck, swingOutTopBck, swingOutBottomBck, swingInRightBck, swingInLeftBck, swingOutRightBck, swingOutLeftBck } from './swing';
10

11
export class AnimationUtil {
12
    private static _instance: AnimationUtil;
13

UNCOV
14
    private oppositeAnimation: Map<AnimationReferenceMetadata, AnimationReferenceMetadata> = new Map([
×
15
        [fadeIn, fadeIn],
16
        [fadeOut, fadeOut],
17
        [flipTop, flipBottom],
18
        [flipBottom, flipTop],
19
        [flipRight, flipLeft],
20
        [flipLeft, flipRight],
21
        [flipHorFwd, flipHorBck],
22
        [flipHorBck, flipHorFwd],
23
        [flipVerFwd, flipVerBck],
24
        [flipVerBck, flipVerFwd],
25
        [growVerIn, growVerIn],
26
        [growVerOut, growVerOut],
27
        [heartbeat, heartbeat],
28
        [pulsateFwd, pulsateBck],
29
        [pulsateBck, pulsateFwd],
30
        [blink, blink],
31
        [shakeHor, shakeHor],
32
        [shakeVer, shakeVer],
33
        [shakeTop, shakeTop],
34
        [shakeBottom, shakeBottom],
35
        [shakeRight, shakeRight],
36
        [shakeLeft, shakeLeft],
37
        [shakeCenter, shakeCenter],
38
        [shakeTr, shakeTr],
39
        [shakeBr, shakeBr],
40
        [shakeBl, shakeBl],
41
        [shakeTl, shakeTl],
42
        [rotateInCenter, rotateInCenter],
43
        [rotateOutCenter, rotateOutCenter],
44
        [rotateInTop, rotateInBottom],
45
        [rotateOutTop, rotateOutBottom],
46
        [rotateInRight, rotateInLeft],
47
        [rotateOutRight, rotateOutLeft],
48
        [rotateInLeft, rotateInRight],
49
        [rotateOutLeft, rotateOutRight],
50
        [rotateInBottom, rotateInTop],
51
        [rotateOutBottom, rotateOutTop],
52
        [rotateInTr, rotateInBl],
53
        [rotateOutTr, rotateOutBl],
54
        [rotateInBr, rotateInTl],
55
        [rotateOutBr, rotateOutTl],
56
        [rotateInBl, rotateInTr],
57
        [rotateOutBl, rotateOutTr],
58
        [rotateInTl, rotateInBr],
59
        [rotateOutTl, rotateOutBr],
60
        [rotateInDiagonal1, rotateInDiagonal1],
61
        [rotateOutDiagonal1, rotateOutDiagonal1],
62
        [rotateInDiagonal2, rotateInDiagonal2],
63
        [rotateOutDiagonal2, rotateOutDiagonal2],
64
        [rotateInHor, rotateInHor],
65
        [rotateOutHor, rotateOutHor],
66
        [rotateInVer, rotateInVer],
67
        [rotateOutVer, rotateOutVer],
68
        [scaleInTop, scaleInBottom],
69
        [scaleOutTop, scaleOutBottom],
70
        [scaleInRight, scaleInLeft],
71
        [scaleOutRight, scaleOutLeft],
72
        [scaleInBottom, scaleInTop],
73
        [scaleOutBottom, scaleOutTop],
74
        [scaleInLeft, scaleInRight],
75
        [scaleOutLeft, scaleOutRight],
76
        [scaleInCenter, scaleInCenter],
77
        [scaleOutCenter, scaleOutCenter],
78
        [scaleInTr, scaleInBl],
79
        [scaleOutTr, scaleOutBl],
80
        [scaleInBr, scaleInTl],
81
        [scaleOutBr, scaleOutTl],
82
        [scaleInBl, scaleInTr],
83
        [scaleOutBl, scaleOutTr],
84
        [scaleInTl, scaleInBr],
85
        [scaleOutTl, scaleOutBr],
86
        [scaleInVerTop, scaleInVerBottom],
87
        [scaleOutVerTop, scaleOutVerBottom],
88
        [scaleInVerBottom, scaleInVerTop],
89
        [scaleOutVerBottom, scaleOutVerTop],
90
        [scaleInVerCenter, scaleInVerCenter],
91
        [scaleOutVerCenter, scaleOutVerCenter],
92
        [scaleInHorCenter, scaleInHorCenter],
93
        [scaleOutHorCenter, scaleOutHorCenter],
94
        [scaleInHorLeft, scaleInHorRight],
95
        [scaleOutHorLeft, scaleOutHorRight],
96
        [scaleInHorRight, scaleInHorLeft],
97
        [scaleOutHorRight, scaleOutHorLeft],
98
        [slideInTop, slideInBottom],
99
        [slideOutTop, slideOutBottom],
100
        [slideInRight, slideInLeft],
101
        [slideOutRight, slideOutLeft],
102
        [slideInBottom, slideInTop],
103
        [slideOutBottom, slideOutTop],
104
        [slideInLeft, slideInRight],
105
        [slideOutLeft, slideOutRight],
106
        [slideInTr, slideInBl],
107
        [slideOutTr, slideOutBl],
108
        [slideInBr, slideInTl],
109
        [slideOutBr, slideOutTl],
110
        [slideInBl, slideInTr],
111
        [slideOutBl, slideOutTr],
112
        [slideInTl, slideInBr],
113
        [slideOutTl, slideOutBr],
114
        [swingInTopFwd, swingInBottomFwd],
115
        [swingOutTopFwd, swingOutBottomFwd],
116
        [swingInRightFwd, swingInLeftFwd],
117
        [swingOutRightFwd, swingOutLefttFwd],
118
        [swingInLeftFwd, swingInRightFwd],
119
        [swingOutLefttFwd, swingOutRightFwd],
120
        [swingInBottomFwd, swingInTopFwd],
121
        [swingOutBottomFwd, swingOutTopFwd],
122
        [swingInTopBck, swingInBottomBck],
123
        [swingOutTopBck, swingOutBottomBck],
124
        [swingInRightBck, swingInLeftBck],
125
        [swingOutRightBck, swingOutLeftBck],
126
        [swingInBottomBck, swingInTopBck],
127
        [swingOutBottomBck, swingOutTopBck],
128
        [swingInLeftBck, swingInRightBck],
129
        [swingOutLeftBck, swingOutRightBck],
130
    ]);
131

UNCOV
132
    private horizontalAnimations: AnimationReferenceMetadata[] = [
×
133
        flipRight,
134
        flipLeft,
135
        flipVerFwd,
136
        flipVerBck,
137
        rotateInRight,
138
        rotateOutRight,
139
        rotateInLeft,
140
        rotateOutLeft,
141
        rotateInTr,
142
        rotateOutTr,
143
        rotateInBr,
144
        rotateOutBr,
145
        rotateInBl,
146
        rotateOutBl,
147
        rotateInTl,
148
        rotateOutTl,
149
        scaleInRight,
150
        scaleOutRight,
151
        scaleInLeft,
152
        scaleOutLeft,
153
        scaleInTr,
154
        scaleOutTr,
155
        scaleInBr,
156
        scaleOutBr,
157
        scaleInBl,
158
        scaleOutBl,
159
        scaleInTl,
160
        scaleOutTl,
161
        scaleInHorLeft,
162
        scaleOutHorLeft,
163
        scaleInHorRight,
164
        scaleOutHorRight,
165
        slideInRight,
166
        slideOutRight,
167
        slideInLeft,
168
        slideOutLeft,
169
        slideInTr,
170
        slideOutTr,
171
        slideInBr,
172
        slideOutBr,
173
        slideInBl,
174
        slideOutBl,
175
        slideInTl,
176
        slideOutTl,
177
        swingInRightFwd,
178
        swingOutRightFwd,
179
        swingInLeftFwd,
180
        swingOutLefttFwd,
181
        swingInRightBck,
182
        swingOutRightBck,
183
        swingInLeftBck,
184
        swingOutLeftBck,
185
    ];
186

UNCOV
187
    private  verticalAnimations: AnimationReferenceMetadata[] = [
×
188
        flipTop,
189
        flipBottom,
190
        flipHorFwd,
191
        flipHorBck,
192
        growVerIn,
193
        growVerOut,
194
        rotateInTop,
195
        rotateOutTop,
196
        rotateInBottom,
197
        rotateOutBottom,
198
        rotateInTr,
199
        rotateOutTr,
200
        rotateInBr,
201
        rotateOutBr,
202
        rotateInBl,
203
        rotateOutBl,
204
        rotateInTl,
205
        rotateOutTl,
206
        scaleInTop,
207
        scaleOutTop,
208
        scaleInBottom,
209
        scaleOutBottom,
210
        scaleInTr,
211
        scaleOutTr,
212
        scaleInBr,
213
        scaleOutBr,
214
        scaleInBl,
215
        scaleOutBl,
216
        scaleInTl,
217
        scaleOutTl,
218
        scaleInVerTop,
219
        scaleOutVerTop,
220
        scaleInVerBottom,
221
        scaleOutVerBottom,
222
        slideInTop,
223
        slideOutTop,
224
        slideInBottom,
225
        slideOutBottom,
226
        slideInTr,
227
        slideOutTr,
228
        slideInBr,
229
        slideOutBr,
230
        slideInBl,
231
        slideOutBl,
232
        slideInTl,
233
        slideOutTl,
234
        swingInTopFwd,
235
        swingOutTopFwd,
236
        swingInBottomFwd,
237
        swingOutBottomFwd,
238
        swingInTopBck,
239
        swingOutTopBck,
240
        swingInBottomBck,
241
        swingOutBottomBck,
242
    ];
243

244
    private constructor() { }
245

246
    public static instance() {
UNCOV
247
        return this._instance || (this._instance = new this());
×
248
    }
249

250
    public reverseAnimationResolver(animation: AnimationReferenceMetadata): AnimationReferenceMetadata {
UNCOV
251
        return this.oppositeAnimation.get(animation) ?? animation;
×
252
    }
253

254

255
    public isHorizontalAnimation(animation: AnimationReferenceMetadata): boolean {
UNCOV
256
        return this.horizontalAnimations.includes(animation);
×
257
    }
258

259
    public isVerticalAnimation(animation: AnimationReferenceMetadata): boolean {
UNCOV
260
        return this.verticalAnimations.includes(animation);
×
261
    }
262
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc