I am using SVG.js to render a chessboard. The idea is, to keep the pieces in an external svg-file sprite.svg and include them with use, like this:
var pieceDrawn = svg.use(piece, "sprite.svg").move(x, y);
piece may be wp white pawn, in the sprite.svg:
<!-- white pawn //-->
<g id="wp" transform="translate(225,0)">
<path d="M 22,9 C 19.79,9 18,[...]"/>
</g>
sprite.svg was created in Sketch, therefore the group has an attribute transform. So when I move(x,y) the element, the transformation (255, 0) is added to the moving. How can I read the value of the transformation-attribute or remove it? pieceDrawn has no children(), select() seems not to be possible.