本文へ移動

Tsunagi繋ぎ

同じ印の2つを別々の線で結び、盤を埋めます。収録された問題やシード付きの問題で遊べます。

「つなぎ」は、物をつなぐことを表す言葉です。 名前について(英語)

目次

リファレンス · 盤の要素

TsunagiElementOptions型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

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

インポート

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

ほかのエクスポート元: @johnmorrisdotca/tsunagi/element/define

定義

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

メンバー

名前型説明
onChange (省略可)((detail: TsunagiEventDetail) => void) | undefined
onStroke (省略可)((detail: TsunagiEventDetail) => void) | undefined
onExplosion (省略可)((detail: TsunagiEventDetail) => void) | undefined
onSolve (省略可)((detail: TsunagiEventDetail) => void) | undefined
colours (省略可)readonly TsunagiColour[] | undefined
board (省略可)TsunagiBoardLook | undefined

例

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

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/tsunagi 1.7.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。