リファレンス · 暗い星 (UCAC4の約300万個、12等まで。見ている空の部分のタイルだけを読み込みます)
FaintSkyOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What faintSky takes.
インポート
import type { FaintSkyOptions } from "@johnmorrisdotca/hoshi-stars/faint";
定義
interface FaintSkyOptions {
baseUrl?: string;
fetch?: TileFetch;
maxTiles?: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
baseUrl (省略可) | string | undefined | The folder the tiles are in, with a closing slash: |
fetch (省略可) | TileFetch | undefined | The |
maxTiles (省略可) | number | undefined | How many decoded tiles to keep before the oldest is let go: 256 where left out (about 40 MB at the most). |
例
import type { FaintSkyOptions } from "@johnmorrisdotca/hoshi-stars/faint";
const options: FaintSkyOptions = { baseUrl: "/faint-tiles/", maxTiles: 128 };
console.log(options.baseUrl);/faint-tiles/出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。