UNPKG

439 BJavaScriptView Raw
1import DeviceSensor from './DeviceSensor';
2import ExponentDeviceMotion from './ExponentDeviceMotion';
3class DeviceMotionSensor extends DeviceSensor {
4 constructor() {
5 super(...arguments);
6 this.Gravity = ExponentDeviceMotion.Gravity;
7 }
8}
9export const Gravity = ExponentDeviceMotion.Gravity;
10export default new DeviceMotionSensor(ExponentDeviceMotion, 'deviceMotionDidUpdate');
11//# sourceMappingURL=DeviceMotion.js.map
\No newline at end of file