MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / getDuration

Function getDuration

core/src/utils/animation/animation.ts:342–357  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340 };
341
342 const getDuration = () => {
343 if (shouldForceSyncPlayback) {
344 return 0;
345 }
346 if (forceDurationValue !== undefined) {
347 return forceDurationValue;
348 }
349 if (_duration !== undefined) {
350 return _duration;
351 }
352 if (parentAnimation) {
353 return parentAnimation.getDuration();
354 }
355
356 return 0;
357 };
358
359 const getIterations = () => {
360 if (_iterations !== undefined) {

Callers 4

initializeWebAnimationFunction · 0.85
setAnimationStepFunction · 0.85
updateWebAnimationFunction · 0.85
progressEndFunction · 0.85

Calls 1

getDurationMethod · 0.80

Tested by

no test coverage detected