SVG --space-name-transform

This commit is contained in:
Thomas Krijnen
2021-03-28 22:16:58 +02:00
parent f1d7cf1dfb
commit 08ec3fc73f
3 changed files with 14 additions and 1 deletions
+5 -1
View File
@@ -1345,7 +1345,11 @@ void SvgSerializer::write(const geometry_data& data) {
xcoords.push_back(path.add(center_point->X()));
path.add("\" y=\"");
ycoords.push_back(path.add(center_point->Y()));
path.add("\">");
path.add("\"");
if (space_name_transform_) {
path.add(" transform=\"" + *space_name_transform_ + "\"");
}
path.add(">");
for (auto lit = labels.begin(); lit != labels.end(); ++lit) {
const auto& l = *lit;
double dy = labels.begin() == lit