Revision a72a06f7e3d919f8d4f08cb3171291cf6482fd85 authored by Simon Pieters on 08 June 2018, 15:54:45 UTC, committed by Simon Pieters on 08 June 2018, 15:54:45 UTC
Part of https://github.com/whatwg/html/pull/3499. This does not yet test :heading().
1 parent 7684fe3
orientation-sensor.idl
typedef (Float32Array or Float64Array or DOMMatrix) RotationMatrixType;
[SecureContext, Exposed=Window]
interface OrientationSensor : Sensor {
readonly attribute FrozenArray<double>? quaternion;
void populateMatrix(RotationMatrixType targetMatrix);
};
enum OrientationSensorLocalCoordinateSystem { "device", "screen" };
dictionary OrientationSensorOptions : SensorOptions {
OrientationSensorLocalCoordinateSystem referenceFrame = "device";
};
[Constructor(optional OrientationSensorOptions sensorOptions), SecureContext, Exposed=Window]
interface AbsoluteOrientationSensor : OrientationSensor {
};
[Constructor(optional OrientationSensorOptions sensorOptions), SecureContext, Exposed=Window]
interface RelativeOrientationSensor : OrientationSensor {
};
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...