An extension of svg.js which allows to draw elements with mouse
The gem is developed and tested against Rails 5
svgjs-draw and changes made to svg.draw.js required for rails are licensed under ISC.
The original svg.draw.js code distributed with this gem is licensed under MIT You can find the svg.draw.js license file in the vendor directory, changes made to the original code base are as follows:
- for consistency with other includes the following renames have been done
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install svgjs-draw
//= require svg-draw
Bug reports and pull requests are welcome on GitHub at https://github.com/koparo/svgjs-draw.