0.2.9 • Published 9 years ago

node-raphael-args v0.2.9

Weekly downloads
39
License
-
Repository
github
Last release
9 years ago

node-raphael-args (includes raphael.JSON)

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

Features

  • static svg generation with raphael
  • ability to provide arguments to draw function for slightly more customizable rendering
  • export images to and import from JSON

Installation

npm install node-raphael-args

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)

for the args and json part - i wanted to let functions be slightly more dynamic when rendering, and also wanted the ability to load json info from the client and regenerate it server side

Usage

var raphael = require('node-raphael-args');
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
0.2.9

9 years ago

0.2.8

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago