SUGOROKU_COLOUR_NAMES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The names of the colours, as the custom properties spell them (--sg- and the name in kebab case).
インポート
import { SUGOROKU_COLOUR_NAMES } from "@johnmorrisdotca/sugoroku/draw";
定義
const SUGOROKU_COLOUR_NAMES: readonly (keyof SugorokuColours)[] = [
"frame",
"felt",
"pointA",
"pointB",
"bar",
"tray",
"white",
"whiteEdge",
"black",
"blackEdge",
"number",
"selected",
"target",
"die",
"pip",
"cube",
"cubeInk",
]
例
import { SUGOROKU_COLOUR_NAMES } from "@johnmorrisdotca/sugoroku/draw";
console.log(SUGOROKU_COLOUR_NAMES);[
'frame', 'felt',
'pointA', 'pointB',
'bar', 'tray',
'white', 'whiteEdge',
'black', 'blackEdge',
'number', 'selected',
'target', 'die',
'pip', 'cube',
'cubeInk'
]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。