Inkscape.org
Beyond the Basics Using 3djs to include a incscape image in a webb-page and then scale it
  1. #1
    gor123has gor123has @gor123has

    I have figured out that I can load an Inkscape image into a webb page with

    
    // On html page
    <div id="svg-container" />
    
    // d3js must be loded
    <script>
      d3.xml("./my-picture.svg")
           .then(data => {
             d3.select("#svg-container").node().append(data.documentElement)
        });
    </script>
    
    

    The probem is then - how to resize the image.

    This might be a d3js problem - but some here might know...

    // Gorhas

     

     

     

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Using 3djs to include a incscape image in a webb-page and then scale it