brinley / jSignature

jQuery plugin for adding web signature functionality
http://www.unbolt.net/jSignature
693 stars 530 forks source link

base30 to svg using javascript without jquery or dom #96

Closed mattgaspar closed 8 years ago

mattgaspar commented 8 years ago

Is there any way to convert from base30 to svg using server side javascript (without dependency on jquery or the dom). I was hoping to pull out the code from the jsignature.js file or plugins but they appear to depend on the dom. Maybe using the native browsers canvas to svg. Are there any examples for this? I see there are examples in php, ruby and .net but not for node.

mattgaspar commented 8 years ago

After looking more closely at the plugins, I realized they would work without jquery or the dom. The simplify.js library was the only code using the browser window but I was able to update the code and remove the dependency. Code is available at the link below if needed by anyone else (nothing fancy, quick and dirty port from the jsignature plugin code!) https://gist.github.com/mattgaspar/170e00731711e8bb94e1