https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 12b220dc6d9287eb11a881caa2306fc64339a339 authored by Marcos Cáceres on 19 March 2018, 06:05:12 UTC
nit: linting error
Tip revision: 12b220d
magnetometer.idl
[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