@cardenelabs/cdl 0.18.1 → 0.19.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 CHANGED
@@ -5,6 +5,26 @@ CDL (Chainome Diagram Language) の主要変更履歴。
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.19.0] - 2026-08-29
9
+
10
+ ### Changed
11
+
12
+ - **字だけの箱で上下の余白を揃えた** (#586)
13
+
14
+ 字しか持たない箱が、字の下に余白を大きく残したまま並んでいた (user 実機指摘)。
15
+ 実測で `service` は上 15.7 に対し下が 81、 `merkle-tree` は下が 121 空いていた。
16
+ 字は上から描かれるので、箱を高くしたぶんがそのまま下の空きになっていた。
17
+
18
+ 上の余白と同じだけを下にも取る形へ揃える (`新 h = 上の余白 × 2 + 字の高さ`)。
19
+ 23 種別が 19 から 104 縮む。 `person` / `service` / `api` 等 18 種別は 116 に揃う。
20
+
21
+ **絵を持つ種別は動かさない**。 `shape-` の 49 種別は箱いっぱいに絵を描くので、
22
+ 詰めると絵が入らない (実測で `cloud` は絵が 200 あり、箱 173 を既に超えている)。
23
+ 差が 5 未満の 2 種別 (`card` -1 / `decision` -3) も、見た目が変わらないので据え置く。
24
+
25
+ 行を持たない `storage` だけは token ではなく `autoStorageHeight` の中の値で決まるため、
26
+ そちらを 150 から 115 にした。 行を持つ形 (token 240 が下限) は変えていない。
27
+
8
28
  ## [0.18.1] - 2026-08-29
9
29
 
10
30
  ### Fixed
@@ -964,7 +984,8 @@ Initial OSS release.
964
984
  使わない = annotated tag を push しても GitHub Release は作られず、 Release を作っていない版で
965
985
  行き止まりになる。
966
986
 
967
- [Unreleased]: https://github.com/cardene777/cdl/compare/v0.18.1...HEAD
987
+ [Unreleased]: https://github.com/cardene777/cdl/compare/v0.19.0...HEAD
988
+ [0.19.0]: https://github.com/cardene777/cdl/compare/v0.18.1...v0.19.0
968
989
  [0.18.1]: https://github.com/cardene777/cdl/compare/v0.18.0...v0.18.1
969
990
  [0.18.0]: https://github.com/cardene777/cdl/compare/v0.17.1...v0.18.0
970
991
  [0.17.1]: https://github.com/cardene777/cdl/compare/v0.17.0...v0.17.1
package/dist/index.cjs CHANGED
@@ -13300,35 +13300,35 @@ var TOKENS = {
13300
13300
  contain_pad: 28,
13301
13301
  // node sizes (kind ごと、 unified row h は engine が max() で算出)
13302
13302
  node: {
13303
- actor: { w: 340, h: 200 },
13304
- function: { w: 380, h: 170 },
13303
+ actor: { w: 340, h: 165 },
13304
+ function: { w: 380, h: 151 },
13305
13305
  storage: { w: 400, h: 240 },
13306
- event: { w: 360, h: 200 },
13306
+ event: { w: 360, h: 156 },
13307
13307
  card: { w: 320, h: 150 },
13308
13308
  // 人系
13309
- person: { w: 280, h: 180 },
13310
- "user-group": { w: 320, h: 180 },
13311
- admin: { w: 280, h: 180 },
13312
- developer: { w: 280, h: 180 },
13313
- "external-user": { w: 300, h: 180 },
13309
+ person: { w: 280, h: 116 },
13310
+ "user-group": { w: 320, h: 116 },
13311
+ admin: { w: 280, h: 116 },
13312
+ developer: { w: 280, h: 116 },
13313
+ "external-user": { w: 300, h: 116 },
13314
13314
  // インフラ
13315
- database: { w: 320, h: 200 },
13316
- cache: { w: 280, h: 160 },
13317
- queue: { w: 340, h: 140 },
13318
- "message-bus": { w: 380, h: 140 },
13315
+ database: { w: 320, h: 172 },
13316
+ cache: { w: 280, h: 116 },
13317
+ queue: { w: 340, h: 116 },
13318
+ "message-bus": { w: 380, h: 116 },
13319
13319
  cloud: { w: 320, h: 180 },
13320
- cdn: { w: 320, h: 160 },
13320
+ cdn: { w: 320, h: 116 },
13321
13321
  // アプリ系
13322
- service: { w: 320, h: 180 },
13323
- api: { w: 320, h: 160 },
13324
- frontend: { w: 320, h: 180 },
13325
- backend: { w: 320, h: 180 },
13326
- webhook: { w: 320, h: 160 },
13327
- microservice: { w: 320, h: 180 },
13322
+ service: { w: 320, h: 116 },
13323
+ api: { w: 320, h: 116 },
13324
+ frontend: { w: 320, h: 116 },
13325
+ backend: { w: 320, h: 116 },
13326
+ webhook: { w: 320, h: 116 },
13327
+ microservice: { w: 320, h: 116 },
13328
13328
  // データ / 判定
13329
- signer: { w: 300, h: 180 },
13330
- oracle: { w: 320, h: 180 },
13331
- "merkle-tree": { w: 340, h: 220 },
13329
+ signer: { w: 300, h: 116 },
13330
+ oracle: { w: 320, h: 116 },
13331
+ "merkle-tree": { w: 340, h: 116 },
13332
13332
  decision: { w: 300, h: 180 },
13333
13333
  // Chart 系 (CAR-994 Phase A) ... 1 node に datum 配列を持ち、 kind 内で SVG geometry 描画。
13334
13334
  // 実際の w/h は preset chart() が w/h override で指定 (default fallback は preset 未指定時のみ)。
@@ -15088,7 +15088,7 @@ function autoStorageHeight(n, defaultH) {
15088
15088
  if (n.h != null) return n.h;
15089
15089
  const \u5370\u3042\u308A = n.rowMarks !== void 0;
15090
15090
  const \u547C\u3073\u540D\u306E\u5206 = \u5370\u3042\u308A && n.subtitle ? SUBTITLE_ROW_SHIFT : 0;
15091
- if (!n.rows || n.rows.length === 0) return 150 + \u547C\u3073\u540D\u306E\u5206;
15091
+ if (!n.rows || n.rows.length === 0) return 115 + \u547C\u3073\u540D\u306E\u5206;
15092
15092
  const \u5FC5\u8981 = requiredRowsHeight("storage", n.rows.length) ?? defaultH;
15093
15093
  if (\u5370\u3042\u308A) return \u5FC5\u8981 + \u547C\u3073\u540D\u306E\u5206;
15094
15094
  return Math.max(defaultH, \u5FC5\u8981);