colourProperty関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The custom property a colour is set on.
インポート
import { colourProperty } from "@johnmorrisdotca/sugoroku/draw";
定義
function colourProperty(name: keyof SugorokuColours): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
name | keyof SugorokuColours | The colour property, preset name or sound identifier specified by this signature. |
戻り値
string
The custom property a colour is set on.
例
import { colourProperty } from "@johnmorrisdotca/sugoroku/draw";
console.log(colourProperty("pointA"));--sg-point-a出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。