MCPcopy Index your code
hub / github.com/SortableJS/Sortable / matrix

Function matrix

Sortable.js:206–222  ·  view source on GitHub ↗
(el, selfOnly)

Source from the content-addressed store, hash-verified

204 }
205 }
206 function matrix(el, selfOnly) {
207 var appliedTransforms = '';
208 if (typeof el === 'string') {
209 appliedTransforms = el;
210 } else {
211 do {
212 var transform = css(el, 'transform');
213 if (transform && transform !== 'none') {
214 appliedTransforms = transform + ' ' + appliedTransforms;
215 }
216 /* jshint boss:true */
217 } while (!selfOnly && (el = el.parentNode));
218 }
219 var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
220 /*jshint -W056 */
221 return matrixFn && new matrixFn(appliedTransforms);
222 }
223 function find(ctx, tagName, iterator) {
224 if (ctx) {
225 var list = ctx.getElementsByTagName(tagName),

Callers 6

dragOverAnimationCaptureFunction · 0.90
getRectFunction · 0.70
getRelativeScrollOffsetFunction · 0.70
AnimationStateManagerFunction · 0.70
Sortable.jsFile · 0.70
MultiDragPluginFunction · 0.70

Calls 1

cssFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…