From 45f9ccc874f22995ece1d7e0e112afc10e3e5971 Mon Sep 17 00:00:00 2001 From: Himanshu Date: Sat, 15 Feb 2025 09:04:30 +0530 Subject: [PATCH 1/3] Fixes #22885, clarifies --- .../api/devicemotionevent/acceleration/index.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/files/en-us/web/api/devicemotionevent/acceleration/index.md b/files/en-us/web/api/devicemotionevent/acceleration/index.md index ec3e8951a26e0b8..aa2faa3d6103aff 100644 --- a/files/en-us/web/api/devicemotionevent/acceleration/index.md +++ b/files/en-us/web/api/devicemotionevent/acceleration/index.md @@ -8,13 +8,13 @@ browser-compat: api.DeviceMotionEvent.acceleration {{APIRef("Device Orientation Events")}}{{securecontext_header}} -The **`acceleration`** read-only property of the {{domxref("DeviceMotionEvent")}} interface returns the amount of acceleration recorded by +The **`acceleration`** read-only property of the {{domxref("DeviceMotionEvent")}} interface returns the acceleration recorded by the device, in [meters per second squared (m/s²)](https://en.wikipedia.org/wiki/Meter_per_second_squared). -The acceleration value does not include the effect of -the gravity force, in contrast to {{DOMxRef("DeviceMotionEvent.accelerationIncludingGravity")}}. +This value does not include the effect of +the gravitational force, in contrast to {{DOMxRef("DeviceMotionEvent.accelerationIncludingGravity")}}. > [!NOTE] -> If the hardware doesn't know how to remove gravity from the +> If the hardware does not know how to remove gravity from the > acceleration data, this value may not be present in the > {{DOMxRef("DeviceMotionEvent")}}. In this situation, you'll need to use > {{DOMxRef("DeviceMotionEvent.accelerationIncludingGravity")}} instead. @@ -22,14 +22,14 @@ the gravity force, in contrast to {{DOMxRef("DeviceMotionEvent.accelerationInclu ## Value The `acceleration` property is an object providing information about -acceleration on three axis. Each axis is represented with its own property: +acceleration on the three axes in the {{domxref("Device orientation events/Orientation and motion data explained", "Device coordinate frame", "", "nocode")}}. Each axis is represented with its own property: - `x` - - : Represents the acceleration upon the x axis which is the west to east axis + - : Represents the acceleration along the x axis - `y` - - : Represents the acceleration upon the y axis which is the south to north axis + - : Represents the acceleration along the y axis - `z` - - : Represents the acceleration upon the z axis which is the down to up axis + - : Represents the acceleration along the z axis ## Specifications From 4add7ef49c06e4edf46c47530ec4eb9c0f8e367d Mon Sep 17 00:00:00 2001 From: Himanshu Date: Sat, 15 Feb 2025 09:08:46 +0530 Subject: [PATCH 2/3] Update files/en-us/web/api/devicemotionevent/acceleration/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- files/en-us/web/api/devicemotionevent/acceleration/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/devicemotionevent/acceleration/index.md b/files/en-us/web/api/devicemotionevent/acceleration/index.md index aa2faa3d6103aff..060593e0e0aec03 100644 --- a/files/en-us/web/api/devicemotionevent/acceleration/index.md +++ b/files/en-us/web/api/devicemotionevent/acceleration/index.md @@ -27,7 +27,7 @@ acceleration on the three axes in the {{domxref("Device orientation events/Orien - `x` - : Represents the acceleration along the x axis - `y` - - : Represents the acceleration along the y axis + - : Represents the acceleration along the y axis - `z` - : Represents the acceleration along the z axis From bfa4d68091a9bed03c2a34e9eb972f0ff737344c Mon Sep 17 00:00:00 2001 From: Himanshu Garg Date: Sat, 15 Feb 2025 09:34:37 +0530 Subject: [PATCH 3/3] fixes link --- files/en-us/web/api/devicemotionevent/acceleration/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/api/devicemotionevent/acceleration/index.md b/files/en-us/web/api/devicemotionevent/acceleration/index.md index 060593e0e0aec03..88174913fe18491 100644 --- a/files/en-us/web/api/devicemotionevent/acceleration/index.md +++ b/files/en-us/web/api/devicemotionevent/acceleration/index.md @@ -22,7 +22,7 @@ the gravitational force, in contrast to {{DOMxRef("DeviceMotionEvent.acceleratio ## Value The `acceleration` property is an object providing information about -acceleration on the three axes in the {{domxref("Device orientation events/Orientation and motion data explained", "Device coordinate frame", "", "nocode")}}. Each axis is represented with its own property: +acceleration on the three axes in the [Device coordinate frame](/en-US/docs/Web/API/Device_orientation_events/Orientation_and_motion_data_explained#device_coordinate_frame). Each axis is represented with its own property: - `x` - : Represents the acceleration along the x axis