You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

pure-canvas

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pure-canvas - npm Package Compare versions

Comparing version

to
0.6.9

6

lib/LayerCached.js

@@ -37,2 +37,3 @@ "use strict";

else {
const { minX, minY, maxX, maxY } = this.getBounds();
if (!this.cache) {

@@ -43,4 +44,5 @@ this.caching = true;

}
const { minX, minY, maxX, maxY } = this.getBounds();
context.drawImage(this.cache, minX, minY, maxX - minX, maxY - minY);
else if (maxX - minX > 0 && maxY - minY > 0) {
context.drawImage(this.cache, minX, minY, maxX - minX, maxY - minY);
}
}

@@ -47,0 +49,0 @@ }

{
"name": "pure-canvas",
"version": "0.6.8",
"version": "0.6.9",
"description": "TODO",

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

@@ -51,2 +51,3 @@ import Node, {Point, Bounds} from './Node';

} else {
const {minX, minY, maxX, maxY} = this.getBounds();
if (!this.cache) {

@@ -56,5 +57,5 @@ this.caching = true;

this.caching = false;
} else if (maxX - minX > 0 && maxY - minY > 0) {
context.drawImage(this.cache, minX, minY, maxX - minX, maxY - minY);
}
const {minX, minY, maxX, maxY} = this.getBounds();
context.drawImage(this.cache, minX, minY, maxX - minX, maxY - minY);
}

@@ -61,0 +62,0 @@ }

Sorry, the diff of this file is not supported yet