PileLayoutOptions型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How a pile is laid out.
インポート
import type { PileLayoutOptions } from "@johnmorrisdotca/toranpu/element";
ほかのエクスポート元: @johnmorrisdotca/toranpu/element/define
定義
type PileLayoutOptions = {
messiness?: number;
seed?: number;
depth?: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
messiness (省略可) | number | undefined | From 0 (squared up neatly) to 1 (very messy). Unless said, 0.3. |
seed (省略可) | number | undefined | The pile's own seed: the same seed always lays the same pile the same way. Unless said, 1. |
depth (省略可) | number | undefined | How many cards under the top one are drawn at most, so a pile of fifty-two costs no more than one of ten. Unless said, 10. |
例
import type { PileLayoutOptions } from "@johnmorrisdotca/toranpu/element";
const value: PileLayoutOptions = { seed: 42, depth: 10, messiness: 0.5 };
console.log(value.seed);42出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。