@napi-rs/canvas 0.1.19 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +20 -16
  2. package/index.js +5 -5
  3. package/package.json +35 -32
  4. package/CHANGELOG.md +0 -318
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # `skr canvas`
2
2
 
3
3
  ![CI](https://github.com/Brooooooklyn/canvas/workflows/CI/badge.svg)
4
- ![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm98-hotpink)
4
+ ![Skia Version](https://img.shields.io/badge/Skia-chrome%2Fm103-hotpink)
5
5
  [![install size](https://packagephobia.com/badge?p=@napi-rs/canvas)](https://packagephobia.com/result?p=@napi-rs/canvas)
6
6
  [![Downloads](https://img.shields.io/npm/dm/@napi-rs/canvas.svg?sanitize=true)](https://npmcharts.com/compare/@napi-rs/canvas?minimal=true)
7
7
 
@@ -131,7 +131,7 @@ Memory: 32688MiB
131
131
  ```
132
132
 
133
133
  ```
134
- ❯ pnpm bench
134
+ ❯ yarn bench
135
135
 
136
136
  > @napi-rs/canvas@0.0.9 bench D:\workspace\skia-rs
137
137
  > node -r @swc-node/register benchmark/bench.ts
@@ -145,11 +145,11 @@ Progress: 100%
145
145
  node-canvas:
146
146
  30 ops/s, ±6.95% | 18.92% slower
147
147
 
148
- @napi-rs/skia:
148
+ @napi-rs/canvas:
149
149
  37 ops/s, ±6.30% | fastest
150
150
 
151
151
  Finished 3 cases!
152
- Fastest: @napi-rs/skia
152
+ Fastest: @napi-rs/canvas
153
153
  Slowest: skia-canvas
154
154
  Running "Draw gradient" suite...
155
155
  Progress: 100%
@@ -160,11 +160,11 @@ Progress: 100%
160
160
  node-canvas:
161
161
  34 ops/s, ±5.60% | slowest, 19.05% slower
162
162
 
163
- @napi-rs/skia:
163
+ @napi-rs/canvas:
164
164
  42 ops/s, ±0.53% | fastest
165
165
 
166
166
  Finished 3 cases!
167
- Fastest: @napi-rs/skia
167
+ Fastest: @napi-rs/canvas
168
168
  Slowest: node-canvas
169
169
  ```
170
170
 
@@ -304,15 +304,15 @@ path.simplify().toSVGString()
304
304
  node example/anime-girl.js
305
305
  ```
306
306
 
307
- | SVG | PNG |
308
- | ---------------------------------------------- | ---------------------------------------------- |
309
- | <img width="500" src="example/anime-girl.svg"> | <img width="500" src="example/anime-girl.png"> |
307
+ | SVG | PNG |
308
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
309
+ | <img width="500" src="example/anime-girl.svg"><br/>[CC-BY-SA 3.0](https://creativecommons.org/licenses/by/3.0) by [Niabot](https://commons.wikimedia.org/wiki/User:Niabot) | <img width="500" src="example/anime-girl.png"><br/>[CC-BY-SA 3.0](https://creativecommons.org/licenses/by/3.0) by [Niabot](https://commons.wikimedia.org/wiki/User:Niabot) |
310
310
 
311
311
  # Building
312
312
 
313
313
  ## Build skia from source
314
314
 
315
- You can build this project from source, with no OS-specific package installing commands required:
315
+ You can build this project from source, the system requirements are here: https://skia.org/docs/user/build
316
316
 
317
317
  ```sh
318
318
  # Clone the code:
@@ -323,11 +323,13 @@ $ cd canvas
323
323
  $ node scripts/build-skia.js
324
324
 
325
325
  # Install NPM packages, build the Node.js addon:
326
- $ pnpm install --ignore-scripts
327
- $ pnpm build
326
+ $ npm install -g yarn
327
+ $ yarn install --mode=skip=build # Here are modules are used for benchmarking and hard to install, you can skip it by specifying `--mode=skip=build`
328
+ $ sudo dnf install clang # https://fedora.pkgs.org/34/fedora-x86_64/clang-12.0.0-0.3.rc1.fc34.x86_64.rpm.html
329
+ $ yarn build
328
330
 
329
331
  # All done! Run test cases or examples now:
330
- $ pnpm test
332
+ $ yarn test
331
333
  $ node example/tiger.js
332
334
  ```
333
335
 
@@ -345,10 +347,12 @@ $ cd canvas
345
347
  $ node scripts/release-skia-binary.js --download
346
348
 
347
349
  # Install NPM packages, build the Node.js addon:
348
- $ pnpm install --ignore-scripts
349
- $ pnpm build
350
+ $ npm install -g yarn
351
+ $ yarn install --mode=skip-build
352
+ $ sudo dnf install clang # https://fedora.pkgs.org/34/fedora-x86_64/clang-12.0.0-0.3.rc1.fc34.x86_64.rpm.html
353
+ $ yarn build
350
354
 
351
355
  # All done! Run test cases or examples now:
352
- $ pnpm test
356
+ $ yarn test
353
357
  $ node example/tiger.js
354
358
  ```
package/index.js CHANGED
@@ -237,7 +237,7 @@ function createCanvas(width, height, flag) {
237
237
  }),
238
238
  )
239
239
  }
240
- return canvasEncode.call(this, type, qualityOrConfig || 92)
240
+ return canvasEncode.call(this, type, qualityOrConfig)
241
241
  }
242
242
 
243
243
  canvasElement.encodeSync = function encodeSync(type, qualityOrConfig) {
@@ -251,7 +251,7 @@ function createCanvas(width, height, flag) {
251
251
  }),
252
252
  )
253
253
  }
254
- return canvasEncodeSync.call(this, type, qualityOrConfig || 92)
254
+ return canvasEncodeSync.call(this, type, qualityOrConfig)
255
255
  }
256
256
 
257
257
  canvasElement.toBuffer = function toBuffer(type = 'image/png', qualityOrConfig) {
@@ -265,7 +265,7 @@ function createCanvas(width, height, flag) {
265
265
  }),
266
266
  )
267
267
  }
268
- return canvasToBuffer.call(this, type, qualityOrConfig || 92)
268
+ return canvasToBuffer.call(this, type, qualityOrConfig)
269
269
  }
270
270
 
271
271
  canvasElement.toDataURL = function toDataURL(type = 'image/png', qualityOrConfig) {
@@ -279,7 +279,7 @@ function createCanvas(width, height, flag) {
279
279
  }),
280
280
  )
281
281
  }
282
- return canvasToDataURL.call(this, type, qualityOrConfig || 92)
282
+ return canvasToDataURL.call(this, type, qualityOrConfig)
283
283
  }
284
284
 
285
285
  canvasElement.toDataURLAsync = function toDataURLAsync(type = 'image/png', qualityOrConfig) {
@@ -293,7 +293,7 @@ function createCanvas(width, height, flag) {
293
293
  }),
294
294
  )
295
295
  }
296
- return canvasToDataURLAsync.call(this, type, qualityOrConfig || 92)
296
+ return canvasToDataURLAsync.call(this, type, qualityOrConfig)
297
297
  }
298
298
 
299
299
  return canvasElement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napi-rs/canvas",
3
- "version": "0.1.19",
3
+ "version": "0.1.22",
4
4
  "description": "Canvas for Node.js with skia backend",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/Brooooooklyn/canvas.git",
@@ -64,34 +64,34 @@
64
64
  "@jimp/custom": "^0.16.1",
65
65
  "@jimp/jpeg": "^0.16.1",
66
66
  "@jimp/png": "^0.16.1",
67
- "@napi-rs/cli": "^1.3.5",
67
+ "@napi-rs/cli": "^2.9.0",
68
68
  "@octokit/rest": "^18.12.0",
69
- "@swc-node/register": "^1.4.0",
70
- "@types/lodash": "^4.14.178",
71
- "@typescript-eslint/eslint-plugin": "^5.6.0",
72
- "@typescript-eslint/parser": "^5.6.0",
73
- "ava": "^3.15.0",
69
+ "@swc-node/register": "^1.5.1",
70
+ "@types/lodash": "^4.14.182",
71
+ "@types/node": "^17.0.35",
72
+ "@typescript-eslint/eslint-plugin": "^5.26.0",
73
+ "@typescript-eslint/parser": "^5.26.0",
74
+ "ava": "^4.2.0",
74
75
  "benny": "^3.7.1",
75
- "canvas": "^2.8.0",
76
- "canvaskit-wasm": "^0.32.0",
77
- "chalk": "4",
78
- "conventional-changelog-cli": "^2.1.1",
79
- "echarts": "^5.2.2",
80
- "eslint": "^8.4.1",
81
- "eslint-config-prettier": "^8.3.0",
82
- "eslint-plugin-import": "^2.25.3",
76
+ "canvas": "^2.9.1",
77
+ "canvaskit-wasm": "^0.34.0",
78
+ "colorette": "^2.0.16",
79
+ "conventional-changelog-cli": "^2.2.2",
80
+ "echarts": "^5.3.2",
81
+ "eslint": "^8.16.0",
82
+ "eslint-config-prettier": "^8.5.0",
83
+ "eslint-plugin-import": "^2.26.0",
83
84
  "eslint-plugin-prettier": "^4.0.0",
84
- "eslint-plugin-sonarjs": "^0.11.0",
85
- "husky": "^7.0.4",
86
- "lint-staged": "^12.1.2",
85
+ "eslint-plugin-sonarjs": "^0.13.0",
86
+ "husky": "^8.0.1",
87
+ "lint-staged": "^13.0.0",
87
88
  "lodash": "^4.17.21",
88
89
  "npm-run-all": "^4.1.5",
89
- "pinst": "^2.1.6",
90
+ "pinst": "^3.0.0",
90
91
  "png.js": "^0.2.1",
91
- "prettier": "^2.5.1",
92
- "putasset": "^5.0.3",
93
- "skia-canvas": "^0.9.27",
94
- "typescript": "^4.5.3"
92
+ "prettier": "^2.6.2",
93
+ "skia-canvas": "^0.9.29",
94
+ "typescript": "^4.7.2"
95
95
  },
96
96
  "lint-staged": {
97
97
  "*.@(js|ts|tsx|yml|yaml|md|json)": [
@@ -108,6 +108,8 @@
108
108
  "extensions": [
109
109
  "ts"
110
110
  ],
111
+ "workerThreads": false,
112
+ "cache": false,
111
113
  "timeout": "3m",
112
114
  "environmentVariables": {
113
115
  "SWC_NODE_PROJECT": "./tsconfig.json",
@@ -121,15 +123,16 @@
121
123
  "singleQuote": true,
122
124
  "arrowParens": "always"
123
125
  },
126
+ "packageManager": "yarn@3.2.1",
124
127
  "optionalDependencies": {
125
- "@napi-rs/canvas-win32-x64-msvc": "0.1.19",
126
- "@napi-rs/canvas-darwin-x64": "0.1.19",
127
- "@napi-rs/canvas-linux-x64-gnu": "0.1.19",
128
- "@napi-rs/canvas-linux-arm-gnueabihf": "0.1.19",
129
- "@napi-rs/canvas-linux-x64-musl": "0.1.19",
130
- "@napi-rs/canvas-linux-arm64-gnu": "0.1.19",
131
- "@napi-rs/canvas-linux-arm64-musl": "0.1.19",
132
- "@napi-rs/canvas-darwin-arm64": "0.1.19",
133
- "@napi-rs/canvas-android-arm64": "0.1.19"
128
+ "@napi-rs/canvas-win32-x64-msvc": "0.1.22",
129
+ "@napi-rs/canvas-darwin-x64": "0.1.22",
130
+ "@napi-rs/canvas-linux-x64-gnu": "0.1.22",
131
+ "@napi-rs/canvas-linux-arm-gnueabihf": "0.1.22",
132
+ "@napi-rs/canvas-linux-x64-musl": "0.1.22",
133
+ "@napi-rs/canvas-linux-arm64-gnu": "0.1.22",
134
+ "@napi-rs/canvas-linux-arm64-musl": "0.1.22",
135
+ "@napi-rs/canvas-darwin-arm64": "0.1.22",
136
+ "@napi-rs/canvas-android-arm64": "0.1.22"
134
137
  }
135
138
  }
package/CHANGELOG.md DELETED
@@ -1,318 +0,0 @@
1
- ## [0.1.19](https://github.com/Brooooooklyn/canvas/compare/v0.1.18...v0.1.19) (2021-12-31)
2
-
3
- ### Bug Fixes
4
-
5
- - text align and font fallback ([d80ac6b](https://github.com/Brooooooklyn/canvas/commit/d80ac6befc8861ebebc5855c1a5714b7f55e1d55))
6
-
7
- ## [0.1.18](https://github.com/Brooooooklyn/canvas/compare/v0.1.17...v0.1.18) (2021-12-30)
8
-
9
- ### Bug Fixes
10
-
11
- - reduce install size for linux glibc/musl ([8e6c7e8](https://github.com/Brooooooklyn/canvas/commit/8e6c7e8f2aeceb2598c24f8b37faa39a961739f9))
12
-
13
- ### Features
14
-
15
- - upgrade skia to chrome/m98 ([99e3635](https://github.com/Brooooooklyn/canvas/commit/99e363540db1572a832d65e1593721ad3b051493))
16
-
17
- ## [0.1.17](https://github.com/Brooooooklyn/canvas/compare/v0.1.16...v0.1.17) (2021-12-12)
18
-
19
- ## [0.1.16](https://github.com/Brooooooklyn/canvas/compare/v0.1.15...v0.1.16) (2021-12-12)
20
-
21
- ### Bug Fixes
22
-
23
- - make methods on ctx configurable & writable ([affe82d](https://github.com/Brooooooklyn/canvas/commit/affe82d0b8880441737497403d790f4d39a217c3))
24
-
25
- ### Features
26
-
27
- - chrome/m97 ([66c900f](https://github.com/Brooooooklyn/canvas/commit/66c900f4307f8204b55912659874a83513220460))
28
-
29
- ## [0.1.15](https://github.com/Brooooooklyn/canvas/compare/v0.1.14...v0.1.15) (2021-11-11)
30
-
31
- ### Bug Fixes
32
-
33
- - `vercel/nft` and `webpack` compatible issue ([f2e23f5](https://github.com/Brooooooklyn/canvas/commit/f2e23f5d763795c1e499e1eda5b70078a6de501a))
34
-
35
- ## [0.1.14](https://github.com/Brooooooklyn/canvas/compare/v0.1.13...v0.1.14) (2021-10-26)
36
-
37
- ### Bug Fixes
38
-
39
- - Now generating avif images is 10x+ faster. ([407d1d1](https://github.com/Brooooooklyn/canvas/commit/407d1d1f09dce622426b71ee800480534c8e0888))
40
- - Use different quality for WebP and JPEG formats, which is more in line with the browser's default values. ([fdefa5d](https://github.com/Brooooooklyn/canvas/commit/fdefa5dd278fcc911cb74524388ec7960d9cd1f6))
41
-
42
- ### Features
43
-
44
- - The option to generate avif removes alphaQuality and calculates it internally. ([8de6e95](https://github.com/Brooooooklyn/canvas/commit/8de6e95d23383897870c66e59698a71cd0e73631))
45
- - Add a new SVG generation avif example. ([04d401a](https://github.com/Brooooooklyn/canvas/commit/04d401aaf3d35d13223e32af9e13b829f13170fc))
46
-
47
- ## [0.1.13](https://github.com/Brooooooklyn/canvas/compare/v0.1.12...v0.1.13) (2021-10-20)
48
-
49
- ### Bug Fixes
50
-
51
- - text align position ([435e102](https://github.com/Brooooooklyn/canvas/commit/435e102e526e206a89f6a1bae2e9f8a1d1646b9f))
52
-
53
- ### Features
54
-
55
- - update rust toolchain ([1cda93b](https://github.com/Brooooooklyn/canvas/commit/1cda93b9ade402893ca1e192a35522eb5b13190a))
56
- - upgrade to chrome/m96 ([a7b3ffe](https://github.com/Brooooooklyn/canvas/commit/a7b3ffe68e4125e2ab63e42c09409cd9cc49dc9f))
57
-
58
- ## [0.1.12](https://github.com/Brooooooklyn/canvas/compare/v0.1.11...v0.1.12) (2021-10-15)
59
-
60
- ### Features
61
-
62
- - support avif format output ([f35b6ff](https://github.com/Brooooooklyn/canvas/commit/f35b6ffc28b40147b97244526f25173292453db8))
63
-
64
- ## [0.1.11](https://github.com/Brooooooklyn/canvas/compare/v0.1.10...v0.1.11) (2021-09-30)
65
-
66
- ### Features
67
-
68
- - support colorSpace: 'display-p3' ([4b64310](https://github.com/Brooooooklyn/canvas/commit/4b64310ff3adb41888e7f4bfae7f3557c062620c))
69
-
70
- ## [0.1.10](https://github.com/Brooooooklyn/canvas/compare/v0.1.9...v0.1.10) (2021-09-27)
71
-
72
- ### Bug Fixes
73
-
74
- - image_filter to Image SamplingOptions conversion ([0719022](https://github.com/Brooooooklyn/canvas/commit/0719022a78a40577a73db0376ca21a547828396f))
75
-
76
- ### Features
77
-
78
- - implement filter for Context ([6079927](https://github.com/Brooooooklyn/canvas/commit/6079927f7ca814a9d3af8efa463938e67ab93d0f))
79
-
80
- ## [0.1.9](https://github.com/Brooooooklyn/canvas/compare/v0.1.8...v0.1.9) (2021-09-24)
81
-
82
- ### Bug Fixes
83
-
84
- - aarch64-apple-darwin (macOS m1 chips) build [skip skia] ([4deee73](https://github.com/Brooooooklyn/canvas/commit/4deee739a1299006f3ab7b1a14975deb2809f7d4))
85
-
86
- ## [0.1.8](https://github.com/Brooooooklyn/canvas/compare/v0.1.7...v0.1.8) (2021-09-19)
87
-
88
- ## [0.1.7](https://github.com/Brooooooklyn/canvas/compare/v0.1.6...v0.1.7) (2021-09-14)
89
-
90
- ### Bug Fixes
91
-
92
- - **deps:** update rust crate cssparser to 0.29 ([36ff54f](https://github.com/Brooooooklyn/canvas/commit/36ff54f25545ddb9cedc61903f591f84ca861959))
93
- - transform state between save/restore ([d313b80](https://github.com/Brooooooklyn/canvas/commit/d313b8084d6f9dce5962ed64cc966cd78427d45b))
94
-
95
- ## [0.1.6](https://github.com/Brooooooklyn/canvas/compare/v0.1.5...v0.1.6) (2021-08-25)
96
-
97
- ### Bug Fixes
98
-
99
- - example to png ([90edf49](https://github.com/Brooooooklyn/canvas/commit/90edf499f5ad1961f59e7609ae131328b6912a59))
100
- - pass the fabric.js visual tests ([ec55b3a](https://github.com/Brooooooklyn/canvas/commit/ec55b3a5ad4d905f060ddf0aa7d047849369bb82))
101
- - strip start and end ' from font family ([177e4f6](https://github.com/Brooooooklyn/canvas/commit/177e4f625d1cd0e93913cd0309e89fab8c3b0a6f))
102
-
103
- ### Features
104
-
105
- - chrome/m94 ([887a950](https://github.com/Brooooooklyn/canvas/commit/887a95054af022690ad6ee249f56d789c1a85a36))
106
- - load fonts from user dir ([fd6fb78](https://github.com/Brooooooklyn/canvas/commit/fd6fb7837ff5544e6139d9f219476194676bdaa2))
107
-
108
- ## [0.1.5](https://github.com/Brooooooklyn/canvas/compare/v0.1.4...v0.1.5) (2021-08-13)
109
-
110
- ### Bug Fixes
111
-
112
- - default value of FilterQuality in SamplingOptions should be high ([389aa26](https://github.com/Brooooooklyn/canvas/commit/389aa26fda79dfca15b6f2d87fbd03fe92f28758))
113
-
114
- ### Features
115
-
116
- - add resize SVG demo ([bf8388d](https://github.com/Brooooooklyn/canvas/commit/bf8388ddab06474a01362829437bcfc7df4bd248))
117
-
118
- ## [0.1.4](https://github.com/Brooooooklyn/canvas/compare/v0.1.3...v0.1.4) (2021-08-11)
119
-
120
- ### Features
121
-
122
- - scale svg image if need ([72c404c](https://github.com/Brooooooklyn/canvas/commit/72c404c5049a0a0898bb91ab4ad1cd36fb71a4e4))
123
-
124
- ## [0.1.3](https://github.com/Brooooooklyn/canvas/compare/v0.1.2...v0.1.3) (2021-08-06)
125
-
126
- ### Bug Fixes
127
-
128
- - icudtl.dat download logic in publish job ([f2bb048](https://github.com/Brooooooklyn/canvas/commit/f2bb048d0dde9e4703b5c0030011ba0c47a5038c))
129
-
130
- ## [0.1.2](https://github.com/Brooooooklyn/canvas/compare/v0.1.1...v0.1.2) (2021-08-05)
131
-
132
- ### Bug Fixes
133
-
134
- - Windows icudtl.data version and path ([5c81eb7](https://github.com/Brooooooklyn/canvas/commit/5c81eb7d3edb7acaaf831233199eddecda834074))
135
-
136
- ### Features
137
-
138
- - implement convertSVGTextToPath function ([9c7ca98](https://github.com/Brooooooklyn/canvas/commit/9c7ca989a54c40cf4eb949f651a91bfb629fc716))
139
-
140
- ## [0.1.1](https://github.com/Brooooooklyn/canvas/compare/v0.1.0...v0.1.1) (2021-08-02)
141
-
142
- ### Bug Fixes
143
-
144
- - use viewbox as svg_container_size if width & height is empty ([406a298](https://github.com/Brooooooklyn/canvas/commit/406a298800ebe3807349d15d4ffa536db1f96afc))
145
-
146
- ### Features
147
-
148
- - upgrade to skia/chrome/m93 latest ([6ca9526](https://github.com/Brooooooklyn/canvas/commit/6ca952651e24d6c7dbf730ebed0f13d9de07ffe3))
149
-
150
- # [0.1.0](https://github.com/Brooooooklyn/canvas/compare/v0.0.12...v0.1.0) (2021-07-30)
151
-
152
- ### Bug Fixes
153
-
154
- - canvas.png() to canvas.encode('png') ([b2d5afe](https://github.com/Brooooooklyn/canvas/commit/b2d5afeee91245fe226212e418fe62e16a238f91))
155
- - multi font families ([2e934a5](https://github.com/Brooooooklyn/canvas/commit/2e934a5837f51b62b46172e608a6d34e4413d9f9))
156
- - sample image size update ([8b0b147](https://github.com/Brooooooklyn/canvas/commit/8b0b1475112dd409c9e2652a5cd0bbdac3d772be))
157
-
158
- ### Features
159
-
160
- - add .asWinding() to convert the sample image of SVG filltype ([f9f0d2b](https://github.com/Brooooooklyn/canvas/commit/f9f0d2bdf452a54c2606d55e47387371f37697ab))
161
- - add basic measureText setup ([e1fc0bf](https://github.com/Brooooooklyn/canvas/commit/e1fc0bf2647c3e76cff8089d15078f4e9d200e97))
162
- - measureText with all textAlign and textBaseline ([1891d76](https://github.com/Brooooooklyn/canvas/commit/1891d76090ec093430d63a217fbe4515c758b2c7))
163
- - support register font with family name alias ([4860c80](https://github.com/Brooooooklyn/canvas/commit/4860c80aa6dac4ca073e20a5d2654ef6535e54c2))
164
- - support woff/woff2 fonts ([70b7aa2](https://github.com/Brooooooklyn/canvas/commit/70b7aa2430ed04251c0d5016658a8147a13c167b))
165
- - svg canvas backend ([f95f67a](https://github.com/Brooooooklyn/canvas/commit/f95f67afd5c051c1cf33e783e452d477a9430cad))
166
-
167
- ## [0.0.12](https://github.com/Brooooooklyn/canvas/compare/v0.0.11...v0.0.12) (2021-07-14)
168
-
169
- ### Features
170
-
171
- - support raw pixels output ([f502548](https://github.com/Brooooooklyn/canvas/commit/f502548dc0c271710602a7363693540487056776))
172
- - support toDataURL and toDataURLAsync on canvas element ([1d8c790](https://github.com/Brooooooklyn/canvas/commit/1d8c790777656ec1104fa465b2c9dcb929ead451))
173
-
174
- ## [0.0.11](https://github.com/Brooooooklyn/canvas/compare/v0.0.10...v0.0.11) (2021-07-13)
175
-
176
- ### Features
177
-
178
- - support maxWidth in fillText and strokeText ([ccf33f3](https://github.com/Brooooooklyn/canvas/commit/ccf33f30b26aacab636791f3efb92a86ca7a6871))
179
-
180
- ## [0.0.10](https://github.com/Brooooooklyn/canvas/compare/v0.0.9...v0.0.10) (2021-07-12)
181
-
182
- ### Bug Fixes
183
-
184
- - missing registerFromPath implementation ([8bac515](https://github.com/Brooooooklyn/canvas/commit/8bac515eac3c8bf5db026f701a57ee839fedb42d))
185
-
186
- ## [0.0.9](https://github.com/Brooooooklyn/canvas/compare/v0.0.8...v0.0.9) (2021-07-11)
187
-
188
- ### Features
189
-
190
- - upgrade skia to chrome/m92 latest ([584a02a](https://github.com/Brooooooklyn/canvas/commit/584a02aef28516dd18d675a8f90c1f25dceae129))
191
-
192
- ## [0.0.8](https://github.com/Brooooooklyn/canvas/compare/v0.0.7...v0.0.8) (2021-06-23)
193
-
194
- ### Features
195
-
196
- - support conic gradient ([850b6ee](https://github.com/Brooooooklyn/canvas/commit/850b6ee4f7df8ce440574fc41c16e8559ef1f232))
197
- - support webp output ([4948c49](https://github.com/Brooooooklyn/canvas/commit/4948c49f89ea4e423dc14b240c82cb4d5e917248))
198
-
199
- ## [0.0.7](https://github.com/Brooooooklyn/canvas/compare/v0.0.6...v0.0.7) (2021-06-21)
200
-
201
- ### Bug Fixes
202
-
203
- - **deps:** update rust crate once_cell to 1.8 ([c859162](https://github.com/Brooooooklyn/canvas/commit/c859162650590648d45e64782a104a5144a033bf))
204
- - **deps:** update rust crate regex to 1.5 ([1915c60](https://github.com/Brooooooklyn/canvas/commit/1915c608fcb7318ce778f687c3ca08543203820f))
205
- - JsArrayBuffer usage ([b58e987](https://github.com/Brooooooklyn/canvas/commit/b58e987bc7e92d5547e749b377720e1900454172))
206
-
207
- ### Features
208
-
209
- - support jpeg output ([76adbdc](https://github.com/Brooooooklyn/canvas/commit/76adbdc04cd02f868fde9da21851694f10f15ce5))
210
- - support svg source in image ([8df688f](https://github.com/Brooooooklyn/canvas/commit/8df688f702967fb60c75fceda52cbcf08a72be37))
211
-
212
- ## [0.0.6](https://github.com/Brooooooklyn/canvas/compare/v0.0.5...v0.0.6) (2021-05-06)
213
-
214
- ### Bug Fixes
215
-
216
- - windows setAssetFontManager crash ([54861e9](https://github.com/Brooooooklyn/canvas/commit/54861e9b3b5fe18cbcd791b65b05c98b40087d42))
217
-
218
- ### Features
219
-
220
- - add .editorconfig file ([62dcf35](https://github.com/Brooooooklyn/canvas/commit/62dcf35b6cdc11e3154af178b04e091aa09e3ac9))
221
- - add font collection singleton scaffold ([9b7a00a](https://github.com/Brooooooklyn/canvas/commit/9b7a00a1eb2cef311cce8409fb37df359d3ab39e))
222
- - support GlobalFonts.families ([00be237](https://github.com/Brooooooklyn/canvas/commit/00be237c08eff287ce706b30dd3ceda3e40727f6))
223
- - support GlobalFonts.has ([0461afc](https://github.com/Brooooooklyn/canvas/commit/0461afcf8efc6ec49e2722f5f124c4bada45a48b))
224
- - support GlobalFonts.register ([295d507](https://github.com/Brooooooklyn/canvas/commit/295d5072de571f1c6b04b930c99f6290f20149a4))
225
-
226
- ## [0.0.5](https://github.com/Brooooooklyn/canvas/compare/v0.0.4...v0.0.5) (2021-05-04)
227
-
228
- ### Bug Fixes
229
-
230
- - **path:** wrong Stroke type cast and miterLimit default value ([5f1761b](https://github.com/Brooooooklyn/canvas/commit/5f1761b602c992639ab511336fc0551d061c8d5c))
231
- - add stroke to trim test to make it more visually recognizable ([bddb3c6](https://github.com/Brooooooklyn/canvas/commit/bddb3c6ef96f588f36760f69e5077db56417d7cb))
232
-
233
- ### Features
234
-
235
- - add getFillTypeString() for PathKit ([44719de](https://github.com/Brooooooklyn/canvas/commit/44719de4d119ffe370b0c6df26072303d8707a85))
236
- - add PathKit.dash() ([#238](https://github.com/Brooooooklyn/canvas/issues/238)) ([c238113](https://github.com/Brooooooklyn/canvas/commit/c238113ef1feafd179d6c190e2a29e51326737d3))
237
-
238
- ## [0.0.4](https://github.com/Brooooooklyn/canvas/compare/v0.0.3...v0.0.4) (2021-04-19)
239
-
240
- ### Bug Fixes
241
-
242
- - parse error for single font size rules ([aa80fb7](https://github.com/Brooooooklyn/canvas/commit/aa80fb7109584b32bf6a66ae7d70753ec53882b6))
243
-
244
- ### Features
245
-
246
- - **path2d:** implement pathkit functions ([eea95bf](https://github.com/Brooooooklyn/canvas/commit/eea95bf627a8c643155618fa5e662c6060f73365))
247
- - skia chrome/m91, add back mimalloc ([0420c14](https://github.com/Brooooooklyn/canvas/commit/0420c14339b2ef9c886d0495bddeb30c0af31f1d))
248
-
249
- ## [0.0.3](https://github.com/Brooooooklyn/canvas/compare/v0.0.2...v0.0.3) (2021-03-27)
250
-
251
- ### Bug Fixes
252
-
253
- - wrong package name in index.js ([e3c35bb](https://github.com/Brooooooklyn/canvas/commit/e3c35bb0611f5d75f52d481738affdd530e1ac5a))
254
-
255
- ## [0.0.2](https://github.com/Brooooooklyn/canvas/compare/v0.0.1-alpha.3...v0.0.2) (2021-03-27)
256
-
257
- ### Bug Fixes
258
-
259
- - bitmap destructor ([b138da2](https://github.com/Brooooooklyn/canvas/commit/b138da228286f560fe7aebe4e12ef5fc2ddf8e25))
260
- - build on windows ([b731ea8](https://github.com/Brooooooklyn/canvas/commit/b731ea84d529d0a971b2fe34c20eb654f1fa9f34))
261
- - compat with Node.js readonly error messages ([c7e1764](https://github.com/Brooooooklyn/canvas/commit/c7e176440b4d167b03e988059a9e8a34169da9a7))
262
- - eslint & vscode config ignore ([f7dd018](https://github.com/Brooooooklyn/canvas/commit/f7dd018a81ff8dee0845258ef13e488c985f160f))
263
- - image shadow ([8396b93](https://github.com/Brooooooklyn/canvas/commit/8396b93f4634705d1f0dfdb2028afb6fa3b25a99))
264
- - image src getter ([336549d](https://github.com/Brooooooklyn/canvas/commit/336549d8f56b3e93687760b485d4a9d8cd72c6b4))
265
- - setters on readonly properties ([adac797](https://github.com/Brooooooklyn/canvas/commit/adac797e5af7dd1407e05f6c3084dfa725161b6b))
266
- - sync lock file ([340bfb5](https://github.com/Brooooooklyn/canvas/commit/340bfb571187635d041129eaf0c9e365bc7c336d))
267
- - transform matrix config ([9dcddf2](https://github.com/Brooooooklyn/canvas/commit/9dcddf293c25c19a3d93b058d3ba78b43d52a281))
268
-
269
- ### Features
270
-
271
- - add drawImage poc ([a5e5ddf](https://github.com/Brooooooklyn/canvas/commit/a5e5ddf52fc1be006590dcd63aad1ac53d2f5a1d))
272
- - add image class poc ([11e04a5](https://github.com/Brooooooklyn/canvas/commit/11e04a597d2d0153bd5a15da2aabd6bec08efb0e))
273
- - add image SkData field poc ([bb0c108](https://github.com/Brooooooklyn/canvas/commit/bb0c108d80da525efdb61a9b8653041f862933f7))
274
- - ImageData relates API and tests ([24c7990](https://github.com/Brooooooklyn/canvas/commit/24c7990f9c83a1fa81aa9b23d7712980ac556467))
275
- - implement image pattern ([2efbb18](https://github.com/Brooooooklyn/canvas/commit/2efbb18b6f80eadd5f457048c149cc50076fe2a2))
276
- - scale and rotate ([f6c761f](https://github.com/Brooooooklyn/canvas/commit/f6c761f4ebbb57c23dbec1f9be5c80ab7be38b95))
277
- - skia m89 ([e9c1cc9](https://github.com/Brooooooklyn/canvas/commit/e9c1cc94d33204e68ebe72ae94e934bf686d3e28))
278
- - support all drawImage variants ([8d5ded6](https://github.com/Brooooooklyn/canvas/commit/8d5ded624f5e915907ece2696f0f5e350e244b4c))
279
- - support context alpha ([929bdc0](https://github.com/Brooooooklyn/canvas/commit/929bdc092374ee8d196cc7fa5c56a057acfa2cfa))
280
- - support creating SkImage ([3945321](https://github.com/Brooooooklyn/canvas/commit/39453214b2793d40f16c6229e6444d713c0904cc))
281
- - support getContextAttributes ([4c0586b](https://github.com/Brooooooklyn/canvas/commit/4c0586b39cd923217c7db5bdd5bc620d3c438131))
282
- - support isPointInPath ([2150788](https://github.com/Brooooooklyn/canvas/commit/2150788b01103f25a272d8c89cf3cea2e2d5851b))
283
- - support isPointInStroke ([2a14513](https://github.com/Brooooooklyn/canvas/commit/2a14513c4a06ab9d6eeefcc31827b3a6e06d80a1))
284
- - support naturalWidth/naturalHeight/complete/alt ([1bb1042](https://github.com/Brooooooklyn/canvas/commit/1bb104206450d440991cdd6cc093ad31696be489))
285
- - sync skia m89 ([9748c44](https://github.com/Brooooooklyn/canvas/commit/9748c44658f4507dcb86e463a1e68117d05f057b))
286
- - text states and font styles ([a175cf7](https://github.com/Brooooooklyn/canvas/commit/a175cf729f4340ec49cec464e8e10c3561c20ebb))
287
-
288
- ### Performance Improvements
289
-
290
- - disable image data copy ([ccc8630](https://github.com/Brooooooklyn/canvas/commit/ccc8630906afaf573e7f46877efbb6ed652212f8))
291
-
292
- ## [0.0.1-alpha.3](https://github.com/Brooooooklyn/canvas/compare/v0.0.1-alpha.2...v0.0.1-alpha.3) (2021-01-06)
293
-
294
- ### Features
295
-
296
- - properties in CanvasRenderContext2D ([12727a7](https://github.com/Brooooooklyn/canvas/commit/12727a795e75c6873a900dba0755e7e9471f85ef))
297
- - testing for context2d functions ([107a650](https://github.com/Brooooooklyn/canvas/commit/107a650213ba3f13038955c2b8a7875b9b571449))
298
-
299
- ## [0.0.1-alpha.2](https://github.com/Brooooooklyn/canvas/compare/v0.0.1-alpha.1...v0.0.1-alpha.2) (2020-12-26)
300
-
301
- ### Features
302
-
303
- - implement Path2D ([91124d6](https://github.com/Brooooooklyn/canvas/commit/91124d6ba143c2c0728f8725c24443b58ef3fa06))
304
- - support gradient in fill/stroke style ([12e061c](https://github.com/Brooooooklyn/canvas/commit/12e061cdbd2ab4849a846cef2d5077bd00793613))
305
-
306
- ## [0.0.1-alpha.1](https://github.com/Brooooooklyn/canvas/compare/v0.0.1-alpha.0...v0.0.1-alpha.1) (2020-12-24)
307
-
308
- ### Features
309
-
310
- - async/sync get png data from Canvas ([f6d8cd6](https://github.com/Brooooooklyn/canvas/commit/f6d8cd60a6d336822a885bb0302a1ae2b8eafa9b))
311
-
312
- ## [0.0.1-alpha.0](https://github.com/Brooooooklyn/canvas/compare/5b09b4b92712bbce9468f0b874aed3ec7b87a716...v0.0.1-alpha.0) (2020-12-17)
313
-
314
- ### Features
315
-
316
- - simple example ([5b09b4b](https://github.com/Brooooooklyn/canvas/commit/5b09b4b92712bbce9468f0b874aed3ec7b87a716))
317
- - strokeStyle ([e185ca3](https://github.com/Brooooooklyn/canvas/commit/e185ca3faa1a13a22af37a20284a00114b9669ae))
318
- - upgrade everything ([5d27f63](https://github.com/Brooooooklyn/canvas/commit/5d27f6355ffe0ef8abcda5a7e14871cccfcdd71b))