Skip to the content

Tsunagi繋ぎ

Join each pair with a separate line and fill the board, through fixed levels or seeded puzzles.

Tsunagi means joining in Japanese. About the name

Contents

Reference · Board element

TsunagiElementOptionstype

Host callbacks and custom drawing palettes, which cannot be put in an attribute.

Import it

import type { TsunagiElementOptions } from "@johnmorrisdotca/tsunagi/element";

Also exported from: @johnmorrisdotca/tsunagi/element/define

Definition

type TsunagiElementOptions = Pick<TsunagiMountOptions, "onChange" | "onStroke" | "onExplosion" | "onSolve"> & {
    colours?: readonly TsunagiColour[];
    board?: TsunagiBoardLook;
};

Members

NameTypeDescription
onChange (optional)((detail: TsunagiEventDetail) => void) | undefined
onStroke (optional)((detail: TsunagiEventDetail) => void) | undefined
onExplosion (optional)((detail: TsunagiEventDetail) => void) | undefined
onSolve (optional)((detail: TsunagiEventDetail) => void) | undefined
colours (optional)readonly TsunagiColour[] | undefined
board (optional)TsunagiBoardLook | undefined

Examples

import type { TsunagiElementOptions } from "@johnmorrisdotca/tsunagi/element";
const options: TsunagiElementOptions = {};
console.log(Object.keys(options).length); // 0
0

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tsunagi 1.7.0.