Reference · The realistic Earth's pure parts
SeaNametype
A name placed for one draw: its id, the text, and the box it takes.
Import it
import type { SeaName } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
interface SeaName {
id: string;
kind: SeaFeature["kind"];
text: string;
left: number;
top: number;
width: number;
height: number;
size: number;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
kind | "ocean" | "continent" | "sea" | "gulf" | "bay" | |
text | string | |
left | number | |
top | number | |
width | number | |
height | number | |
size | number |
Examples
import type { SeaName } from "@johnmorrisdotca/chikyu-earth/realistic";
const say = (one: SeaName): string => one.text;
console.log(typeof say);functionWhat it prints (run when this page was built)