Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@napi-rs/canvas

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@napi-rs/canvas - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

10

CHANGELOG.md

@@ -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 @@

2

index.d.ts

@@ -360,1 +360,3 @@ export interface DOMMatrix2DInit {

}
export function convertSVGTextToPath(svg: Buffer | string): Buffer

@@ -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,
}

20

package.json
{
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc