Skip to content

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

License

Notifications You must be signed in to change notification settings

Koparo/svgjs-draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Svgjs::Draw

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

This gem bundles the upstream distribution for use with the Ruby on Rails framework. The version number of the gem always tracks the upstream javascript release and the gem itself doesn't provide any additional methods or helpers. If a need for helpers arises in the future they will be developed as a separate gem with this one as its dependency. Should a gem bug be discovered an additional version identifier will be appended and incremented after the upstream version number.

The gem is developed and tested against Rails 5

License

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 ** svg.draw.js to svg-draw.js

Installation

Add this line to your application's Gemfile:

gem 'svgjs-draw'

And then execute:

$ bundle

Or install it yourself as:

$ gem install svgjs-draw

Usage

Add the following directive to your JavaScript manifest file (application.js):

//= require svg-draw

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/koparo/svgjs-draw.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages