svg.path.js
svg.path.js copied to clipboard
How does this work with npm+browserify?
Tried it like this, but it throws errors:
import SVG from 'svg.js';
import 'svg.path.js/svg.path.js';
let draw = SVG( 'drawing' );
var rect = draw.path().m({x: 100, y: 100}).C({x: 100, y: 200}, {x: 200, y: 200}, {x: 200, y: 100});
Drawing with only with svg.js works just fine
Have you ever figured this out? I'm experiencing the same issue with parcel bundler: Using the svg.js module is no problem, but once I start drawing paths it won't recognize the .L() function
import SVG from "../vendor/svg";
import svgpath from "../vendor/svg.path";