mirror of
https://github.com/servo/servo.git
synced 2025-06-30 20:13:39 +01:00
29 lines
932 B
Text
29 lines
932 B
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content of this file was automatically extracted from the
|
|
// "Magnetometer" spec.
|
|
// See: https://w3c.github.io/magnetometer/
|
|
|
|
[Constructor(optional MagnetometerSensorOptions sensorOptions), SecureContext,
|
|
Exposed=Window]
|
|
interface Magnetometer : Sensor {
|
|
readonly attribute double? x;
|
|
readonly attribute double? y;
|
|
readonly attribute double? z;
|
|
};
|
|
|
|
enum MagnetometerLocalCoordinateSystem { "device", "screen" };
|
|
|
|
dictionary MagnetometerSensorOptions : SensorOptions {
|
|
MagnetometerLocalCoordinateSystem referenceFrame = "device";
|
|
};
|
|
|
|
[Constructor(optional MagnetometerSensorOptions sensorOptions), SecureContext,
|
|
Exposed=Window]
|
|
interface UncalibratedMagnetometer : Sensor {
|
|
readonly attribute double? x;
|
|
readonly attribute double? y;
|
|
readonly attribute double? z;
|
|
readonly attribute double? xBias;
|
|
readonly attribute double? yBias;
|
|
readonly attribute double? zBias;
|
|
};
|