Skip to the content

Suido水道

Turn pipes to connect the pumps and drains, through fixed levels or seeded puzzles.

Suido means water supply in Japanese. About the name

Contents

Reference · Board element

SuidoElementOptionstype

Host callbacks; the same actions also emit native events.

Import it

import type { SuidoElementOptions } from "@johnmorrisdotca/suido/element";

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

Definition

type SuidoElementOptions = Pick<SuidoMountOptions, "onChange" | "onTurn" | "onHint" | "onTurning" | "onSolve">;

Members

NameTypeDescription
onChange (optional)((detail: SuidoEventDetail) => void) | undefined
onTurn (optional)((detail: SuidoEventDetail) => void) | undefined
onHint (optional)((detail: SuidoEventDetail) => void) | undefined
onTurning (optional)((turning: SuidoTurning) => void) | undefined

Told when the way a tap turns is changed, by the board's own button or by set.

onSolve (optional)((detail: SuidoEventDetail) => void) | undefined

Examples

import type { SuidoElementOptions } from "@johnmorrisdotca/suido/element";
const options: SuidoElementOptions = {};
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/suido 1.7.0.