https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 571391302e8d9c3aa67bbea268e1b3cdb47248f3 authored by James Graham on 11 December 2018, 15:25:47 UTC
Fix use of wpt settings in firefox Browser
Tip revision: 5713913
magnetometer.idl
// 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;
};
back to top