Go to file
adeveria 95f4e4f7e2 add missing matrix tests 2013-09-19 17:11:50 -07:00
dist Fix for bug #17. New method Savage.angle. Fixed handling of <defs>. Fix use.getBBox. New method Element.toDefs(). Fix for gradient rgba. Fix for double defs. 2013-09-19 21:03:24 +10:00
src Fix for bug #17. New method Savage.angle. Fixed handling of <defs>. Fix use.getBBox. New method Element.toDefs(). Fix for gradient rgba. Fix for double defs. 2013-09-19 21:03:24 +10:00
test add missing matrix tests 2013-09-19 17:11:50 -07:00
.gitmodules Moving submodules (part 1) 2013-08-16 11:15:34 +10:00
CONTRIBUTING Added contributing file 2013-08-16 14:50:35 +10:00
Gruntfile.js add option in Gruntfile to generate requirejs compatible build of savage 2013-09-19 15:40:24 -07:00
LICENSE Add License 2013-08-15 18:31:27 +10:00
NOTICE Update notice and readme 2013-09-09 11:16:25 +10:00
README.md Fix for bug #17. New method Savage.angle. Fixed handling of <defs>. Fix use.getBBox. New method Element.toDefs(). Fix for gradient rgba. Fix for double defs. 2013-09-19 21:03:24 +10:00
bg.png Added gradients. Changed plugin architecture. 2013-07-11 13:23:37 +10:00
demo-card.svg Fixed group to follow pattern of first argument to be an attributes 2013-09-09 17:36:48 +10:00
demojs.html Fixed text setting and getting. Removed superflous <tspan> 2013-09-09 17:22:14 +10:00
demojs2.html Added another demo 2013-09-06 14:09:36 +10:00
dr.json Added methods for loading external SVG, new attribute #text and Paper.toString() 2013-09-05 10:10:45 +10:00
map.svg Added another demo 2013-09-06 14:09:36 +10:00
package.json Added ability to solve ids in cloned elements. New element methods and 2013-09-11 13:17:32 +10:00

README.md

savage

JavaScript library for SVG.

API Reference is in dist/reference.html

Building

Savage uses Grunt to build

  • Open the terminal from the Savage directory

      cd savage
    
  • Install its command line interface (CLI) globally

      npm install -g grunt-cli
    
  • Install dependencies with npm

      npm install
    

*Savage uses Grunt 0.4.0. You might want to read more on their website if you havent upgraded since a lot has changed.

  • Type grunt in the command line to build the files.

  • The results will be built into the release folder.

  • Alternatively type grunt watch to have the build run automatically when you make changes to source files.

  • For documentation generation use this command

      cd node_modules/dr.js/; node dr ../../dr.json; cd ../../
    

Its ugly at the moment. Somebody should port it to grunt. May be even me :)