mermaid 10.6.2-rc.2 → 10.7.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.
Files changed (118) hide show
  1. package/dist/{arc-63117ae3.js → arc-01f1c7b4.js} +1 -1
  2. package/dist/{arc-0e07e99f.js → arc-d8ae3604.js} +1 -1
  3. package/dist/{c4Diagram-0769eab5.js → c4Diagram-30dc6c5f.js} +2 -2
  4. package/dist/{c4Diagram-f0f6dc38.js → c4Diagram-6af2d31c.js} +2 -2
  5. package/dist/{c4Diagram-bd8d0a4f.js → c4Diagram-c82ee324.js} +2 -2
  6. package/dist/{classDiagram-6cff1942.js → classDiagram-14bbef50.js} +2 -2
  7. package/dist/{classDiagram-36f54c79.js → classDiagram-5d49202d.js} +4 -4
  8. package/dist/{classDiagram-2c724adb.js → classDiagram-f8a2cc57.js} +4 -4
  9. package/dist/{classDiagram-v2-b09e1149.js → classDiagram-v2-09f45bd6.js} +21 -21
  10. package/dist/{classDiagram-v2-a32f60da.js → classDiagram-v2-36dc72da.js} +6 -6
  11. package/dist/{classDiagram-v2-1aa56e35.js → classDiagram-v2-5328fc73.js} +8 -8
  12. package/dist/config.type.d.ts +5 -8
  13. package/dist/{createText-23996509.js → createText-77e212b0.js} +1 -1
  14. package/dist/{createText-a17fb25a.js → createText-a48a4c90.js} +1 -1
  15. package/dist/{createText-e0cdef87.js → createText-abfe125e.js} +1 -1
  16. package/dist/diagrams/class/classDb.d.ts +3 -1
  17. package/dist/diagrams/class/classTypes.d.ts +1 -0
  18. package/dist/diagrams/git/gitGraphAst.d.ts +1 -1
  19. package/dist/diagrams/sequence/sequenceDb.d.ts +3 -3
  20. package/dist/edges-13d9e871.js +906 -0
  21. package/dist/{edges-67728fee.js → edges-5ec2587c.js} +12 -28
  22. package/dist/{edges-3353b3a7.js → edges-9f0d1f4d.js} +13 -29
  23. package/dist/{erDiagram-6c3ba6c2.js → erDiagram-362f098c.js} +3 -3
  24. package/dist/{erDiagram-1dea6ab9.js → erDiagram-4c71174c.js} +1 -1
  25. package/dist/{erDiagram-b435ef59.js → erDiagram-a72da23d.js} +3 -3
  26. package/dist/{flowDb-0edb55bb.js → flowDb-0bfef4f8.js} +116 -110
  27. package/dist/{flowDb-86991f37.js → flowDb-a32fc02b.js} +10 -3
  28. package/dist/{flowDb-898add12.js → flowDb-f4777d50.js} +10 -3
  29. package/dist/{flowDiagram-d5379580.js → flowDiagram-14125c13.js} +8 -8
  30. package/dist/{flowDiagram-97fefef8.js → flowDiagram-18ba08e1.js} +6 -6
  31. package/dist/{flowDiagram-14f9cbc2.js → flowDiagram-962873e1.js} +8 -8
  32. package/dist/{flowDiagram-v2-5ec80e3d.js → flowDiagram-v2-10567f5e.js} +8 -8
  33. package/dist/{flowDiagram-v2-de2ec4ab.js → flowDiagram-v2-7efa11b6.js} +8 -8
  34. package/dist/{flowDiagram-v2-221e1227.js → flowDiagram-v2-d21afba7.js} +6 -6
  35. package/dist/flowchart-elk-definition-6aa9cbdf.js +48405 -0
  36. package/dist/flowchart-elk-definition-b97a4072.js +93389 -0
  37. package/dist/{flowchart-elk-definition-797f872e.js → flowchart-elk-definition-d0e11316.js} +4 -4
  38. package/dist/{ganttDiagram-320f6f28.js → ganttDiagram-18b41033.js} +2 -2
  39. package/dist/{ganttDiagram-6adf8f3f.js → ganttDiagram-79b0c04f.js} +2 -2
  40. package/dist/{ganttDiagram-b492fa88.js → ganttDiagram-d9c0fa4d.js} +1 -1
  41. package/dist/gitGraphDiagram-19c6a87e.js +1247 -0
  42. package/dist/{gitGraphDiagram-454ae1a8.js → gitGraphDiagram-20ac17d4.js} +154 -129
  43. package/dist/{gitGraphDiagram-a8140a45.js → gitGraphDiagram-f715787e.js} +154 -129
  44. package/dist/{index-aef5fded.js → index-0980fb80.js} +12 -29
  45. package/dist/{index-7f7c4455.js → index-20c9cf41.js} +13 -30
  46. package/dist/index-5e9361c0.js +347 -0
  47. package/dist/{infoDiagram-8c20e622.js → infoDiagram-111ef34f.js} +1 -1
  48. package/dist/{infoDiagram-7d934639.js → infoDiagram-98fa4f49.js} +1 -1
  49. package/dist/{infoDiagram-503d942d.js → infoDiagram-b45b3731.js} +1 -1
  50. package/dist/{journeyDiagram-2954790f.js → journeyDiagram-0938c3e3.js} +2 -2
  51. package/dist/{journeyDiagram-6ad8ce64.js → journeyDiagram-30ac10e6.js} +3 -3
  52. package/dist/{journeyDiagram-4184f07c.js → journeyDiagram-d3982e21.js} +3 -3
  53. package/dist/{layout-67a2723a.js → layout-56edf4e8.js} +1 -1
  54. package/dist/{layout-7db814a1.js → layout-94e1e85f.js} +1 -1
  55. package/dist/{line-5fd5224c.js → line-0dd38c26.js} +1 -1
  56. package/dist/{line-52078152.js → line-b015ae81.js} +1 -1
  57. package/dist/{linear-b5dd10fe.js → linear-ad2a9be7.js} +1 -1
  58. package/dist/{linear-cb03a74d.js → linear-e5ea1a48.js} +1 -1
  59. package/dist/{mermaid-8e1f5b17.js → mermaid-04fb0060.js} +25 -27
  60. package/dist/{mermaid-e6e6aa62.js → mermaid-354acb24.js} +25 -27
  61. package/dist/{mermaid-635594ce.js → mermaid-ee29d047.js} +25 -27
  62. package/dist/mermaid.core.mjs +1 -1
  63. package/dist/mermaid.esm.min.mjs +1 -1
  64. package/dist/mermaid.esm.mjs +1 -1
  65. package/dist/mermaid.js +58469 -54624
  66. package/dist/mermaid.min.js +227 -223
  67. package/dist/{mindmap-definition-9fbfd3df.js → mindmap-definition-2a7f2f2f.js} +2 -2
  68. package/dist/{mindmap-definition-6b077b55.js → mindmap-definition-83493066.js} +2 -2
  69. package/dist/{mindmap-definition-693c16d7.js → mindmap-definition-e19a4bed.js} +2 -2
  70. package/dist/{pieDiagram-dcb0e700.js → pieDiagram-0a51d72a.js} +2 -2
  71. package/dist/{pieDiagram-1c0391ea.js → pieDiagram-cc8a845d.js} +1 -1
  72. package/dist/{pieDiagram-50e13798.js → pieDiagram-eaa6b4e6.js} +2 -2
  73. package/dist/{quadrantDiagram-3bd1b808.js → quadrantDiagram-31813e83.js} +2 -2
  74. package/dist/{quadrantDiagram-417c0dd8.js → quadrantDiagram-d70906b3.js} +1 -1
  75. package/dist/{quadrantDiagram-4a79d674.js → quadrantDiagram-f31b9d7a.js} +2 -2
  76. package/dist/{requirementDiagram-95179f35.js → requirementDiagram-025ed9cd.js} +1 -1
  77. package/dist/{requirementDiagram-dce38f1b.js → requirementDiagram-68a8fa8c.js} +3 -3
  78. package/dist/{requirementDiagram-8ae3f1ad.js → requirementDiagram-6d08cb88.js} +3 -3
  79. package/dist/{sankeyDiagram-a404aa33.js → sankeyDiagram-86f1d020.js} +2 -2
  80. package/dist/{sankeyDiagram-77521454.js → sankeyDiagram-fd560d01.js} +111 -113
  81. package/dist/{sankeyDiagram-8772732b.js → sankeyDiagram-ff1543cb.js} +2 -2
  82. package/dist/{sequenceDiagram-390649cf.js → sequenceDiagram-62b9e65a.js} +175 -165
  83. package/dist/{sequenceDiagram-5967f3c1.js → sequenceDiagram-64564c6b.js} +902 -876
  84. package/dist/{sequenceDiagram-37295837.js → sequenceDiagram-d8e7905c.js} +175 -165
  85. package/dist/{stateDiagram-002d4cba.js → stateDiagram-03b49db1.js} +4 -4
  86. package/dist/{stateDiagram-21ff2fbd.js → stateDiagram-49f4215d.js} +4 -4
  87. package/dist/{stateDiagram-31b12b79.js → stateDiagram-b8fc1844.js} +2 -2
  88. package/dist/{stateDiagram-v2-1c8373b8.js → stateDiagram-v2-8daeecfe.js} +5 -5
  89. package/dist/{stateDiagram-v2-d9e73fdf.js → stateDiagram-v2-a86a5ce4.js} +7 -7
  90. package/dist/{stateDiagram-v2-1ca880cf.js → stateDiagram-v2-b84ac46e.js} +7 -7
  91. package/dist/{styles-80784a35.js → styles-275f40ca.js} +1 -1
  92. package/dist/{styles-e406da73.js → styles-401768ef.js} +1 -1
  93. package/dist/{styles-6d5a864a.js → styles-81fcde1e.js} +3 -3
  94. package/dist/{styles-fc7e983b.js → styles-9dd40fb9.js} +179 -138
  95. package/dist/{styles-b8e60b9b.js → styles-9e4c6998.js} +179 -138
  96. package/dist/{styles-ba216c65.js → styles-a35956af.js} +3 -3
  97. package/dist/{styles-0defc938.js → styles-b39df0e1.js} +2 -2
  98. package/dist/styles-ea201bbc.js +1089 -0
  99. package/dist/{styles-229922c0.js → styles-f191db0f.js} +1 -1
  100. package/dist/{svgDrawCommon-6d1e8a3f.js → svgDrawCommon-1b9ff2ad.js} +1 -1
  101. package/dist/{svgDrawCommon-1f1679e6.js → svgDrawCommon-1f9ed102.js} +1 -1
  102. package/dist/{svgDrawCommon-84c33ac2.js → svgDrawCommon-92a8ff2b.js} +1 -1
  103. package/dist/{timeline-definition-198be1fb.js → timeline-definition-026dd3a6.js} +1 -1
  104. package/dist/{timeline-definition-9ee37ffc.js → timeline-definition-54d0bf3a.js} +2 -2
  105. package/dist/{timeline-definition-9924cc78.js → timeline-definition-9d2c10ac.js} +2 -2
  106. package/dist/utils/imperativeState.d.ts +32 -0
  107. package/dist/{xychartDiagram-9b2fd51a.js → xychartDiagram-18fedd94.js} +4 -4
  108. package/dist/{xychartDiagram-86a639a9.js → xychartDiagram-a7b7bb0e.js} +2 -2
  109. package/dist/{xychartDiagram-6fd67d98.js → xychartDiagram-ca967019.js} +4 -4
  110. package/package.json +11 -11
  111. package/dist/edges-ab2964ed.js +0 -918
  112. package/dist/flowchart-elk-definition-08e9fcec.js +0 -46604
  113. package/dist/flowchart-elk-definition-7860b7a5.js +0 -89593
  114. package/dist/gitGraphDiagram-c8e5f92e.js +0 -1226
  115. package/dist/index-b66f4828.js +0 -361
  116. package/dist/styles-f57b843e.js +0 -1058
  117. package/dist/utils/subGraphTitleMargins.d.ts +0 -8
  118. /package/dist/utils/{subGraphTitleMargins.spec.d.ts → imperativeState.spec.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { w as withPath, c as constant } from "./path-39bad7e2.js";
2
- import { aW as pi, aX as cos, aY as sin, aZ as halfPi, a_ as epsilon, V as tau, a$ as sqrt, b0 as min, b1 as abs, b2 as atan2, b3 as asin, b4 as acos, b5 as max } from "./mermaid-e6e6aa62.js";
2
+ import { aW as pi, aX as cos, aY as sin, aZ as halfPi, a_ as epsilon, V as tau, a$ as sqrt, b0 as min, b1 as abs, b2 as atan2, b3 as asin, b4 as acos, b5 as max } from "./mermaid-354acb24.js";
3
3
  function arcInnerRadius(d) {
4
4
  return d.innerRadius;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { w as ln, c as W } from "./path-428ebac9.js";
2
- import { aW as an, aX as $, aY as w, aZ as rn, a_ as y, V as on, a$ as B, b0 as _, b1 as un, b2 as t, b3 as sn, b4 as tn, b5 as fn } from "./mermaid-635594ce.js";
2
+ import { aW as an, aX as $, aY as w, aZ as rn, a_ as y, V as on, a$ as B, b0 as _, b1 as un, b2 as t, b3 as sn, b4 as tn, b5 as fn } from "./mermaid-ee29d047.js";
3
3
  function cn(l) {
4
4
  return l.innerRadius;
5
5
  }
@@ -1,5 +1,5 @@
1
- import { s as ve, g as we, a as Oe, b as Te, c as Dt, d as ue, e as Re, f as Kt, h as De, i as wt, j as Nt, l as le, k as Se, w as Pe, m as oe } from "./mermaid-635594ce.js";
2
- import { d as Me, g as Le } from "./svgDrawCommon-1f1679e6.js";
1
+ import { s as ve, g as we, a as Oe, b as Te, c as Dt, d as ue, e as Re, f as Kt, h as De, i as wt, j as Nt, l as le, k as Se, w as Pe, m as oe } from "./mermaid-ee29d047.js";
2
+ import { d as Me, g as Le } from "./svgDrawCommon-1f9ed102.js";
3
3
  var Yt = function() {
4
4
  var e = function(bt, _, x, m) {
5
5
  for (x = x || {}, m = bt.length; m--; x[bt[m]] = _)
@@ -1,6 +1,6 @@
1
- import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, e as common, f as assignWithDepth, h as calculateTextWidth, l as log, i as configureSvgSize, w as wrapLabel, j as calculateTextHeight } from "./mermaid-8e1f5b17.js";
1
+ import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, e as common, f as assignWithDepth, h as calculateTextWidth, l as log, i as configureSvgSize, w as wrapLabel, j as calculateTextHeight } from "./mermaid-04fb0060.js";
2
2
  import { select } from "d3";
3
- import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-84c33ac2.js";
3
+ import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-92a8ff2b.js";
4
4
  import { sanitizeUrl } from "@braintree/sanitize-url";
5
5
  import "ts-dedent";
6
6
  import "dayjs";
@@ -1,5 +1,5 @@
1
- import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, e as sanitizeUrl_1, f as common, h as assignWithDepth, i as calculateTextWidth, j as d3select, l as log, k as configureSvgSize, w as wrapLabel, m as calculateTextHeight } from "./mermaid-e6e6aa62.js";
2
- import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-6d1e8a3f.js";
1
+ import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, e as sanitizeUrl_1, f as common, h as assignWithDepth, i as calculateTextWidth, j as d3select, l as log, k as configureSvgSize, w as wrapLabel, m as calculateTextHeight } from "./mermaid-354acb24.js";
2
+ import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-1b9ff2ad.js";
3
3
  var parser = function() {
4
4
  var o = function(k, v, o2, l) {
5
5
  for (o2 = o2 || {}, l = k.length; l--; o2[k[l]] = v)
@@ -1,8 +1,8 @@
1
- import { p as parser, d as db, s as styles } from "./styles-fc7e983b.js";
1
+ import { p as parser, d as db, s as styles } from "./styles-9dd40fb9.js";
2
2
  import { line, curveBasis, select } from "d3";
3
3
  import { layout } from "dagre-d3-es/src/dagre/index.js";
4
4
  import * as graphlib from "dagre-d3-es/src/graphlib/index.js";
5
- import { u as utils, l as log, v as parseGenericTypes, c as getConfig, i as configureSvgSize } from "./mermaid-8e1f5b17.js";
5
+ import { u as utils, l as log, v as parseGenericTypes, c as getConfig, i as configureSvgSize } from "./mermaid-04fb0060.js";
6
6
  import "ts-dedent";
7
7
  import "dayjs";
8
8
  import "@braintree/sanitize-url";
@@ -1,7 +1,7 @@
1
- import { p as parser, d as db, s as styles } from "./styles-b8e60b9b.js";
2
- import { F as curveBasis, z as utils, l as log, G as parseGenericTypes, c as getConfig, j as d3select, k as configureSvgSize } from "./mermaid-e6e6aa62.js";
3
- import { G as Graph, l as layout } from "./layout-7db814a1.js";
4
- import { l as line } from "./line-52078152.js";
1
+ import { p as parser, d as db, s as styles } from "./styles-9e4c6998.js";
2
+ import { F as curveBasis, z as utils, l as log, G as parseGenericTypes, c as getConfig, j as d3select, k as configureSvgSize } from "./mermaid-354acb24.js";
3
+ import { G as Graph, l as layout } from "./layout-94e1e85f.js";
4
+ import { l as line } from "./line-b015ae81.js";
5
5
  import "./array-b7dcf730.js";
6
6
  import "./path-39bad7e2.js";
7
7
  let edgeCount = 0;
@@ -1,7 +1,7 @@
1
- import { p as G, d as S, s as A } from "./styles-f57b843e.js";
2
- import { F as W, z as B, l as u, G as I, c as H, j as M, k as O } from "./mermaid-635594ce.js";
3
- import { G as P, l as X } from "./layout-67a2723a.js";
4
- import { l as Y } from "./line-5fd5224c.js";
1
+ import { p as G, d as S, s as A } from "./styles-ea201bbc.js";
2
+ import { F as W, z as B, l as u, G as I, c as H, j as M, k as O } from "./mermaid-ee29d047.js";
3
+ import { G as P, l as X } from "./layout-56edf4e8.js";
4
+ import { l as Y } from "./line-0dd38c26.js";
5
5
  import "./array-2ff2c7a6.js";
6
6
  import "./path-428ebac9.js";
7
7
  let _ = 0;
@@ -1,13 +1,13 @@
1
- import { p as M, d as N, s as R } from "./styles-f57b843e.js";
2
- import { l as c, c as r, j as k, z as $, r as B, q as E, n as C, o as G, f as A } from "./mermaid-635594ce.js";
3
- import { G as z } from "./layout-67a2723a.js";
4
- import { r as q } from "./index-b66f4828.js";
5
- import "./edges-ab2964ed.js";
6
- import "./createText-e0cdef87.js";
7
- import "./line-5fd5224c.js";
1
+ import { p as R, d as N, s as $ } from "./styles-ea201bbc.js";
2
+ import { l as c, c as r, j as k, z as B, r as G, o as E, q as C, n as A, f as _ } from "./mermaid-ee29d047.js";
3
+ import { G as z } from "./layout-56edf4e8.js";
4
+ import { r as q } from "./index-5e9361c0.js";
5
+ import "./edges-13d9e871.js";
6
+ import "./createText-abfe125e.js";
7
+ import "./line-0dd38c26.js";
8
8
  import "./array-2ff2c7a6.js";
9
9
  import "./path-428ebac9.js";
10
- const S = (o) => A.sanitizeText(o, r());
10
+ const S = (o) => _.sanitizeText(o, r());
11
11
  let v = {
12
12
  dividerMargin: 10,
13
13
  padding: 5,
@@ -28,13 +28,13 @@ const P = function(o, t, p, n) {
28
28
  // TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
29
29
  padding: ((y = r().flowchart) == null ? void 0 : y.padding) ?? ((d = r().class) == null ? void 0 : d.padding)
30
30
  };
31
- t.setNode(l.id, i), _(l.classes, t, p, n, l.id), c.info("setNode", i);
31
+ t.setNode(l.id, i), I(l.classes, t, p, n, l.id), c.info("setNode", i);
32
32
  });
33
- }, _ = function(o, t, p, n, e) {
33
+ }, I = function(o, t, p, n, e) {
34
34
  const s = Object.keys(o);
35
35
  c.info("keys:", s), c.info(o), s.filter((l) => o[l].parent == e).forEach(function(l) {
36
36
  var h, u;
37
- const a = o[l], i = a.cssClasses.join(" "), y = { labelStyle: "", style: "" }, d = a.label ?? a.id, f = 0, m = "class_box", b = {
37
+ const a = o[l], i = a.cssClasses.join(" "), y = E(a.styles), d = a.label ?? a.id, f = 0, m = "class_box", b = {
38
38
  labelStyle: y.labelStyle,
39
39
  shape: m,
40
40
  labelText: S(d),
@@ -91,7 +91,7 @@ const P = function(o, t, p, n) {
91
91
  arrowTypeEnd: "none",
92
92
  style: "fill:none",
93
93
  labelStyle: "",
94
- curve: E(v.curve, C)
94
+ curve: C(v.curve, A)
95
95
  };
96
96
  t.setEdge(l.id, l.class, h, b);
97
97
  });
@@ -116,13 +116,13 @@ const P = function(o, t, p, n) {
116
116
  arrowTypeEnd: D(e.relation.type2),
117
117
  style: "fill:none",
118
118
  labelStyle: "",
119
- curve: E(p == null ? void 0 : p.curve, C)
119
+ curve: C(p == null ? void 0 : p.curve, A)
120
120
  };
121
121
  if (c.info(s, e), e.style !== void 0) {
122
- const a = G(e.style);
122
+ const a = E(e.style);
123
123
  s.style = a.style, s.labelStyle = a.labelStyle;
124
124
  }
125
- e.text = e.title, e.text === void 0 ? e.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((l = r().flowchart) == null ? void 0 : l.htmlLabels) ?? r().htmlLabels ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + e.text + "</span>") : (s.labelType = "text", s.label = e.text.replace(A.lineBreakRegex, `
125
+ e.text = e.title, e.text === void 0 ? e.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((l = r().flowchart) == null ? void 0 : l.htmlLabels) ?? r().htmlLabels ? (s.labelType = "html", s.label = '<span class="edgeLabel">' + e.text + "</span>") : (s.labelType = "text", s.label = e.text.replace(_.lineBreakRegex, `
126
126
  `), e.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), t.setEdge(e.id1, e.id2, s, n);
127
127
  });
128
128
  }, V = function(o) {
@@ -146,7 +146,7 @@ const P = function(o, t, p, n) {
146
146
  }).setDefaultEdgeLabel(function() {
147
147
  return {};
148
148
  }), y = n.db.getNamespaces(), d = n.db.getClasses(), f = n.db.getRelations(), m = n.db.getNotes();
149
- c.info(f), P(y, i, t, n), _(d, i, t, n), H(f, i), F(m, i, f.length + 1, d);
149
+ c.info(f), P(y, i, t, n), I(d, i, t, n), H(f, i), F(m, i, f.length + 1, d);
150
150
  let b;
151
151
  s === "sandbox" && (b = k("#i" + t));
152
152
  const h = s === "sandbox" ? k(b.nodes()[0].contentDocument.body) : k("body"), u = h.select(`[id="${t}"]`), g = h.select("#" + t + " g");
@@ -156,9 +156,9 @@ const P = function(o, t, p, n) {
156
156
  ["aggregation", "extension", "composition", "dependency", "lollipop"],
157
157
  "classDiagram",
158
158
  t
159
- ), $.insertTitle(u, "classTitleText", (e == null ? void 0 : e.titleTopMargin) ?? 5, n.db.getDiagramTitle()), B(i, u, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
160
- const T = s === "sandbox" ? b.nodes()[0].contentDocument : document, I = T.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
161
- for (const w of I) {
159
+ ), B.insertTitle(u, "classTitleText", (e == null ? void 0 : e.titleTopMargin) ?? 5, n.db.getDiagramTitle()), G(i, u, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
160
+ const T = s === "sandbox" ? b.nodes()[0].contentDocument : document, M = T.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
161
+ for (const w of M) {
162
162
  const L = w.getBBox(), x = T.createElementNS("http://www.w3.org/2000/svg", "rect");
163
163
  x.setAttribute("rx", 0), x.setAttribute("ry", 0), x.setAttribute("width", L.width), x.setAttribute("height", L.height), w.insertBefore(x, w.firstChild);
164
164
  }
@@ -191,10 +191,10 @@ const J = {
191
191
  setConf: V,
192
192
  draw: W
193
193
  }, te = {
194
- parser: M,
194
+ parser: R,
195
195
  db: N,
196
196
  renderer: J,
197
- styles: R,
197
+ styles: $,
198
198
  init: (o) => {
199
199
  o.class || (o.class = {}), o.class.arrowMarkerAbsolute = o.arrowMarkerAbsolute, N.clear();
200
200
  }
@@ -1,8 +1,8 @@
1
- import { p as parser, d as db, s as styles } from "./styles-fc7e983b.js";
1
+ import { p as parser, d as db, s as styles } from "./styles-9dd40fb9.js";
2
2
  import { select, curveLinear } from "d3";
3
3
  import * as graphlib from "dagre-d3-es/src/graphlib/index.js";
4
- import { l as log, c as getConfig, u as utils, o as setupGraphViewbox, n as interpolateToCurve, k as getStylesFromArray, e as common } from "./mermaid-8e1f5b17.js";
5
- import { r as render } from "./index-aef5fded.js";
4
+ import { l as log, c as getConfig, u as utils, o as setupGraphViewbox, k as getStylesFromArray, n as interpolateToCurve, e as common } from "./mermaid-04fb0060.js";
5
+ import { r as render } from "./index-0980fb80.js";
6
6
  import "ts-dedent";
7
7
  import "dayjs";
8
8
  import "@braintree/sanitize-url";
@@ -14,8 +14,8 @@ import "stylis";
14
14
  import "lodash-es/isEmpty.js";
15
15
  import "dagre-d3-es/src/dagre/index.js";
16
16
  import "dagre-d3-es/src/graphlib/json.js";
17
- import "./edges-67728fee.js";
18
- import "./createText-a17fb25a.js";
17
+ import "./edges-5ec2587c.js";
18
+ import "./createText-a48a4c90.js";
19
19
  import "mdast-util-from-markdown";
20
20
  const sanitizeText = (txt) => common.sanitizeText(txt, getConfig());
21
21
  let conf = {
@@ -55,7 +55,7 @@ const addClasses = function(classes, g, _id, diagObj, parent) {
55
55
  var _a, _b;
56
56
  const vertex = classes[id];
57
57
  const cssClassStr = vertex.cssClasses.join(" ");
58
- const styles2 = { labelStyle: "", style: "" };
58
+ const styles2 = getStylesFromArray(vertex.styles);
59
59
  const vertexText = vertex.label ?? vertex.id;
60
60
  const radius = 0;
61
61
  const shape = "class_box";
@@ -1,10 +1,10 @@
1
- import { p as parser, d as db, s as styles } from "./styles-b8e60b9b.js";
2
- import { l as log, c as getConfig, j as d3select, z as utils, r as setupGraphViewbox, q as interpolateToCurve, n as curveLinear, o as getStylesFromArray, f as common } from "./mermaid-e6e6aa62.js";
3
- import { G as Graph } from "./layout-7db814a1.js";
4
- import { r as render } from "./index-7f7c4455.js";
5
- import "./edges-3353b3a7.js";
6
- import "./createText-23996509.js";
7
- import "./line-52078152.js";
1
+ import { p as parser, d as db, s as styles } from "./styles-9e4c6998.js";
2
+ import { l as log, c as getConfig, j as d3select, z as utils, r as setupGraphViewbox, o as getStylesFromArray, q as interpolateToCurve, n as curveLinear, f as common } from "./mermaid-354acb24.js";
3
+ import { G as Graph } from "./layout-94e1e85f.js";
4
+ import { r as render } from "./index-20c9cf41.js";
5
+ import "./edges-9f0d1f4d.js";
6
+ import "./createText-77e212b0.js";
7
+ import "./line-b015ae81.js";
8
8
  import "./array-b7dcf730.js";
9
9
  import "./path-39bad7e2.js";
10
10
  const sanitizeText = (txt) => common.sanitizeText(txt, getConfig());
@@ -45,7 +45,7 @@ const addClasses = function(classes, g, _id, diagObj, parent) {
45
45
  var _a, _b;
46
46
  const vertex = classes[id];
47
47
  const cssClassStr = vertex.cssClasses.join(" ");
48
- const styles2 = { labelStyle: "", style: "" };
48
+ const styles2 = getStylesFromArray(vertex.styles);
49
49
  const vertexText = vertex.label ?? vertex.id;
50
50
  const radius = 0;
51
51
  const shape = "class_box";
@@ -65,6 +65,11 @@ export interface MermaidConfig {
65
65
  * The maximum allowed size of the users text diagram
66
66
  */
67
67
  maxTextSize?: number;
68
+ /**
69
+ * Defines the maximum number of edges that can be drawn in a graph.
70
+ *
71
+ */
72
+ maxEdges?: number;
68
73
  darkMode?: boolean;
69
74
  htmlLabels?: boolean;
70
75
  /**
@@ -1393,14 +1398,6 @@ export interface FlowchartDiagramConfig extends BaseDiagramConfig {
1393
1398
  * Margin top for the text over the diagram
1394
1399
  */
1395
1400
  titleTopMargin?: number;
1396
- /**
1397
- * Defines a top/bottom margin for subgraph titles
1398
- *
1399
- */
1400
- subGraphTitleMargin?: {
1401
- top?: number;
1402
- bottom?: number;
1403
- };
1404
1401
  arrowMarkerAbsolute?: boolean;
1405
1402
  /**
1406
1403
  * The amount of padding around the diagram as a whole so that embedded
@@ -1,4 +1,4 @@
1
- import { b6 as dedent, l as log, aR as decodeEntities } from "./mermaid-e6e6aa62.js";
1
+ import { b6 as dedent, l as log, aR as decodeEntities } from "./mermaid-354acb24.js";
2
2
  const emptyOptions = {};
3
3
  function toString(value, options) {
4
4
  const settings = options || emptyOptions;
@@ -1,4 +1,4 @@
1
- import { l as log, J as decodeEntities } from "./mermaid-8e1f5b17.js";
1
+ import { l as log, J as decodeEntities } from "./mermaid-04fb0060.js";
2
2
  import { fromMarkdown } from "mdast-util-from-markdown";
3
3
  import { dedent } from "ts-dedent";
4
4
  function preprocessMarkdown(markdown) {
@@ -1,4 +1,4 @@
1
- import { b6 as At, l as zt, aR as It } from "./mermaid-635594ce.js";
1
+ import { b6 as At, l as zt, aR as It } from "./mermaid-ee29d047.js";
2
2
  const Tt = {};
3
3
  function Bt(n, r) {
4
4
  const t = r || Tt, e = typeof t.includeImageAlt == "boolean" ? t.includeImageAlt : !0, u = typeof t.includeHtml == "boolean" ? t.includeHtml : !0;
@@ -43,7 +43,7 @@ export declare const addMembers: (className: string, members: string[]) => void;
43
43
  export declare const addNote: (text: string, className: string) => void;
44
44
  export declare const cleanupLabel: (label: string) => string;
45
45
  /**
46
- * Called by parser when a special node is found, e.g. a clickable element.
46
+ * Called by parser when assigning cssClass to a class
47
47
  *
48
48
  * @param ids - Comma separated list of ids
49
49
  * @param className - Class to add
@@ -93,6 +93,7 @@ export declare const addNamespace: (id: string) => void;
93
93
  * @public
94
94
  */
95
95
  export declare const addClassesToNamespace: (id: string, classNames: string[]) => void;
96
+ export declare const setCssStyle: (id: string, styles: string[]) => void;
96
97
  declare const _default: {
97
98
  setAccTitle: (txt: string) => void;
98
99
  getAccTitle: () => string;
@@ -138,5 +139,6 @@ declare const _default: {
138
139
  addClassesToNamespace: (id: string, classNames: string[]) => void;
139
140
  getNamespace: (name: string) => NamespaceNode;
140
141
  getNamespaces: () => NamespaceMap;
142
+ setCssStyle: (id: string, styles: string[]) => void;
141
143
  };
142
144
  export default _default;
@@ -7,6 +7,7 @@ export interface ClassNode {
7
7
  members: ClassMember[];
8
8
  annotations: string[];
9
9
  domId: string;
10
+ styles: string[];
10
11
  parent?: string;
11
12
  link?: string;
12
13
  linkTarget?: string;
@@ -4,7 +4,7 @@ export function getOptions(): {};
4
4
  export function commit(msg: any, id: any, type: any, tag: any): void;
5
5
  export function branch(name: any, order: any): void;
6
6
  export function merge(otherBranch: any, custom_id: any, override_type: any, custom_tag: any): void;
7
- export function cherryPick(sourceId: any, targetId: any, tag: any): void;
7
+ export function cherryPick(sourceId: any, targetId: any, tag: any, parentCommitId: any): void;
8
8
  export function checkout(branch: any): void;
9
9
  export function prettyPrint(): void;
10
10
  export function clear(): void;
@@ -7,8 +7,8 @@ export function addSignal(idFrom: any, idTo: any, message: {
7
7
  } | undefined, messageType: any, activate?: boolean): boolean;
8
8
  export function hasAtLeastOneBox(): boolean;
9
9
  export function hasAtLeastOneBoxWithTitle(): boolean;
10
- export function getMessages(): any[];
11
- export function getBoxes(): any[];
10
+ export function getMessages(): never[];
11
+ export function getBoxes(): never[];
12
12
  export function getActors(): {};
13
13
  export function getCreatedActors(): {};
14
14
  export function getDestroyedActors(): {};
@@ -18,7 +18,7 @@ export function enableSequenceNumbers(): void;
18
18
  export function disableSequenceNumbers(): void;
19
19
  export function showSequenceNumbers(): boolean;
20
20
  export function setWrap(wrapSetting: any): void;
21
- export function autoWrap(): any;
21
+ export function autoWrap(): boolean | undefined;
22
22
  export function clear(): void;
23
23
  export function parseMessage(str: any): {
24
24
  text: any;