kidsSheetfunction
A printable colouring sheet: one .kazoku-sheet with one page holding the sheet's SVG, in kazoku-ui's print layout (add printCss(kidsLayout(id, options)) to the page, and print with printSheet).
Import it
import { kidsSheet } from "@johnmorrisdotca/wakusei-planets/sheets";
Definition
function kidsSheet(id: KidsSheet, options?: KidsOptions): HTMLElement
Parameters
| Name | Type | Description |
|---|---|---|
id | "sun" | "mercury" | "venus" | "earth" | "mars" | "jupiter" | "saturn" | "uranus" | "neptune" | "pluto" | "moon" | "io" | "europa" | "ganymede" | "callisto" | "titan" | "triton" | "charon" | "lineup" | A body with a sheet, or |
options (optional) | KidsOptions | The paper, the language, the date and the address for the QR code. |
Returns
HTMLElement
The sheet's element.
Examples
import { printCss, printSheet } from "@johnmorrisdotca/kazoku-ui/print";
import { kidsLayout, kidsSheet } from "@johnmorrisdotca/wakusei-planets/sheets";
const style = document.createElement("style");
style.textContent = printCss(kidsLayout("saturn", { page: "letter" }));
document.head.append(style);
const sheet = kidsSheet("saturn", { page: "letter" });
document.body.append(sheet);
printSheet(sheet);