Javascript – SVG.js addTo() cannot find target DOM on Svelte
I wanted to add a simple SVG example that is manipulatable with SVG.js I tried this. <main> <section class="center"> <h1>Hello!</h1> <p>This is project page.</p> </section> <section id="canvas"> <canvas></canvas> </section> </main> <script> import { SVG } from '@svgdotjs/svg.js'; var draw =…