SCRAMBLE_ELEMENT_ATTRIBUTES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The attributes the element reads. Changing any draws the cube afresh, except pace and paused, which change the loop alone.
インポート
import { SCRAMBLE_ELEMENT_ATTRIBUTES } from "@johnmorrisdotca/kyuubu/element";
定義
const SCRAMBLE_ELEMENT_ATTRIBUTES: readonly ["size", "pace", "paused", "scale", "width", "theme", "faces", "interactive", "seed", "lang"] = [
"size",
"pace",
"paused",
"scale",
"width",
"theme",
"faces",
"interactive",
"seed",
"lang",
] as const
例
import { SCRAMBLE_ELEMENT_ATTRIBUTES } from "@johnmorrisdotca/kyuubu/element";
console.log(SCRAMBLE_ELEMENT_ATTRIBUTES);[
'size', 'pace',
'paused', 'scale',
'width', 'theme',
'faces', 'interactive',
'seed', 'lang'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。