ScreenPointtype
A place on the page's screen, in pixels from its top left corner. The page's projection writes into one of these so that nothing is allocated for each star.
Import it
import type { ScreenPoint } from "@johnmorrisdotca/hoshi-stars/sky-labels";
Definition
interface ScreenPoint {
x: number;
y: number;
}
Members
| Name | Type | Description |
|---|---|---|
x | number | |
y | number |
Examples
import type { ScreenPoint } from "@johnmorrisdotca/hoshi-stars/sky-labels";
const spot: ScreenPoint = { x: 640, y: 360 };
console.log(spot.x, spot.y);640 360What it prints (run when this page was built)