kazuGeometry関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Where everything is in the drawing of a puzzle of this kind and side.
インポート
import { kazuGeometry } from "@johnmorrisdotca/kazu/draw";
定義
function kazuGeometry(kind: KazuKind, size: number): KazuGeometry
引数
| 名前 | 型 | 説明 |
|---|---|---|
kind | "number-place" | "jigsaw" | "diagonal" | "sum-cages" | "more-or-less" | "towers" | The native number-grid puzzle key. |
size | number | The supported square grid side length. |
戻り値
KazuGeometry
Where everything is in the drawing of a puzzle of this kind and side.
例
import { kazuGeometry } from "@johnmorrisdotca/kazu/draw";
console.log(kazuGeometry("number-place",4).centre(0));{ x: 60, y: 60 }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。