Reference · The realistic Earth's pure parts
TileCameratype
Where the camera is, as the realistic Earth draws it: the place in the middle of the disc, the box in CSS pixels, the pan, and the disc's radius in CSS pixels.
Import it
import type { TileCamera } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
interface TileCamera {
lon: number;
lat: number;
width: number;
height: number;
panX: number;
panY: number;
radius: number;
perspective?: TilePerspective;
}
Members
| Name | Type | Description |
|---|---|---|
lon | number | |
lat | number | |
width | number | |
height | number | |
panX | number | |
panY | number | |
radius | number | |
perspective (optional) | TilePerspective | undefined | A camera of the space view, which has a real place and a perspective, in place of the disc: when given, |
Examples
import type { TileCamera } from "@johnmorrisdotca/chikyu-earth/realistic";
const camera: TileCamera = { lon: 10, lat: 20, width: 800, height: 600, panX: 0, panY: 0, radius: 900 };
console.log(camera.radius);900What it prints (run when this page was built)