(timeline)
| 199 | return element["offset" + d2] || element["client" + d2] || 0; |
| 200 | }, |
| 201 | _getLabelRatioArray = function _getLabelRatioArray(timeline) { |
| 202 | var a = [], |
| 203 | labels = timeline.labels, |
| 204 | duration = timeline.duration(), |
| 205 | p; |
| 206 | |
| 207 | for (p in labels) { |
| 208 | a.push(labels[p] / duration); |
| 209 | } |
| 210 | |
| 211 | return a; |
| 212 | }, |
| 213 | _getClosestLabel = function _getClosestLabel(animation) { |
| 214 | return function (value) { |
| 215 | return gsap.utils.snap(_getLabelRatioArray(animation), value); |
no test coverage detected
searching dependent graphs…