Comparing version 1.1.0 to 2.0.0
@@ -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 @@ |
{ | ||
"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. |
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
11217
160
95