https://github.com/fusioncharts/svgdecanvo
This library can be used to draw the SVG equivalent to HTML5 Canvas
https://github.com/fusioncharts/svgdecanvo
Last synced: about 2 months ago
JSON representation
This library can be used to draw the SVG equivalent to HTML5 Canvas
- Host: GitHub
- URL: https://github.com/fusioncharts/svgdecanvo
- Owner: fusioncharts
- License: mit
- Created: 2015-07-13T08:37:50.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T06:23:50.000Z (over 2 years ago)
- Last Synced: 2025-05-08T01:15:41.048Z (about 2 months ago)
- Language: JavaScript
- Size: 1.13 MB
- Stars: 5
- Watchers: 13
- Forks: 5
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SvgDeCanvo - Converts SVG string to canvas
## Installation
```
npm install svgdecanvo
```
## Usage
```JavaScript
var svgString = `
Use index.html as a template to work on temporary workspace!
Ensure that your test files are named spec-<somename>.html
`,
canvasEle = document.createElement('canvas');SVG = new SvgDeCanvo(svgString, canvasEle, function (canvas) {
});```