Home › Evil Mad Scientist Forums › AxiDraw › What attribute to use as layer name in SVG for axicli › Reply To: What attribute to use as layer name in SVG for axicli
October 13, 2020 at 9:12 am
#28312
Nailunia
Participant
Ah! Thank you! I got it now :)
Using d3.js I had to set svg.attr("xmlns:inkscape", "http://www.inkscape.org/namespaces/inkscape")
and then
let g = svg.append("g")
g.node().setAttributeNS("inkscape","inkscape:groupmode", "layer")
g.node().setAttributeNS("inkscape","inkscape:label", "1-Yellow")
and now it works like a charm ^_^