リファレンス · <chikyu-earth-realistic> 要素
EarthState型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What the realistic Earth is doing: loading its pictures, live and drawing, unavailable (no WebGL), lost (the GPU took the context; it comes back by itself) or idle (another view has the page's one WebGL context; press or focus it to take it).
インポート
import type { EarthState } from "@johnmorrisdotca/chikyu-earth/realistic/element";
定義
type EarthState = "loading" | "live" | "unavailable" | "lost" | "idle";
例
import type { ChikyuEarthRealistic, EarthState } from "@johnmorrisdotca/chikyu-earth/realistic/element";
const describe = (earth: ChikyuEarthRealistic): EarthState => earth.stats.state;
console.log(typeof describe);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。