@johnmorrisdotca/fuda-cards 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE.md +3 -1
- package/README.md +19 -28
- package/dist/collection-element.d.ts +9 -5
- package/dist/collection-element.js +1 -1
- package/dist/collection.d.ts +14 -0
- package/dist/collection.js +1 -1
- package/dist/materials.d.ts +1 -1
- package/dist/materials.js +63 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/docs/API.md +19 -5
- package/docs/collection-displays.md +4 -4
- package/docs/collection-input.md +5 -5
- package/docs/framework-integration.md +1 -1
- package/docs/guides/architecture.md +8 -8
- package/docs/guides/bundlers.md +2 -2
- package/docs/guides/card-element.md +24 -0
- package/docs/guides/collections.md +2 -2
- package/docs/guides/getting-started.md +1 -1
- package/docs/guides/html-and-cdn.md +19 -2
- package/docs/guides/ja/architecture.md +4 -4
- package/docs/guides/ja/bundlers.md +1 -1
- package/docs/guides/ja/card-element.md +24 -0
- package/docs/guides/ja/collections.md +2 -2
- package/docs/guides/ja/getting-started.md +1 -1
- package/docs/guides/ja/html-and-cdn.md +19 -2
- package/docs/guides/ja/live-3d.md +37 -24
- package/docs/guides/ja/materials-and-stacks.md +1 -1
- package/docs/guides/ja/upgrading.md +6 -1
- package/docs/guides/ja/wear.md +1 -1
- package/docs/guides/live-3d.md +37 -24
- package/docs/guides/materials-and-stacks.md +1 -1
- package/docs/guides/upgrading.md +6 -1
- package/docs/guides/wear.md +1 -1
- package/docs/live-3d.md +1 -18
- package/docs/materials.md +15 -11
- package/docs/wear.md +4 -12
- package/package.json +1 -1
|
@@ -43,6 +43,30 @@ The element is 300 px wide by default, `aspect-ratio: 2.5 / 3.5`, and every meas
|
|
|
43
43
|
|
|
44
44
|
The perspective for 3D turns is `--fuda-perspective` (default `1000px`). The edge colour is `--fuda-edge`, any CSS background; the default is gold for the classic frame and card-stock cream for the others. The drop shadow is on the element itself, so do not put a `filter` on anything between the card and its faces.
|
|
45
45
|
|
|
46
|
+
### Narrow vintage formats
|
|
47
|
+
|
|
48
|
+
Use CSS `aspect-ratio` to set the proportions of the card's face. These original baseball card layouts use sheet measurements from two Met objects. The 1887–90 Old Judge card measures 3.5 × 6.9 cm and the 1909–11 White Border card measures 3.7 × 6.7 cm. The stock in the example is Fuda's default black-core paper. Fuda still scales the drawn edge using its default 63 mm reference width. [Met record for Old Judge](https://collectionapi.metmuseum.org/public/collection/v1/objects/402300) · [Met record for White Border](https://collectionapi.metmuseum.org/public/collection/v1/objects/413225)
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<script type="module">import '@johnmorrisdotca/fuda-cards/element';</script>
|
|
52
|
+
<style>
|
|
53
|
+
.vintage-cards { display: flex; flex-wrap: wrap; align-items: start; gap: 1rem; }
|
|
54
|
+
.vintage-cards fuda-card { width: min(100%, 11rem); }
|
|
55
|
+
.vintage-cards .early-photo { aspect-ratio: 35 / 69; }
|
|
56
|
+
.vintage-cards .early-print { aspect-ratio: 37 / 67; }
|
|
57
|
+
.early-photo .field { background: radial-gradient(ellipse at 50% 70%, #a18562 28%, #565348 29% 58%, #c1aa83 59%); }
|
|
58
|
+
.early-print .field { background: radial-gradient(ellipse at 50% 70%, #b58958 28%, #536346 29% 58%, #bdceb7 59%); }
|
|
59
|
+
</style>
|
|
60
|
+
<div class="vintage-cards">
|
|
61
|
+
<fuda-card class="early-photo" title="Ballpark" subtitle="Infield" finish="matte">
|
|
62
|
+
<span class="field" aria-hidden="true"></span>
|
|
63
|
+
</fuda-card>
|
|
64
|
+
<fuda-card class="early-print" title="Ballpark" subtitle="Outfield" variant="sport" finish="matte">
|
|
65
|
+
<span class="field" aria-hidden="true"></span>
|
|
66
|
+
</fuda-card>
|
|
67
|
+
</div>
|
|
68
|
+
```
|
|
69
|
+
|
|
46
70
|
## Properties and methods
|
|
47
71
|
|
|
48
72
|
| Member | What it gives |
|
|
@@ -25,7 +25,7 @@ Import `@johnmorrisdotca/fuda-cards/collection-element` once, then set the `card
|
|
|
25
25
|
</script>
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
Assign an array of `CollectionCardInput` records or an object with a `cards` array. Each item needs a `name` and an `image` URL. Ids must be unique, and the parser uses the item's zero-based position when `id` is omitted. Reading the property returns normalised `CollectionCard` records with ids. The deck uses a navy back when `backImage` is omitted. The inspection dialog offers a back view when a back image is supplied.
|
|
29
29
|
|
|
30
30
|
## Check a list first
|
|
31
31
|
|
|
@@ -79,7 +79,7 @@ try { parseCollection([{ name: 'No picture' }]); } catch (error) { console.log((
|
|
|
79
79
|
|
|
80
80
|
## The address and theme
|
|
81
81
|
|
|
82
|
-
Add the boolean `address` attribute
|
|
82
|
+
Add the boolean `address` attribute to keep the display, view controls, fan, landing, Animate, Speed and binder options in the link. For example, `?view=binder&binder=zip&cover=navy&sheet=black&pockets=12` opens the same binder. `theme="light"` or `theme="dark"` sets the colours explicitly. By default they follow the reader's preference. `--fuda-stage-height` sets the view height, which defaults to the window height minus 440 px within a range of 300 to 620 px.
|
|
83
83
|
|
|
84
84
|
## Live 3D in a collection
|
|
85
85
|
|
|
@@ -42,7 +42,7 @@ A card has two faces and an edge. `flipped` shows the back; `thickness` is in mi
|
|
|
42
42
|
|
|
43
43
|
```html
|
|
44
44
|
<script type="module">import '@johnmorrisdotca/fuda-cards/element';</script>
|
|
45
|
-
<fuda-card title="
|
|
45
|
+
<fuda-card title="Thick card" thickness="1.5" flipped></fuda-card>
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
## A stack, and a card that has been used
|
|
@@ -51,7 +51,7 @@ unpkg serves the package's own files; `?module` makes it rewrite the imports so
|
|
|
51
51
|
|
|
52
52
|
## The collection and live 3D from a CDN
|
|
53
53
|
|
|
54
|
-
`<fuda-collection>`
|
|
54
|
+
`<fuda-collection>` uses kazoku-ui for its zoom bar. The jsDelivr bundle includes that dependency.
|
|
55
55
|
|
|
56
56
|
```html
|
|
57
57
|
<script type="importmap">
|
|
@@ -66,4 +66,21 @@ unpkg serves the package's own files; `?module` makes it rewrite the imports so
|
|
|
66
66
|
</script>
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
For live 3D, give the browser a URL for `@johnmorrisdotca/fuda-cards/live-3d` and for the `three` module passed to `createLiveCards`. See [Live 3D](live-3d.md) for the setup.
|
|
70
|
+
|
|
71
|
+
## Serve installed modules yourself
|
|
72
|
+
|
|
73
|
+
If you serve the installed packages, give the browser both module addresses before importing the collection. Serve each package's complete `dist` directory so relative imports can resolve.
|
|
74
|
+
|
|
75
|
+
```html
|
|
76
|
+
<script type="importmap">
|
|
77
|
+
{ "imports": {
|
|
78
|
+
"@johnmorrisdotca/fuda-cards/collection-element": "/node_modules/@johnmorrisdotca/fuda-cards/dist/collection-element.js",
|
|
79
|
+
"@johnmorrisdotca/kazoku-ui/view-controls/define": "/node_modules/@johnmorrisdotca/kazoku-ui/dist/view-controls/define.js"
|
|
80
|
+
} }
|
|
81
|
+
</script>
|
|
82
|
+
<script type="module">import '@johnmorrisdotca/fuda-cards/collection-element';</script>
|
|
83
|
+
<fuda-collection view="binder"></fuda-collection>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
For live 3D, also map `@johnmorrisdotca/fuda-cards/live-3d`, `@johnmorrisdotca/kazoku-ui/renderer` and `three` to their modules. [Live 3D](live-3d.md) · [Bundlers](bundlers.md) · [Frameworks](frameworks.md)
|
|
@@ -20,8 +20,8 @@ Fudaは、フレームワークも3Dエンジンも使わず、ESモジュール
|
|
|
20
20
|
## 各エントリーを支えるモジュール
|
|
21
21
|
|
|
22
22
|
- **`element.ts`**はカードを描きます。2つの面、薄い面を重ねた縁、画像のスロット、Animateボタンとパン、回転です。`materials.ts`と`stack.ts`をインポートし、残りは必要なときに読み込みます。登録するクラス`FudaCard`もエクスポートされるので、サブクラスや型に使えます。
|
|
23
|
-
- **`wear.ts`**(
|
|
24
|
-
- **`pile-card.ts`**(
|
|
23
|
+
- **`wear.ts`**(20.6 KB)は独立したモジュールで、カードに`wear`属性があるときだけ`import()`で読み込まれます。摩耗のないカードは、以前とまったく同じに描かれます。
|
|
24
|
+
- **`pile-card.ts`**(14.3 KB)は、`<fuda-card stack>`の扇、取り出し、脇の山を受け持ち、カードが`fan`、`taken-off`、`pile-controls`を求めたときだけ読み込まれます。
|
|
25
25
|
- **`pile.ts`**は、すべての山が共有するものです。着地、扇の配置、時間の扱い(`animate`、`speed`、動きの軽減)です。カードとコレクションの両方が使うので、山はどこでも同じように動きます。
|
|
26
26
|
- **`stack.ts`**は、一番上の下にあるカードを、シードから毎回同じように並べます(シード付きの小さな乱数生成器mulberry32)。
|
|
27
27
|
- **`materials.ts`**は、出典のある厚みの表と、山のプリセットです。
|
|
@@ -35,7 +35,7 @@ import { cardMaterials, stackLayout, wearLayout, wearLevels } from '@johnmorrisd
|
|
|
35
35
|
|
|
36
36
|
const levels = wearLevels({ wear: 'damaged' });
|
|
37
37
|
console.log(cardMaterials.length, stackLayout(11).length, Boolean(levels && wearLayout(levels, 1)));
|
|
38
|
-
//
|
|
38
|
+
// 17 10 true
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
## 描画
|
|
@@ -50,4 +50,4 @@ console.log(cardMaterials.length, stackLayout(11).length, Boolean(levels && wear
|
|
|
50
50
|
|
|
51
51
|
## テスト
|
|
52
52
|
|
|
53
|
-
`pnpm test`は、表と規則の単体テストを実行します。`pnpm test:e2e`は、ソフトウェア描画のヘッドレスChromiumを、デスクトップとスマートフォンの大きさで、1
|
|
53
|
+
`pnpm test`は、表と規則の単体テストを実行します。`pnpm test:e2e`は、ソフトウェア描画のヘッドレスChromiumを、デスクトップとスマートフォンの大きさで、1ファイルずつ動かします。`pnpm check`には単体テストが含まれます。ブラウザーのテストは別に実行し、CIでも確認します。[開発](../../../README.md#development)を参照してください。
|
|
@@ -43,6 +43,30 @@ console.log(options.variant, options.finish);
|
|
|
43
43
|
|
|
44
44
|
3Dで回すときの遠近は`--fuda-perspective`(初期値`1000px`)です。縁の色は`--fuda-edge`で、任意のCSS背景を指定できます。初期値は、classicの枠が金、ほかの枠がカード用紙のクリーム色です。ドロップシャドウは要素そのものに付いているので、カードとその面の間にある要素に`filter`を付けないでください。
|
|
45
45
|
|
|
46
|
+
### 昔の細長いカード
|
|
47
|
+
|
|
48
|
+
CSSの`aspect-ratio`でカードの表面の縦横比を指定できます。このオリジナルの野球カードの例は、メトロポリタン美術館が所蔵する2枚の実測寸法を使っています。1887〜1890年のOld Judgeは幅3.5 × 高さ6.9 cm、1909〜1911年のWhite Borderは幅3.7 × 高さ6.7 cmです。用紙はFudaの既定の黒芯用紙を使います。縁の描画に使う基準幅は既定の63 mmです。[Old Judgeの所蔵品情報](https://collectionapi.metmuseum.org/public/collection/v1/objects/402300) · [White Borderの所蔵品情報](https://collectionapi.metmuseum.org/public/collection/v1/objects/413225)(英語)
|
|
49
|
+
|
|
50
|
+
```html
|
|
51
|
+
<script type="module">import '@johnmorrisdotca/fuda-cards/element';</script>
|
|
52
|
+
<style>
|
|
53
|
+
.vintage-cards { display: flex; flex-wrap: wrap; align-items: start; gap: 1rem; }
|
|
54
|
+
.vintage-cards fuda-card { width: min(100%, 11rem); }
|
|
55
|
+
.vintage-cards .early-photo { aspect-ratio: 35 / 69; }
|
|
56
|
+
.vintage-cards .early-print { aspect-ratio: 37 / 67; }
|
|
57
|
+
.early-photo .field { background: radial-gradient(ellipse at 50% 70%, #a18562 28%, #565348 29% 58%, #c1aa83 59%); }
|
|
58
|
+
.early-print .field { background: radial-gradient(ellipse at 50% 70%, #b58958 28%, #536346 29% 58%, #bdceb7 59%); }
|
|
59
|
+
</style>
|
|
60
|
+
<div class="vintage-cards">
|
|
61
|
+
<fuda-card class="early-photo" title="球場" subtitle="内野" finish="matte">
|
|
62
|
+
<span class="field" aria-hidden="true"></span>
|
|
63
|
+
</fuda-card>
|
|
64
|
+
<fuda-card class="early-print" title="球場" subtitle="外野" variant="sport" finish="matte">
|
|
65
|
+
<span class="field" aria-hidden="true"></span>
|
|
66
|
+
</fuda-card>
|
|
67
|
+
</div>
|
|
68
|
+
```
|
|
69
|
+
|
|
46
70
|
## プロパティとメソッド
|
|
47
71
|
|
|
48
72
|
| メンバー | 内容 |
|
|
@@ -25,7 +25,7 @@ description: fuda-collectionでコレクション全体を10種類の表示で
|
|
|
25
25
|
</script>
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
`CollectionCardInput`の配列、または`cards`配列を持つオブジェクトを代入します。各項目には`name`と`image`のURLが必要です。IDは重複できず、`id`を省略すると0から数えた位置が使われます。プロパティを読み取ると、IDが付いた正規化済みの`CollectionCard`の配列が返ります。`backImage`を省略すると、デッキでは紺色の裏面を使います。裏面画像を指定すると、詳細画面で裏面を表示できます。
|
|
29
29
|
|
|
30
30
|
## 先に一覧を検査する
|
|
31
31
|
|
|
@@ -79,7 +79,7 @@ try { parseCollection([{ name: 'No picture' }]); } catch (error) { console.log((
|
|
|
79
79
|
|
|
80
80
|
## URLとテーマ
|
|
81
81
|
|
|
82
|
-
真偽値の`address
|
|
82
|
+
真偽値の`address`属性を付けると、表示の種類、表示操作の設定、扇、着地、アニメーションのオン・オフと速度、バインダーの設定がURLに保存されます。たとえば、`?view=binder&binder=zip&cover=navy&sheet=black&pockets=12`を開くと、同じ設定のバインダーが表示されます。`theme="light"`か`theme="dark"`で配色を指定できます。初期設定では閲覧者の設定に従います。`--fuda-stage-height`で表示の高さを指定できます。初期値はウィンドウの高さから440 pxを引いた値で、300〜620 pxの範囲に収まります。
|
|
83
83
|
|
|
84
84
|
## コレクションでのライブ3D
|
|
85
85
|
|
|
@@ -42,7 +42,7 @@ npm install @johnmorrisdotca/fuda-cards
|
|
|
42
42
|
|
|
43
43
|
```html
|
|
44
44
|
<script type="module">import '@johnmorrisdotca/fuda-cards/element';</script>
|
|
45
|
-
<fuda-card title="
|
|
45
|
+
<fuda-card title="厚手のカード" thickness="1.5" flipped></fuda-card>
|
|
46
46
|
```
|
|
47
47
|
|
|
48
48
|
## カードの山と、使い込んだカード
|
|
@@ -51,7 +51,7 @@ unpkgはパッケージのファイルをそのまま配信します。`?module`
|
|
|
51
51
|
|
|
52
52
|
## CDNから使うコレクションとライブ3D
|
|
53
53
|
|
|
54
|
-
`<fuda-collection
|
|
54
|
+
`<fuda-collection>`はズームバーにkazoku-uiを使います。jsDelivrのバンドルにはその依存パッケージが含まれます。
|
|
55
55
|
|
|
56
56
|
```html
|
|
57
57
|
<script type="importmap">
|
|
@@ -66,4 +66,21 @@ unpkgはパッケージのファイルをそのまま配信します。`?module`
|
|
|
66
66
|
</script>
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
ライブ3Dを使うには、`@johnmorrisdotca/fuda-cards/live-3d`と、`createLiveCards`に渡す`three`モジュールのURLを指定します。[ライブ3D](live-3d.md)に設定方法があります。
|
|
70
|
+
|
|
71
|
+
## インストールしたモジュールを自分で配信する
|
|
72
|
+
|
|
73
|
+
インストール済みのパッケージを配信する場合は、コレクションをインポートする前に、両方のモジュールのURLをブラウザーに知らせます。相対インポートを解決できるように、各パッケージの`dist`ディレクトリ全体を配信してください。
|
|
74
|
+
|
|
75
|
+
```html
|
|
76
|
+
<script type="importmap">
|
|
77
|
+
{ "imports": {
|
|
78
|
+
"@johnmorrisdotca/fuda-cards/collection-element": "/node_modules/@johnmorrisdotca/fuda-cards/dist/collection-element.js",
|
|
79
|
+
"@johnmorrisdotca/kazoku-ui/view-controls/define": "/node_modules/@johnmorrisdotca/kazoku-ui/dist/view-controls/define.js"
|
|
80
|
+
} }
|
|
81
|
+
</script>
|
|
82
|
+
<script type="module">import '@johnmorrisdotca/fuda-cards/collection-element';</script>
|
|
83
|
+
<fuda-collection view="binder"></fuda-collection>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
ライブ3Dを使う場合は、`@johnmorrisdotca/fuda-cards/live-3d`、`@johnmorrisdotca/kazoku-ui/renderer`、`three`のモジュールもインポートマップに追加します。[ライブ3D](live-3d.md) · [バンドラー](bundlers.md) · [フレームワーク](frameworks.md)
|
|
@@ -11,26 +11,48 @@ description: 1つのWebGLコンテキストで、同時に1枚のカードだけ
|
|
|
11
11
|
|
|
12
12
|
`three`は利用側で用意します。省略可能なピア依存(`>=0.160.0`)で、最初にフォーカスされたとき、`load`に渡した関数が読み込みます。
|
|
13
13
|
|
|
14
|
-
```ts no-
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
```ts no-run
|
|
15
|
+
import '@johnmorrisdotca/fuda-cards/element';
|
|
16
|
+
import { type FudaCollection } from '@johnmorrisdotca/fuda-cards/collection-element';
|
|
17
|
+
import '@johnmorrisdotca/fuda-cards/collection-element';
|
|
18
|
+
import { createLiveCards, type LiveItem } from '@johnmorrisdotca/fuda-cards/live-3d';
|
|
18
19
|
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const live = createLiveCards({ load: () => import('three') });
|
|
21
|
+
const block: LiveItem<typeof import('three')> = {
|
|
22
|
+
key: 'block',
|
|
23
|
+
build({ three, width, height }) {
|
|
22
24
|
const scene = new three.Scene();
|
|
23
|
-
const camera = new three.PerspectiveCamera(30, width / height, 0.01,
|
|
24
|
-
const
|
|
25
|
+
const camera = new three.PerspectiveCamera(30, width / height, 0.01, 100);
|
|
26
|
+
const geometry = new three.BoxGeometry(1, 2, 1);
|
|
27
|
+
const material = new three.MeshNormalMaterial();
|
|
28
|
+
const object = new three.Mesh(geometry, material);
|
|
25
29
|
scene.add(object);
|
|
26
30
|
camera.position.z = 5;
|
|
27
|
-
return {
|
|
31
|
+
return {
|
|
32
|
+
scene, camera, object,
|
|
33
|
+
resize(w, h) {
|
|
34
|
+
camera.aspect = w / h;
|
|
35
|
+
camera.updateProjectionMatrix();
|
|
36
|
+
},
|
|
37
|
+
dispose() {
|
|
38
|
+
geometry.dispose();
|
|
39
|
+
material.dispose();
|
|
40
|
+
},
|
|
41
|
+
};
|
|
28
42
|
},
|
|
29
43
|
};
|
|
30
44
|
|
|
31
|
-
const card = document.querySelector('fuda-card')
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
const card = document.querySelector<HTMLElement>('fuda-card');
|
|
46
|
+
if (card) {
|
|
47
|
+
card.tabIndex = 0;
|
|
48
|
+
live.add(card, block, { still: card.querySelector('img') ?? undefined });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const collection = document.querySelector<FudaCollection>('fuda-collection');
|
|
52
|
+
if (collection) {
|
|
53
|
+
collection.cards = [{ id: 'block', name: 'Block', image: '/cards/block.jpg' }];
|
|
54
|
+
collection.live = { cards: live, item: (card) => card.id === 'block' ? block : undefined };
|
|
55
|
+
}
|
|
34
56
|
```
|
|
35
57
|
|
|
36
58
|
`item.build`は、シーン、カメラ、そして`object`(縦軸のまわりで回るもの)を返します。複数のカードで共有するジオメトリ、マテリアル、テクスチャ、モデルは、すべて`assets.acquire`を通して取得してください。実体が1つだけ保たれます([共有レンダラーのガイド](https://github.com/johnmorrisdotca/kazoku-ui/blob/main/docs/renderer.md)を参照)。
|
|
@@ -51,16 +73,7 @@ const off = live.add(card, rocket, { still: card.querySelector('img') as HTMLIma
|
|
|
51
73
|
|
|
52
74
|
## コレクションの中で
|
|
53
75
|
|
|
54
|
-
|
|
55
|
-
import '@johnmorrisdotca/fuda-cards/collection-element';
|
|
56
|
-
import { createLiveCards } from '@johnmorrisdotca/fuda-cards/live-3d';
|
|
57
|
-
|
|
58
|
-
const live = createLiveCards({ load: () => import('three') });
|
|
59
|
-
const collection = document.querySelector('fuda-collection') as HTMLElement & { live: unknown };
|
|
60
|
-
collection.live = { cards: live, item: (card: { id: string }) => ({ key: card.id, build: async () => { throw new Error('make your scene here'); } }) };
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
どの表示でも、フォーカスされたカードがライブになります。
|
|
76
|
+
この例では、カード枠とコレクションで1つのコントローラーを使います。静止画を子要素に持つ`<fuda-card>`か`<fuda-collection>`をページに追加し、`/cards/block.jpg`を静止画のパスに置き換えてください。`item`コールバックはIDが一致する項目のシーンを返します。ほかの項目は元の画像を表示します。ビューアーをページから取り外すときは`live.dispose()`を呼び出します。
|
|
64
77
|
|
|
65
78
|
## ルール
|
|
66
79
|
|
|
@@ -72,4 +85,4 @@ collection.live = { cards: live, item: (card: { id: string }) => ({ key: card.id
|
|
|
72
85
|
|
|
73
86
|
## テストで守る予算
|
|
74
87
|
|
|
75
|
-
`pnpm test:freeze`(`test/e2e/live-3d.e2e.mjs`)が次の項目を守ります。フォーカスを30回変えてもWebGLコンテキストは1つで、キャンバスも1つまで。静止中の2秒間は、描画0回、フレーム要求0回、フレームコールバック0回で、画面外や非表示のタブでも同様。最初の1巡のあとでGPUオブジェクトが増えない。ピクセル比2の5120×2880の画面で、キャンバスが600万ピクセル以内、1辺4096以内。最初のフォーカスの前に、`three`、レンダラー、モデルを取得しない。`dist/live-3d.js`は
|
|
88
|
+
`pnpm test:freeze`(`test/e2e/live-3d.e2e.mjs`)が次の項目を守ります。フォーカスを30回変えてもWebGLコンテキストは1つで、キャンバスも1つまで。静止中の2秒間は、描画0回、フレーム要求0回、フレームコールバック0回で、画面外や非表示のタブでも同様。最初の1巡のあとでGPUオブジェクトが増えない。ピクセル比2の5120×2880の画面で、キャンバスが600万ピクセル以内、1辺4096以内。最初のフォーカスの前に、`three`、レンダラー、モデルを取得しない。`dist/live-3d.js`は9.0 KB、gzipで2.7 KBです。テストはソフトウェア描画で行うので、数の確認はできても、実際のGPUについては何も証明しません。フレーム時間、ドライバーの挙動、GPUメモリは測っていません。[ライブ3Dのデモ](https://johnmorrisdotca.github.io/fuda-cards/demo/live-3d.html)で試せます。
|
|
@@ -20,7 +20,7 @@ Fudaのカードには厚みがあり、カードの山の高さは、枚数に
|
|
|
20
20
|
<fuda-card title="Metal" material="steel-0.5"></fuda-card>
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
素材はカード用紙、プラスチック、厚手のトレーディングカード、金属の4グループです。プラスチックにはトランプ用の`plastic-pvc-0.31`があります。金属には`brass-0.5`(真ちゅう)、`copper-0.5`(銅)、`titanium-0.8`(チタン)があります。各素材の厚みと出典は表にまとめています。[素材と出典](../../materials.md)(英語)
|
|
24
24
|
|
|
25
25
|
```ts
|
|
26
26
|
import { cardMaterials, mmPerPoint } from '@johnmorrisdotca/fuda-cards';
|
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
title: アップグレード
|
|
3
3
|
section: upgrading
|
|
4
4
|
order: 13
|
|
5
|
-
description: 0.1から0.
|
|
5
|
+
description: 0.1から0.11までの変更と、以前のバージョンの設定を引き継ぐ方法を説明します。
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
このパッケージは初期開発中(0.x)で、マイナーリリースごとにインターフェースが増えることがあります。このページには、対応が必要なものだけを書きます。日付つきの完全な記録は[変更履歴](../../../CHANGELOG.md)にあります。
|
|
9
9
|
|
|
10
|
+
## 0.11へ
|
|
11
|
+
|
|
12
|
+
- カードの初期の厚みは0.3 mmから0.325 mmになりました。以前の厚みを使うには`thickness="0.3"`を指定します。初期設定で52枚を重ねた山の高さは16.9 mmです。
|
|
13
|
+
- `@johnmorrisdotca/kazoku-ui`は`^0.12.0`になりました。インポートマップで以前のバージョンを指定している場合は、kazoku-uiのURLを更新してください。[HTMLとCDN](html-and-cdn.md)
|
|
14
|
+
|
|
10
15
|
## 0.10へ
|
|
11
16
|
|
|
12
17
|
- `@johnmorrisdotca/kazoku-ui`は`^0.10.0`です。ズームバーは、本当のズーム値を1つの数字(`1.3×`)で示すようになりました。以前の`2×`は数字のように見えるプリセットでした。数字を押すとFitに戻ります。バーの基本は、角度、自動回転、ズーム、Fitで、**More**で傾き、正面、矢印パッドが加わります。
|
package/docs/guides/ja/wear.md
CHANGED
|
@@ -60,4 +60,4 @@ console.log(wearLevels({ wear: 'perfect' }));
|
|
|
60
60
|
| 変色としみ | 縁に向かう黄褐色の暗がり。強く使うと柔らかいしみ。 | `lightly-played`以上 |
|
|
61
61
|
| 中心ずれ | 印刷が、幅300 pxで最大横7 px、縦5 pxずれる。 | すべて |
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
プリセットは描画の設定です。[摩耗の資料](../../wear.md)(英語)に、各プリセットの値と、TCGplayerの販売時の状態区分やPSAのグレード基準へのリンクがあります。コレクションの画像や、山の一番上より下のカードには元の画像や枠がそのまま表示されます。
|
package/docs/guides/live-3d.md
CHANGED
|
@@ -11,26 +11,48 @@ A shelf of fifty cards cannot each hold a WebGL context: every card live was mea
|
|
|
11
11
|
|
|
12
12
|
`three` is yours: an optional peer dependency (`>=0.160.0`), loaded by the function you give as `load` at the first focus.
|
|
13
13
|
|
|
14
|
-
```ts no-
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
```ts no-run
|
|
15
|
+
import '@johnmorrisdotca/fuda-cards/element';
|
|
16
|
+
import { type FudaCollection } from '@johnmorrisdotca/fuda-cards/collection-element';
|
|
17
|
+
import '@johnmorrisdotca/fuda-cards/collection-element';
|
|
18
|
+
import { createLiveCards, type LiveItem } from '@johnmorrisdotca/fuda-cards/live-3d';
|
|
18
19
|
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const live = createLiveCards({ load: () => import('three') });
|
|
21
|
+
const block: LiveItem<typeof import('three')> = {
|
|
22
|
+
key: 'block',
|
|
23
|
+
build({ three, width, height }) {
|
|
22
24
|
const scene = new three.Scene();
|
|
23
|
-
const camera = new three.PerspectiveCamera(30, width / height, 0.01,
|
|
24
|
-
const
|
|
25
|
+
const camera = new three.PerspectiveCamera(30, width / height, 0.01, 100);
|
|
26
|
+
const geometry = new three.BoxGeometry(1, 2, 1);
|
|
27
|
+
const material = new three.MeshNormalMaterial();
|
|
28
|
+
const object = new three.Mesh(geometry, material);
|
|
25
29
|
scene.add(object);
|
|
26
30
|
camera.position.z = 5;
|
|
27
|
-
return {
|
|
31
|
+
return {
|
|
32
|
+
scene, camera, object,
|
|
33
|
+
resize(w, h) {
|
|
34
|
+
camera.aspect = w / h;
|
|
35
|
+
camera.updateProjectionMatrix();
|
|
36
|
+
},
|
|
37
|
+
dispose() {
|
|
38
|
+
geometry.dispose();
|
|
39
|
+
material.dispose();
|
|
40
|
+
},
|
|
41
|
+
};
|
|
28
42
|
},
|
|
29
43
|
};
|
|
30
44
|
|
|
31
|
-
const card = document.querySelector('fuda-card')
|
|
32
|
-
|
|
33
|
-
|
|
45
|
+
const card = document.querySelector<HTMLElement>('fuda-card');
|
|
46
|
+
if (card) {
|
|
47
|
+
card.tabIndex = 0;
|
|
48
|
+
live.add(card, block, { still: card.querySelector('img') ?? undefined });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
const collection = document.querySelector<FudaCollection>('fuda-collection');
|
|
52
|
+
if (collection) {
|
|
53
|
+
collection.cards = [{ id: 'block', name: 'Block', image: '/cards/block.jpg' }];
|
|
54
|
+
collection.live = { cards: live, item: (card) => card.id === 'block' ? block : undefined };
|
|
55
|
+
}
|
|
34
56
|
```
|
|
35
57
|
|
|
36
58
|
`item.build` returns a scene, a camera and `object`, the thing that turns about its upright axis. Take every geometry, material, texture and model through `assets.acquire` when several cards share them, so one copy is kept ([the shared renderer's guide](https://github.com/johnmorrisdotca/kazoku-ui/blob/main/docs/renderer.md) explains it).
|
|
@@ -51,16 +73,7 @@ Options: `turnSeconds` (12 seconds for a turn; 0 does not turn it), `dwellMs` (1
|
|
|
51
73
|
|
|
52
74
|
## In a collection
|
|
53
75
|
|
|
54
|
-
|
|
55
|
-
import '@johnmorrisdotca/fuda-cards/collection-element';
|
|
56
|
-
import { createLiveCards } from '@johnmorrisdotca/fuda-cards/live-3d';
|
|
57
|
-
|
|
58
|
-
const live = createLiveCards({ load: () => import('three') });
|
|
59
|
-
const collection = document.querySelector('fuda-collection') as HTMLElement & { live: unknown };
|
|
60
|
-
collection.live = { cards: live, item: (card: { id: string }) => ({ key: card.id, build: async () => { throw new Error('make your scene here'); } }) };
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Every display then goes live on the card in focus.
|
|
76
|
+
The example uses one controller for a framed card and a collection. Add a `<fuda-card>` with a slotted still image or a `<fuda-collection>` to your page and replace `/cards/block.jpg` with the path to your poster. The `item` callback returns the scene for the matching id. Other items keep their pictures. Call `live.dispose()` when removing the viewer from the page.
|
|
64
77
|
|
|
65
78
|
## The rules
|
|
66
79
|
|
|
@@ -72,4 +85,4 @@ Every display then goes live on the card in focus.
|
|
|
72
85
|
|
|
73
86
|
## Budgets, held by a test
|
|
74
87
|
|
|
75
|
-
`pnpm test:freeze` (`test/e2e/live-3d.e2e.mjs`) holds these: 1 WebGL context over 30 focus changes, never more than one canvas; 0 draws, 0 frame requests and 0 frame callbacks over 2 seconds at rest; none while out of sight or in a hidden tab; GPU objects that do not grow after the first round; a canvas within 6 megapixels and 4096 a side on a 5120 by 2880 screen at ratio 2; and no `three`, renderer or model fetched before the first focus. `dist/live-3d.js` is
|
|
88
|
+
`pnpm test:freeze` (`test/e2e/live-3d.e2e.mjs`) holds these: 1 WebGL context over 30 focus changes, never more than one canvas; 0 draws, 0 frame requests and 0 frame callbacks over 2 seconds at rest; none while out of sight or in a hidden tab; GPU objects that do not grow after the first round; a canvas within 6 megapixels and 4096 a side on a 5120 by 2880 screen at ratio 2; and no `three`, renderer or model fetched before the first focus. `dist/live-3d.js` is 9.0 KB, 2.7 KB gzipped. The tests draw in software, so they prove the counts and nothing about a real GPU: frame times, driver behaviour and GPU memory are not measured. Try it in the [live 3D demo](https://johnmorrisdotca.github.io/fuda-cards/demo/live-3d.html).
|
|
@@ -20,7 +20,7 @@ A Fuda card has a thickness, and a stack of cards is as high as its count times
|
|
|
20
20
|
<fuda-card title="Metal" material="steel-0.5"></fuda-card>
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Fuda groups the materials into paper, plastic, thick trading-card stock and metal. The plastic choices include `plastic-pvc-0.31` for playing cards. The metal choices include `brass-0.5`, `copper-0.5` and `titanium-0.8`. The materials table lists each thickness and its source. [Sourced materials](../materials.md)
|
|
24
24
|
|
|
25
25
|
```ts
|
|
26
26
|
import { cardMaterials, mmPerPoint } from '@johnmorrisdotca/fuda-cards';
|
package/docs/guides/upgrading.md
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
title: Upgrading
|
|
3
3
|
section: upgrading
|
|
4
4
|
order: 13
|
|
5
|
-
description: What changed
|
|
5
|
+
description: What changed from 0.1 to 0.11 and how to keep settings from earlier versions.
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
The package is in early development (0.x), and each minor release can add to the interface. This page lists only what asks something of you. The complete record, dated, is in the [changelog](../../CHANGELOG.md).
|
|
9
9
|
|
|
10
|
+
## To 0.11
|
|
11
|
+
|
|
12
|
+
- The default card thickness is 0.325 mm, previously 0.3 mm. Set `thickness="0.3"` to keep the old thickness. A 52-card stack that uses the default is now 16.9 mm high.
|
|
13
|
+
- `@johnmorrisdotca/kazoku-ui` is now `^0.12.0`. Update the kazoku-ui URL if your import map pins an earlier version. See [HTML and CDN](html-and-cdn.md).
|
|
14
|
+
|
|
10
15
|
## To 0.10
|
|
11
16
|
|
|
12
17
|
- `@johnmorrisdotca/kazoku-ui` is `^0.10.0`. The zoom bar now shows one number, the true zoom (`1.3×`), where the old `2×` preset read like a number; a press on it goes back to Fit. The bar's basic level is angle, Auto-turn, zoom and Fit, and **More** adds tilt, Front and the arrow pad.
|
package/docs/guides/wear.md
CHANGED
|
@@ -60,4 +60,4 @@ console.log(wearLevels({ wear: 'perfect' }));
|
|
|
60
60
|
| Toning and staining | A yellow-brown darkening towards the edges, and from heavy wear a soft stain. | `lightly-played` and up |
|
|
61
61
|
| Centering | The print sits off centre by up to 7 px across and 5 px down, at 300 px wide. | Any |
|
|
62
62
|
|
|
63
|
-
The
|
|
63
|
+
The presets control the drawing. [Wear reference](../wear.md) lists the settings and links to TCGplayer's marketplace conditions and PSA's grade descriptions. The collection viewer and the cards under the top of a stack use their original images or frames.
|
package/docs/live-3d.md
CHANGED
|
@@ -6,24 +6,7 @@ Why it exists: every card live was measured at 41 WebGL contexts (16 alive, the
|
|
|
6
6
|
|
|
7
7
|
## Use
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
import { createLiveCards } from '@johnmorrisdotca/fuda-cards/live-3d';
|
|
11
|
-
|
|
12
|
-
const live = createLiveCards({ load: () => import('three') }); // loads nothing yet
|
|
13
|
-
|
|
14
|
-
const rocket = {
|
|
15
|
-
key: 'rocket:starship', // cards with the same key share their pictures
|
|
16
|
-
async build({ three, assets, width, height }) {
|
|
17
|
-
const gltf = await assets.acquire('glb:starship', () => new GLTFLoader().loadAsync(url), (loading) => loading.then((g) => disposeDeep(g.scene)));
|
|
18
|
-
const object = gltf.scene.clone(true); // shares the geometry and the materials
|
|
19
|
-
const scene = new three.Scene(); scene.add(object /* and lights */);
|
|
20
|
-
const camera = new three.PerspectiveCamera(30, width / height, 0.01, 1000);
|
|
21
|
-
return { scene, camera, object, resize: (w, h) => { camera.aspect = w / h; camera.updateProjectionMatrix(); } };
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const off = live.add(card, rocket, { still: card.querySelector('img') });
|
|
26
|
-
```
|
|
9
|
+
The live 3D guide shows a complete scene, a single card and a collection. The rocket demo shows how to share loaded models. [Live 3D guide](guides/live-3d.md) · [Rocket demo source](../demo/live-3d.js)
|
|
27
10
|
|
|
28
11
|
- `add(card, item, { still })` works on a `<fuda-card>` or any element with a size, and gives back the function that takes it off. `still` is a picture the card already has: with one, the card costs no 3D code until it is in focus. Without one, the renderer makes its picture when the card comes within `lookAheadPx` of the view, one at a time.
|
|
29
12
|
- `item.build` is a kazoku-ui item plus `object`, what turns about its upright axis. Take every geometry, material, texture and model through `assets.acquire`.
|
package/docs/materials.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Card materials and stacks
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The table records nominal thicknesses from makers and published standards. Holder ratings are maximum capacities. The card sizes and material choices were first documented on 2026-11-02. The PVC and metal additions and updated sources were checked on 2026-12-06.
|
|
4
4
|
|
|
5
|
-
**Units.** `pt`
|
|
5
|
+
**Units.** Card stock uses `pt` for one thousandth of an inch, or 0.0254 mm. Convert point sizes by multiplying by 0.0254 mm per point. [NIST, SI Units — Length](https://www.nist.gov/pml/owm/si-units-length)
|
|
6
6
|
|
|
7
|
-
Use
|
|
7
|
+
Use `material="<id>"` to set the thickness and the edge colour. `thickness` in millimetres overrides the material, and `--fuda-edge` overrides the colour. The default without a material or thickness is 0.325 mm, the listed black-core playing-card thickness.
|
|
8
8
|
|
|
9
9
|
| id | Material | Thickness (mm) | Source | What the source says |
|
|
10
10
|
|---|---|---|---|---|
|
|
@@ -12,6 +12,7 @@ Use a material with `material="<id>"`. It sets the card's thickness and the colo
|
|
|
12
12
|
| `paper-310-black-core` | Playing-card stock, black core, 310 gsm (13 pt) | 0.325 | [Qin Printing, Custom Playing Card Printing](https://www.qinprinting.com/poker-card-printing/) | Black Core Paper, 310gsm, 0.325mm, 13pt |
|
|
13
13
|
| `paper-350` | Heavy card stock, 350 gsm (16 pt) | 0.405 | [Qin Printing, Custom Playing Card Printing](https://www.qinprinting.com/poker-card-printing/) | Premium Cardstock, 350gsm, 0.405mm, 16pt |
|
|
14
14
|
| `plastic-id1` | Plastic bank-size card (ID-1, PVC) | 0.76 | [ISO/IEC 7810 ID-1, as summarised on Wikipedia](https://en.wikipedia.org/wiki/ISO/IEC_7810) | "All card sizes have a thickness of 760±80 μm." Payment cards are generally PVC (Wikipedia, Payment card). |
|
|
15
|
+
| `plastic-pvc-0.31` | Matte PVC playing-card stock | 0.31 | [Kuo Kau Paper Products, Custom Plastic Poker Cards](https://www.kkplayingcard.com/en/product-713063/Custom-Plastic-Playing-Cards-with-P107-Poker-Size-Plastic-Box-Chocolate-Brand-Promotional-Tool-CPA027P107-A-CPA031P107-A.html) | White matte PVC, 0.31 mm. |
|
|
15
16
|
| `card-35pt` | Thick trading card, 35 pt | 0.889 | [Ultra PRO, 35PT ONE-TOUCH Magnetic Holder](https://ultrapro.com/products/35pt-uv-one-touch-magnetic-holders-5ct) | holds standard cards (2-1/2" x 3-1/2") up to 35pt in thickness |
|
|
16
17
|
| `card-55pt` | Thick trading card, 55 pt | 1.397 | [Ultra PRO, 55PT ONE-TOUCH Magnetic Holder](https://ultrapro.com/products/55pt-uv-one-touch-magnetic-holder) | holds standard cards (2-1/2" x 3-1/2") up to 55pt in thickness |
|
|
17
18
|
| `card-75pt` | Thick trading card, 75 pt | 1.905 | [Ultra PRO, 75PT ONE-TOUCH Magnetic Holder](https://ultrapro.com/products/75pt-uv-one-touch-magnetic-holder) | holds standard cards (2-1/2" x 3-1/2") up to 75pt in thickness |
|
|
@@ -19,19 +20,22 @@ Use a material with `material="<id>"`. It sets the card's thickness and the colo
|
|
|
19
20
|
| `card-130pt` | Thick trading card, 130 pt | 3.302 | [Ultra PRO, 130PT ONE-TOUCH Magnetic Holder](https://ultrapro.com/products/130pt-uv-one-touch-magnetic-holder) | holds standard cards (2-1/2" x 3-1/2") up to 130pt in thickness |
|
|
20
21
|
| `card-180pt` | Thick trading card, 180 pt | 4.572 | [Ultra PRO, 180PT ONE-TOUCH Magnetic Holder](https://ultrapro.com/products/180pt-uv-one-touch-magnetic-holder) | holds standard cards (2-1/2" x 3-1/2") up to 180pt in thickness |
|
|
21
22
|
| `booklet-175pt` | Booklet card, 175 pt | 4.445 | [Ultra PRO, 175PT Vertical Booklet Card ONE-TOUCH Magnetic Holder](https://ultrapro.com/products/175pt-vertical-booklet-card-uv-one-touch-magnetic-holder) | "Sized to fit Vertical Booklets up to 175pt thickness" |
|
|
22
|
-
| `aluminium-0.8` | Anodised aluminium card, 0.8 mm | 0.8 | [
|
|
23
|
+
| `aluminium-0.8` | Anodised aluminium card, 0.8 mm | 0.8 | [Foison Metal, Blank Metal Business Cards](https://www.foismetal.com/product/blank-metal-business-cards-wholesale/) | The maker lists anodised aluminium among the options for its 85 × 54 × 0.8 mm blanks. |
|
|
23
24
|
| `steel-0.5` | Stainless steel card, 0.5 mm | 0.5 | [My Metal Business Card, Metal Business Card Thickness Guide](https://mymetalbusinesscard.com/blog/metal-business-card-thickness-guide/) | "our standard metal business card thickness is 0.5mm"; "A 0.5mm stainless steel business card" |
|
|
25
|
+
| `brass-0.5` | Brass card | 0.5 | [Pure Metal Cards, Standard Brass Cards](https://www.puremetalcards.com/order-cards/brass-gold-cards/standard-brass-gold-cards/) | The maker lists brass as the metal and offers a 0.5 mm thickness. |
|
|
26
|
+
| `copper-0.5` | Copper card | 0.5 | [Pure Metal Cards, Copper Brushed Cards](https://www.puremetalcards.com/order-cards/copper-cards/copper-brushed-cards/) | The maker offers brushed copper cards in 0.5 mm. |
|
|
27
|
+
| `titanium-0.8` | Titanium card | 0.8 | [Pure Metal Cards, Brushed Titanium Cards](https://www.puremetalcards.com/order-cards/titanium-cards/brushed-titanium-cards/) | The maker specifies 0.8 mm for brushed titanium cards. |
|
|
24
28
|
|
|
25
29
|
How to read the table:
|
|
26
30
|
|
|
27
31
|
- The three paper stocks are a card printer's published calipers for playing-card and card stock. A real deck varies by maker and finish.
|
|
28
32
|
- The thick trading cards by point size (`card-35pt` to `card-180pt`) take the largest thickness Ultra PRO says its holder for that size holds ("up to"). A card sold as a given point size is at most that thick. A holder's limit is the maker's own number for a card of that size; it is not a measurement of one particular card.
|
|
29
|
-
- `plastic-id1` is the bank-card standard, 760 ± 80 µm
|
|
30
|
-
- The
|
|
33
|
+
- `plastic-id1` is the bank-card standard, 760 ± 80 µm. The PVC playing-card option has its own maker specification of 0.31 mm.
|
|
34
|
+
- The metal presets select one maker-listed thickness for each material. To use another thickness with the same edge colour, set `thickness` alongside `material`.
|
|
31
35
|
|
|
32
|
-
|
|
36
|
+
Patch or relic cards and graded-card slabs need a reliable measurement for the item itself before they can be added.
|
|
33
37
|
|
|
34
|
-
A
|
|
38
|
+
A 52-card stack of 250 gsm stock at 0.28 mm is about 14.6 mm high. The same stack in the default 0.325 mm black-core stock is 16.9 mm high.
|
|
35
39
|
|
|
36
40
|
## Stacks
|
|
37
41
|
|
|
@@ -39,10 +43,10 @@ A check on the paper numbers: 52 cards come to 52 x 0.28 = 14.6 mm (250 gsm), 52
|
|
|
39
43
|
|
|
40
44
|
| id | Preset | Cards | Source | What the source says |
|
|
41
45
|
|---|---|---|---|---|
|
|
42
|
-
| `deck-52` | Playing cards, 52 | 52 | [
|
|
43
|
-
| `deck-54` | Playing cards with two jokers, 54 | 54 | [
|
|
46
|
+
| `deck-52` | Playing cards, 52 | 52 | [Bicycle Cards, Basics of Poker](https://bicyclecards.com/how-to-play/basics-of-poker) | Standard poker pack. |
|
|
47
|
+
| `deck-54` | Playing cards with two jokers, 54 | 54 | [Bicycle Cards, Basics of Poker](https://bicyclecards.com/how-to-play/basics-of-poker) | Standard 52-card pack with two additional jokers. |
|
|
44
48
|
| `pokemon-deck` | Pokémon TCG deck, 60 | 60 | [Wikipedia, Pokémon Trading Card Game](https://en.wikipedia.org/wiki/Pok%C3%A9mon_Trading_Card_Game) | players "play with 60-card decks" |
|
|
45
|
-
| `pokemon-booster` | Booster pack, about 10 | 10 | [
|
|
49
|
+
| `pokemon-booster` | Booster pack, about 10 | 10 | [The Pokémon Company, Sun & Moon—Forbidden Light release](https://press.pokemon.com/en/releases/LATEST-EXPANSION-OF-THE-POKEMON-TRADING-CARD-GAME-SUN-MOONFORBIDDEN-LI) | A booster from this expansion has 10 expansion cards plus a Basic Energy card. The preset counts the expansion cards. |
|
|
46
50
|
|
|
47
51
|
How a stack is drawn (one 3D context, no loop):
|
|
48
52
|
|