import { type GlobeView } from "./text.ts"; import { type Lang, type TypeName } from "./common.ts"; /** * What a sheet is drawn for: the room in millimetres, the language and the type. * * @example * ```ts * import { worldMapSvg, type SheetOptions } from "@johnmorrisdotca/chikyu-earth/sheets"; * * const options: SheetOptions = { widthMm: 184.6, heightMm: 170, lang: "ja", type: "kid" }; * console.log(worldMapSvg(options).includes("たいへいよう")); * ``` */ export interface SheetOptions { widthMm: number; heightMm: number; lang?: Lang; /** `kid` (default): thick lines and big type. `normal`: thin lines and small type. */ type?: TypeName; } /** * 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. * @param view - `americas`, `europe-africa` or `asia-oceania`. * @param options - The room, the language and the type. * @returns The `` markup. * * @example * ```ts * 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")); * ``` */ export declare function globeSheetSvg(view: GlobeView, options: SheetOptions): string; /** * The world map as a colouring sheet: all the land on one flat map, the continents with thick outlines, the names of the continents and of the five oceans written on it, and three facts. * @param options - The room, the language and the type. * @returns The `` markup. * * @example * ```ts * import { worldMapSvg } from "@johnmorrisdotca/chikyu-earth/sheets"; * * const svg = worldMapSvg({ widthMm: 184.6, heightMm: 180, lang: "en" }); * console.log(svg.includes("Pacific")); * ``` */ export declare function worldMapSvg(options: SheetOptions): string;