@napi-rs/canvas 0.1.20 → 0.1.23

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 (3) hide show
  1. package/README.md +20 -16
  2. package/package.json +31 -30
  3. package/CHANGELOG.md +0 -331
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%2Fm99-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napi-rs/canvas",
3
- "version": "0.1.20",
3
+ "version": "0.1.23",
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": "^2.4.2",
67
+ "@napi-rs/cli": "^2.9.0",
68
68
  "@octokit/rest": "^18.12.0",
69
- "@swc-node/register": "^1.4.2",
70
- "@types/lodash": "^4.14.178",
71
- "@typescript-eslint/eslint-plugin": "^5.10.2",
72
- "@typescript-eslint/parser": "^5.10.2",
73
- "ava": "^4.0.1",
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.9.0",
76
- "canvaskit-wasm": "^0.33.0",
76
+ "canvas": "^2.9.1",
77
+ "canvaskit-wasm": "^0.34.0",
77
78
  "colorette": "^2.0.16",
78
79
  "conventional-changelog-cli": "^2.2.2",
79
- "echarts": "^5.3.0",
80
- "eslint": "^8.8.0",
81
- "eslint-config-prettier": "^8.3.0",
82
- "eslint-plugin-import": "^2.25.4",
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.3.3",
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.28",
94
- "typescript": "^4.5.5"
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)": [
@@ -123,15 +123,16 @@
123
123
  "singleQuote": true,
124
124
  "arrowParens": "always"
125
125
  },
126
+ "packageManager": "yarn@3.2.1",
126
127
  "optionalDependencies": {
127
- "@napi-rs/canvas-win32-x64-msvc": "0.1.20",
128
- "@napi-rs/canvas-darwin-x64": "0.1.20",
129
- "@napi-rs/canvas-linux-x64-gnu": "0.1.20",
130
- "@napi-rs/canvas-linux-arm-gnueabihf": "0.1.20",
131
- "@napi-rs/canvas-linux-x64-musl": "0.1.20",
132
- "@napi-rs/canvas-linux-arm64-gnu": "0.1.20",
133
- "@napi-rs/canvas-linux-arm64-musl": "0.1.20",
134
- "@napi-rs/canvas-darwin-arm64": "0.1.20",
135
- "@napi-rs/canvas-android-arm64": "0.1.20"
128
+ "@napi-rs/canvas-win32-x64-msvc": "0.1.23",
129
+ "@napi-rs/canvas-darwin-x64": "0.1.23",
130
+ "@napi-rs/canvas-linux-x64-gnu": "0.1.23",
131
+ "@napi-rs/canvas-linux-arm-gnueabihf": "0.1.23",
132
+ "@napi-rs/canvas-linux-x64-musl": "0.1.23",
133
+ "@napi-rs/canvas-linux-arm64-gnu": "0.1.23",
134
+ "@napi-rs/canvas-linux-arm64-musl": "0.1.23",
135
+ "@napi-rs/canvas-darwin-arm64": "0.1.23",
136
+ "@napi-rs/canvas-android-arm64": "0.1.23"
136
137
  }
137
138
  }
package/CHANGELOG.md DELETED
@@ -1,331 +0,0 @@
1
- ## [0.1.20](https://github.com/Brooooooklyn/canvas/compare/v0.1.19...v0.1.20) (2022-02-15)
2
-
3
- ### Bug Fixes
4
-
5
- - Fix the issue of arc to + bezier to + quad to at empty path case ([33f8558](https://github.com/Brooooooklyn/canvas/commit/33f8558f447842521213f5c685a932ac1412a530))
6
- - scoot method for path empty case ([a1eb529](https://github.com/Brooooooklyn/canvas/commit/a1eb5292c4d3a5d2a500cdaab3ff5f0dc410ddd9))
7
- - the quality default value case of encode(type, quality) method ([#418](https://github.com/Brooooooklyn/canvas/issues/418)) ([c4950ea](https://github.com/Brooooooklyn/canvas/commit/c4950ea88d75a5437aa85a48b1f1ca087a9784f7))
8
-
9
- ### Features
10
-
11
- - skia chrome/m99 ([c0687c5](https://github.com/Brooooooklyn/canvas/commit/c0687c58b45eafc657d19e9b6a3643fce7003bce))
12
- - upgrade to napi2 ([#422](https://github.com/Brooooooklyn/canvas/issues/422)) ([4a553c7](https://github.com/Brooooooklyn/canvas/commit/4a553c711a2d2f2fd6d71a58404884bff4fe57ad))
13
-
14
- ## [0.1.19](https://github.com/Brooooooklyn/canvas/compare/v0.1.18...v0.1.19) (2021-12-31)
15
-
16
- ### Bug Fixes
17
-
18
- - text align and font fallback ([d80ac6b](https://github.com/Brooooooklyn/canvas/commit/d80ac6befc8861ebebc5855c1a5714b7f55e1d55))
19
-
20
- ## [0.1.18](https://github.com/Brooooooklyn/canvas/compare/v0.1.17...v0.1.18) (2021-12-30)
21
-
22
- ### Bug Fixes
23
-
24
- - reduce install size for linux glibc/musl ([8e6c7e8](https://github.com/Brooooooklyn/canvas/commit/8e6c7e8f2aeceb2598c24f8b37faa39a961739f9))
25
-
26
- ### Features
27
-
28
- - upgrade skia to chrome/m98 ([99e3635](https://github.com/Brooooooklyn/canvas/commit/99e363540db1572a832d65e1593721ad3b051493))
29
-
30
- ## [0.1.17](https://github.com/Brooooooklyn/canvas/compare/v0.1.16...v0.1.17) (2021-12-12)
31
-
32
- ## [0.1.16](https://github.com/Brooooooklyn/canvas/compare/v0.1.15...v0.1.16) (2021-12-12)
33
-
34
- ### Bug Fixes
35
-
36
- - make methods on ctx configurable & writable ([affe82d](https://github.com/Brooooooklyn/canvas/commit/affe82d0b8880441737497403d790f4d39a217c3))
37
-
38
- ### Features
39
-
40
- - chrome/m97 ([66c900f](https://github.com/Brooooooklyn/canvas/commit/66c900f4307f8204b55912659874a83513220460))
41
-
42
- ## [0.1.15](https://github.com/Brooooooklyn/canvas/compare/v0.1.14...v0.1.15) (2021-11-11)
43
-
44
- ### Bug Fixes
45
-
46
- - `vercel/nft` and `webpack` compatible issue ([f2e23f5](https://github.com/Brooooooklyn/canvas/commit/f2e23f5d763795c1e499e1eda5b70078a6de501a))
47
-
48
- ## [0.1.14](https://github.com/Brooooooklyn/canvas/compare/v0.1.13...v0.1.14) (2021-10-26)
49
-
50
- ### Bug Fixes
51
-
52
- - Now generating avif images is 10x+ faster. ([407d1d1](https://github.com/Brooooooklyn/canvas/commit/407d1d1f09dce622426b71ee800480534c8e0888))
53
- - 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))
54
-
55
- ### Features
56
-
57
- - The option to generate avif removes alphaQuality and calculates it internally. ([8de6e95](https://github.com/Brooooooklyn/canvas/commit/8de6e95d23383897870c66e59698a71cd0e73631))
58
- - Add a new SVG generation avif example. ([04d401a](https://github.com/Brooooooklyn/canvas/commit/04d401aaf3d35d13223e32af9e13b829f13170fc))
59
-
60
- ## [0.1.13](https://github.com/Brooooooklyn/canvas/compare/v0.1.12...v0.1.13) (2021-10-20)
61
-
62
- ### Bug Fixes
63
-
64
- - text align position ([435e102](https://github.com/Brooooooklyn/canvas/commit/435e102e526e206a89f6a1bae2e9f8a1d1646b9f))
65
-
66
- ### Features
67
-
68
- - update rust toolchain ([1cda93b](https://github.com/Brooooooklyn/canvas/commit/1cda93b9ade402893ca1e192a35522eb5b13190a))
69
- - upgrade to chrome/m96 ([a7b3ffe](https://github.com/Brooooooklyn/canvas/commit/a7b3ffe68e4125e2ab63e42c09409cd9cc49dc9f))
70
-
71
- ## [0.1.12](https://github.com/Brooooooklyn/canvas/compare/v0.1.11...v0.1.12) (2021-10-15)
72
-
73
- ### Features
74
-
75
- - support avif format output ([f35b6ff](https://github.com/Brooooooklyn/canvas/commit/f35b6ffc28b40147b97244526f25173292453db8))
76
-
77
- ## [0.1.11](https://github.com/Brooooooklyn/canvas/compare/v0.1.10...v0.1.11) (2021-09-30)
78
-
79
- ### Features
80
-
81
- - support colorSpace: 'display-p3' ([4b64310](https://github.com/Brooooooklyn/canvas/commit/4b64310ff3adb41888e7f4bfae7f3557c062620c))
82
-
83
- ## [0.1.10](https://github.com/Brooooooklyn/canvas/compare/v0.1.9...v0.1.10) (2021-09-27)
84
-
85
- ### Bug Fixes
86
-
87
- - image_filter to Image SamplingOptions conversion ([0719022](https://github.com/Brooooooklyn/canvas/commit/0719022a78a40577a73db0376ca21a547828396f))
88
-
89
- ### Features
90
-
91
- - implement filter for Context ([6079927](https://github.com/Brooooooklyn/canvas/commit/6079927f7ca814a9d3af8efa463938e67ab93d0f))
92
-
93
- ## [0.1.9](https://github.com/Brooooooklyn/canvas/compare/v0.1.8...v0.1.9) (2021-09-24)
94
-
95
- ### Bug Fixes
96
-
97
- - aarch64-apple-darwin (macOS m1 chips) build [skip skia] ([4deee73](https://github.com/Brooooooklyn/canvas/commit/4deee739a1299006f3ab7b1a14975deb2809f7d4))
98
-
99
- ## [0.1.8](https://github.com/Brooooooklyn/canvas/compare/v0.1.7...v0.1.8) (2021-09-19)
100
-
101
- ## [0.1.7](https://github.com/Brooooooklyn/canvas/compare/v0.1.6...v0.1.7) (2021-09-14)
102
-
103
- ### Bug Fixes
104
-
105
- - **deps:** update rust crate cssparser to 0.29 ([36ff54f](https://github.com/Brooooooklyn/canvas/commit/36ff54f25545ddb9cedc61903f591f84ca861959))
106
- - transform state between save/restore ([d313b80](https://github.com/Brooooooklyn/canvas/commit/d313b8084d6f9dce5962ed64cc966cd78427d45b))
107
-
108
- ## [0.1.6](https://github.com/Brooooooklyn/canvas/compare/v0.1.5...v0.1.6) (2021-08-25)
109
-
110
- ### Bug Fixes
111
-
112
- - example to png ([90edf49](https://github.com/Brooooooklyn/canvas/commit/90edf499f5ad1961f59e7609ae131328b6912a59))
113
- - pass the fabric.js visual tests ([ec55b3a](https://github.com/Brooooooklyn/canvas/commit/ec55b3a5ad4d905f060ddf0aa7d047849369bb82))
114
- - strip start and end ' from font family ([177e4f6](https://github.com/Brooooooklyn/canvas/commit/177e4f625d1cd0e93913cd0309e89fab8c3b0a6f))
115
-
116
- ### Features
117
-
118
- - chrome/m94 ([887a950](https://github.com/Brooooooklyn/canvas/commit/887a95054af022690ad6ee249f56d789c1a85a36))
119
- - load fonts from user dir ([fd6fb78](https://github.com/Brooooooklyn/canvas/commit/fd6fb7837ff5544e6139d9f219476194676bdaa2))
120
-
121
- ## [0.1.5](https://github.com/Brooooooklyn/canvas/compare/v0.1.4...v0.1.5) (2021-08-13)
122
-
123
- ### Bug Fixes
124
-
125
- - default value of FilterQuality in SamplingOptions should be high ([389aa26](https://github.com/Brooooooklyn/canvas/commit/389aa26fda79dfca15b6f2d87fbd03fe92f28758))
126
-
127
- ### Features
128
-
129
- - add resize SVG demo ([bf8388d](https://github.com/Brooooooklyn/canvas/commit/bf8388ddab06474a01362829437bcfc7df4bd248))
130
-
131
- ## [0.1.4](https://github.com/Brooooooklyn/canvas/compare/v0.1.3...v0.1.4) (2021-08-11)
132
-
133
- ### Features
134
-
135
- - scale svg image if need ([72c404c](https://github.com/Brooooooklyn/canvas/commit/72c404c5049a0a0898bb91ab4ad1cd36fb71a4e4))
136
-
137
- ## [0.1.3](https://github.com/Brooooooklyn/canvas/compare/v0.1.2...v0.1.3) (2021-08-06)
138
-
139
- ### Bug Fixes
140
-
141
- - icudtl.dat download logic in publish job ([f2bb048](https://github.com/Brooooooklyn/canvas/commit/f2bb048d0dde9e4703b5c0030011ba0c47a5038c))
142
-
143
- ## [0.1.2](https://github.com/Brooooooklyn/canvas/compare/v0.1.1...v0.1.2) (2021-08-05)
144
-
145
- ### Bug Fixes
146
-
147
- - Windows icudtl.data version and path ([5c81eb7](https://github.com/Brooooooklyn/canvas/commit/5c81eb7d3edb7acaaf831233199eddecda834074))
148
-
149
- ### Features
150
-
151
- - implement convertSVGTextToPath function ([9c7ca98](https://github.com/Brooooooklyn/canvas/commit/9c7ca989a54c40cf4eb949f651a91bfb629fc716))
152
-
153
- ## [0.1.1](https://github.com/Brooooooklyn/canvas/compare/v0.1.0...v0.1.1) (2021-08-02)
154
-
155
- ### Bug Fixes
156
-
157
- - use viewbox as svg_container_size if width & height is empty ([406a298](https://github.com/Brooooooklyn/canvas/commit/406a298800ebe3807349d15d4ffa536db1f96afc))
158
-
159
- ### Features
160
-
161
- - upgrade to skia/chrome/m93 latest ([6ca9526](https://github.com/Brooooooklyn/canvas/commit/6ca952651e24d6c7dbf730ebed0f13d9de07ffe3))
162
-
163
- # [0.1.0](https://github.com/Brooooooklyn/canvas/compare/v0.0.12...v0.1.0) (2021-07-30)
164
-
165
- ### Bug Fixes
166
-
167
- - canvas.png() to canvas.encode('png') ([b2d5afe](https://github.com/Brooooooklyn/canvas/commit/b2d5afeee91245fe226212e418fe62e16a238f91))
168
- - multi font families ([2e934a5](https://github.com/Brooooooklyn/canvas/commit/2e934a5837f51b62b46172e608a6d34e4413d9f9))
169
- - sample image size update ([8b0b147](https://github.com/Brooooooklyn/canvas/commit/8b0b1475112dd409c9e2652a5cd0bbdac3d772be))
170
-
171
- ### Features
172
-
173
- - add .asWinding() to convert the sample image of SVG filltype ([f9f0d2b](https://github.com/Brooooooklyn/canvas/commit/f9f0d2bdf452a54c2606d55e47387371f37697ab))
174
- - add basic measureText setup ([e1fc0bf](https://github.com/Brooooooklyn/canvas/commit/e1fc0bf2647c3e76cff8089d15078f4e9d200e97))
175
- - measureText with all textAlign and textBaseline ([1891d76](https://github.com/Brooooooklyn/canvas/commit/1891d76090ec093430d63a217fbe4515c758b2c7))
176
- - support register font with family name alias ([4860c80](https://github.com/Brooooooklyn/canvas/commit/4860c80aa6dac4ca073e20a5d2654ef6535e54c2))
177
- - support woff/woff2 fonts ([70b7aa2](https://github.com/Brooooooklyn/canvas/commit/70b7aa2430ed04251c0d5016658a8147a13c167b))
178
- - svg canvas backend ([f95f67a](https://github.com/Brooooooklyn/canvas/commit/f95f67afd5c051c1cf33e783e452d477a9430cad))
179
-
180
- ## [0.0.12](https://github.com/Brooooooklyn/canvas/compare/v0.0.11...v0.0.12) (2021-07-14)
181
-
182
- ### Features
183
-
184
- - support raw pixels output ([f502548](https://github.com/Brooooooklyn/canvas/commit/f502548dc0c271710602a7363693540487056776))
185
- - support toDataURL and toDataURLAsync on canvas element ([1d8c790](https://github.com/Brooooooklyn/canvas/commit/1d8c790777656ec1104fa465b2c9dcb929ead451))
186
-
187
- ## [0.0.11](https://github.com/Brooooooklyn/canvas/compare/v0.0.10...v0.0.11) (2021-07-13)
188
-
189
- ### Features
190
-
191
- - support maxWidth in fillText and strokeText ([ccf33f3](https://github.com/Brooooooklyn/canvas/commit/ccf33f30b26aacab636791f3efb92a86ca7a6871))
192
-
193
- ## [0.0.10](https://github.com/Brooooooklyn/canvas/compare/v0.0.9...v0.0.10) (2021-07-12)
194
-
195
- ### Bug Fixes
196
-
197
- - missing registerFromPath implementation ([8bac515](https://github.com/Brooooooklyn/canvas/commit/8bac515eac3c8bf5db026f701a57ee839fedb42d))
198
-
199
- ## [0.0.9](https://github.com/Brooooooklyn/canvas/compare/v0.0.8...v0.0.9) (2021-07-11)
200
-
201
- ### Features
202
-
203
- - upgrade skia to chrome/m92 latest ([584a02a](https://github.com/Brooooooklyn/canvas/commit/584a02aef28516dd18d675a8f90c1f25dceae129))
204
-
205
- ## [0.0.8](https://github.com/Brooooooklyn/canvas/compare/v0.0.7...v0.0.8) (2021-06-23)
206
-
207
- ### Features
208
-
209
- - support conic gradient ([850b6ee](https://github.com/Brooooooklyn/canvas/commit/850b6ee4f7df8ce440574fc41c16e8559ef1f232))
210
- - support webp output ([4948c49](https://github.com/Brooooooklyn/canvas/commit/4948c49f89ea4e423dc14b240c82cb4d5e917248))
211
-
212
- ## [0.0.7](https://github.com/Brooooooklyn/canvas/compare/v0.0.6...v0.0.7) (2021-06-21)
213
-
214
- ### Bug Fixes
215
-
216
- - **deps:** update rust crate once_cell to 1.8 ([c859162](https://github.com/Brooooooklyn/canvas/commit/c859162650590648d45e64782a104a5144a033bf))
217
- - **deps:** update rust crate regex to 1.5 ([1915c60](https://github.com/Brooooooklyn/canvas/commit/1915c608fcb7318ce778f687c3ca08543203820f))
218
- - JsArrayBuffer usage ([b58e987](https://github.com/Brooooooklyn/canvas/commit/b58e987bc7e92d5547e749b377720e1900454172))
219
-
220
- ### Features
221
-
222
- - support jpeg output ([76adbdc](https://github.com/Brooooooklyn/canvas/commit/76adbdc04cd02f868fde9da21851694f10f15ce5))
223
- - support svg source in image ([8df688f](https://github.com/Brooooooklyn/canvas/commit/8df688f702967fb60c75fceda52cbcf08a72be37))
224
-
225
- ## [0.0.6](https://github.com/Brooooooklyn/canvas/compare/v0.0.5...v0.0.6) (2021-05-06)
226
-
227
- ### Bug Fixes
228
-
229
- - windows setAssetFontManager crash ([54861e9](https://github.com/Brooooooklyn/canvas/commit/54861e9b3b5fe18cbcd791b65b05c98b40087d42))
230
-
231
- ### Features
232
-
233
- - add .editorconfig file ([62dcf35](https://github.com/Brooooooklyn/canvas/commit/62dcf35b6cdc11e3154af178b04e091aa09e3ac9))
234
- - add font collection singleton scaffold ([9b7a00a](https://github.com/Brooooooklyn/canvas/commit/9b7a00a1eb2cef311cce8409fb37df359d3ab39e))
235
- - support GlobalFonts.families ([00be237](https://github.com/Brooooooklyn/canvas/commit/00be237c08eff287ce706b30dd3ceda3e40727f6))
236
- - support GlobalFonts.has ([0461afc](https://github.com/Brooooooklyn/canvas/commit/0461afcf8efc6ec49e2722f5f124c4bada45a48b))
237
- - support GlobalFonts.register ([295d507](https://github.com/Brooooooklyn/canvas/commit/295d5072de571f1c6b04b930c99f6290f20149a4))
238
-
239
- ## [0.0.5](https://github.com/Brooooooklyn/canvas/compare/v0.0.4...v0.0.5) (2021-05-04)
240
-
241
- ### Bug Fixes
242
-
243
- - **path:** wrong Stroke type cast and miterLimit default value ([5f1761b](https://github.com/Brooooooklyn/canvas/commit/5f1761b602c992639ab511336fc0551d061c8d5c))
244
- - add stroke to trim test to make it more visually recognizable ([bddb3c6](https://github.com/Brooooooklyn/canvas/commit/bddb3c6ef96f588f36760f69e5077db56417d7cb))
245
-
246
- ### Features
247
-
248
- - add getFillTypeString() for PathKit ([44719de](https://github.com/Brooooooklyn/canvas/commit/44719de4d119ffe370b0c6df26072303d8707a85))
249
- - add PathKit.dash() ([#238](https://github.com/Brooooooklyn/canvas/issues/238)) ([c238113](https://github.com/Brooooooklyn/canvas/commit/c238113ef1feafd179d6c190e2a29e51326737d3))
250
-
251
- ## [0.0.4](https://github.com/Brooooooklyn/canvas/compare/v0.0.3...v0.0.4) (2021-04-19)
252
-
253
- ### Bug Fixes
254
-
255
- - parse error for single font size rules ([aa80fb7](https://github.com/Brooooooklyn/canvas/commit/aa80fb7109584b32bf6a66ae7d70753ec53882b6))
256
-
257
- ### Features
258
-
259
- - **path2d:** implement pathkit functions ([eea95bf](https://github.com/Brooooooklyn/canvas/commit/eea95bf627a8c643155618fa5e662c6060f73365))
260
- - skia chrome/m91, add back mimalloc ([0420c14](https://github.com/Brooooooklyn/canvas/commit/0420c14339b2ef9c886d0495bddeb30c0af31f1d))
261
-
262
- ## [0.0.3](https://github.com/Brooooooklyn/canvas/compare/v0.0.2...v0.0.3) (2021-03-27)
263
-
264
- ### Bug Fixes
265
-
266
- - wrong package name in index.js ([e3c35bb](https://github.com/Brooooooklyn/canvas/commit/e3c35bb0611f5d75f52d481738affdd530e1ac5a))
267
-
268
- ## [0.0.2](https://github.com/Brooooooklyn/canvas/compare/v0.0.1-alpha.3...v0.0.2) (2021-03-27)
269
-
270
- ### Bug Fixes
271
-
272
- - bitmap destructor ([b138da2](https://github.com/Brooooooklyn/canvas/commit/b138da228286f560fe7aebe4e12ef5fc2ddf8e25))
273
- - build on windows ([b731ea8](https://github.com/Brooooooklyn/canvas/commit/b731ea84d529d0a971b2fe34c20eb654f1fa9f34))
274
- - compat with Node.js readonly error messages ([c7e1764](https://github.com/Brooooooklyn/canvas/commit/c7e176440b4d167b03e988059a9e8a34169da9a7))
275
- - eslint & vscode config ignore ([f7dd018](https://github.com/Brooooooklyn/canvas/commit/f7dd018a81ff8dee0845258ef13e488c985f160f))
276
- - image shadow ([8396b93](https://github.com/Brooooooklyn/canvas/commit/8396b93f4634705d1f0dfdb2028afb6fa3b25a99))
277
- - image src getter ([336549d](https://github.com/Brooooooklyn/canvas/commit/336549d8f56b3e93687760b485d4a9d8cd72c6b4))
278
- - setters on readonly properties ([adac797](https://github.com/Brooooooklyn/canvas/commit/adac797e5af7dd1407e05f6c3084dfa725161b6b))
279
- - sync lock file ([340bfb5](https://github.com/Brooooooklyn/canvas/commit/340bfb571187635d041129eaf0c9e365bc7c336d))
280
- - transform matrix config ([9dcddf2](https://github.com/Brooooooklyn/canvas/commit/9dcddf293c25c19a3d93b058d3ba78b43d52a281))
281
-
282
- ### Features
283
-
284
- - add drawImage poc ([a5e5ddf](https://github.com/Brooooooklyn/canvas/commit/a5e5ddf52fc1be006590dcd63aad1ac53d2f5a1d))
285
- - add image class poc ([11e04a5](https://github.com/Brooooooklyn/canvas/commit/11e04a597d2d0153bd5a15da2aabd6bec08efb0e))
286
- - add image SkData field poc ([bb0c108](https://github.com/Brooooooklyn/canvas/commit/bb0c108d80da525efdb61a9b8653041f862933f7))
287
- - ImageData relates API and tests ([24c7990](https://github.com/Brooooooklyn/canvas/commit/24c7990f9c83a1fa81aa9b23d7712980ac556467))
288
- - implement image pattern ([2efbb18](https://github.com/Brooooooklyn/canvas/commit/2efbb18b6f80eadd5f457048c149cc50076fe2a2))
289
- - scale and rotate ([f6c761f](https://github.com/Brooooooklyn/canvas/commit/f6c761f4ebbb57c23dbec1f9be5c80ab7be38b95))
290
- - skia m89 ([e9c1cc9](https://github.com/Brooooooklyn/canvas/commit/e9c1cc94d33204e68ebe72ae94e934bf686d3e28))
291
- - support all drawImage variants ([8d5ded6](https://github.com/Brooooooklyn/canvas/commit/8d5ded624f5e915907ece2696f0f5e350e244b4c))
292
- - support context alpha ([929bdc0](https://github.com/Brooooooklyn/canvas/commit/929bdc092374ee8d196cc7fa5c56a057acfa2cfa))
293
- - support creating SkImage ([3945321](https://github.com/Brooooooklyn/canvas/commit/39453214b2793d40f16c6229e6444d713c0904cc))
294
- - support getContextAttributes ([4c0586b](https://github.com/Brooooooklyn/canvas/commit/4c0586b39cd923217c7db5bdd5bc620d3c438131))
295
- - support isPointInPath ([2150788](https://github.com/Brooooooklyn/canvas/commit/2150788b01103f25a272d8c89cf3cea2e2d5851b))
296
- - support isPointInStroke ([2a14513](https://github.com/Brooooooklyn/canvas/commit/2a14513c4a06ab9d6eeefcc31827b3a6e06d80a1))
297
- - support naturalWidth/naturalHeight/complete/alt ([1bb1042](https://github.com/Brooooooklyn/canvas/commit/1bb104206450d440991cdd6cc093ad31696be489))
298
- - sync skia m89 ([9748c44](https://github.com/Brooooooklyn/canvas/commit/9748c44658f4507dcb86e463a1e68117d05f057b))
299
- - text states and font styles ([a175cf7](https://github.com/Brooooooklyn/canvas/commit/a175cf729f4340ec49cec464e8e10c3561c20ebb))
300
-
301
- ### Performance Improvements
302
-
303
- - disable image data copy ([ccc8630](https://github.com/Brooooooklyn/canvas/commit/ccc8630906afaf573e7f46877efbb6ed652212f8))
304
-
305
- ## [0.0.1-alpha.3](https://github.com/Brooooooklyn/canvas/compare/v0.0.1-alpha.2...v0.0.1-alpha.3) (2021-01-06)
306
-
307
- ### Features
308
-
309
- - properties in CanvasRenderContext2D ([12727a7](https://github.com/Brooooooklyn/canvas/commit/12727a795e75c6873a900dba0755e7e9471f85ef))
310
- - testing for context2d functions ([107a650](https://github.com/Brooooooklyn/canvas/commit/107a650213ba3f13038955c2b8a7875b9b571449))
311
-
312
- ## [0.0.1-alpha.2](https://github.com/Brooooooklyn/canvas/compare/v0.0.1-alpha.1...v0.0.1-alpha.2) (2020-12-26)
313
-
314
- ### Features
315
-
316
- - implement Path2D ([91124d6](https://github.com/Brooooooklyn/canvas/commit/91124d6ba143c2c0728f8725c24443b58ef3fa06))
317
- - support gradient in fill/stroke style ([12e061c](https://github.com/Brooooooklyn/canvas/commit/12e061cdbd2ab4849a846cef2d5077bd00793613))
318
-
319
- ## [0.0.1-alpha.1](https://github.com/Brooooooklyn/canvas/compare/v0.0.1-alpha.0...v0.0.1-alpha.1) (2020-12-24)
320
-
321
- ### Features
322
-
323
- - async/sync get png data from Canvas ([f6d8cd6](https://github.com/Brooooooklyn/canvas/commit/f6d8cd60a6d336822a885bb0302a1ae2b8eafa9b))
324
-
325
- ## [0.0.1-alpha.0](https://github.com/Brooooooklyn/canvas/compare/5b09b4b92712bbce9468f0b874aed3ec7b87a716...v0.0.1-alpha.0) (2020-12-17)
326
-
327
- ### Features
328
-
329
- - simple example ([5b09b4b](https://github.com/Brooooooklyn/canvas/commit/5b09b4b92712bbce9468f0b874aed3ec7b87a716))
330
- - strokeStyle ([e185ca3](https://github.com/Brooooooklyn/canvas/commit/e185ca3faa1a13a22af37a20284a00114b9669ae))
331
- - upgrade everything ([5d27f63](https://github.com/Brooooooklyn/canvas/commit/5d27f6355ffe0ef8abcda5a7e14871cccfcdd71b))