orientation-sensor.idl (988B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: Orientation Sensor (https://w3c.github.io/orientation-sensor/) 5 6 typedef (Float32Array or Float64Array or DOMMatrix) RotationMatrixType; 7 8 [SecureContext, Exposed=Window] 9 interface OrientationSensor : Sensor { 10 readonly attribute FrozenArray<double>? quaternion; 11 undefined populateMatrix(RotationMatrixType targetMatrix); 12 }; 13 14 enum OrientationSensorLocalCoordinateSystem { "device", "screen" }; 15 16 dictionary OrientationSensorOptions : SensorOptions { 17 OrientationSensorLocalCoordinateSystem referenceFrame = "device"; 18 }; 19 20 [SecureContext, Exposed=Window] 21 interface AbsoluteOrientationSensor : OrientationSensor { 22 constructor(optional OrientationSensorOptions sensorOptions = {}); 23 }; 24 25 [SecureContext, Exposed=Window] 26 interface RelativeOrientationSensor : OrientationSensor { 27 constructor(optional OrientationSensorOptions sensorOptions = {}); 28 };