ShikakuDrawOptionstype
Current Shikaku marks or entries, selection, errors and native SVG appearance choices.
Import it
import type { ShikakuDrawOptions } from "@johnmorrisdotca/kazu/draw";
Also exported from: @johnmorrisdotca/kazu/play, @johnmorrisdotca/kazu/shikaku/play, @johnmorrisdotca/kazu/shikaku/draw
Definition
type ShikakuDrawOptions = {
rectangles?: ShikakuGame["rectangles"];
selected?: number | null;
anchor?: number | null;
errors?: readonly number[];
material?: ShikakuMaterial;
pieces?: ShikakuPieces;
language?: ShikakuLanguage;
};
Members
| Name | Type | Description |
|---|---|---|
rectangles (optional) | readonly ShikakuRectangle[] | undefined | |
selected (optional) | number | null | undefined | |
anchor (optional) | number | null | undefined | |
errors (optional) | readonly number[] | undefined | |
material (optional) | ShikakuMaterial | undefined | |
pieces (optional) | ShikakuPieces | undefined | |
language (optional) | ShikakuLanguage | undefined |
Examples
import type { ShikakuDrawOptions } from "@johnmorrisdotca/kazu/draw";
const value: ShikakuDrawOptions = {language:"en"};
console.log(value);{ language: 'en' }What it prints (run when this page was built)