tileBackSvg関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One tile's back on its own, as a whole <svg> in the same box as tileSvg: the back plate over a solid block, its
thickness showing on two sides (the back plate's own colour, with the ivory layer beyond it). With flat, the old
look (a sliver of side in 32 by 42) and with bare the back alone in 30 by 40, for a page that gives the tile its
thickness itself. Null for a name that is no back drawn here and no design to bring it.
インポート
import { tileBackSvg } from "@johnmorrisdotca/jarajara/faces";
定義
function tileBackSvg(name?: TileBackName, options?: TileBackOptions & { flat?: boolean; bare?: boolean; mirror?: TileMirror; }): string | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
name (省略可) | TileBackName | The local seat name, back name or design name specified by this signature. |
options (省略可) | TileBackOptions & { flat?: boolean; bare?: boolean; mirror?: TileMirror; } | Native game, SVG, sound or presentation options. |
戻り値
string | null
A complete SVG back string, or null for a name without a supported back.
例
import { tileBackSvg } from "@johnmorrisdotca/jarajara/faces";
console.log(tileBackSvg("jade")?.startsWith("<svg"));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。