Skip to content

Commit

Permalink
Add Magnetometer API (#1848)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel D. Beck <[email protected]>
Co-authored-by: Florian Scholz <[email protected]>
  • Loading branch information
3 people authored Dec 12, 2024
1 parent 4204e40 commit 8525f90
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
23 changes: 23 additions & 0 deletions features/magnetometer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Magnetometer
description: The `Magnetometer` API reads magnetic field sensor data from the device's magnetometer.
spec: https://w3c.github.io/magnetometer/
group: sensors
compat_features:
- api.Magnetometer
- api.Magnetometer.Magnetometer
- api.Magnetometer.x
- api.Magnetometer.y
- api.Magnetometer.z
# Enable when overlapping keys are allowed, https://github.com/web-platform-dx/web-features/issues/1173
# - api.Sensor
# - api.Sensor.activate_event
# - api.Sensor.activated
# - api.Sensor.error_event
# - api.Sensor.hasReading
# - api.Sensor.reading_event
# - api.Sensor.start
# - api.Sensor.stop
# - api.Sensor.timestamp
# - api.SensorErrorEvent
# - api.SensorErrorEvent.SensorErrorEvent
# - api.SensorErrorEvent.error
12 changes: 12 additions & 0 deletions features/magnetometer.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Generated from: magnetometer.yml
# Do not edit this file by hand. Edit the source file instead!

status:
baseline: false
support: {}
compat_features:
- api.Magnetometer
- api.Magnetometer.Magnetometer
- api.Magnetometer.x
- api.Magnetometer.y
- api.Magnetometer.z

0 comments on commit 8525f90

Please sign in to comment.