本文へ移動

Toranpuトランプ

デッキを使い、11種類のゲームでコンピューターと対戦し、ソリティアを解いたり、独自の絵柄でカードを表示したりできます。

「トランプ」は、日本語で playing cards を指す言葉です。 名前について(英語)

目次

リファレンス · カード・手札・山札

PartOptions型

リファレンスの説明と例は英語です。見出しと目次は日本語です。

How a parted hand is laid out.

インポート

import type { PartOptions } from "@johnmorrisdotca/toranpu/element";

ほかのエクスポート元: @johnmorrisdotca/toranpu/element/define

定義

type PartOptions = {
    gap?: number;
    lift?: number;
    peek?: number;
};

メンバー

名前型説明
gap (省略可)number | undefined

The room left on each side of the parted card, in card widths. Unless said, 0.12.

lift (省略可)number | undefined

How far the parted card is lifted above the rest, in card widths. Unless said, 0.2.

peek (省略可)number | undefined

The least the cards of a group may lie apart, squared up as they close in. Unless said, 0.04.

例

import type { PartOptions } from "@johnmorrisdotca/toranpu/element";

const value: PartOptions = { gap: 30, lift: 10 };
console.log(value.gap);
30

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/toranpu 2.15.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。