| 2 | import { off, on } from './misc/util'; |
| 3 | |
| 4 | export interface MotionSensorState { |
| 5 | acceleration: { |
| 6 | x: number | null; |
| 7 | y: number | null; |
| 8 | z: number | null; |
| 9 | }; |
| 10 | accelerationIncludingGravity: { |
| 11 | x: number | null; |
| 12 | y: number | null; |
| 13 | z: number | null; |
| 14 | }; |
| 15 | rotationRate: { |
| 16 | alpha: number | null; |
| 17 | beta: number | null; |
| 18 | gamma: number | null; |
| 19 | }; |
| 20 | interval: number | null; |
| 21 | } |
| 22 | |
| 23 | const defaultState: MotionSensorState = { |
| 24 | acceleration: { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…