Package Exports
- canvg
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (canvg) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
node-canvg
A port of canvg, which pareses svg input and renders the result to a canvas. http://code.google.com/p/canvg/
Usage
var canvg = require("canvg");
var Canvas = require("canvas");
var canvas = new Canvas();
canvg(canvas, '<svg>...</svg>');
/* and so on */
Todo
The canvg code is pretty much untouched. A lot of browser-specific code has to be removed or rewritten.