Skip to content

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

@justinduynguyen

Description

@justinduynguyen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions