1
1
Canvas2Svg [ ![ Build Status] ( https://travis-ci.org/gliffy/canvas2svg.svg?branch=master )] ( https://travis-ci.org/gliffy/canvas2svg )
2
2
==========
3
- This library turns your Canvas into SVG using javascript. In other words, this library lets you build an SVG document
3
+ This library turns your Canvas into SVG using javascript. In other words, this library lets you build an SVG document
4
4
using the canvas api. Why use it?
5
5
* You have a canvas drawing you want to persist as an SVG file.
6
6
* You like exporting things.
@@ -12,7 +12,7 @@ http://gliffy.github.io/canvas2svg/
12
12
13
13
How it works
14
14
==========
15
- We create a mock 2d canvas context. Use the canvas context like you would on a normal canvas. As you call methods, we
15
+ We create a mock 2d canvas context. Use the canvas context like you would on a normal canvas. As you call methods, we
16
16
build up a scene graph in SVG. Yay!
17
17
18
18
Usage
@@ -41,7 +41,7 @@ npm install
41
41
npm test
42
42
```
43
43
44
- To run tests against Chrome and Firefox, call karma directly. This is not the default npm test due to the limited
44
+ To run tests against Chrome and Firefox, call karma directly. This is not the default npm test due to the limited
45
45
browser selection in travis.
46
46
```
47
47
npm install karma-cli -g
@@ -72,11 +72,11 @@ install gulp globally if you haven't done so already
72
72
```
73
73
npm install -g gulp
74
74
```
75
- Then run the following to update playground.html and testrunner.html
75
+ Then run the following to update playground.html and testrunner.html
76
76
```
77
77
gulp
78
78
```
79
- You should now be able to select your new example from playground.html or see it run in testrunner.html
79
+ You should now be able to select your new example from playground.html or see it run in testrunner.html
80
80
81
81
If you find a bug, or want to add functionality, please add a new test case and include it with your pull request.
82
82
@@ -100,13 +100,14 @@ N.B. You may not need node-canvas for some simple operations when using jsdom >=
100
100
101
101
Updates
102
102
==========
103
+ - v1.0.21 Fix issue ctx.drawImage incorrectly smoothing the image and allow user to pass in ctx argument
103
104
- v1.0.20 Fix issue with mixing transforms with path commands
104
105
- v1.0.19 Fix __ parseFont to not crash
105
106
- v1.0.18 clip was not working, the path never made it to the clip area
106
107
- v1.0.17 Fix bug with drawing in an empty context. Fix image translation problem. Fix globalAlpha issue.
107
108
- v1.0.16 Add npm publishing support, bower file and optimize for arcs with no angles.
108
109
- v1.0.15 Setup travis, add testharness and debug playground, and fix regression for __ createElement refactor
109
- - v1.0.14 bugfix for gradients, move __ createElement to scoped createElement function, so all classes have access.
110
+ - v1.0.14 bugfix for gradients, move __ createElement to scoped createElement function, so all classes have access.
110
111
- v1.0.13 set paint order before stroke and fill to make them behavior like canvas
111
112
- v1.0.12 Implementation of ctx.prototype.arcTo.
112
113
- v1.0.11 call lineTo instead moveTo in ctx.arc, fixes closePath issue and straight line issue
@@ -117,9 +118,9 @@ Updates
117
118
- v1.0.6 basic support for text baseline (contribution from KoKuToru)
118
119
- v1.0.5 fixes for #5 and #6 (with contributions from KoKuToru)
119
120
- v1.0.4 generate ids that start with a letter
120
- - v1.0.3 fixed #4 where largeArcFlag was set incorrectly in some cases
121
+ - v1.0.3 fixed #4 where largeArcFlag was set incorrectly in some cases
121
122
- v1.0.2 Split up rgba values set in fill/stroke to allow illustrator import support.
122
- - v1.0.1 Allow C2S to be called as a function. https://github.com/gliffy/canvas2svg/issues/2
123
+ - v1.0.1 Allow C2S to be called as a function. https://github.com/gliffy/canvas2svg/issues/2
123
124
- v1.0.0 Initial release
124
125
125
126
Misc
0 commit comments