ScreenPoint型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A place on the page's screen, in pixels from its top left corner. The page's projection writes into one of these so that nothing is allocated for each star.
インポート
import type { ScreenPoint } from "@johnmorrisdotca/hoshi-stars/sky-labels";
定義
interface ScreenPoint {
x: number;
y: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
x | number | |
y | number |
例
import type { ScreenPoint } from "@johnmorrisdotca/hoshi-stars/sky-labels";
const spot: ScreenPoint = { x: 640, y: 360 };
console.log(spot.x, spot.y);640 360出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。