brindille-resize
v0.1.3
Published
Resize utils
Downloads
5
Readme
brindille-resize
Resize handler that uses debounce.
Install
With npm do:
$ npm install brindille-resize --save
Usage
var resize = require('brindille-resize');
// add listener
resize.addListener(handler);
// add listener without debounce
resize.addListener(noDebounceHandler, true);
// remove listener
resize.removeListener(handler);
// get properties
var w = resize.width;
var w2 = resize.halfWidth;
var h = resize.height;
var h2 = resize.halfHeight;
License
MIT