Open maxwowpow opened 1 year ago
Any news on this?
Why are you pulling from github? Install via npm and the dist folder is right there. You obvisouly need svgdom for this to run:
import { SVG, registerWindow } from "@svgdotjs/svg.js";
import { createSVGWindow } from "svgdom";
const window = createSVGWindow();
registerWindow(window, window.document);
const svg = SVG().addTo(window.document.documentElement);
svg.rect(100, 100);
console.log(svg.svg());
npm install @svgdotjs/svg.js
so module cannot be imported:the command pulls repo instead of a package.
currently only release section and cdns have a compiled version.
current package.json refers /dist folder for release/compiled version.
The real question is why svg.js 3 is not published. If the repo supposed to be a src only repo, maybe a second repo for svg.js 3 makes sense?