globeSheetSvgfunction
The globe as a colouring sheet: one side of the Earth as a big disc, the continents with thick outlines, the continents' and oceans' names written on them, and three facts under it. A view is the Americas, Europe and Africa, or Asia and Oceania.
widthMm and heightMm are the room it is drawn for, and the viewBox is that room, so a millimetre is a millimetre on paper.
Import it
import { globeSheetSvg } from "@johnmorrisdotca/chikyu-earth/sheets";
Definition
function globeSheetSvg(view: GlobeView, options: SheetOptions): string
Parameters
| Name | Type | Description |
|---|---|---|
view | "americas" | "europe-africa" | "asia-oceania" |
|
options | SheetOptions | The room, the language and the type. |
Returns
string
The <svg> markup.
Examples
import { globeSheetSvg } from "@johnmorrisdotca/chikyu-earth/sheets";
const svg = globeSheetSvg("europe-africa", { widthMm: 184.6, heightMm: 180, lang: "en" });
console.log(svg.includes("Africa"), svg.includes("Atlantic"));true trueWhat it prints (run when this page was built)