@cardenelabs/cdl 0.54.0 → 0.56.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 +25 -1
- package/dist/index.cjs +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +8 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +8 -1
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/src/kinds/user-journey.tsx +9 -1
- package/src/presets.ts +2 -1
package/dist/react.js
CHANGED
|
@@ -14450,6 +14450,13 @@ function UserJourneyNode({
|
|
|
14450
14450
|
frustrated: "\u{1F615}",
|
|
14451
14451
|
angry: "\u{1F620}"
|
|
14452
14452
|
};
|
|
14453
|
+
const emotionLabel = {
|
|
14454
|
+
delighted: "\u5927\u6E80\u8DB3",
|
|
14455
|
+
happy: "\u6E80\u8DB3",
|
|
14456
|
+
neutral: "\u3075\u3064\u3046",
|
|
14457
|
+
frustrated: "\u4E0D\u6E80",
|
|
14458
|
+
angry: "\u6012\u308A"
|
|
14459
|
+
};
|
|
14453
14460
|
const rowH = canvasH / 5;
|
|
14454
14461
|
const colW = canvasW / Math.max(steps.length, 1);
|
|
14455
14462
|
const xAt = (idx) => PAD_LEFT2 + (steps.length <= 1 ? canvasW / 2 : colW / 2 + colW * idx);
|
|
@@ -14514,7 +14521,7 @@ function UserJourneyNode({
|
|
|
14514
14521
|
fontWeight: 600,
|
|
14515
14522
|
textAnchor: "end",
|
|
14516
14523
|
fill: emotionColor[e],
|
|
14517
|
-
children: e
|
|
14524
|
+
children: emotionLabel[e]
|
|
14518
14525
|
}
|
|
14519
14526
|
)
|
|
14520
14527
|
] }, `band-${e}`)),
|