TileBackOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How a back is drawn. Every field may be left out.
インポート
import type { TileBackOptions } from "@johnmorrisdotca/jarajara/faces";
定義
type TileBackOptions = {
colour?: string;
mark?: string;
title?: string;
design?: TileDesign;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
colour (省略可) | string | undefined | The back's colour as |
mark (省略可) | string | undefined | A few letters written across the middle of it, a site's name: at most 8 are drawn. |
title (省略可) | string | undefined | What a screen reader says. Unless said, "tile, face down". An empty string makes the picture decoration. |
design (省略可) | TileDesign | undefined | A design whose own back is drawn, for the names a design brings ( |
例
import type { TileBackOptions } from "@johnmorrisdotca/jarajara/faces";
const value: TileBackOptions = {colour:"#2f5d4a",mark:"中",title:"Tile back"};
console.log(value);{ colour: '#2f5d4a', mark: '中', title: 'Tile back' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。