Skip to content

How does this work with npm+browserify? #22

@hirasso

Description

@hirasso

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions