Automatic update from web-platform-testsgyroscope: Rename LocalCoordinateSystem to GyroscopeLocalCoordinateSystem (#9948) Adapt to w3c/gyroscope#34. wpt-commits: 47e4c8df72cd579084233f219df07b15e00bd220 wpt-pr: 9948 wpt-commits: 47e4c8df72cd579084233f219df07b15e00bd220 wpt-pr: 9948
13 lines
399 B
Plaintext
13 lines
399 B
Plaintext
[Constructor(optional GyroscopeSensorOptions sensorOptions), SecureContext, Exposed=Window]
|
|
interface Gyroscope : Sensor {
|
|
readonly attribute double? x;
|
|
readonly attribute double? y;
|
|
readonly attribute double? z;
|
|
};
|
|
|
|
enum GyroscopeLocalCoordinateSystem { "device", "screen" };
|
|
|
|
dictionary GyroscopeSensorOptions : SensorOptions {
|
|
GyroscopeLocalCoordinateSystem referenceFrame = "device";
|
|
};
|