Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG is not defined when using svg.select.js with svg.js #65

Open
justinduynguyen opened this issue May 24, 2023 · 0 comments
Open

SVG is not defined when using svg.select.js with svg.js #65

justinduynguyen opened this issue May 24, 2023 · 0 comments

Comments

@justinduynguyen
Copy link

My code:

import { Svg } from '@svgdotjs/svg.js';
import  'svg.select.js';
export function Init ()
{
    var width = 460, height = 640
    // create SVG document and set its size
    var draw = new Svg().addTo('body').size(width, height);
    draw.fill('#f06');
    var rect = draw.rect(100, 100).attr({ fill: '#f06' });
    rect.move(100, 600);
    rect.selective();
}

I got this error
image

Thank you for your helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant