リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
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. It never throws: a source that fails is a failed read, and one the
signal aborted is aborted.
インポート
import { readElementSets } from "@johnmorrisdotca/chikyu-earth/door";
定義
function readElementSets(source: ElementRecordSource, signal: AbortSignal): Promise<ElementSetsRead>
引数
| 名前 | 型 | 説明 |
|---|---|---|
source | ElementRecordSource | The source. |
signal | AbortSignal | Aborts the read. |
戻り値
Promise<ElementSetsRead>
The element sets and the count left out.
例
import { readElementSets, type ElementRecordSource } from "@johnmorrisdotca/chikyu-earth/door";
declare const source: ElementRecordSource;
const read = await readElementSets(source, new AbortController().signal);
console.log(read.records.length, read.skipped);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。