-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
base: main
Are you sure you want to change the base?
Conversation
Preview URLs (comment last updated: 2025-01-15 08:57:44) |
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
与英语文档相同的 short-title 可不必保留,zh-cn 的本地化指南也适用
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`。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{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`。 |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Description
Motivation
Additional details
Related issues and pull requests