kazuCellName関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A cell as a screen reader names it: "row 3, column 5".
インポート
import { kazuCellName } from "@johnmorrisdotca/kazu/draw";
定義
function kazuCellName(size: number, index: number, language: KazuLanguage): string
引数
| 名前 | 型 | 説明 |
|---|---|---|
size | number | The supported square grid side length. |
index | number | The zero-based row-major cell index. |
language | KazuLanguage | The native English or Japanese display language. |
戻り値
string
A cell as a screen reader names it: "row 3, column 5".
例
import { kazuCellName } from "@johnmorrisdotca/kazu/draw";
console.log(kazuCellName(4,0,"en"));row 1, column 1出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。