DOM.setElementAttribute(node2, "x", Long.toString(-Math.round(width / 2)));
DOM.setElementAttribute(node2, "y", Long.toString(-Math.round(height / 2)));
Element def2 = helper.createOrUpdateElement(defsGroup, id + "-selection", "symbol", null, false);
DOM.setElementAttribute(def2, "overflow", "visible");
def2.appendChild(node2);
defs.appendChild(def2);
}
}
// Step3: Append the symbol definition: