Reference · Framing, geometry and quiz tools
MapZoomtype
One of the native whole-number zoom steps from 1 to 10.
Import it
import type { MapZoom } from "@johnmorrisdotca/chizu";
Definition
type MapZoom = (typeof MAP_ZOOM_LEVELS)[number];
Examples
import { stepMapZoom, type MapZoom } from "@johnmorrisdotca/chizu";
const zoom: MapZoom = 2;
console.log(stepMapZoom(zoom, 1));
// 33What it prints (run when this page was built)