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 · SVG board

SuidoViewerOptionstype

What a viewer may be asked for.

Import it

import type { SuidoViewerOptions } from "@johnmorrisdotca/suido/draw";

Definition

type SuidoViewerOptions = {
    onChange?: (view: SuidoView) => void;
    most?: number;
};

Members

NameTypeDescription
onChange (optional)((view: SuidoView) => void) | undefined

Told after every change of view.

most (optional)number | undefined

The most it zooms in. Default SUIDO_MOST_ZOOM.

Examples

import type { SuidoViewerOptions } from "@johnmorrisdotca/suido/draw";

const value: SuidoViewerOptions = {most:4,onChange:changed=>console.log(changed.zoom)};
console.log(value);
{ most: 4, onChange: [Function: onChange] }

What it prints (run when this page was built)

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