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);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。