@cardenelabs/cdl 0.57.0 → 0.58.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/CHANGELOG.md +38 -1
- package/dist/index.cjs +247 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +247 -92
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +225 -72
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.cts +1 -1
- package/dist/react.d.ts +1 -1
- package/dist/react.js +225 -72
- package/dist/react.js.map +1 -1
- package/dist/{render-Cp41meYv.d.cts → render-DpwY2hzM.d.cts} +39 -1
- package/dist/{render-Cp41meYv.d.ts → render-DpwY2hzM.d.ts} +39 -1
- package/package.json +9 -12
- package/src/builder.ts +7 -0
- package/src/index.ts +6 -0
- package/src/kinds/shape-blockchain.tsx +40 -22
- package/src/kinds/shape-commerce.tsx +24 -12
- package/src/kinds/shape-finance.tsx +25 -17
- package/src/kinds/shape-software.tsx +30 -11
- package/src/lang.ts +168 -0
- package/src/layout.ts +4 -0
- package/src/render/interactive-panel.tsx +18 -1
- package/src/render/nodes.tsx +18 -14
- package/src/render/stage.tsx +2 -0
- package/src/types.ts +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,41 @@ CDL (Chainome Diagram Language) の主要変更履歴。
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.58.0] - 2026-09-13
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- **図に言語 (`lang`) を指定すると、形の絵の中の固定の字をその言語で描くようにした** (#847)
|
|
13
|
+
|
|
14
|
+
形の部品 14 種は、書き手が何を渡しても同じ字を描いていた (看板の `PAY` / `WAREHOUSE`、見本の値の
|
|
15
|
+
`→ 12 chunks in 1.8s` / `CAR-1111`、ブロックの行の名前の `hash` / `prev` など)。 日本語の図に置くと、
|
|
16
|
+
そこだけ英語が残っていた。
|
|
17
|
+
|
|
18
|
+
図に `lang: "ja"` を書くと、これらの字を日本語の辞書から引いて描く (`PAY` → `決済`、`hash` → `ハッシュ`)。
|
|
19
|
+
書かない図と、型の外の値 (`"fr"` など) を渡した図は、変更前と同じ英語の字で描く。 書き手の字
|
|
20
|
+
(`title` / `subtitle`) は辞書を通らない。
|
|
21
|
+
|
|
22
|
+
製品名と定着した略語 (`API` / `ATM` / `RPC`) は英字のまま残す。 API の入口の要求の種類は、日本語では
|
|
23
|
+
綴りを略さず `DELETE` と書き、箱に入る大きさまで字を縮める。 端末とかんばんの札は、和文を等幅の 2 桁と
|
|
24
|
+
数えて幅を見積もる。
|
|
25
|
+
|
|
26
|
+
ブロックの行の目印 (`data-cdl-role="blockchain-block-hash"` など) と、副題を差し込む行の判定は、訳した
|
|
27
|
+
名前ではなく英語の鍵で行う。 言語を変えても目印は変わらない。
|
|
28
|
+
|
|
29
|
+
## [0.57.1] - 2026-09-13
|
|
30
|
+
|
|
31
|
+
### Fixed
|
|
32
|
+
|
|
33
|
+
- **やり取りの時刻の読み出しで、範囲の端の出来事の札が図の外へ半分出て切れるのを直した** (#845)
|
|
34
|
+
|
|
35
|
+
`readout.sequenceTimeline` は札を点の真上に中央揃えで置き、左右の余白は 8 しかない。 範囲の最小と最大の
|
|
36
|
+
時刻にある点は端に来るので、幅 16 を超える札は幅の半分が図の外へ出ていた (実測 = 時刻 0 の `認可要求` が
|
|
37
|
+
`可要求` に見えた)。 英字の札でも同じで、日本語に限らない。
|
|
38
|
+
|
|
39
|
+
中央揃えのままだと外へ出る札だけ、はみ出す側で揃える (左端に近ければ左揃え、右端に近ければ右揃え)。
|
|
40
|
+
札の幅は描く前に分からないので、箱の題と同じ字の幅の見積り (実物以上に倒した値) で判定する。
|
|
41
|
+
中ほどの札と、点の下の時刻の数は今までどおり中央揃えで描く。
|
|
42
|
+
|
|
8
43
|
## [0.57.0] - 2026-09-11
|
|
9
44
|
|
|
10
45
|
### Changed
|
|
@@ -2525,7 +2560,9 @@ Initial OSS release.
|
|
|
2525
2560
|
使わない = annotated tag を push しても GitHub Release は作られず、 Release を作っていない版で
|
|
2526
2561
|
行き止まりになる。
|
|
2527
2562
|
|
|
2528
|
-
[Unreleased]: https://github.com/cardene777/cdl/compare/v0.
|
|
2563
|
+
[Unreleased]: https://github.com/cardene777/cdl/compare/v0.58.0...HEAD
|
|
2564
|
+
[0.58.0]: https://github.com/cardene777/cdl/compare/v0.57.1...v0.58.0
|
|
2565
|
+
[0.57.1]: https://github.com/cardene777/cdl/compare/v0.57.0...v0.57.1
|
|
2529
2566
|
[0.57.0]: https://github.com/cardene777/cdl/compare/v0.56.0...v0.57.0
|
|
2530
2567
|
[0.56.0]: https://github.com/cardene777/cdl/compare/v0.55.0...v0.56.0
|
|
2531
2568
|
[0.55.0]: https://github.com/cardene777/cdl/compare/v0.54.0...v0.55.0
|