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); // 00出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。