gyroscope.idl (593B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Gyroscope (https://w3c.github.io/gyroscope/) 5 6 [SecureContext, Exposed=Window] 7 interface Gyroscope : Sensor { 8 constructor(optional GyroscopeSensorOptions sensorOptions = {}); 9 readonly attribute double? x; 10 readonly attribute double? y; 11 readonly attribute double? z; 12 }; 13 14 enum GyroscopeLocalCoordinateSystem { "device", "screen" }; 15 16 dictionary GyroscopeSensorOptions : SensorOptions { 17 GyroscopeLocalCoordinateSystem referenceFrame = "device"; 18 };