本文へ移動

Chikyu Earth地球

世界の国の輪郭を線で描いた地球儀です。地球と同じ速さで回ります。宇宙から見たような地球と、好きな場所の目印も使えます。

「地球」(ちきゅう) は、私たちが住む星の名前です。 名前について(英語)

目次

リファレンス · <chikyu-space> 要素

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;
}

メンバー

名前型説明
targetRideTarget
view"from" | "follow"
lookRideLook
distanceKmnumber

例

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);

ソースを見るGitHub で編集@johnmorrisdotca/chikyu-earth 0.11.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。