- From: Tobie Langel via GitHub <sysbot+gh@w3.org>
- Date: Tue, 08 Nov 2016 09:42:47 +0000
- To: public-device-apis-log@w3.org
What about: ```webidl [Constructor(optional MagnetometerOptions magnetometerOptions)] interface Magnetometer : Sensor { readonly attribute (MagnetometerReading or MagnetometerRawReading)? reading; }; dictionary MagnetometerOptions : SensorOptions { boolean raw = false; }; [Constructor(MagnetometerReadingInit magnetometerReadingInit)] interface MagnetometerReading : SensorReading { readonly attribute double x; readonly attribute double y; readonly attribute double z; }; dictionary MagnetometerReadingInit { required double x; required double y; required double z; }; [Constructor(MagnetometerRawReadingInit magnetometerRawReadingInit)] interface MagnetometerRawReading : MagnetometerReading { readonly attribute double xBias; readonly attribute double yBias; readonly attribute double zBias; }; dictionary MagnetometerRawReadingInit : MagnetometerReadingInit { required double xBias; required double yBias; required double zBias; }; ``` -- GitHub Notification of comment by tobie Please view or discuss this issue at https://github.com/w3c/magnetometer/issues/16#issuecomment-259090628 using your GitHub account
Received on Tuesday, 8 November 2016 09:42:53 UTC