|
24 | 24 | [SecureContext, Exposed=Window]
|
25 | 25 | interface Sensor : EventTarget {
|
26 | 26 | readonly attribute boolean activated;
|
| 27 | + readonly attribute boolean hasReading; |
27 | 28 | readonly attribute DOMHighResTimeStamp? timestamp;
|
28 | 29 | void start();
|
29 | 30 | void stop();
|
|
34 | 35 |
|
35 | 36 | [Constructor(optional SensorOptions sensorOptions), Exposed=Window]
|
36 | 37 | interface Magnetometer : Sensor {
|
37 |
| - readonly attribute unrestricted double? x; |
38 |
| - readonly attribute unrestricted double? y; |
39 |
| - readonly attribute unrestricted double? z; |
| 38 | + readonly attribute double? x; |
| 39 | + readonly attribute double? y; |
| 40 | + readonly attribute double? z; |
40 | 41 | };
|
41 | 42 |
|
42 | 43 | [Constructor(optional SensorOptions sensorOptions), Exposed=Window]
|
43 | 44 | interface UncalibratedMagnetometer : Sensor {
|
44 |
| - readonly attribute unrestricted double? x; |
45 |
| - readonly attribute unrestricted double? y; |
46 |
| - readonly attribute unrestricted double? z; |
47 |
| - readonly attribute unrestricted double? xBias; |
48 |
| - readonly attribute unrestricted double? yBias; |
49 |
| - readonly attribute unrestricted double? zBias; |
| 45 | + readonly attribute double? x; |
| 46 | + readonly attribute double? y; |
| 47 | + readonly attribute double? z; |
| 48 | + readonly attribute double? xBias; |
| 49 | + readonly attribute double? yBias; |
| 50 | + readonly attribute double? zBias; |
50 | 51 | };
|
51 | 52 | </script>
|
52 | 53 |
|
|
0 commit comments