Skip to content
Retina-enable an HTML Canvas element
JavaScript
Find file
Latest commit 6502959 @jonathanong jonathanong Merge pull request #5 from repoify/add/repository
Add repository field to readme
Failed to load latest commit information.
.gitignore
.npmignore
History.md Release 0.0.2
Makefile
Readme.md Initial commit
component.json
index.js
package.json
test.html

Readme.md

Autoscale-canvas

Retina-enable an HTML canvas according to devicePixelRatio.

Installation

$ component install component/autoscale-canvas

API

var autoscale = require('autoscale-canvas');
autoscale(document.querySelector('canvas'));

License

MIT

Something went wrong with that request. Please try again.