MCPcopy
hub / github.com/winjs/winjs / collectOffsetArray

Function collectOffsetArray

src/js/WinJS/Animations.js:90–105  ·  view source on GitHub ↗
(elemArray)

Source from the content-addressed store, hash-verified

88 }
89
90 function collectOffsetArray(elemArray) {
91 var offsetArray = [];
92 for (var i = 0; i < elemArray.length; i++) {
93 var offset = {
94 top: elemArray[i].offsetTop,
95 left: elemArray[i].offsetLeft
96 };
97 var matrix = _ElementUtilities._getComputedStyle(elemArray[i], null)[transformNames.scriptName].split(",");
98 if (matrix.length === 6) {
99 offset.left += parseFloat(matrix[4]);
100 offset.top += parseFloat(matrix[5]);
101 }
102 offsetArray.push(offset);
103 }
104 return offsetArray;
105 }
106
107 function staggerDelay(initialDelay, extraDelay, delayFactor, delayCap) {
108 return function (i) {

Callers 2

layoutTransitionFunction · 0.85
Animations.jsFile · 0.85

Calls 2

splitMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected