リファレンス · 子ども向けのぬりえ: 太陽・惑星・大きな衛星を太い線の絵にして、本当の色と3つのことがらをつけます。すべての惑星を同じ縮尺で一列にならべた絵も。英語と日本語
kidsSheet関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { kidsSheet } from "@johnmorrisdotca/wakusei-planets/sheets";
定義
function kidsSheet(id: KidsSheet, options?: KidsOptions): HTMLElement
引数
| 名前 | 型 | 説明 |
|---|---|---|
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 (省略可) | KidsOptions | The paper, the language, the date and the address for the QR code. |
戻り値
HTMLElement
The sheet's element.
例
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);この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。