Skip to content

Commit 170bd7d

Browse files
Adding a few new Sensor features (#1304)
Co-authored-by: Philip Jägenstedt <[email protected]>
1 parent b32a33c commit 170bd7d

File tree

8 files changed

+119
-0
lines changed

8 files changed

+119
-0
lines changed

features/accelerometer.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Accelerometer
2+
description: The `Accelerometer` and `LinearAccelerationSensor` APIs read the acceleration applied to a device in three dimensions, either including the effect of gravity or not, respectively.
3+
spec: https://w3c.github.io/accelerometer/#accelerometer-interface
4+
group: sensors
5+
compat_features:
6+
- api.Accelerometer
7+
- api.Accelerometer.Accelerometer
8+
- api.Accelerometer.x
9+
- api.Accelerometer.y
10+
- api.Accelerometer.z
11+
- api.LinearAccelerationSensor
12+
- api.LinearAccelerationSensor.LinearAccelerationSensor
13+
- api.Permissions.permission_accelerometer
14+
# Later addition
15+
# - http.headers.Permissions-Policy.accelerometer

features/accelerometer.yml.dist

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Generated from: accelerometer.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "67"
8+
chrome_android: "67"
9+
edge: "79"
10+
compat_features:
11+
# baseline: false
12+
# support:
13+
# chrome: "62"
14+
# chrome_android: "62"
15+
# edge: "79"
16+
- api.Permissions.permission_accelerometer
17+
18+
# ⬇️ Same status as overall feature ⬇️
19+
# baseline: false
20+
# support:
21+
# chrome: "67"
22+
# chrome_android: "67"
23+
# edge: "79"
24+
- api.Accelerometer
25+
- api.Accelerometer.Accelerometer
26+
- api.Accelerometer.x
27+
- api.Accelerometer.y
28+
- api.Accelerometer.z
29+
- api.LinearAccelerationSensor
30+
- api.LinearAccelerationSensor.LinearAccelerationSensor

features/device-orientation-events.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ name: Device orientation events
33
description: The `DeviceMotion` and `DeviceOrientation` events report the movement and orientation of the browser's device in physical space.
44
spec: https://w3c.github.io/deviceorientation/
55
caniuse: deviceorientation
6+
group: sensors

features/gyroscope.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Gyroscope
2+
description: The `Gyroscope` API reads the angular velocity of a device in three dimensions.
3+
spec: https://w3c.github.io/gyroscope/#gyroscope-interface
4+
group: sensors
5+
compat_features:
6+
- api.Gyroscope
7+
- api.Gyroscope.Gyroscope
8+
- api.Gyroscope.x
9+
- api.Gyroscope.y
10+
- api.Gyroscope.z
11+
- api.Permissions.permission_gyroscope
12+
# Later addition
13+
# - http.headers.Permissions-Policy.gyroscope

features/gyroscope.yml.dist

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Generated from: gyroscope.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "67"
8+
chrome_android: "67"
9+
edge: "79"
10+
compat_features:
11+
# baseline: false
12+
# support:
13+
# chrome: "51"
14+
# chrome_android: "51"
15+
# edge: "79"
16+
- api.Permissions.permission_gyroscope
17+
18+
# ⬇️ Same status as overall feature ⬇️
19+
# baseline: false
20+
# support:
21+
# chrome: "67"
22+
# chrome_android: "67"
23+
# edge: "79"
24+
- api.Gyroscope
25+
- api.Gyroscope.Gyroscope
26+
- api.Gyroscope.x
27+
- api.Gyroscope.y
28+
- api.Gyroscope.z

features/orientation-sensor.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Orientation Sensor
2+
description: The `AbsoluteOrientationSensor` and `RelativeOrientationSensor` APIs describe the physical orientation of a device in three-dimensional space, either in relation to the Earth's coordinate system or in relation to the device's own orientation, respectively.
3+
spec:
4+
- https://w3c.github.io/orientation-sensor/#absoluteorientationsensor-interface
5+
- https://w3c.github.io/orientation-sensor/#relativeorientationsensor-interface
6+
group: sensors
7+
compat_features:
8+
- api.OrientationSensor
9+
- api.OrientationSensor.populateMatrix
10+
- api.OrientationSensor.quaternion
11+
- api.AbsoluteOrientationSensor
12+
- api.AbsoluteOrientationSensor.AbsoluteOrientationSensor
13+
- api.RelativeOrientationSensor
14+
- api.RelativeOrientationSensor.RelativeOrientationSensor
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Generated from: orientation-sensor.yml
2+
# Do not edit this file by hand. Edit the source file instead!
3+
4+
status:
5+
baseline: false
6+
support:
7+
chrome: "67"
8+
chrome_android: "67"
9+
edge: "79"
10+
compat_features:
11+
- api.AbsoluteOrientationSensor
12+
- api.AbsoluteOrientationSensor.AbsoluteOrientationSensor
13+
- api.OrientationSensor
14+
- api.OrientationSensor.populateMatrix
15+
- api.OrientationSensor.quaternion
16+
- api.RelativeOrientationSensor
17+
- api.RelativeOrientationSensor.RelativeOrientationSensor

groups/sensors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: Sensors

0 commit comments

Comments
 (0)