Skip to content

using the beautiful SVG library Raphaël on Node.js to generate svg-data

License

Notifications You must be signed in to change notification settings

poojabansal/node-raphael

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-raphael

using the beatiful SVG library Raphaël on 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

About

using the beautiful SVG library Raphaël on Node.js to generate svg-data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published