Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh-TW]: update API GeolocationCoordinates "heading" #25428

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Dr-XYZ
Copy link
Contributor

@Dr-XYZ Dr-XYZ commented Jan 13, 2025

Description

Motivation

Additional details

Related issues and pull requests

@Dr-XYZ Dr-XYZ requested a review from a team as a code owner January 13, 2025 11:58
@Dr-XYZ Dr-XYZ requested review from jasonren0403 and removed request for a team January 13, 2025 11:58
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jan 13, 2025
Copy link
Contributor

github-actions bot commented Jan 13, 2025

Preview URLs

(comment last updated: 2025-01-15 08:57:44)

Copy link
Contributor

@jasonren0403 jasonren0403 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有两处问题

@@ -1,27 +1,28 @@
---
title: Coordinates.heading
title: GeolocationCoordinates:heading 屬性
short-title: heading
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

与英语文档相同的 short-title 可不必保留,zh-cn 的本地化指南也适用

Suggested change
short-title: heading


**`Coordinates.heading`** 是個唯讀的正複數用來代表裝置前進的方向。這個數值代表你偏離北方多少度,0 度代表你向著正北方,照著順時針的方向遞增(90 度代表正東方,270 度代表正西方)。如果{{domxref("Coordinates.speed")}} 為 0 度,則此值為 [`NaN`](/zh-TW/docs/Web/JavaScript/Reference/Global_Objects/NaN)。如果這個裝置無法提供這個值則回傳 null。
{{domxref("GeolocationCoordinates")}} 介面 **`heading`** 唯讀屬性表示裝置正在行進的方向。此值以度數表示,指示裝置偏離正北方向的程度。`0` 度表示正北,方向是順時針決定的(這意味著東是 `90` 度,西是 `270` 度)。如果 {{domxref("GeolocationCoordinates.speed")}} 為 `0` 或裝置無法提供方向資訊,`heading``null`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{{domxref("GeolocationCoordinates")}} 介面 **`heading`** 唯讀屬性表示裝置正在行進的方向。此值以度數表示,指示裝置偏離正北方向的程度。`0` 度表示正北,方向是順時針決定的(這意味著東是 `90` 度,西是 `270` 度)。如果 {{domxref("GeolocationCoordinates.speed")}} 為 `0` 或裝置無法提供方向資訊,`heading``null`
{{domxref("GeolocationCoordinates")}} 介面的 **`heading`** 唯讀屬性是一個 `double` 值,表示裝置正在行進的方向。此值以度數表示,指示裝置偏離正北方向的程度。`0` 度表示正北,方向是順時針決定的(這意味著東是 `90` 度,西是 `270` 度)。如果 {{domxref("GeolocationCoordinates.speed")}} 為 `0`或裝置無法提供方向資訊,`heading``null`

@Dr-XYZ Dr-XYZ requested a review from jasonren0403 January 15, 2025 08:52
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
Status: Review requested
Development

Successfully merging this pull request may close these issues.

2 participants