SeaName型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A name placed for one draw: its id, the text, and the box it takes.
インポート
import type { SeaName } from "@johnmorrisdotca/chikyu-earth/realistic";
定義
interface SeaName {
id: string;
kind: SeaFeature["kind"];
text: string;
left: number;
top: number;
width: number;
height: number;
size: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | |
kind | "ocean" | "continent" | "sea" | "gulf" | "bay" | |
text | string | |
left | number | |
top | number | |
width | number | |
height | number | |
size | number |
例
import type { SeaName } from "@johnmorrisdotca/chikyu-earth/realistic";
const say = (one: SeaName): string => one.text;
console.log(typeof say);function出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。