node-skia-canvas
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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 @@ |
{ | ||
"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 @@ |
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
52372
1123