tiny svg library - NOT abandoned nor outdated :-)
Branch: master
Clone or download
strathausen Merge pull request #1 from agongdai/master
Make it support text element with content
Latest commit a8e97f3 Jul 15, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Sep 16, 2014
LICENSE Initial commit Sep 16, 2014
README.md gender neutral language Mar 15, 2016
index.html initial svg lib working Sep 16, 2014
savage.js Make it support text element with content Jul 15, 2016

README.md

savage.js

Dead simple SVG library.

Less than 1k gzipped and minified.

Use it like this:

var paper = new Savage('#svg', 400, 711);
var circle = paper.draw('circle', {
  cx: 100, cy: 200, r: 50, fill: '#6baf7d'
});
var circle = paper.circle({
  cx: 50, cy: 200, r: 44, fill: '#abffdd'
}).attr({
  'stroke-width': '6px'
}).attr({
  stroke: '#6baf7d'
});