You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mention requirement to install canvas, jsdom, and xmldom alongside
canvg for use in a server context.
Mention usage of canvg in a built browser application.
Update CDN links for rgbcolor and stackblur-canvas to use jsdelivr.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Change Log
2
2
3
3
## v2.0.0 (beta)
4
-
-**Breaking change**: now dependent on [canvas 2.x](https://github.com/Automattic/node-canvas)
4
+
-**Breaking change**: for use on server, peer dependencies [canvas 2.x](https://github.com/Automattic/node-canvas), [jsdom 13.x](https://github.com/jsdom/jsdom) and [xmldom 0.x](https://github.com/jindw/xmldom) must be installed.
The dependencies required on the server only are peers so must be installed
53
+
alongside the canvg package.
53
54
54
-
Include the following files in your page:
55
+
## Usage on the browser
56
+
57
+
For browser applications with a build process, canvg can be installed using `npm` similar to use on the server. Note in this case the peer dependencies are not required so do not need to be installed.
58
+
59
+
Alternatively, canvg can be included directly into a webpage:
0 commit comments