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

Function matrix

modular/sortable.complete.esm.js:200–216  ·  view source on GitHub ↗
(el, selfOnly)

Source from the content-addressed store, hash-verified

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

Callers 5

getRectFunction · 0.70
getRelativeScrollOffsetFunction · 0.70
AnimationStateManagerFunction · 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…