Reference · Framing, geometry and quiz tools
mapWrapsAroundfunction
Whether this map's east and west edges are the same edge.
Import it
import { mapWrapsAround } from "@johnmorrisdotca/chizu";
Definition
function mapWrapsAround(map: Pick<ChizuMap, "wraps">): boolean
Parameters
| Name | Type | Description |
|---|---|---|
map | Pick<ChizuMap, "wraps"> | The native map or map fields required by this signature; coordinates and region codes belong to its canvas. |
Returns
boolean
Whether this map's east and west edges are the same edge.
Examples
import WORLD from "@johnmorrisdotca/chizu/world";
import { loadCountry } from "@johnmorrisdotca/chizu/load";
import { mapWrapsAround } from "@johnmorrisdotca/chizu";
console.log(mapWrapsAround(WORLD), mapWrapsAround((await loadCountry("fr"))!));
// true falsetrue falseWhat it prints (run when this page was built)