blob: be6cbc9d47a8da6a16613c8d88bbc824e7372de3 [file] [log] [blame]
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into reffy-reports
// (https://github.com/tidoust/reffy-reports)
// Source: Magnetometer (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;
};
dictionary MagnetometerReadingValues {
required double? x;
required double? y;
required double? z;
};
dictionary UncalibratedMagnetometerReadingValues {
required double? x;
required double? y;
required double? z;
required double? xBias;
required double? yBias;
required double? zBias;
};