SheetOptionstype
What a sheet is drawn for: the room in millimetres, the language and the type.
Import it
import type { SheetOptions } from "@johnmorrisdotca/chikyu-earth/sheets";
Definition
interface SheetOptions {
widthMm: number;
heightMm: number;
lang?: Lang;
type?: TypeName;
}
Members
| Name | Type | Description |
|---|---|---|
widthMm | number | |
heightMm | number | |
lang (optional) | Lang | undefined | |
type (optional) | TypeName | undefined |
|
Examples
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("たいへいよう"));trueWhat it prints (run when this page was built)