2.0.7 • Published 3 years ago
@superherocheesecake/orientation-observer v2.0.7
OrientationObserver
Observes the page orientation (landscape / portrait)
// npm installation
npm i --save @superherocheesecake/orientation-observer
// require the module
import { orientationObserver } from '@superherocheesecake/orientation-observer';
// listen for changes
orientationObserver.addEventListener('update', this._orientationObserverUpdateHandler);
_orientationObserverUpdateHandler(options) {
// options.orientation
}
// or just fetch it
const orientation = OrientationObserver.getOrientation();
2.0.7
3 years ago
2.0.6
3 years ago
2.0.5-canary.4
3 years ago
2.0.5-canary.3
3 years ago
2.0.5
3 years ago
2.0.4
4 years ago
2.0.3
4 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago