using the beautiful SVG library Raphaël in Node.js to generate svg-data
JavaScript
Latest commit 89ef69b Feb 19, 2014 @dodo rm old stuff from readme
Permalink
Failed to load latest commit information.
example mv node-raphael.js index.js Feb 19, 2014
.gitignore new buildsystem Jan 5, 2012
.npmignore new buildsystem Jan 5, 2012
LICENSE applying AGPLv3 Dec 1, 2010
README.md rm old stuff from readme Feb 19, 2014
index.js mv node-raphael.js index.js Feb 19, 2014
package.json bump version Feb 19, 2014
test.js mv node-raphael.js index.js Feb 19, 2014

README.md

node-raphael

using the beatiful SVG library Raphaël in node.js to generate svg-data.

Features

  • static svg generation with raphael

Installation

npm install node-raphael

Motivation

NIH - not invented here ... srsly .. i want to generate some good looking charts without using javascript on client side (because this is lame for none-interactive images)

Usage

var raphael = require('node-raphael');
var svg = raphael.generate(width, height, function draw(paper) { … });

WARNING

jsdom just implements a DOM 1.0, which only covers SVG 1.0, but raphael uses SVG 1.1, so features like text may not work.

Example

SVG Server with Raphaël Logo:

TODO

  • More documentation
  • tests