本文へ移動

Chikyu Earth地球

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

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

目次

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

RideOptions型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

How a ride along is done: view from (the default) puts the camera at the body looking at the Earth, follow keeps it a fixed distance from the body looking at it (distanceKm, 3000 by default, for a satellite; a planet or the Moon is kept at the distance the zoom says); look down (the default) or horizon is where a camera at the body points; smooth (the default) glides from the old camera to the new one in about a second and a bit, and jumps instead for a reader who asked for reduced motion.

インポート

import type { RideOptions } from "@johnmorrisdotca/chikyu-earth/space/element";

定義

interface RideOptions {
    view?: "from" | "follow";
    look?: RideLook;
    distanceKm?: number;
    smooth?: boolean;
}

メンバー

名前型説明
view (省略可)"from" | "follow" | undefined
look (省略可)RideLook | undefined
distanceKm (省略可)number | undefined
smooth (省略可)boolean | undefined

例

import type { RideOptions } from "@johnmorrisdotca/chikyu-earth/space/element";

const options: RideOptions = { view: "from", look: "horizon" };
console.log(options.look);

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

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