DrawArrowsOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
AN ARROW BOARD AS SVG TEXT: a faint dot on every cell of the picture, and each arrow on it as a
line through its cells with a head at the end it points from. One unit is one cell. Each arrow is a
group with data-id, data-dir and data-locked, so a page can find the one under a finger; the
style (MEIKYUU_STYLE) gives it its colour and its motion. A locked arrow is grey, dashed, and has a
padlock at its tail.
インポート
import type { DrawArrowsOptions } from "@johnmorrisdotca/meikyuu/draw";
定義
type DrawArrowsOptions = MazeLook & {
present?: readonly boolean[];
unlocked?: boolean;
hint?: number | null;
language?: MeikyuuLanguage;
label?: string;
standalone?: boolean;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
board (省略可) | MeikyuuBoardLook | "paper" | "wood" | "green" | "blue" | "red" | "black" | undefined | A board by name, or its colours. |
trail (省略可) | "green" | "blue" | "red" | "violet" | "orange" | (string & {}) | undefined | The line's colour: one of the named ones, or any CSS colour. |
wall (省略可) | number | undefined | The thickness of a wall, in cells. Default 0.12. |
line (省略可) | number | undefined | The thickness of the line, in cells. Default 0.34. |
present (省略可) | readonly boolean[] | undefined | Which arrows are still on the board; all of them when left out. |
unlocked (省略可) | boolean | undefined | Whether the locked arrows have been unlocked. |
hint (省略可) | number | null | undefined | An arrow to light as the hint. |
language (省略可) | MeikyuuLanguage | undefined | |
label (省略可) | string | undefined | |
standalone (省略可) | boolean | undefined |
例
import type { DrawArrowsOptions } from "@johnmorrisdotca/meikyuu/draw";
const value: DrawArrowsOptions = {language:"en",label:"Sample arrows"};
console.log(value);{ language: 'en', label: 'Sample arrows' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。