リファレンス
暗い星 (UCAC4の約300万個、12等まで。見ている空の部分のタイルだけを読み込みます)
import { … } from "@johnmorrisdotca/hoshi-stars/faint";
最小化と gzip 圧縮をしたサイズは 5.9 kB(読み込むものをすべて含み、esbuild で計測)
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
decodeFaintTile | 関数 | Decode a tile file: n stars as six planes of n bytes (the step in declination, low and high byte; right ascension, low and high; magnitude; colour), the stars sorted by declination; n is the length over six. |
FAINT_LEVELS | 定数 | The tile levels, brightest first. |
FAINT_LIMIT | 定数 | The faintest magnitude in the tiles. |
FAINT_TILES_URL | 定数 | Where the tiles are by default: the package's GitHub Pages site. |
FaintField | 型 | A round patch of sky, in degrees: its middle and its radius. |
faintGrid | 関数 | How many bands and how many tiles a level has. |
faintSky | 関数 | Make the loader for the faint stars. |
FaintSky | 型 | The faint stars of a page: loads the tiles a patch of sky needs, and answers from the ones it has. |
FaintSkyOptions | 型 | What faintSky takes. |
FaintStar | 型 | One faint star. |
faintStarsIn | 関数 | The stars of some decoded tiles that lie in a round patch of sky and are as bright as a limit, brightest first. |
faintStarsWithTiles | 関数 | The stars of some decoded tiles that lie in a round patch of sky and are as bright as a limit, brightest first, and the tile each came from. |
FaintTile | 型 | A tile, decoded: the stars of one tile as parallel arrays, sorted by declination. |
faintTileBounds | 関数 | The sky a tile covers: right ascension and declination from and to, in degrees. |
FaintTileId | 型 | A tile: its level, its band of declination (0 at the south pole) and its column along the band (0 at right ascension 0). |
faintTilePath | 関数 | Where a tile's file is, under the folder that holds the tiles: L2/17-12.bin. |
faintTilesFor | 関数 | The tiles that cover a round patch of sky, for stars to a magnitude: every tile of the levels that hold stars that bright whose rectangle the patch may touch. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。