mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
12 lines
399 B
Text
12 lines
399 B
Text
[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";
|
|
};
|