diff options
author | jaseg <git@jaseg.de> | 2021-09-29 00:24:30 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-09-29 16:38:51 +0200 |
commit | d406b1f1d08ef1c47a717d54e466709434d16684 (patch) | |
tree | e7692cea55758d8a24c4e1442a87f820f0dd7fcb /svg-flatten/src/out_svg.cpp | |
parent | 8a64621e8c8610a45884df82b46859bc3297d3e3 (diff) | |
download | gerbolyze-d406b1f1d08ef1c47a717d54e466709434d16684.tar.gz gerbolyze-d406b1f1d08ef1c47a717d54e466709434d16684.tar.bz2 gerbolyze-d406b1f1d08ef1c47a717d54e466709434d16684.zip |
Add rgba color support for newer resvg/usvgwasi-wip
Diffstat (limited to 'svg-flatten/src/out_svg.cpp')
-rw-r--r-- | svg-flatten/src/out_svg.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svg-flatten/src/out_svg.cpp b/svg-flatten/src/out_svg.cpp index e778d6b..d94edc0 100644 --- a/svg-flatten/src/out_svg.cpp +++ b/svg-flatten/src/out_svg.cpp @@ -37,7 +37,7 @@ SimpleSVGOutput::SimpleSVGOutput(ostream &out, bool only_polys, int digits_frac, } void SimpleSVGOutput::header_impl(d2p origin, d2p size) { - cerr << "svg: header" << endl; + //cerr << "svg: header" << endl; m_offset[0] = origin[0]; m_offset[1] = origin[1]; m_out << "<svg width=\"" << size[0] << "mm\" height=\"" << size[1] << "mm\" viewBox=\"0 0 " @@ -45,7 +45,7 @@ void SimpleSVGOutput::header_impl(d2p origin, d2p size) { } SimpleSVGOutput &SimpleSVGOutput::operator<<(GerberPolarityToken pol) { - cerr << "svg: got polarity " << pol << endl; + //cerr << "svg: got polarity " << pol << endl; if (pol == GRB_POL_DARK) { m_current_color = m_dark_color; } else if (pol == GRB_POL_CLEAR) { @@ -58,7 +58,7 @@ SimpleSVGOutput &SimpleSVGOutput::operator<<(GerberPolarityToken pol) { } SimpleSVGOutput &SimpleSVGOutput::operator<<(const Polygon &poly) { - cerr << "svg: got poly of size " << poly.size() << endl; + //cerr << "svg: got poly of size " << poly.size() << endl; if (poly.size() < 3) { cerr << "Warning: " << poly.size() << "-element polygon passed to SimpleGerberOutput" << endl; return *this; @@ -78,7 +78,7 @@ SimpleSVGOutput &SimpleSVGOutput::operator<<(const Polygon &poly) { } void SimpleSVGOutput::footer_impl() { - cerr << "svg: footer" << endl; + //cerr << "svg: footer" << endl; m_out << "</svg>" << endl; } |