(tag, attrs)
| 84 | |
| 85 | // Helper: build an SVG element from a string template. |
| 86 | function svgEl(tag, attrs) { |
| 87 | const el = document.createElementNS("http://www.w3.org/2000/svg", tag); |
| 88 | for (const k in attrs) el.setAttribute(k, attrs[k]); |
| 89 | return el; |
| 90 | } |
| 91 | // Helper: build an HTML element from a tag + attrs object. |
| 92 | function htmlEl(tag, attrs, children) { |
| 93 | const el = document.createElement(tag); |
no outgoing calls
no test coverage detected