magnetometer.idl (974B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Magnetometer (https://w3c.github.io/magnetometer/) 5 6 [SecureContext, 7 Exposed=Window] 8 interface Magnetometer : Sensor { 9 constructor(optional MagnetometerSensorOptions sensorOptions = {}); 10 readonly attribute double? x; 11 readonly attribute double? y; 12 readonly attribute double? z; 13 }; 14 15 enum MagnetometerLocalCoordinateSystem { "device", "screen" }; 16 17 dictionary MagnetometerSensorOptions : SensorOptions { 18 MagnetometerLocalCoordinateSystem referenceFrame = "device"; 19 }; 20 21 [SecureContext, 22 Exposed=Window] 23 interface UncalibratedMagnetometer : Sensor { 24 constructor(optional MagnetometerSensorOptions sensorOptions = {}); 25 readonly attribute double? x; 26 readonly attribute double? y; 27 readonly attribute double? z; 28 readonly attribute double? xBias; 29 readonly attribute double? yBias; 30 readonly attribute double? zBias; 31 };