setDiagramHeight(comp.getHeight() + 200);
setDiagramWidth(comp.getWidth() + 400);
svgRoot.setAttributeNS(null, "viewBox", "0 0 " + getDiagramWidth() + " " + getDiagramHeight());
svgRoot.appendChild(new Style().addElement(doc, svgNS, null));
addLayer();
addComposite();
for (ComponentEntity ent : comp.getComponentList()) {