Reach型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
HOW FAR A FINGER IS FROM THE END OF THE LINE IT DRAWS, in rows and columns, once that line has been through a portal. The line comes out of a portal far from the finger that went into the other, so a finger over a cell draws toward that cell moved by the reach: it starts at none and is set again each time the line goes through a portal or back over one, so that the finger is over the line's end from then on, and moving it a cell moves the end a cell.
インポート
import type { Reach } from "@johnmorrisdotca/tsunagi";
定義
type Reach = {
dr: number;
dc: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
dr | number | |
dc | number |
例
import type { Reach } from "@johnmorrisdotca/tsunagi";
const value: Reach = {dr:0,dc:1};
console.log(value);{ dr: 0, dc: 1 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。