This is all using SVG.js
I have instantiated an svg, and am trying to append a child svg that I am loading from a file. Here is the pseudo-code:
let myDoc = ...my root svg element;
let myChildSVG = ...require('UIElement.svg');
let child = myDoc.nested().svg(myChildSVG);
This accomplishes what I want, but ends up with 3 svg tags: the original, the middle (from nested) and the bottom (from the final svg call).
Am I missing a better way of adding the child to myDoc that will avoid that middle svg? Can I create the nested svg with the child itself somehow? Such as: myDoc.nested(myChildSVG) (which doesn't seem to work).
Thanks.