(value, options)
| 5962 | }; |
| 5963 | |
| 5964 | var buildCommon_staticSvg = function staticSvg(value, options) { |
| 5965 | // Create a span with inline SVG for the element. |
| 5966 | var _svgData$value = svgData[value], |
| 5967 | pathName = _svgData$value[0], |
| 5968 | width = _svgData$value[1], |
| 5969 | height = _svgData$value[2]; |
| 5970 | var path = new domTree_PathNode(pathName); |
| 5971 | var svgNode = new SvgNode([path], { |
| 5972 | "width": width + "em", |
| 5973 | "height": height + "em", |
| 5974 | // Override CSS rule `.katex svg { width: 100% }` |
| 5975 | "style": "width:" + width + "em", |
| 5976 | "viewBox": "0 0 " + 1000 * width + " " + 1000 * height, |
| 5977 | "preserveAspectRatio": "xMinYMin" |
| 5978 | }); |
| 5979 | var span = buildCommon_makeSvgSpan(["overlay"], [svgNode], options); |
| 5980 | span.height = height; |
| 5981 | span.style.height = height + "em"; |
| 5982 | span.style.width = width + "em"; |
| 5983 | return span; |
| 5984 | }; |
| 5985 | |
| 5986 | /* harmony default export */ var buildCommon = ({ |
| 5987 | fontMap: fontMap, |
nothing calls this directly
no test coverage detected