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

node-skia-canvas

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-skia-canvas - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

7

lib/Canvas.js

@@ -7,2 +7,3 @@ const { Canvas: NativeCanvas } = require('bindings')('node-skia')

this.nativeCanvas = new NativeCanvas(width, height)
this._ctx2d = null;
}

@@ -28,3 +29,7 @@

if (ctx === '2d') {
return CanvasRenderingContext2D.getFromCanvas(this.nativeCanvas)
if (this._ctx2d == null) {
this._ctx2d = CanvasRenderingContext2D.getFromCanvas(this.nativeCanvas)
}
return this._ctx2d
}

@@ -31,0 +36,0 @@

2

package.json
{
"name": "node-skia-canvas",
"version": "0.1.1",
"version": "0.1.2",
"description": "Skia based graphics canvas run on node.js, written in Node-API",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -30,3 +30,3 @@ <div align="center">

```bash
npm install --save node-canvas-skia
npm install --save node-skia-canvas
```

@@ -33,0 +33,0 @@

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