@cardenelabs/cdl 0.54.0 → 0.55.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 +13 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/presets.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cardenelabs/cdl",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.55.0",
|
|
4
4
|
"description": "CDL (Chainome Diagram Language). Mermaid-like declarative DSL that compiles to animated SVG diagrams. Built for blockchain / Solidity flows, generic enough for sequence / flow / state / ER / topology diagrams.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "cardene777",
|
package/src/presets.ts
CHANGED
|
@@ -2369,9 +2369,10 @@ export function flowchart(preset: FlowchartPreset): FlowchartBuilder {
|
|
|
2369
2369
|
const edgeId = `fc-${edgeIdx++}-${e.from}-${e.to}`;
|
|
2370
2370
|
// CAR-549 SSOT ... flowchart の decision condition label (true / false / yes / no) は
|
|
2371
2371
|
// edge の semantic (どちらの分岐か) を強調するため path 上に重ねて表示する。
|
|
2372
|
+
// 日本語で分岐を書いた「はい」「いいえ」 も同じ扱いにする (#839)。 一致は完全一致に限る。
|
|
2372
2373
|
// 他 label (通常の process 遷移名) は default (34 world 離す) で読みやすさ優先。
|
|
2373
2374
|
const label = e.label ?? "";
|
|
2374
|
-
const isConditionLabel = /^(true|false|yes|no)$/i.test(label.trim());
|
|
2375
|
+
const isConditionLabel = /^(true|false|yes|no|はい|いいえ)$/i.test(label.trim());
|
|
2375
2376
|
b.edge(e.from, e.to, {
|
|
2376
2377
|
id: edgeId,
|
|
2377
2378
|
label,
|