Source code
Revision control
Copy as Markdown
Other Tools
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
[SecureContext,
Exposed=Window]
interface Magnetometer : Sensor {
constructor(optional MagnetometerSensorOptions sensorOptions = {});
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
};
enum MagnetometerLocalCoordinateSystem { "device", "screen" };
dictionary MagnetometerSensorOptions : SensorOptions {
MagnetometerLocalCoordinateSystem referenceFrame = "device";
};
[SecureContext,
Exposed=Window]
interface UncalibratedMagnetometer : Sensor {
constructor(optional MagnetometerSensorOptions sensorOptions = {});
readonly attribute double? x;
readonly attribute double? y;
readonly attribute double? z;
readonly attribute double? xBias;
readonly attribute double? yBias;
readonly attribute double? zBias;
};