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();
}
Thank you for your helps.