Reference · Markers on the globe
PlaceLabelSpottype
Where one place's name goes: which place it is and the top-left corner of its box.
Import it
import type { PlaceLabelSpot } from "@johnmorrisdotca/chikyu-earth/markers";
Definition
interface PlaceLabelSpot {
index: number;
left: number;
top: number;
}
Members
| Name | Type | Description |
|---|---|---|
index | number | |
left | number | |
top | number |
Examples
import type { PlaceLabelSpot } from "@johnmorrisdotca/chikyu-earth/markers";
const spot: PlaceLabelSpot = { index: 0, left: 120, top: 80 };
console.log(spot.left);120What it prints (run when this page was built)