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
- feat: added `registerFont` function
- feat: added support for `fit` with SVG images
- feat: added `skia-canvas` support
- feat: added `filter` helper
- feat: added `Canvas#setFilter`
- feat: added `Canvas#resetFilters`
- feat: added `exports` field in package
- feat: marked package as side-effects free
- feat: added `Angle` type
- feat: added `Color` type
- feat: added `Length` type
- feat: added `Percentage` type
- refactor: remove undocumented function usage from `node-canvas`
- chore(deps): updated all dependencies
- BREAKING CHANGE: refactor: removed peer dependencies
- BREAKING CHANGE: refactor: renamed `Canvas#setAntialiasing` to `Canvas#setAntiAliasing`
- BREAKING CHANGE: refactor: make `Canvas#setAntiAliasing` throw if `node-canvas` was not installed
- BREAKING CHANGE: refactor: make `Canvas#setTextDrawingMode` throw if `node-canvas` was not installed
- BREAKING CHANGE: refactor: make `Canvas#setPatternQuality` throw if `node-canvas` was not installed
- BREAKING CHANGE: refactor: make `hex`'s return type stricter
- BREAKING CHANGE: refactor: make `rgb`'s return type stricter
- BREAKING CHANGE: refactor: make `rbga`'s return type stricter
- BREAKING CHANGE: refactor: make `hsl`'s return type stricter
- BREAKING CHANGE: refactor: make `hsla`'s return type stricter
@@ -9,7 +10,12 @@ An ES6 chainable class for node-canvas with built-in utilities.
9
10
10
11
## Installation
11
12
12
-
Please check [node-canvas readme](https://github.com/Automattic/node-canvas/blob/master/Readme.md#installation) for the installation. You **must** have Canvas installed and working before using this package.
13
+
This module requires one of the following packages to be installed for Node.js:
- That will create a canvas with size of 300 pixels width, 400 pixels height.
74
-
- Draw an image, given a Buffer (the image from the images folder).
75
-
- Set the color to #FFAE23
76
-
- Set the font size to 28 pixels with font Impact.
77
-
- Set the text alignment to center.
78
-
- Write the text 'Kitten!' in the position (150, 370)
79
-
- Return a buffer.
79
+
-That will create a canvas with size of 300 pixels width, 400 pixels height.
80
+
-Draw an image, given a Buffer (the image from the images folder).
81
+
-Set the color to #FFAE23
82
+
-Set the font size to 28 pixels with font Impact.
83
+
-Set the text alignment to center.
84
+
-Write the text 'Kitten!' in the position (150, 370)
85
+
-Return a buffer.
80
86
81
87
And now, you have created an image with a kitten in the background and some centered text in the bottom of it.
82
88
83
-
If you experience issues with **Canvas** or want to install it, please refer to the [canvas](https://www.npmjs.com/package/canvas) repository, if you feel you found an issue in this package, feel free to file an issue [here](https://github.com/kyranet/canvas-constructor/issues), or make a [Pull Request](https://help.github.com/articles/about-pull-requests/) if you have the fix.
89
+
If you experience issues with `skia-canvas` or `canvas`, please refer to their respective package repositories, this
0 commit comments