TSUNAGI_EMBED_OPTION_KEYS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Every mounted-board option, kept complete by TypeScript and checked by the builder.
インポート
import { TSUNAGI_EMBED_OPTION_KEYS } from "@johnmorrisdotca/tsunagi/element";
ほかのエクスポート元: @johnmorrisdotca/tsunagi/element/define
定義
const TSUNAGI_EMBED_OPTION_KEYS: string[] = Object.keys({ size: true, givens: true, answer: true, level: true, set: true, lines: true, explosions: true, cheats: true, controls: true, chips: true, zoom: true, language: true, marks: true, fill: true, colours: true, board: true, coordinates: true, onChange: true, onStroke: true, onExplosion: true, onSolve: true } satisfies Record<keyof TsunagiMountOptions, boolean>)
例
import { TSUNAGI_EMBED_OPTION_KEYS } from "@johnmorrisdotca/tsunagi/element";
console.log(typeof TSUNAGI_EMBED_OPTION_KEYS); // objectobject出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。