Riding型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What the camera is riding along with now: the body or satellite, how (from or follow), where it looks, and the distance kept for a satellite.
インポート
import type { Riding } from "@johnmorrisdotca/chikyu-earth/space/element";
定義
interface Riding {
target: RideTarget;
view: "from" | "follow";
look: RideLook;
distanceKm: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
target | RideTarget | |
view | "from" | "follow" | |
look | RideLook | |
distanceKm | number |
例
import type { Riding } from "@johnmorrisdotca/chikyu-earth/space/element";
const describe = (ride: Riding | null): string => (ride ? `${ride.view} ${typeof ride.target === "string" ? ride.target : ride.target.group}` : "not riding");
console.log(typeof describe);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。