@napi-rs/canvas
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -0,1 +1,11 @@ | ||
## [0.1.2](https://github.com/Brooooooklyn/canvas/compare/v0.1.1...v0.1.2) (2021-08-05) | ||
### Bug Fixes | ||
- Windows icudtl.data version and path ([5c81eb7](https://github.com/Brooooooklyn/canvas/commit/5c81eb7d3edb7acaaf831233199eddecda834074)) | ||
### Features | ||
- implement convertSVGTextToPath function ([9c7ca98](https://github.com/Brooooooklyn/canvas/commit/9c7ca989a54c40cf4eb949f651a91bfb629fc716)) | ||
## [0.1.1](https://github.com/Brooooooklyn/canvas/compare/v0.1.0...v0.1.1) (2021-08-02) | ||
@@ -2,0 +12,0 @@ |
@@ -360,1 +360,3 @@ export interface DOMMatrix2DInit { | ||
} | ||
export function convertSVGTextToPath(svg: Buffer | string): Buffer |
18
index.js
@@ -11,4 +11,13 @@ const { loadBinding } = require('@node-rs/helper') | ||
*/ | ||
const { CanvasRenderingContext2D, CanvasElement, SVGCanvas, Path2D, ImageData, Image, CanvasPattern, GlobalFonts } = | ||
loadBinding(__dirname, 'skia', '@napi-rs/canvas') | ||
const { | ||
CanvasRenderingContext2D, | ||
CanvasElement, | ||
SVGCanvas, | ||
Path2D, | ||
ImageData, | ||
Image, | ||
CanvasPattern, | ||
GlobalFonts, | ||
convertSVGTextToPath: _convertSVGTextToPath, | ||
} = loadBinding(__dirname, 'skia', '@napi-rs/canvas') | ||
@@ -197,2 +206,6 @@ const Geometry = require('./geometry') | ||
function convertSVGTextToPath(input) { | ||
return _convertSVGTextToPath(Buffer.from(input), GlobalFontsSingleton) | ||
} | ||
module.exports = { | ||
@@ -210,2 +223,3 @@ createCanvas, | ||
GlobalFonts: GlobalFontsSingleton, | ||
convertSVGTextToPath, | ||
} |
{ | ||
"name": "@napi-rs/canvas", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Canvas for Node.js with skia backend", | ||
@@ -134,12 +134,12 @@ "main": "index.js", | ||
"optionalDependencies": { | ||
"@napi-rs/canvas-win32-x64-msvc": "^0.1.1", | ||
"@napi-rs/canvas-darwin-x64": "^0.1.1", | ||
"@napi-rs/canvas-linux-x64-gnu": "^0.1.1", | ||
"@napi-rs/canvas-linux-arm-gnueabihf": "^0.1.1", | ||
"@napi-rs/canvas-linux-x64-musl": "^0.1.1", | ||
"@napi-rs/canvas-linux-arm64-gnu": "^0.1.1", | ||
"@napi-rs/canvas-linux-arm64-musl": "^0.1.1", | ||
"@napi-rs/canvas-darwin-arm64": "^0.1.1", | ||
"@napi-rs/canvas-android-arm64": "^0.1.1" | ||
"@napi-rs/canvas-win32-x64-msvc": "^0.1.2", | ||
"@napi-rs/canvas-darwin-x64": "^0.1.2", | ||
"@napi-rs/canvas-linux-x64-gnu": "^0.1.2", | ||
"@napi-rs/canvas-linux-arm-gnueabihf": "^0.1.2", | ||
"@napi-rs/canvas-linux-x64-musl": "^0.1.2", | ||
"@napi-rs/canvas-linux-arm64-gnu": "^0.1.2", | ||
"@napi-rs/canvas-linux-arm64-musl": "^0.1.2", | ||
"@napi-rs/canvas-darwin-arm64": "^0.1.2", | ||
"@napi-rs/canvas-android-arm64": "^0.1.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
64258
1251