@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/dist/index.js
CHANGED
|
@@ -32927,7 +32927,8 @@ var FSM_ACTION_MARK = {
|
|
|
32927
32927
|
function stateMachine(preset) {
|
|
32928
32928
|
const stateW = resolveStateW(preset.stateWidth, "stateMachine");
|
|
32929
32929
|
const tone = preset.defaultTone ?? "accent";
|
|
32930
|
-
const
|
|
32930
|
+
const diagramType = "state";
|
|
32931
|
+
const b = diagram(preset.id, { topic: preset.topic, type: diagramType });
|
|
32931
32932
|
const phaseActivate = [];
|
|
32932
32933
|
const stateOrder = /* @__PURE__ */ new Map();
|
|
32933
32934
|
const \u72B6\u614B = [];
|
|
@@ -33028,7 +33029,7 @@ function stateMachine(preset) {
|
|
|
33028
33029
|
b.phase(
|
|
33029
33030
|
"fsm",
|
|
33030
33031
|
{ duration: 2400, title: preset.topic, body: "\u3059\u3079\u3066\u306E\u72B6\u614B\u3068\u9077\u79FB\u3092\u4E26\u3079\u305F\u59FF\u3002" },
|
|
33031
|
-
(p) => p.activate(...phaseActivate).badge(
|
|
33032
|
+
(p) => p.activate(...phaseActivate).badge(diagramType)
|
|
33032
33033
|
);
|
|
33033
33034
|
return b.build();
|
|
33034
33035
|
}
|
|
@@ -33287,7 +33288,8 @@ function userJourney(preset) {
|
|
|
33287
33288
|
function mindMap(preset) {
|
|
33288
33289
|
const canvasW = preset.branchWidth ? preset.branchWidth * 2 : 720;
|
|
33289
33290
|
const canvasH = 480;
|
|
33290
|
-
const
|
|
33291
|
+
const diagramType = "mind";
|
|
33292
|
+
const b = diagram(preset.id, { topic: preset.topic, type: diagramType });
|
|
33291
33293
|
const branches = [];
|
|
33292
33294
|
const api = {
|
|
33293
33295
|
branch(br) {
|
|
@@ -33321,7 +33323,7 @@ function mindMap(preset) {
|
|
|
33321
33323
|
b.phase(
|
|
33322
33324
|
"mindmap",
|
|
33323
33325
|
{ 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" },
|
|
33324
|
-
(p) => p.activate(nodeId).badge(
|
|
33326
|
+
(p) => p.activate(nodeId).badge(diagramType)
|
|
33325
33327
|
);
|
|
33326
33328
|
return b.build();
|
|
33327
33329
|
}
|
|
@@ -33654,7 +33656,8 @@ function stateMachine2(preset) {
|
|
|
33654
33656
|
const stateW = resolveStateW(preset.stateWidth, "stateMachine2");
|
|
33655
33657
|
const laneW = boxLaneW(stateW);
|
|
33656
33658
|
const tone = preset.defaultTone ?? "accent";
|
|
33657
|
-
const
|
|
33659
|
+
const diagramType = "state";
|
|
33660
|
+
const b = diagram(preset.id, { topic: preset.topic, type: diagramType });
|
|
33658
33661
|
const stateOrder = /* @__PURE__ */ new Map();
|
|
33659
33662
|
const phaseActivate = [];
|
|
33660
33663
|
let transIdx = 0;
|
|
@@ -33710,7 +33713,7 @@ function stateMachine2(preset) {
|
|
|
33710
33713
|
title: preset.topic,
|
|
33711
33714
|
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"
|
|
33712
33715
|
},
|
|
33713
|
-
(p) => p.activate(...phaseActivate).badge(
|
|
33716
|
+
(p) => p.activate(...phaseActivate).badge(diagramType)
|
|
33714
33717
|
);
|
|
33715
33718
|
const d = b.build();
|
|
33716
33719
|
return {
|