@cardenelabs/cdl 0.27.0 → 0.28.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/dist/index.js CHANGED
@@ -30830,6 +30830,14 @@ var CLASS_RELATION_LOOK = {
30830
30830
  associates: { head: "open", fill: "solid", tailHead: "none", tailFill: "solid", style: "solid" },
30831
30831
  uses: { head: "open", fill: "solid", tailHead: "none", tailFill: "solid", style: "dashed" }
30832
30832
  };
30833
+ var CLASS_RELATION_TONE = {
30834
+ extends: "accent",
30835
+ implements: "accent",
30836
+ aggregates: "teal",
30837
+ composes: "teal",
30838
+ associates: "success",
30839
+ uses: "success"
30840
+ };
30833
30841
  Object.fromEntries(
30834
30842
  Object.entries(CLASS_RELATION_LOOK).map(([k, v]) => [k, v.head])
30835
30843
  );
@@ -30842,7 +30850,7 @@ function stripAccess(row) {
30842
30850
  }
30843
30851
  function classDiagram(preset) {
30844
30852
  const classW = resolveStorageBoxW(preset.classWidth, "classDiagram", "classWidth");
30845
- const tone = preset.defaultTone ?? "info";
30853
+ const \u56F3\u306E\u65E2\u5B9A = preset.defaultTone;
30846
30854
  const \u7E1E\u3092\u6577\u304F = preset.rowStripe ?? true;
30847
30855
  const b = diagram(preset.id, { topic: preset.topic, palette: preset.palette });
30848
30856
  const classes = [];
@@ -30906,7 +30914,7 @@ function classDiagram(preset) {
30906
30914
  id: edgeId,
30907
30915
  label: r.label ?? r.type,
30908
30916
  ...r.cardinality ? { sub: r.cardinality } : {},
30909
- tone: r.tone ?? tone,
30917
+ tone: r.tone ?? \u56F3\u306E\u65E2\u5B9A ?? CLASS_RELATION_TONE[r.type],
30910
30918
  // 関係の種類から線と端の形を決める (cdl#574 / #578)。 書いた値が勝つ
30911
30919
  style: r.style ?? \u898B\u305F\u76EE.style,
30912
30920
  head: r.head ?? \u898B\u305F\u76EE.head,