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.1.7 to 0.1.8

2

package.json
{
"name": "pure-canvas",
"version": "0.1.7",
"version": "0.1.8",
"description": "TODO",

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

@@ -17,5 +17,6 @@ import Layer from './Layer';

}
context.drawImage(this.cache, 0, 0, this.cache.width, this.cache.height);
const {minX, minY, maxX, maxY} = this.getBounds();
context.drawImage(this.cache, minX, minY, maxX - minX, maxY - minY);
}
}
};

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

canvas.height = maxY - minY;
this.draw(canvas.getContext('2d'));
const context = canvas.getContext('2d');
context.translate(-minX, -minY);
this.draw(context);
context.translate(minX, minY);
return canvas;

@@ -20,0 +23,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