(element, targetEl)
| 16 | |
| 17 | function setInlineStyles(svg, target, emptySvgDeclarationComputed) { |
| 18 | function explicitlySetStyle(element, targetEl) { |
| 19 | const cSSStyleDeclarationComputed = getComputedStyle(element); |
| 20 | let computedStyleStr = ''; |
| 21 | each(cSSStyleDeclarationComputed, (key) => { |
| 22 | const value = cSSStyleDeclarationComputed.getPropertyValue(key); |
| 23 | if (value !== emptySvgDeclarationComputed.getPropertyValue(key) && !cssSkipValues[value]) { |
| 24 | computedStyleStr += `${key}:${value};`; |
| 25 | } |
| 26 | }); |
| 27 | targetEl.setAttribute('style', computedStyleStr); |
| 28 | targetEl.removeAttribute('data-reactid'); |
| 29 | } |
| 30 | |
| 31 | function traverse(obj) { |
| 32 | const tree = []; |
no outgoing calls
no test coverage detected
searching dependent graphs…