@cardenelabs/cdl 0.82.0 → 0.83.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cardenelabs/cdl",
3
- "version": "0.82.0",
3
+ "version": "0.83.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
@@ -2687,6 +2687,9 @@ export function stateMachine2(preset: StateMachine2Preset): StateMachine2Builder
2687
2687
  ...(subParts.length ? { sub: subParts.join(" ") } : {}),
2688
2688
  tone: t.tone ?? tone,
2689
2689
  style: "solid",
2690
+ // 遷移の印は 1 種類だけ = 実線に開いた矢 (#578)。 stateMachine と同じ値を渡す
2691
+ // (渡さないと EDGE_HEAD_DEFAULT の三角に落ち、入口を選び直しただけで印が変わる)
2692
+ head: "open",
2690
2693
  });
2691
2694
  phaseActivate.push(edgeId);
2692
2695
  return api;