リファレンス
データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
import { … } from "@johnmorrisdotca/chikyu-earth/door";
リファレンスの説明と例は英語です。見出しと目次は日本語です。
エクスポート
| 名前 | 種類 | 概要 |
|---|---|---|
BitmapLike | 型 | What a picture needs of its bitmap: an ImageBitmap fits. |
createSourceBook | 関数 | Makes the sources of one view. |
createTileStore | 関数 | A tile store for a view: loads the tiles of every source by key and keeps them under one budget of bytes (default 48 MB, all sources together). |
Credit | 型 | One source's part in the last drawn frame. |
creditLine | 関数 | The credit line for what a view drew: each source's credit with its licence name, and "non-commercial" or "share-alike" whenever the source says so, so a page cannot hide the terms of the data it uses. |
creditsOf | 関数 | The credits of a view for the last drawn frame: the package's own first, then the sources a caller added, each with the marks or tiles it gave; a source that gave none is left out. |
DataSource | 型 | Either kind of source. |
DEFAULT_LEVELS | 定数 | The levels a source has when it does not say: levels 3 and 4 (8192 and 16384 pixels across), the two the package's cutter makes beyond its own 4096 pixel picture. |
EarthMapPlace | 型 | The place a map source is asked about: the family's MapPlace in degrees (longitude from lonMin to lonMax, which may pass 180 and is at most a whole turn, latitude from latMin to latMax), and the layer it is for. |
EarthMapSource | 型 | A source of the Earth's map in tiles for one layer (or every layer of a folder): a TileSource of the family's map shape (the place is a MapPlace, the detail is the pixels across the whole circumference, a tile is an ImageTile) that says which layer it is for. |
earthTiles | 関数 | The package's own finer map tiles as a source: a folder with a manifest.json and a tile for each layer, level and place at <layer>/<level>/<column>/<row>.webp (made by scripts/make-earth-tiles.py). |
EarthTilesOptions | 型 | What earthTiles takes. |
ElementRecordSource | 型 | A source of satellites' orbital elements: a list that fits in memory (at most 200,000 sets), read once when the source is added, each an ElementSet. |
ElementSetsRead | 型 | What readElementSets found: the frozen element sets that can be used, and skipped, the ones left out for a number that is not finite, a name that is not text or an orbit that is not an ellipse. |
elementsFrom | 関数 | A source of element sets read from an address of your choosing, with whose data it is. |
GIBS_CREDIT | 定数 | The acknowledgement NASA asks a client to show, in their words (English, read 2026-11-13). |
GIBS_ID | 定数 | The id of the source gibsTiles makes. |
GIBS_SLOW_MS | 定数 | How long a tile is given to arrive before the coarser picture is left as it is and the tile is not asked for again while it stays in view. |
gibsGrid | 関数 | The Geographic (EPSG:4326) tile matrix NASA's imagery service publishes, read from its capabilities on 2026-11-13. |
gibsTiles | 関数 | A map source that reads NASA's imagery service directly. |
GibsTilesOptions | 型 | What gibsTiles takes. |
gridKey | 関数 | The key of the tile that holds a point, [<prefix>]level/column/row, or undefined when no tile holds it. |
gridKeys | 関数 | The keys of the tiles that cover a place at a detail. |
gridLevelFor | 関数 | The level of a grid whose width is at least detail pixels across a full turn, or the finest level when none is, or undefined when the grid has no level wider than minWidth. |
gridOnEarth | 関数 | The part of a tile that lies on the Earth, or undefined when the tile misses the Earth entirely. |
gridPastExtent | 関数 | True when the tile runs past the Earth's extent (a coarse level's tile is wider than the Earth). |
gridSpan | 関数 | The longitude and latitude a tile covers, before it is cut to the Earth. |
gridTileAt | 関数 | The column and row of the tile that holds a point, or undefined when the point is off the Earth or the tile that would hold it misses the Earth. |
imageBytes | 関数 | What a decoded picture holds in memory, with its mipmaps (4/3 of its bytes): the bytes of a map source. |
ImageTile | 型 | A map tile: its size in pixels and its picture. |
Licence | 型 | A licence: its name and a link are always shown beside the credit. |
loadRecords | 関数 | Reads a record source once, when it is added: the list is frozen, a record with a non-finite number (a NaN or an infinity in any number finite names) is skipped and counted, and a list over MAX_RECORDS is refused whole (bigger data must be tiles). |
MapGrid | 型 | The grid a map source declares when it is not the package's pyramid: the tile size, the Earth's extent in degrees, and one entry per level. |
MapGridLevel | 型 | One level of a source's own grid. |
mapKeys | 関数 | The keys of the tiles that cover a place at a detail, on the package's pyramid: the level is the lowest whose width is at least detail pixels round (or the finest there is), and the tiles are every one the place touches. |
MapLayer | 型 | What a map source draws: day and night are the Earth's pictures, which the realistic Earth lays tiles over; clouds and water are the door's for the whole-Earth layers they are, which the package does not tile or draw yet. |
MapPlace | 型 | A piece of a map, in degrees: longitude and latitude (right ascension and declination for the sky). |
MAX_IN_FLIGHT | 定数 | The most loads in flight at once for one source. |
MAX_RECORDS | 定数 | The most records a record source may hold. |
mergeElementSets | 関数 | The element sets of several lists as one, one set for each satellite: where two lists have the same NORAD number the set with the newer epoch wins, and a tie goes to the list that came first. |
OWN_SOURCES | 定数 | The package's own data, as sources, written from the rows of NOTICE.md: chikyu-pictures (the whole-Earth pictures of the realistic Earth: day, night, clouds and water) and chikyu-tiles (the finer map tiles cut from NASA's bigger maps). |
ownCredit | 関数 | The credit of one of the package's own sources, for a page that draws something itself: the elements credit their own pictures and tiles in credits(), and a page that draws the Earth from the package's pictures puts ownCredit("chikyu-pictures", 1) in its credit line. |
packedElementsFrom | 関数 | A source of element sets read from a packed catalogue file (packCatalogue, gzipped or not) at an address you choose: up to 200,000 objects, six-digit catalogue numbers included. |
PackedElementsOptions | 型 | What packedElementsFrom can be told. |
previousUtcDay | 関数 | The UTC day before ms. |
readElementSets | 関数 | Reads a source of element sets once: the list is frozen, a set that cannot be used is left out and counted, and a list of more than 200,000 is refused whole. |
readPackedFrom | 関数 | Ask an address for a packed catalogue file once and read it. |
RecordSource | 型 | A list that fits in memory (at most MAX_RECORDS records; bigger data must be tiles). |
RecordsRead | 型 | What loadRecords found. |
samplesAreBlank | 関数 | True when every sampled pixel is black, which is the picture the service returns for a day it has no swath for (a 200, not a 404). |
SourceBook | 型 | A view's sources, as <chikyu-earth-realistic> and <chikyu-passes> keep them: addSource, removeSource, enableSource and ownOnly are the element's methods of the same names. |
SourceBookOptions | 型 | Options of a view's source book. |
SourceInfo | 型 | What a source says about itself. |
SourceStats | 型 | What a view's sources have done: for each record source how many records it holds and how many were left out. |
TILE_BUDGET_BYTES | 定数 | The default budget for decoded tiles in a view, all sources together: 48 MB (a picture counts with its mipmaps, 4/3 of its bytes). |
tileKeyParts | 関数 | The level, column and row a tile key ends in, or undefined for a key that does not end in three numbers. |
TileLoader | 型 | The part of a tile source the store uses. |
tilePlace | 関数 | The place a tile covers, in degrees: what a view asks a source about to get that tile's key. |
TileSource | 型 | Data cut by place and by detail. |
TileStats | 型 | What a tile store has done. |
TileStore | 型 | A tile store: tiles by source and key, under one byte budget. |
TileStoreOptions | 型 | Options for createTileStore. |
utcDay | 関数 | The UTC day yyyy-mm-dd of a moment. |
validateSource | 関数 | Refuses a source that cannot be shown honestly: it throws a TypeError at once, when a source is added, not at the first draw. |
wrapLon | 関数 | Fold a longitude into the half-open range from -180 up to, but not including, 180. |
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。