DrawArrowsOptionstype
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 it
import type { DrawArrowsOptions } from "@johnmorrisdotca/meikyuu/draw";
Definition
type DrawArrowsOptions = MazeLook & {
present?: readonly boolean[];
unlocked?: boolean;
hint?: number | null;
language?: MeikyuuLanguage;
label?: string;
standalone?: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
board (optional) | MeikyuuBoardLook | "paper" | "wood" | "green" | "blue" | "red" | "black" | undefined | A board by name, or its colours. |
trail (optional) | "green" | "blue" | "red" | "violet" | "orange" | (string & {}) | undefined | The line's colour: one of the named ones, or any CSS colour. |
wall (optional) | number | undefined | The thickness of a wall, in cells. Default 0.12. |
line (optional) | number | undefined | The thickness of the line, in cells. Default 0.34. |
present (optional) | readonly boolean[] | undefined | Which arrows are still on the board; all of them when left out. |
unlocked (optional) | boolean | undefined | Whether the locked arrows have been unlocked. |
hint (optional) | number | null | undefined | An arrow to light as the hint. |
language (optional) | MeikyuuLanguage | undefined | |
label (optional) | string | undefined | |
standalone (optional) | boolean | undefined |
Examples
import type { DrawArrowsOptions } from "@johnmorrisdotca/meikyuu/draw";
const value: DrawArrowsOptions = {language:"en",label:"Sample arrows"};
console.log(value);{ language: 'en', label: 'Sample arrows' }What it prints (run when this page was built)