Skip to the content

Kazu数

Generate checked Sudoku and logic puzzles, read native rules and hints, and draw or embed playable boards.

Kazu is the Japanese word 数 for number. About the name

Contents

Reference · Regions rules

RegionsDrawOptionstype

Current Regions marks or entries, selection, errors and native SVG appearance choices.

Import it

import type { RegionsDrawOptions } from "@johnmorrisdotca/kazu/regions";

Also exported from: @johnmorrisdotca/kazu/regions/play, @johnmorrisdotca/kazu/regions/draw, @johnmorrisdotca/kazu

Definition

type RegionsDrawOptions = {
    entries?: readonly number[];
    errors?: readonly number[];
    selected?: number | null;
    material?: RegionsMaterial;
    pieces?: RegionsPieces;
    language?: RegionsLanguage;
};

Members

NameTypeDescription
entries (optional)readonly number[] | undefined
errors (optional)readonly number[] | undefined
selected (optional)number | null | undefined
material (optional)RegionsMaterial | undefined
pieces (optional)RegionsPieces | undefined
language (optional)RegionsLanguage | undefined

Examples

import type { RegionsDrawOptions } from "@johnmorrisdotca/kazu/regions";

const value: RegionsDrawOptions = {language:"en"};
console.log(value);
{ language: 'en' }

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kazu 2.1.0.