SkyViewtype
The part of the screen names may use, in pixels. A name is kept only when the whole of it lies inside, margin pixels from each edge.
Import it
import type { SkyView } from "@johnmorrisdotca/hoshi-stars/sky-labels";
Definition
interface SkyView {
width: number;
height: number;
margin?: number;
}
Members
| Name | Type | Description |
|---|---|---|
width | number | |
height | number | |
margin (optional) | number | undefined | The space kept clear at each edge, in pixels. 4 by default. |
Examples
import type { SkyView } from "@johnmorrisdotca/hoshi-stars/sky-labels";
const view: SkyView = { width: 1280, height: 720, margin: 8 };
console.log(view.width);1280What it prints (run when this page was built)