PieceGroup型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A GUIDE TO EVERY PIECE. Each entry is a piece of Suido and a tiny board with just that piece on it, drawn by the package's own
drawSuido (drawGuidePiece in @johnmorrisdotca/suido/draw), so the guide on a page, in the README and in docs/PIECES.md
shows what a board shows. Five groups:
turn the pieces a tap turns: ground, an end, a straight, an elbow, a tee, a cross
water where the water starts and where it must end: a pump, a drain, and the two joined
twist what a board adds to a piece or to an edge: a locked piece, a wall, edges that join
big big pieces: a square of four cells that is one piece, with one, two or three separate pipes inside
block a block that turns as one: four ordinary pieces that a tap turns togetherインポート
import type { PieceGroup } from "@johnmorrisdotca/suido";
定義
type PieceGroup = "turn" | "water" | "twist" | "big" | "block";
例
import type { PieceGroup } from "@johnmorrisdotca/suido";
const value: PieceGroup = "turn";
console.log(value);turn出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。