MCPcopy
hub / github.com/greensock/GSAP / _getGlobalTime

Function _getGlobalTime

esm/MotionPathHelper.js:55–64  ·  view source on GitHub ↗
(animation)

Source from the content-addressed store, hash-verified

53 return "M" + x + "," + y + "C" + coordinates.join(",");
54},
55 _getGlobalTime = function _getGlobalTime(animation) {
56 var time = animation.totalTime();
57
58 while (animation) {
59 time = animation.startTime() + time / (animation.timeScale() || 1);
60 animation = animation.parent;
61 }
62
63 return time;
64},
65 _copyElement,
66 _initCopyToClipboard = function _initCopyToClipboard() {
67 _copyElement = _createElement("textarea");

Callers 1

MotionPathHelperFunction · 0.70

Calls 3

startTimeMethod · 0.80
timeScaleMethod · 0.80
totalTimeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…