@cardenelabs/cdl 0.75.0 → 0.77.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/src/lang.ts CHANGED
@@ -33,7 +33,14 @@ export function resolveLang(value: unknown): CdlLang {
33
33
  */
34
34
  const en = {
35
35
  /** `shape-terminal` の 2 行目 (命令の出力) */
36
- "terminal.output": "→ 12 chunks in 1.8s",
36
+ /*
37
+ * `shape-terminal` の出力の行。
38
+ *
39
+ * **いちばん長い行が絵の倍率を決める** (#891)。 端末の中身は自分の座標で組んでから箱へ
40
+ * 収めるので、この行が長いほど全部の字が小さくなる。 120x110 の箱では 20 字の版で
41
+ * 7.71 world まで落ちていた。
42
+ */
43
+ "terminal.output": "→ 12 chunks",
37
44
  /** `shape-code-block` の札の file 名 */
38
45
  "codeBlock.fileName": "utils.ts",
39
46
  /** `shape-kanban-card` の課題の番号 */
@@ -68,8 +75,14 @@ const en = {
68
75
  "paymentProvider.sign": "PAY",
69
76
  /** `shape-payment-provider` の状態の札 */
70
77
  "paymentProvider.status": "PROCESSING",
71
- /** `shape-brokerage` の株価の帯 */
72
- "brokerage.ticker": "▲NKY 38,240 ▲AAPL 194",
78
+ /**
79
+ * `shape-brokerage` の株価の帯。
80
+ *
81
+ * **1 銘柄に絞る** (#888)。 電光掲示板の内側は幅 136 しか無く、2 銘柄を指定 11 で描くと
82
+ * 幅 181 になってビルの外へ出る。 板が流れている雰囲気は帯そのもの (黒地に緑の等幅) が
83
+ * 担うので、銘柄を減らしても絵は変わらない。
84
+ */
85
+ "brokerage.ticker": "▲NKY 38,240",
73
86
  /** `shape-brokerage` の看板 */
74
87
  "brokerage.sign": "$ SECURITIES",
75
88
  /** `shape-exchange` の看板 */
@@ -266,7 +279,7 @@ export type CdlTextKey = keyof typeof en;
266
279
  * 日本語の文でもこの綴りで書くため。
267
280
  */
268
281
  const ja: Record<CdlTextKey, string> = {
269
- "terminal.output": "→ 1.8 秒で完了",
282
+ "terminal.output": "→ 12 個を結合",
270
283
  "codeBlock.fileName": "共通.ts",
271
284
  "kanbanCard.id": "#1111",
272
285
  "kanbanCard.status": "進行中",
@@ -284,7 +297,7 @@ const ja: Record<CdlTextKey, string> = {
284
297
  "trustBank.sign": "信託",
285
298
  "paymentProvider.sign": "決済",
286
299
  "paymentProvider.status": "処理中",
287
- "brokerage.ticker": "▲日経 38,240 ▲東証 2,710",
300
+ "brokerage.ticker": "▲日経 38,240",
288
301
  "brokerage.sign": "¥ 証券",
289
302
  "exchange.sign": "取引所",
290
303
  "exchange.sub": "清算",
@@ -500,7 +500,6 @@ export interface VisualValidationReport {
500
500
 
501
501
  const MIN_NODE_W = 80;
502
502
  const MIN_NODE_H = 40;
503
- const MIN_FONT_SIZE = 12;
504
503
  const ROW_FORMAT = /^[^:]+:\s*.+$/;
505
504
 
506
505
  function emptyCounts(): Record<VisualAxis, number> {
@@ -2007,10 +2006,6 @@ function runAxes(
2007
2006
  );
2008
2007
  }
2009
2008
  }
2010
- // edge label の font size は collisions.ts で BBox 計算済、 ここでは MIN_FONT_SIZE 違反のみ check
2011
- // (実装では cdl が 12px 以下を render することはないので no-op、 将来拡張用)
2012
- void MIN_FONT_SIZE;
2013
-
2014
2009
  // ───────────────────────────────────────────────────────────
2015
2010
  // Axis 4: row-format (rows[] format + placeholder 解決)
2016
2011
  //