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

Function matrix

src/utils.js:110–128  ·  view source on GitHub ↗
(el, selfOnly)

Source from the content-addressed store, hash-verified

108}
109
110function matrix(el, selfOnly) {
111 let appliedTransforms = '';
112 if (typeof(el) === 'string') {
113 appliedTransforms = el;
114 } else {
115 do {
116 let transform = css(el, 'transform');
117
118 if (transform && transform !== 'none') {
119 appliedTransforms = transform + ' ' + appliedTransforms;
120 }
121 /* jshint boss:true */
122 } while (!selfOnly && (el = el.parentNode));
123 }
124
125 const matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
126 /*jshint -W056 */
127 return matrixFn && (new matrixFn(appliedTransforms));
128}
129
130
131function find(ctx, tagName, iterator) {

Callers 6

Sortable.jsFile · 0.90
captureAnimationStateFunction · 0.90
animateAllFunction · 0.90
animateFunction · 0.90
getRectFunction · 0.70
getRelativeScrollOffsetFunction · 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…