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

canvas-app

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

canvas-app - npm Package Compare versions

Comparing version 1.1.0 to 2.0.0

2

index.js

@@ -104,2 +104,4 @@ var getGL = require('webgl-context');

this.context.scale(this._DPR, this._DPR);
} else {
this.context.viewport(0, 0, this.width * this._DPR, this.height * this._DPR);
}

@@ -106,0 +108,0 @@

2

package.json
{
"name": "canvas-app",
"version": "1.1.0",
"version": "2.0.0",
"description": "sets up a retina-scaled canvas with render loop",

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

@@ -89,4 +89,8 @@ # canvas-app

### context scaling / viewport
Before rendering, the 2d context is scaled to the device size (or the scale remains unchanged if `retina` was false). If the context is `"webgl"`, then instead `gl.viewport` will be called with the device size.
## License
MIT, see [LICENSE.md](http://github.com/mattdesl/canvas-app/blob/master/LICENSE.md) for details.
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