View Demo View on GitHub

Svg.select.js

An extension of svg.js which allows to select an element

Download this project as a .zip file Download this project as a tar.gz file

svg.select.js

An extension of svg.js which allows to select elements with mouse

Get Started

Usage

Select

var draw = SVG('drawing');
var rect = draw.rect(100,100);
rect.selectize();

// or deepSelect
rect.selectize({deepSelect:true});

Unselect

rect.select(false);

// or deepSelect
rect.selectize(false, {deepSelect:true});

You can style the selection with the classes

Options