Reference · Framing, geometry and quiz tools
wholeMapBoxfunction
The whole canvas as a window.
Import it
import { wholeMapBox } from "@johnmorrisdotca/chizu";
Definition
function wholeMapBox(map: Pick<ChizuMap, "width" | "height">): MapBox
Parameters
| Name | Type | Description |
|---|---|---|
map | Pick<ChizuMap, "width" | "height"> | The native map or map fields required by this signature; coordinates and region codes belong to its canvas. |
Returns
MapBox
The whole canvas as a window.
Examples
import WORLD from "@johnmorrisdotca/chizu/world";
import { wholeMapBox } from "@johnmorrisdotca/chizu";
console.log(wholeMapBox(WORLD));
// { x: 0, y: 0, width: 1000, height: 489 }{ x: 0, y: 0, width: 1000, height: 489 }What it prints (run when this page was built)