(el, selfOnly)
| 108 | } |
| 109 | |
| 110 | function 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 | |
| 131 | function find(ctx, tagName, iterator) { |
no test coverage detected
searching dependent graphs…