Reference · Markers on the globe
OverlayPosetype
The pose of an element's last drawing, with the size of its box and the CSS transform its picture carries between redraws.
Import it
import type { OverlayPose } from "@johnmorrisdotca/chikyu-earth/markers";
Definition
interface OverlayPose extends Pose {
width: number;
height: number;
transform: string;
}
Members
| Name | Type | Description |
|---|---|---|
width | number | |
height | number | |
transform | string | |
lon | number | |
lat | number | |
radius | number | |
cx | number | |
cy | number |
Examples
import type { OverlayPose } from "@johnmorrisdotca/chikyu-earth/markers";
const where = (pose: OverlayPose): string => `${pose.lon}, ${pose.lat} at ${pose.width} x ${pose.height}`;
console.log(typeof where);functionWhat it prints (run when this page was built)