New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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 0.6.8 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

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