@cardenelabs/cdl 0.62.0 → 0.63.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 +19 -1
- package/dist/index.cjs +9 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/presets.ts +13 -6
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,23 @@ CDL (Chainome Diagram Language) の主要変更履歴。
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.63.0] - 2026-09-13
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- **状態の図と発想の図の段の札を、図の型と同じ綴りにした** (#859)
|
|
13
|
+
|
|
14
|
+
組み立て関数は最後の段に図の型と同じ綴りの札を付けるが、`stateMachine` は `fsm`、`stateMachine2` は
|
|
15
|
+
`statemachine2` を付けており、図の型 (`state`) と食い違っていた。 消費側は型の一覧で札を引けず、札だけが
|
|
16
|
+
型の名前に無い英語として残った。 2 つとも札を `state` にした (2 つの図の見分けは図の題が持つ)。
|
|
17
|
+
|
|
18
|
+
`mindMap` は図の型を `mindmap` から `mind` にし、札も `mind` にした。 他の組み立て関数と同じく短い名前
|
|
19
|
+
(`state` / `class` / `journey`) の並びに揃える。 **図の根の `data-cdl-type` が `mind` になる** ので、
|
|
20
|
+
`[data-cdl-type="mindmap"]` で見た目を決めている消費側は書き換えが要る。
|
|
21
|
+
|
|
22
|
+
グラフ (`chart`) は描き方の種類 (`pie` / `bar` / `line`) を札にする形のまま変えない。 札を族の名前
|
|
23
|
+
(`chart`) にすると、全てのグラフが同じ字になり見出しの役に立たない。
|
|
24
|
+
|
|
8
25
|
## [0.62.0] - 2026-09-13
|
|
9
26
|
|
|
10
27
|
### Changed
|
|
@@ -2661,7 +2678,8 @@ Initial OSS release.
|
|
|
2661
2678
|
使わない = annotated tag を push しても GitHub Release は作られず、 Release を作っていない版で
|
|
2662
2679
|
行き止まりになる。
|
|
2663
2680
|
|
|
2664
|
-
[Unreleased]: https://github.com/cardene777/cdl/compare/v0.
|
|
2681
|
+
[Unreleased]: https://github.com/cardene777/cdl/compare/v0.63.0...HEAD
|
|
2682
|
+
[0.63.0]: https://github.com/cardene777/cdl/compare/v0.62.0...v0.63.0
|
|
2665
2683
|
[0.62.0]: https://github.com/cardene777/cdl/compare/v0.61.0...v0.62.0
|
|
2666
2684
|
[0.61.0]: https://github.com/cardene777/cdl/compare/v0.60.0...v0.61.0
|
|
2667
2685
|
[0.60.0]: https://github.com/cardene777/cdl/compare/v0.59.1...v0.60.0
|
package/dist/index.cjs
CHANGED
|
@@ -32929,7 +32929,8 @@ var FSM_ACTION_MARK = {
|
|
|
32929
32929
|
function stateMachine(preset) {
|
|
32930
32930
|
const stateW = resolveStateW(preset.stateWidth, "stateMachine");
|
|
32931
32931
|
const tone = preset.defaultTone ?? "accent";
|
|
32932
|
-
const
|
|
32932
|
+
const diagramType = "state";
|
|
32933
|
+
const b = diagram(preset.id, { topic: preset.topic, type: diagramType });
|
|
32933
32934
|
const phaseActivate = [];
|
|
32934
32935
|
const stateOrder = /* @__PURE__ */ new Map();
|
|
32935
32936
|
const \u72B6\u614B = [];
|
|
@@ -33030,7 +33031,7 @@ function stateMachine(preset) {
|
|
|
33030
33031
|
b.phase(
|
|
33031
33032
|
"fsm",
|
|
33032
33033
|
{ duration: 2400, title: preset.topic, body: "\u3059\u3079\u3066\u306E\u72B6\u614B\u3068\u9077\u79FB\u3092\u4E26\u3079\u305F\u59FF\u3002" },
|
|
33033
|
-
(p) => p.activate(...phaseActivate).badge(
|
|
33034
|
+
(p) => p.activate(...phaseActivate).badge(diagramType)
|
|
33034
33035
|
);
|
|
33035
33036
|
return b.build();
|
|
33036
33037
|
}
|
|
@@ -33289,7 +33290,8 @@ function userJourney(preset) {
|
|
|
33289
33290
|
function mindMap(preset) {
|
|
33290
33291
|
const canvasW = preset.branchWidth ? preset.branchWidth * 2 : 720;
|
|
33291
33292
|
const canvasH = 480;
|
|
33292
|
-
const
|
|
33293
|
+
const diagramType = "mind";
|
|
33294
|
+
const b = diagram(preset.id, { topic: preset.topic, type: diagramType });
|
|
33293
33295
|
const branches = [];
|
|
33294
33296
|
const api = {
|
|
33295
33297
|
branch(br) {
|
|
@@ -33323,7 +33325,7 @@ function mindMap(preset) {
|
|
|
33323
33325
|
b.phase(
|
|
33324
33326
|
"mindmap",
|
|
33325
33327
|
{ duration: 2400, title: preset.topic, body: "\u4E2D\u5FC3\u306E\u4E3B\u984C\u304B\u3089\u3001\u3059\u3079\u3066\u306E\u679D\u3092\u653E\u5C04\u72B6\u306B\u5E83\u3052\u305F\u59FF\u3002" },
|
|
33326
|
-
(p) => p.activate(nodeId).badge(
|
|
33328
|
+
(p) => p.activate(nodeId).badge(diagramType)
|
|
33327
33329
|
);
|
|
33328
33330
|
return b.build();
|
|
33329
33331
|
}
|
|
@@ -33656,7 +33658,8 @@ function stateMachine2(preset) {
|
|
|
33656
33658
|
const stateW = resolveStateW(preset.stateWidth, "stateMachine2");
|
|
33657
33659
|
const laneW = boxLaneW(stateW);
|
|
33658
33660
|
const tone = preset.defaultTone ?? "accent";
|
|
33659
|
-
const
|
|
33661
|
+
const diagramType = "state";
|
|
33662
|
+
const b = diagram(preset.id, { topic: preset.topic, type: diagramType });
|
|
33660
33663
|
const stateOrder = /* @__PURE__ */ new Map();
|
|
33661
33664
|
const phaseActivate = [];
|
|
33662
33665
|
let transIdx = 0;
|
|
@@ -33712,7 +33715,7 @@ function stateMachine2(preset) {
|
|
|
33712
33715
|
title: preset.topic,
|
|
33713
33716
|
body: "\u5165\u308C\u5B50\u306E\u72B6\u614B\u3068\u3001\u5165\u308B\u6642\u30FB\u51FA\u308B\u6642\u306E\u51E6\u7406\u3092\u542B\u3081\u305F\u3001\u3059\u3079\u3066\u306E\u72B6\u614B\u3068\u9077\u79FB\u3002"
|
|
33714
33717
|
},
|
|
33715
|
-
(p) => p.activate(...phaseActivate).badge(
|
|
33718
|
+
(p) => p.activate(...phaseActivate).badge(diagramType)
|
|
33716
33719
|
);
|
|
33717
33720
|
const d = b.build();
|
|
33718
33721
|
return {
|