if(!Double.isFinite(trX)) trX = 0;
if(!Double.isFinite(trY)) trY = 0;
- result.append(MAIN_SECTION, "<g transform=\"translate(");
- result.append(MAIN_SECTION, "" + trX);
- result.append(MAIN_SECTION, ", ");
- result.append(MAIN_SECTION, "" + trY);
- result.append(MAIN_SECTION, ")\">");
-
+ result.append(MAIN_SECTION, "<g class=\"symbols\">");
result.append(SELECTION_SECTION, "<g class=\"selections\">");
-
result.append(SELECTION_MASK_SECTION, "<g class=\"selectionMasks\">");
+
+ result.append(ALL_SECTIONS, "<g transform=\"translate(");
+ result.append(ALL_SECTIONS, "" + trX);
+ result.append(ALL_SECTIONS, ", ");
+ result.append(ALL_SECTIONS, "" + trY);
+ result.append(ALL_SECTIONS, ")\">");
+
KeyVisitor keyVisitor = new KeyVisitor();
sg.accept(keyVisitor);
}
- result.append(SELECTION_SECTION, "</g>");
- result.append(SELECTION_MASK_SECTION, "</g>");
- result.append(MAIN_SECTION, "</g>");
+ result.append(ALL_SECTIONS, "</g></g>");
StringBuilder res = new StringBuilder();
res.append("<svg width=\"100%\" height=\"100%\" stroke=\"black\">");