リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
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.
インポート
import { mergeElementSets } from "@johnmorrisdotca/chikyu-earth/door";
定義
function mergeElementSets(lists: readonly { id: string | null; sets: readonly ElementSet[]; }[]): { set: ElementSet; id: string | null; }[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
lists | readonly { id: string | null; sets: readonly ElementSet[]; }[] | Each list's sets, with the id of the source they came from ( |
戻り値
{ set: ElementSet; id: string | null; }[]
The sets, each with the id of the source it came from (an id of null means a set the page set itself, not one from a source).
例
import { mergeElementSets } from "@johnmorrisdotca/chikyu-earth/door";
console.log(mergeElementSets([]).length);0出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。