how I can create a group element with id attribute in snap.svg ?
I tried to create it like this:
gr = draw.g(t1,t2);
gr.id="BoundingBox-"+BBoxElementCounter;
or
gr = draw.g(t1,t2);
gr.attr({"id": "BoundingBox-"+BBoxElementCounter});
But it is not working. Generated svg code is without id attribute.