autoscale-canvas
v0.0.3
Published
Retina-enable an HTML canvas
Downloads
75
Readme
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