Commit b3073cc0 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

set svg 'height' and 'width' properties

parent 26e35708
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -181,6 +181,8 @@ std::string SVGData::to_svg() const {
  svg
    << "<svg"
    << svg_attr("xmlns", "http://www.w3.org/2000/svg")
    << svg_attr("width", width)
    << svg_attr("height", height)
    << svg_attr("viewBox", StringUtil::format("0 0 $0 $1", width, height))
    << svg_attr("viewport-fill", background_colour.to_hex_str())
    << ">"
+1 −1
Original line number Diff line number Diff line
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200.0 480.0" viewport-fill="#ffffff">
<svg xmlns="http://www.w3.org/2000/svg" width="1200.000000" height="480.000000" viewBox="0 0 1200.0 480.0" viewport-fill="#ffffff">
  <path stroke-width="1.333333" stroke="#a8a8a8" fill="none" d="M73.333333 441.866667 L1150.133333 441.866667 "/>
  <path stroke-width="1.333333" stroke="#a8a8a8" fill="none" d="M73.333333 441.866667 L73.333333 436.0 "/>
  <path stroke-width="1.333333" stroke="#a8a8a8" fill="none" d="M163.066669 441.866667 L163.066669 436.0 "/>