Nailunia

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: What attribute to use as layer name in SVG for axicli #28313
    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 ^_^

    in reply to: What attribute to use as layer name in SVG for axicli #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 ^_^

Viewing 2 posts - 1 through 2 (of 2 total)