@napi-rs/canvas 0.1.19 → 0.1.20
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.
- package/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/index.js +5 -5
- package/package.json +27 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
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
|
+
|
|
1
14
|
## [0.1.19](https://github.com/Brooooooklyn/canvas/compare/v0.1.18...v0.1.19) (2021-12-31)
|
|
2
15
|
|
|
3
16
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# `skr canvas`
|
|
2
2
|
|
|
3
3
|

|
|
4
|
-

|
|
5
5
|
[](https://packagephobia.com/result?p=@napi-rs/canvas)
|
|
6
6
|
[](https://npmcharts.com/compare/@napi-rs/canvas?minimal=true)
|
|
7
7
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.1.20",
|
|
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": "^
|
|
67
|
+
"@napi-rs/cli": "^2.4.2",
|
|
68
68
|
"@octokit/rest": "^18.12.0",
|
|
69
|
-
"@swc-node/register": "^1.4.
|
|
69
|
+
"@swc-node/register": "^1.4.2",
|
|
70
70
|
"@types/lodash": "^4.14.178",
|
|
71
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
72
|
-
"@typescript-eslint/parser": "^5.
|
|
73
|
-
"ava": "^
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^5.10.2",
|
|
72
|
+
"@typescript-eslint/parser": "^5.10.2",
|
|
73
|
+
"ava": "^4.0.1",
|
|
74
74
|
"benny": "^3.7.1",
|
|
75
|
-
"canvas": "^2.
|
|
76
|
-
"canvaskit-wasm": "^0.
|
|
77
|
-
"
|
|
78
|
-
"conventional-changelog-cli": "^2.
|
|
79
|
-
"echarts": "^5.
|
|
80
|
-
"eslint": "^8.
|
|
75
|
+
"canvas": "^2.9.0",
|
|
76
|
+
"canvaskit-wasm": "^0.33.0",
|
|
77
|
+
"colorette": "^2.0.16",
|
|
78
|
+
"conventional-changelog-cli": "^2.2.2",
|
|
79
|
+
"echarts": "^5.3.0",
|
|
80
|
+
"eslint": "^8.8.0",
|
|
81
81
|
"eslint-config-prettier": "^8.3.0",
|
|
82
|
-
"eslint-plugin-import": "^2.25.
|
|
82
|
+
"eslint-plugin-import": "^2.25.4",
|
|
83
83
|
"eslint-plugin-prettier": "^4.0.0",
|
|
84
84
|
"eslint-plugin-sonarjs": "^0.11.0",
|
|
85
85
|
"husky": "^7.0.4",
|
|
86
|
-
"lint-staged": "^12.
|
|
86
|
+
"lint-staged": "^12.3.3",
|
|
87
87
|
"lodash": "^4.17.21",
|
|
88
88
|
"npm-run-all": "^4.1.5",
|
|
89
89
|
"pinst": "^2.1.6",
|
|
90
90
|
"png.js": "^0.2.1",
|
|
91
91
|
"prettier": "^2.5.1",
|
|
92
92
|
"putasset": "^5.0.3",
|
|
93
|
-
"skia-canvas": "^0.9.
|
|
94
|
-
"typescript": "^4.5.
|
|
93
|
+
"skia-canvas": "^0.9.28",
|
|
94
|
+
"typescript": "^4.5.5"
|
|
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",
|
|
@@ -122,14 +124,14 @@
|
|
|
122
124
|
"arrowParens": "always"
|
|
123
125
|
},
|
|
124
126
|
"optionalDependencies": {
|
|
125
|
-
"@napi-rs/canvas-win32-x64-msvc": "0.1.
|
|
126
|
-
"@napi-rs/canvas-darwin-x64": "0.1.
|
|
127
|
-
"@napi-rs/canvas-linux-x64-gnu": "0.1.
|
|
128
|
-
"@napi-rs/canvas-linux-arm-gnueabihf": "0.1.
|
|
129
|
-
"@napi-rs/canvas-linux-x64-musl": "0.1.
|
|
130
|
-
"@napi-rs/canvas-linux-arm64-gnu": "0.1.
|
|
131
|
-
"@napi-rs/canvas-linux-arm64-musl": "0.1.
|
|
132
|
-
"@napi-rs/canvas-darwin-arm64": "0.1.
|
|
133
|
-
"@napi-rs/canvas-android-arm64": "0.1.
|
|
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"
|
|
134
136
|
}
|
|
135
137
|
}
|