mermaid 10.2.4 → 10.3.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/LICENSE +21 -0
- package/dist/accessibility.d.ts +9 -9
- package/dist/{arc-8bacdbdb.js → arc-9d741495.js} +1 -1
- package/dist/arc-da8fd8d8.js +84 -0
- package/dist/{c4Diagram-060e9a0e.js → c4Diagram-0115bee6.js} +6 -6
- package/dist/{c4Diagram-80a4d5b6.js → c4Diagram-1bdb45a8.js} +3 -3
- package/dist/{c4Diagram-73a25429.js → c4Diagram-36d27044.js} +2 -2
- package/dist/{classDiagram-440b88cd.js → classDiagram-185c1a10.js} +5 -5
- package/dist/{classDiagram-d26c05e1.js → classDiagram-5e843ae7.js} +3 -3
- package/dist/{classDiagram-50a13b48.js → classDiagram-819d3ad4.js} +7 -7
- package/dist/{classDiagram-v2-d771589e.js → classDiagram-v2-6dc3b9c3.js} +14 -14
- package/dist/{classDiagram-v2-656fc6c4.js → classDiagram-v2-8c3b3e6a.js} +6 -6
- package/dist/{classDiagram-v2-3bf7b8a0.js → classDiagram-v2-c4607319.js} +10 -10
- package/dist/config.type.d.ts +939 -40
- package/dist/{createText-a49d2d2a.js → createText-285e50b4.js} +84 -38
- package/dist/{createText-f11497a7.js → createText-2c3b104b.js} +84 -38
- package/dist/{createText-7fe61f7a.js → createText-94e3ebbf.js} +649 -620
- package/dist/defaultConfig.d.ts +5 -28
- package/dist/diagrams/gantt/ganttDb.d.ts +4 -0
- package/dist/diagrams/quadrant-chart/quadrantBuilder.d.ts +2 -2
- package/dist/diagrams/sankey/sankeyDB.d.ts +36 -0
- package/dist/diagrams/sankey/sankeyDetector.d.ts +3 -0
- package/dist/diagrams/sankey/sankeyDiagram.d.ts +2 -0
- package/dist/diagrams/sankey/sankeyRenderer.d.ts +14 -0
- package/dist/diagrams/sankey/sankeyUtils.d.ts +1 -0
- package/dist/diagrams/sequence/sequenceDb.d.ts +4 -0
- package/dist/diagrams/sequence/sequenceRenderer.d.ts +2 -2
- package/dist/diagrams/sequence/svgDraw.d.ts +2 -1
- package/dist/{edges-1ceb0db9.js → edges-558884ee.js} +219 -212
- package/dist/{edges-66ea8538.js → edges-b00f0ec2.js} +18 -9
- package/dist/{edges-1a997dfb.js → edges-df708b89.js} +35 -26
- package/dist/{erDiagram-731c3598.js → erDiagram-0ccc0425.js} +2 -2
- package/dist/{erDiagram-7c3fcf92.js → erDiagram-97139f44.js} +17 -17
- package/dist/{erDiagram-96f6e417.js → erDiagram-de1b0455.js} +6 -6
- package/dist/{flowDb-cec399e2.js → flowDb-7a27455c.js} +11 -8
- package/dist/{flowDb-9e6c6aac.js → flowDb-8f9fc471.js} +6 -3
- package/dist/{flowDb-5c3f1e8c.js → flowDb-a4faf166.js} +168 -167
- package/dist/{flowDiagram-b66fcae9.js → flowDiagram-698c8d5d.js} +7 -12
- package/dist/{flowDiagram-23e30ac7.js → flowDiagram-786cd8ff.js} +25 -31
- package/dist/{flowDiagram-cee391fd.js → flowDiagram-ccbbb58d.js} +111 -117
- package/dist/{flowDiagram-v2-586230f7.js → flowDiagram-v2-65161881.js} +9 -10
- package/dist/flowDiagram-v2-79ccd6da.js +23 -0
- package/dist/{flowDiagram-v2-fe64f300.js → flowDiagram-v2-d6437390.js} +7 -7
- package/dist/{flowchart-elk-definition-7a16b501.js → flowchart-elk-definition-3f2388fe.js} +10 -10
- package/dist/{flowchart-elk-definition-ec654d50.js → flowchart-elk-definition-6f4e6aa0.js} +5 -5
- package/dist/{flowchart-elk-definition-8bb5cff5.js → flowchart-elk-definition-7863a61f.js} +6 -6
- package/dist/ganttDiagram-3eff0dd8.js +2548 -0
- package/dist/{ganttDiagram-55b9c28c.js → ganttDiagram-60845bff.js} +127 -71
- package/dist/{ganttDiagram-4bd7e5ed.js → ganttDiagram-f2041c70.js} +138 -82
- package/dist/{gitGraphDiagram-1476080d.js → gitGraphDiagram-5269e1d6.js} +125 -37
- package/dist/{gitGraphDiagram-566a7451.js → gitGraphDiagram-a13ae597.js} +125 -37
- package/dist/{gitGraphDiagram-9c32cfbe.js → gitGraphDiagram-c3fe571f.js} +440 -425
- package/dist/{index-e316e81a.js → index-4ba10627.js} +6 -6
- package/dist/{index-1e7f2254.js → index-4c4adb72.js} +3 -3
- package/dist/{index-745c9ffe.js → index-d0b453e2.js} +4 -4
- package/dist/{infoDiagram-12c593c2.js → infoDiagram-3fa6ea12.js} +3 -3
- package/dist/{infoDiagram-8f094d68.js → infoDiagram-9c10eab1.js} +1 -1
- package/dist/{infoDiagram-f43c69c6.js → infoDiagram-c976a9ed.js} +1 -1
- package/dist/{journeyDiagram-4f4351b8.js → journeyDiagram-5120ee2f.js} +1 -3
- package/dist/{journeyDiagram-bd53a0e6.js → journeyDiagram-9f355b40.js} +5 -7
- package/dist/{journeyDiagram-cea58833.js → journeyDiagram-b6904cec.js} +156 -159
- package/dist/{layout-b178bd1a.js → layout-c5a37d74.js} +1 -1
- package/dist/{layout-de394db2.js → layout-cc6d5710.js} +1 -1
- package/dist/{line-cdde0d11.js → line-cdadca5f.js} +1 -1
- package/dist/{line-d1abfd73.js → line-ce5d1152.js} +1 -1
- package/dist/{linear-740b9032.js → linear-32da3f07.js} +1 -1
- package/dist/{linear-d8b7ca63.js → linear-db016d0c.js} +100 -100
- package/dist/{mermaid-be6aa4a6.js → mermaid-42f7bf2b.js} +1626 -3089
- package/dist/{mermaid-bf016224.js → mermaid-766fee4c.js} +648 -2109
- package/dist/{mermaid-aad43469.js → mermaid-a98f434b.js} +572 -2033
- package/dist/mermaid.core.mjs +1 -1
- package/dist/mermaid.esm.min.mjs +1 -1
- package/dist/mermaid.esm.mjs +1 -1
- package/dist/mermaid.js +4295 -4216
- package/dist/mermaid.min.js +188 -177
- package/dist/{mindmap-definition-89ece3a3.js → mindmap-definition-0ab67801.js} +3 -5
- package/dist/{mindmap-definition-814021a8.js → mindmap-definition-35a1e92c.js} +38 -40
- package/dist/{mindmap-definition-976fcb28.js → mindmap-definition-a9d0f378.js} +4 -4
- package/dist/ordinal-475e0c0c.js +82 -0
- package/dist/ordinal-5695958c.js +65 -0
- package/dist/{pieDiagram-c8640b32.js → pieDiagram-5efcb91d.js} +1 -4
- package/dist/{pieDiagram-6cdb9dc1.js → pieDiagram-6d9582b9.js} +6 -86
- package/dist/{pieDiagram-c8232900.js → pieDiagram-fd367f1f.js} +205 -267
- package/dist/{quadrantDiagram-073c0def.js → quadrantDiagram-1763608a.js} +8 -8
- package/dist/{quadrantDiagram-f7a9076b.js → quadrantDiagram-559115c7.js} +1 -1
- package/dist/{quadrantDiagram-ddc12d4e.js → quadrantDiagram-a1c81500.js} +4 -4
- package/dist/rendering-util/createText.d.ts +9 -1
- package/dist/rendering-util/handle-markdown-text.d.ts +4 -7
- package/dist/rendering-util/splitText.d.ts +24 -0
- package/dist/rendering-util/splitText.spec.d.ts +1 -0
- package/dist/rendering-util/uid.d.ts +8 -0
- package/dist/{requirementDiagram-30be3ce3.js → requirementDiagram-3256a2fe.js} +5 -7
- package/dist/{requirementDiagram-9d898ddc.js → requirementDiagram-779d93b3.js} +64 -64
- package/dist/{requirementDiagram-429b9d18.js → requirementDiagram-b2d6a344.js} +1 -3
- package/dist/sankeyDiagram-86a66bae.js +822 -0
- package/dist/sankeyDiagram-e679478d.js +649 -0
- package/dist/sankeyDiagram-ebb0d63f.js +1194 -0
- package/dist/sequenceDiagram-169f11ec.js +2210 -0
- package/dist/{sequenceDiagram-25e2353a.js → sequenceDiagram-25152a15.js} +344 -178
- package/dist/{sequenceDiagram-9506b40c.js → sequenceDiagram-583eee82.js} +341 -174
- package/dist/{stateDiagram-eb70e1ce.js → stateDiagram-693ac5fb.js} +6 -16
- package/dist/{stateDiagram-cb3c1d96.js → stateDiagram-6f4bb19d.js} +119 -127
- package/dist/{stateDiagram-0dc7ce84.js → stateDiagram-b1c07dc6.js} +2 -12
- package/dist/{stateDiagram-v2-e65458cd.js → stateDiagram-v2-7c93469e.js} +6 -6
- package/dist/{stateDiagram-v2-d433c073.js → stateDiagram-v2-8f2bb0da.js} +10 -10
- package/dist/{stateDiagram-v2-fab09385.js → stateDiagram-v2-d72c79bd.js} +13 -13
- package/dist/{styles-41b45f07.js → styles-3814544c.js} +58 -55
- package/dist/{styles-be2d7003.js → styles-3fb7b9cf.js} +1 -1
- package/dist/{styles-ca8ceaa2.js → styles-659d7242.js} +138 -138
- package/dist/{styles-ee63b5dc.js → styles-68f7452d.js} +107 -102
- package/dist/{styles-a893c203.js → styles-88ad4441.js} +102 -97
- package/dist/{styles-452f304a.js → styles-8ef4cf23.js} +19 -16
- package/dist/{styles-ebc10a39.js → styles-f19653ad.js} +1 -1
- package/dist/{styles-b820c189.js → styles-f626f8de.js} +1 -1
- package/dist/{styles-7882abfe.js → styles-ff678862.js} +3 -3
- package/dist/{svgDraw-95adee0a.js → svgDraw-5d8a058e.js} +1 -1
- package/dist/{svgDraw-51404f3b.js → svgDraw-af99a425.js} +14 -14
- package/dist/{svgDraw-3835dd7e.js → svgDraw-f57324fe.js} +2 -2
- package/dist/{svgDrawCommon-98448648.js → svgDrawCommon-ce5062a7.js} +1 -1
- package/dist/{svgDrawCommon-bca3f7ce.js → svgDrawCommon-ebe6c236.js} +1 -1
- package/dist/tests/MockedD3.d.ts +24 -23
- package/dist/{timeline-definition-d8415767.js → timeline-definition-0c903a0d.js} +8 -10
- package/dist/{timeline-definition-46a17596.js → timeline-definition-491ea63c.js} +4 -6
- package/dist/{timeline-definition-2ae65266.js → timeline-definition-65183566.js} +185 -186
- package/package.json +28 -17
- package/dist/arc-3976c622.js +0 -84
- package/dist/docs.d.mts +0 -30
- package/dist/flowDiagram-v2-ccf242f5.js +0 -24
- package/dist/ganttDiagram-770f21fb.js +0 -2499
- package/dist/selectAll-8725692e.js +0 -7
- package/dist/selectAll-b44befab.js +0 -7
- package/dist/sequenceDiagram-8f3ae6b9.js +0 -2103
- /package/dist/{diagrams/class/classDiagramGrammar.spec.d.ts → config.spec.d.ts} +0 -0
- /package/dist/{docs.spec.d.ts → diagrams/sankey/parser/sankey.spec.d.ts} +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 - 2022 Knut Sveidqvist
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/accessibility.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Accessibility (a11y) functions, types, helpers
|
|
2
|
+
* Accessibility (a11y) functions, types, helpers.
|
|
3
|
+
*
|
|
3
4
|
* @see https://www.w3.org/WAI/
|
|
4
5
|
* @see https://www.w3.org/TR/wai-aria-1.1/
|
|
5
6
|
* @see https://www.w3.org/TR/svg-aam-1.0/
|
|
6
|
-
*
|
|
7
7
|
*/
|
|
8
|
-
import { D3Element } from './mermaidAPI.js';
|
|
8
|
+
import type { D3Element } from './mermaidAPI.js';
|
|
9
9
|
/**
|
|
10
|
-
* Add role and aria-roledescription to the svg element
|
|
10
|
+
* Add role and aria-roledescription to the svg element.
|
|
11
11
|
*
|
|
12
12
|
* @param svg - d3 object that contains the SVG HTML element
|
|
13
13
|
* @param diagramType - diagram name for to the aria-roledescription
|
|
14
14
|
*/
|
|
15
|
-
export declare function setA11yDiagramInfo(svg: D3Element, diagramType: string
|
|
15
|
+
export declare function setA11yDiagramInfo(svg: D3Element, diagramType: string): void;
|
|
16
16
|
/**
|
|
17
17
|
* Add an accessible title and/or description element to a chart.
|
|
18
18
|
* The title is usually not displayed and the description is never displayed.
|
|
19
19
|
*
|
|
20
|
-
* The following charts display their title as a visual and accessibility element: gantt
|
|
20
|
+
* The following charts display their title as a visual and accessibility element: gantt.
|
|
21
21
|
*
|
|
22
22
|
* @param svg - d3 node to insert the a11y title and desc info
|
|
23
|
-
* @param a11yTitle - a11y title.
|
|
24
|
-
* @param a11yDesc - a11y description.
|
|
23
|
+
* @param a11yTitle - a11y title. undefined or empty strings mean to skip them
|
|
24
|
+
* @param a11yDesc - a11y description. undefined or empty strings mean to skip them
|
|
25
25
|
* @param baseId - id used to construct the a11y title and description id
|
|
26
26
|
*/
|
|
27
|
-
export declare function addSVGa11yTitleDescription(svg: D3Element, a11yTitle: string |
|
|
27
|
+
export declare function addSVGa11yTitleDescription(svg: D3Element, a11yTitle: string | undefined, a11yDesc: string | undefined, baseId: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as constant, p as path } from "./constant-b644328d.js";
|
|
2
|
-
import { aC as halfPi, aD as epsilon,
|
|
2
|
+
import { aC as halfPi, aD as epsilon, V as tau, aE as cos, aF as sin, aG as sqrt, aH as min, aI as abs, aJ as pi, aK as atan2, aL as asin, aM as acos, aN as max } from "./mermaid-766fee4c.js";
|
|
3
3
|
function arcInnerRadius(d) {
|
|
4
4
|
return d.innerRadius;
|
|
5
5
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { c as J, p as sn } from "./constant-2fe7eae5.js";
|
|
2
|
+
import { aC as en, aD as y, V as ln, aE as N, aF as D, aG as V, aH as b, aI as an, aJ as rn, aK as t, aL as un, aM as on, aN as tn } from "./mermaid-42f7bf2b.js";
|
|
3
|
+
function fn(l) {
|
|
4
|
+
return l.innerRadius;
|
|
5
|
+
}
|
|
6
|
+
function cn(l) {
|
|
7
|
+
return l.outerRadius;
|
|
8
|
+
}
|
|
9
|
+
function yn(l) {
|
|
10
|
+
return l.startAngle;
|
|
11
|
+
}
|
|
12
|
+
function gn(l) {
|
|
13
|
+
return l.endAngle;
|
|
14
|
+
}
|
|
15
|
+
function mn(l) {
|
|
16
|
+
return l && l.padAngle;
|
|
17
|
+
}
|
|
18
|
+
function pn(l, x, q, E, h, v, K, a) {
|
|
19
|
+
var s = q - l, n = E - x, m = K - h, i = a - v, r = i * s - m * n;
|
|
20
|
+
if (!(r * r < y))
|
|
21
|
+
return r = (m * (x - v) - i * (l - h)) / r, [l + r * s, x + r * n];
|
|
22
|
+
}
|
|
23
|
+
function U(l, x, q, E, h, v, K) {
|
|
24
|
+
var a = l - q, s = x - E, n = (K ? v : -v) / V(a * a + s * s), m = n * s, i = -n * a, r = l + m, f = x + i, c = q + m, w = E + i, o = (r + c) / 2, C = (f + w) / 2, p = c - r, g = w - f, A = p * p + g * g, F = h - v, P = r * w - c * f, G = (g < 0 ? -1 : 1) * V(tn(0, F * F * A - P * P)), H = (P * g - p * G) / A, d = (-P * p - g * G) / A, R = (P * g + p * G) / A, T = (-P * p + g * G) / A, e = H - o, u = d - C, L = R - o, M = T - C;
|
|
25
|
+
return e * e + u * u > L * L + M * M && (H = R, d = T), {
|
|
26
|
+
cx: H,
|
|
27
|
+
cy: d,
|
|
28
|
+
x01: -m,
|
|
29
|
+
y01: -i,
|
|
30
|
+
x11: H * (h / F - 1),
|
|
31
|
+
y11: d * (h / F - 1)
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
function hn() {
|
|
35
|
+
var l = fn, x = cn, q = J(0), E = null, h = yn, v = gn, K = mn, a = null;
|
|
36
|
+
function s() {
|
|
37
|
+
var n, m, i = +l.apply(this, arguments), r = +x.apply(this, arguments), f = h.apply(this, arguments) - en, c = v.apply(this, arguments) - en, w = an(c - f), o = c > f;
|
|
38
|
+
if (a || (a = n = sn()), r < i && (m = r, r = i, i = m), !(r > y))
|
|
39
|
+
a.moveTo(0, 0);
|
|
40
|
+
else if (w > ln - y)
|
|
41
|
+
a.moveTo(r * N(f), r * D(f)), a.arc(0, 0, r, f, c, !o), i > y && (a.moveTo(i * N(c), i * D(c)), a.arc(0, 0, i, c, f, o));
|
|
42
|
+
else {
|
|
43
|
+
var C = f, p = c, g = f, A = c, F = w, P = w, G = K.apply(this, arguments) / 2, H = G > y && (E ? +E.apply(this, arguments) : V(i * i + r * r)), d = b(an(r - i) / 2, +q.apply(this, arguments)), R = d, T = d, e, u;
|
|
44
|
+
if (H > y) {
|
|
45
|
+
var L = un(H / i * D(G)), M = un(H / r * D(G));
|
|
46
|
+
(F -= L * 2) > y ? (L *= o ? 1 : -1, g += L, A -= L) : (F = 0, g = A = (f + c) / 2), (P -= M * 2) > y ? (M *= o ? 1 : -1, C += M, p -= M) : (P = 0, C = p = (f + c) / 2);
|
|
47
|
+
}
|
|
48
|
+
var O = r * N(C), S = r * D(C), j = i * N(A), z = i * D(A);
|
|
49
|
+
if (d > y) {
|
|
50
|
+
var B = r * N(p), Q = r * D(p), W = i * N(g), X = i * D(g), I;
|
|
51
|
+
if (w < rn && (I = pn(O, S, W, X, B, Q, j, z))) {
|
|
52
|
+
var Y = O - I[0], Z = S - I[1], $ = B - I[0], k = Q - I[1], _ = 1 / D(on((Y * $ + Z * k) / (V(Y * Y + Z * Z) * V($ * $ + k * k))) / 2), nn = V(I[0] * I[0] + I[1] * I[1]);
|
|
53
|
+
R = b(d, (i - nn) / (_ - 1)), T = b(d, (r - nn) / (_ + 1));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
P > y ? T > y ? (e = U(W, X, O, S, r, T, o), u = U(B, Q, j, z, r, T, o), a.moveTo(e.cx + e.x01, e.cy + e.y01), T < d ? a.arc(e.cx, e.cy, T, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, T, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, r, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), !o), a.arc(u.cx, u.cy, T, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : (a.moveTo(O, S), a.arc(0, 0, r, C, p, !o)) : a.moveTo(O, S), !(i > y) || !(F > y) ? a.lineTo(j, z) : R > y ? (e = U(j, z, B, Q, i, -R, o), u = U(O, S, W, X, i, -R, o), a.lineTo(e.cx + e.x01, e.cy + e.y01), R < d ? a.arc(e.cx, e.cy, R, t(e.y01, e.x01), t(u.y01, u.x01), !o) : (a.arc(e.cx, e.cy, R, t(e.y01, e.x01), t(e.y11, e.x11), !o), a.arc(0, 0, i, t(e.cy + e.y11, e.cx + e.x11), t(u.cy + u.y11, u.cx + u.x11), o), a.arc(u.cx, u.cy, R, t(u.y11, u.x11), t(u.y01, u.x01), !o))) : a.arc(0, 0, i, A, g, o);
|
|
57
|
+
}
|
|
58
|
+
if (a.closePath(), n)
|
|
59
|
+
return a = null, n + "" || null;
|
|
60
|
+
}
|
|
61
|
+
return s.centroid = function() {
|
|
62
|
+
var n = (+l.apply(this, arguments) + +x.apply(this, arguments)) / 2, m = (+h.apply(this, arguments) + +v.apply(this, arguments)) / 2 - rn / 2;
|
|
63
|
+
return [N(m) * n, D(m) * n];
|
|
64
|
+
}, s.innerRadius = function(n) {
|
|
65
|
+
return arguments.length ? (l = typeof n == "function" ? n : J(+n), s) : l;
|
|
66
|
+
}, s.outerRadius = function(n) {
|
|
67
|
+
return arguments.length ? (x = typeof n == "function" ? n : J(+n), s) : x;
|
|
68
|
+
}, s.cornerRadius = function(n) {
|
|
69
|
+
return arguments.length ? (q = typeof n == "function" ? n : J(+n), s) : q;
|
|
70
|
+
}, s.padRadius = function(n) {
|
|
71
|
+
return arguments.length ? (E = n == null ? null : typeof n == "function" ? n : J(+n), s) : E;
|
|
72
|
+
}, s.startAngle = function(n) {
|
|
73
|
+
return arguments.length ? (h = typeof n == "function" ? n : J(+n), s) : h;
|
|
74
|
+
}, s.endAngle = function(n) {
|
|
75
|
+
return arguments.length ? (v = typeof n == "function" ? n : J(+n), s) : v;
|
|
76
|
+
}, s.padAngle = function(n) {
|
|
77
|
+
return arguments.length ? (K = typeof n == "function" ? n : J(+n), s) : K;
|
|
78
|
+
}, s.context = function(n) {
|
|
79
|
+
return arguments.length ? (a = n ?? null, s) : a;
|
|
80
|
+
}, s;
|
|
81
|
+
}
|
|
82
|
+
export {
|
|
83
|
+
hn as d
|
|
84
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, m as mermaidAPI, e as sanitizeUrl_1, f as common, h as assignWithDepth, i as calculateTextWidth, j as
|
|
2
|
-
import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-
|
|
1
|
+
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, m as mermaidAPI, 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, n as calculateTextHeight } from "./mermaid-766fee4c.js";
|
|
2
|
+
import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-ce5062a7.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)
|
|
@@ -916,7 +916,7 @@ var parser = function() {
|
|
|
916
916
|
}
|
|
917
917
|
},
|
|
918
918
|
rules: [/^(?:%%\{)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:((?:(?!\}%%)[^:.])*))/, /^(?::)/, /^(?:\}%%)/, /^(?:((?:(?!\}%%).|\n)*))/, /^(?:title\s[^#\n;]+)/, /^(?:accDescription\s[^#\n;]+)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:C4Context\b)/, /^(?:C4Container\b)/, /^(?:C4Component\b)/, /^(?:C4Dynamic\b)/, /^(?:C4Deployment\b)/, /^(?:Person_Ext\b)/, /^(?:Person\b)/, /^(?:SystemQueue_Ext\b)/, /^(?:SystemDb_Ext\b)/, /^(?:System_Ext\b)/, /^(?:SystemQueue\b)/, /^(?:SystemDb\b)/, /^(?:System\b)/, /^(?:Boundary\b)/, /^(?:Enterprise_Boundary\b)/, /^(?:System_Boundary\b)/, /^(?:ContainerQueue_Ext\b)/, /^(?:ContainerDb_Ext\b)/, /^(?:Container_Ext\b)/, /^(?:ContainerQueue\b)/, /^(?:ContainerDb\b)/, /^(?:Container\b)/, /^(?:Container_Boundary\b)/, /^(?:ComponentQueue_Ext\b)/, /^(?:ComponentDb_Ext\b)/, /^(?:Component_Ext\b)/, /^(?:ComponentQueue\b)/, /^(?:ComponentDb\b)/, /^(?:Component\b)/, /^(?:Deployment_Node\b)/, /^(?:Node\b)/, /^(?:Node_L\b)/, /^(?:Node_R\b)/, /^(?:Rel\b)/, /^(?:BiRel\b)/, /^(?:Rel_Up\b)/, /^(?:Rel_U\b)/, /^(?:Rel_Down\b)/, /^(?:Rel_D\b)/, /^(?:Rel_Left\b)/, /^(?:Rel_L\b)/, /^(?:Rel_Right\b)/, /^(?:Rel_R\b)/, /^(?:Rel_Back\b)/, /^(?:RelIndex\b)/, /^(?:UpdateElementStyle\b)/, /^(?:UpdateRelStyle\b)/, /^(?:UpdateLayoutConfig\b)/, /^(?:$)/, /^(?:[(][ ]*[,])/, /^(?:[(])/, /^(?:[)])/, /^(?:,,)/, /^(?:,)/, /^(?:[ ]*["]["])/, /^(?:[ ]*["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:[ ]*[\$])/, /^(?:[^=]*)/, /^(?:[=][ ]*["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:[^,]+)/, /^(?:\{)/, /^(?:\})/, /^(?:[\s]+)/, /^(?:[\n\r]+)/, /^(?:$)/],
|
|
919
|
-
conditions: { "acc_descr_multiline": { "rules": [16, 17], "inclusive": false }, "acc_descr": { "rules": [14], "inclusive": false }, "acc_title": { "rules": [12], "inclusive": false }, "close_directive": { "rules": [], "inclusive": false }, "arg_directive": { "rules": [7, 8], "inclusive": false }, "type_directive": { "rules": [6, 7], "inclusive": false }, "open_directive": { "rules": [5], "inclusive": false }, "string_kv_value": { "rules": [83, 84], "inclusive": false }, "string_kv_key": { "rules": [82], "inclusive": false }, "string_kv": { "rules": [81], "inclusive": false }, "string": { "rules": [78, 79], "inclusive": false }, "attribute": { "rules": [73, 74, 75, 76, 77, 80, 85], "inclusive": false }, "update_layout_config": { "rules": [70, 71, 72, 73], "inclusive": false }, "update_rel_style": { "rules": [70, 71, 72, 73], "inclusive": false }, "update_el_style": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_b": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_r": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_l": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_d": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_u": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_bi": { "rules": [], "inclusive": false }, "rel": { "rules": [70, 71, 72, 73], "inclusive": false }, "node_r": { "rules": [70, 71, 72, 73], "inclusive": false }, "node_l": { "rules": [70, 71, 72, 73], "inclusive": false }, "node": { "rules": [70, 71, 72, 73], "inclusive": false }, "index": { "rules": [], "inclusive": false }, "rel_index": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_ext_queue": { "rules": [], "inclusive": false }, "component_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "component": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_ext_queue": { "rules": [], "inclusive": false }, "container_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "container": { "rules": [70, 71, 72, 73], "inclusive": false }, "birel": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "enterprise_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "system": { "rules": [70, 71, 72, 73], "inclusive": false }, "person_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "person": { "rules": [70, 71, 72, 73], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 9, 10, 11, 13, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 86, 87, 88, 89, 90], "inclusive": true } }
|
|
919
|
+
conditions: { "acc_descr_multiline": { "rules": [16, 17], "inclusive": false }, "acc_descr": { "rules": [14], "inclusive": false }, "acc_title": { "rules": [12], "inclusive": false }, "close_directive": { "rules": [], "inclusive": false }, "arg_directive": { "rules": [7, 8], "inclusive": false }, "type_directive": { "rules": [6, 7], "inclusive": false }, "open_directive": { "rules": [5], "inclusive": false }, "string_kv_value": { "rules": [83, 84], "inclusive": false }, "string_kv_key": { "rules": [82], "inclusive": false }, "string_kv": { "rules": [81], "inclusive": false }, "string": { "rules": [78, 79], "inclusive": false }, "attribute": { "rules": [73, 74, 75, 76, 77, 80, 85], "inclusive": false }, "update_layout_config": { "rules": [70, 71, 72, 73], "inclusive": false }, "update_rel_style": { "rules": [70, 71, 72, 73], "inclusive": false }, "update_el_style": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_b": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_r": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_l": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_d": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_u": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_bi": { "rules": [], "inclusive": false }, "rel": { "rules": [70, 71, 72, 73], "inclusive": false }, "node_r": { "rules": [70, 71, 72, 73], "inclusive": false }, "node_l": { "rules": [70, 71, 72, 73], "inclusive": false }, "node": { "rules": [70, 71, 72, 73], "inclusive": false }, "index": { "rules": [], "inclusive": false }, "rel_index": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_ext_queue": { "rules": [], "inclusive": false }, "component_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "component": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_ext_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "container": { "rules": [70, 71, 72, 73], "inclusive": false }, "birel": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "enterprise_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "system": { "rules": [70, 71, 72, 73], "inclusive": false }, "person_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "person": { "rules": [70, 71, 72, 73], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 9, 10, 11, 13, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 86, 87, 88, 89, 90], "inclusive": true } }
|
|
920
920
|
};
|
|
921
921
|
return lexer2;
|
|
922
922
|
}();
|
|
@@ -2418,15 +2418,15 @@ const draw = function(_text, id, _version, diagObj) {
|
|
|
2418
2418
|
const securityLevel = getConfig().securityLevel;
|
|
2419
2419
|
let sandboxElement;
|
|
2420
2420
|
if (securityLevel === "sandbox") {
|
|
2421
|
-
sandboxElement =
|
|
2421
|
+
sandboxElement = d3select("#i" + id);
|
|
2422
2422
|
}
|
|
2423
|
-
const root = securityLevel === "sandbox" ?
|
|
2423
|
+
const root = securityLevel === "sandbox" ? d3select(sandboxElement.nodes()[0].contentDocument.body) : d3select("body");
|
|
2424
2424
|
let db = diagObj.db;
|
|
2425
2425
|
diagObj.db.setWrap(conf.wrap);
|
|
2426
2426
|
c4ShapeInRow = db.getC4ShapeInRow();
|
|
2427
2427
|
c4BoundaryInRow = db.getC4BoundaryInRow();
|
|
2428
2428
|
log.debug(`C:${JSON.stringify(conf, null, 2)}`);
|
|
2429
|
-
const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) :
|
|
2429
|
+
const diagram2 = securityLevel === "sandbox" ? root.select(`[id="${id}"]`) : d3select(`[id="${id}"]`);
|
|
2430
2430
|
svgDraw.insertComputerIcon(diagram2);
|
|
2431
2431
|
svgDraw.insertDatabaseIcon(diagram2);
|
|
2432
2432
|
svgDraw.insertClockIcon(diagram2);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as Ye, g as Ie, a as Ve, b as je, c as Ut, d as ve, m as Ue, e as Fe, f as le, h as Xe, i as Yt, j as Qt, l as _e, k as ze, w as We, n as xe } from "./mermaid-
|
|
2
|
-
import { d as Qe, g as He } from "./svgDrawCommon-
|
|
1
|
+
import { s as Ye, g as Ie, a as Ve, b as je, c as Ut, d as ve, m as Ue, e as Fe, f as le, h as Xe, i as Yt, j as Qt, l as _e, k as ze, w as We, n as xe } from "./mermaid-42f7bf2b.js";
|
|
2
|
+
import { d as Qe, g as He } from "./svgDrawCommon-ebe6c236.js";
|
|
3
3
|
var qt = function() {
|
|
4
4
|
var e = function(Ot, _, x, m) {
|
|
5
5
|
for (x = x || {}, m = Ot.length; m--; x[Ot[m]] = _)
|
|
@@ -631,7 +631,7 @@ Expecting ` + Wt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : re =
|
|
|
631
631
|
}
|
|
632
632
|
},
|
|
633
633
|
rules: [/^(?:%%\{)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:((?:(?!\}%%)[^:.])*))/, /^(?::)/, /^(?:\}%%)/, /^(?:((?:(?!\}%%).|\n)*))/, /^(?:title\s[^#\n;]+)/, /^(?:accDescription\s[^#\n;]+)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:C4Context\b)/, /^(?:C4Container\b)/, /^(?:C4Component\b)/, /^(?:C4Dynamic\b)/, /^(?:C4Deployment\b)/, /^(?:Person_Ext\b)/, /^(?:Person\b)/, /^(?:SystemQueue_Ext\b)/, /^(?:SystemDb_Ext\b)/, /^(?:System_Ext\b)/, /^(?:SystemQueue\b)/, /^(?:SystemDb\b)/, /^(?:System\b)/, /^(?:Boundary\b)/, /^(?:Enterprise_Boundary\b)/, /^(?:System_Boundary\b)/, /^(?:ContainerQueue_Ext\b)/, /^(?:ContainerDb_Ext\b)/, /^(?:Container_Ext\b)/, /^(?:ContainerQueue\b)/, /^(?:ContainerDb\b)/, /^(?:Container\b)/, /^(?:Container_Boundary\b)/, /^(?:ComponentQueue_Ext\b)/, /^(?:ComponentDb_Ext\b)/, /^(?:Component_Ext\b)/, /^(?:ComponentQueue\b)/, /^(?:ComponentDb\b)/, /^(?:Component\b)/, /^(?:Deployment_Node\b)/, /^(?:Node\b)/, /^(?:Node_L\b)/, /^(?:Node_R\b)/, /^(?:Rel\b)/, /^(?:BiRel\b)/, /^(?:Rel_Up\b)/, /^(?:Rel_U\b)/, /^(?:Rel_Down\b)/, /^(?:Rel_D\b)/, /^(?:Rel_Left\b)/, /^(?:Rel_L\b)/, /^(?:Rel_Right\b)/, /^(?:Rel_R\b)/, /^(?:Rel_Back\b)/, /^(?:RelIndex\b)/, /^(?:UpdateElementStyle\b)/, /^(?:UpdateRelStyle\b)/, /^(?:UpdateLayoutConfig\b)/, /^(?:$)/, /^(?:[(][ ]*[,])/, /^(?:[(])/, /^(?:[)])/, /^(?:,,)/, /^(?:,)/, /^(?:[ ]*["]["])/, /^(?:[ ]*["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:[ ]*[\$])/, /^(?:[^=]*)/, /^(?:[=][ ]*["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:[^,]+)/, /^(?:\{)/, /^(?:\})/, /^(?:[\s]+)/, /^(?:[\n\r]+)/, /^(?:$)/],
|
|
634
|
-
conditions: { acc_descr_multiline: { rules: [16, 17], inclusive: !1 }, acc_descr: { rules: [14], inclusive: !1 }, acc_title: { rules: [12], inclusive: !1 }, close_directive: { rules: [], inclusive: !1 }, arg_directive: { rules: [7, 8], inclusive: !1 }, type_directive: { rules: [6, 7], inclusive: !1 }, open_directive: { rules: [5], inclusive: !1 }, string_kv_value: { rules: [83, 84], inclusive: !1 }, string_kv_key: { rules: [82], inclusive: !1 }, string_kv: { rules: [81], inclusive: !1 }, string: { rules: [78, 79], inclusive: !1 }, attribute: { rules: [73, 74, 75, 76, 77, 80, 85], inclusive: !1 }, update_layout_config: { rules: [70, 71, 72, 73], inclusive: !1 }, update_rel_style: { rules: [70, 71, 72, 73], inclusive: !1 }, update_el_style: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_b: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_r: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_l: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_d: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_u: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_bi: { rules: [], inclusive: !1 }, rel: { rules: [70, 71, 72, 73], inclusive: !1 }, node_r: { rules: [70, 71, 72, 73], inclusive: !1 }, node_l: { rules: [70, 71, 72, 73], inclusive: !1 }, node: { rules: [70, 71, 72, 73], inclusive: !1 }, index: { rules: [], inclusive: !1 }, rel_index: { rules: [70, 71, 72, 73], inclusive: !1 }, component_ext_queue: { rules: [], inclusive: !1 }, component_ext_db: { rules: [70, 71, 72, 73], inclusive: !1 }, component_ext: { rules: [70, 71, 72, 73], inclusive: !1 }, component_queue: { rules: [70, 71, 72, 73], inclusive: !1 }, component_db: { rules: [70, 71, 72, 73], inclusive: !1 }, component: { rules: [70, 71, 72, 73], inclusive: !1 }, container_boundary: { rules: [70, 71, 72, 73], inclusive: !1 }, container_ext_queue: { rules: [], inclusive: !1 }, container_ext_db: { rules: [70, 71, 72, 73], inclusive: !1 }, container_ext: { rules: [70, 71, 72, 73], inclusive: !1 }, container_queue: { rules: [70, 71, 72, 73], inclusive: !1 }, container_db: { rules: [70, 71, 72, 73], inclusive: !1 }, container: { rules: [70, 71, 72, 73], inclusive: !1 }, birel: { rules: [70, 71, 72, 73], inclusive: !1 }, system_boundary: { rules: [70, 71, 72, 73], inclusive: !1 }, enterprise_boundary: { rules: [70, 71, 72, 73], inclusive: !1 }, boundary: { rules: [70, 71, 72, 73], inclusive: !1 }, system_ext_queue: { rules: [70, 71, 72, 73], inclusive: !1 }, system_ext_db: { rules: [70, 71, 72, 73], inclusive: !1 }, system_ext: { rules: [70, 71, 72, 73], inclusive: !1 }, system_queue: { rules: [70, 71, 72, 73], inclusive: !1 }, system_db: { rules: [70, 71, 72, 73], inclusive: !1 }, system: { rules: [70, 71, 72, 73], inclusive: !1 }, person_ext: { rules: [70, 71, 72, 73], inclusive: !1 }, person: { rules: [70, 71, 72, 73], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 9, 10, 11, 13, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 86, 87, 88, 89, 90], inclusive: !0 } }
|
|
634
|
+
conditions: { acc_descr_multiline: { rules: [16, 17], inclusive: !1 }, acc_descr: { rules: [14], inclusive: !1 }, acc_title: { rules: [12], inclusive: !1 }, close_directive: { rules: [], inclusive: !1 }, arg_directive: { rules: [7, 8], inclusive: !1 }, type_directive: { rules: [6, 7], inclusive: !1 }, open_directive: { rules: [5], inclusive: !1 }, string_kv_value: { rules: [83, 84], inclusive: !1 }, string_kv_key: { rules: [82], inclusive: !1 }, string_kv: { rules: [81], inclusive: !1 }, string: { rules: [78, 79], inclusive: !1 }, attribute: { rules: [73, 74, 75, 76, 77, 80, 85], inclusive: !1 }, update_layout_config: { rules: [70, 71, 72, 73], inclusive: !1 }, update_rel_style: { rules: [70, 71, 72, 73], inclusive: !1 }, update_el_style: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_b: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_r: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_l: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_d: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_u: { rules: [70, 71, 72, 73], inclusive: !1 }, rel_bi: { rules: [], inclusive: !1 }, rel: { rules: [70, 71, 72, 73], inclusive: !1 }, node_r: { rules: [70, 71, 72, 73], inclusive: !1 }, node_l: { rules: [70, 71, 72, 73], inclusive: !1 }, node: { rules: [70, 71, 72, 73], inclusive: !1 }, index: { rules: [], inclusive: !1 }, rel_index: { rules: [70, 71, 72, 73], inclusive: !1 }, component_ext_queue: { rules: [], inclusive: !1 }, component_ext_db: { rules: [70, 71, 72, 73], inclusive: !1 }, component_ext: { rules: [70, 71, 72, 73], inclusive: !1 }, component_queue: { rules: [70, 71, 72, 73], inclusive: !1 }, component_db: { rules: [70, 71, 72, 73], inclusive: !1 }, component: { rules: [70, 71, 72, 73], inclusive: !1 }, container_boundary: { rules: [70, 71, 72, 73], inclusive: !1 }, container_ext_queue: { rules: [70, 71, 72, 73], inclusive: !1 }, container_ext_db: { rules: [70, 71, 72, 73], inclusive: !1 }, container_ext: { rules: [70, 71, 72, 73], inclusive: !1 }, container_queue: { rules: [70, 71, 72, 73], inclusive: !1 }, container_db: { rules: [70, 71, 72, 73], inclusive: !1 }, container: { rules: [70, 71, 72, 73], inclusive: !1 }, birel: { rules: [70, 71, 72, 73], inclusive: !1 }, system_boundary: { rules: [70, 71, 72, 73], inclusive: !1 }, enterprise_boundary: { rules: [70, 71, 72, 73], inclusive: !1 }, boundary: { rules: [70, 71, 72, 73], inclusive: !1 }, system_ext_queue: { rules: [70, 71, 72, 73], inclusive: !1 }, system_ext_db: { rules: [70, 71, 72, 73], inclusive: !1 }, system_ext: { rules: [70, 71, 72, 73], inclusive: !1 }, system_queue: { rules: [70, 71, 72, 73], inclusive: !1 }, system_db: { rules: [70, 71, 72, 73], inclusive: !1 }, system: { rules: [70, 71, 72, 73], inclusive: !1 }, person_ext: { rules: [70, 71, 72, 73], inclusive: !1 }, person: { rules: [70, 71, 72, 73], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 9, 10, 11, 13, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 86, 87, 88, 89, 90], inclusive: !0 } }
|
|
635
635
|
};
|
|
636
636
|
return Ot;
|
|
637
637
|
}();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, m as mermaidAPI, e as common, f as assignWithDepth, h as calculateTextWidth, l as log, i as configureSvgSize, w as wrapLabel, j as calculateTextHeight } from "./mermaid-
|
|
1
|
+
import { s as setAccTitle, g as getAccTitle, a as getAccDescription, b as setAccDescription, c as getConfig, d as sanitizeText, m as mermaidAPI, e as common, f as assignWithDepth, h as calculateTextWidth, l as log, i as configureSvgSize, w as wrapLabel, j as calculateTextHeight } from "./mermaid-a98f434b.js";
|
|
2
2
|
import { select } from "d3";
|
|
3
3
|
import { d as drawRect$1, g as getNoteRect } from "./svgDrawCommon-f26cad39.js";
|
|
4
4
|
import { sanitizeUrl } from "@braintree/sanitize-url";
|
|
@@ -925,7 +925,7 @@ var parser = function() {
|
|
|
925
925
|
}
|
|
926
926
|
},
|
|
927
927
|
rules: [/^(?:%%\{)/, /^(?:.*direction\s+TB[^\n]*)/, /^(?:.*direction\s+BT[^\n]*)/, /^(?:.*direction\s+RL[^\n]*)/, /^(?:.*direction\s+LR[^\n]*)/, /^(?:((?:(?!\}%%)[^:.])*))/, /^(?::)/, /^(?:\}%%)/, /^(?:((?:(?!\}%%).|\n)*))/, /^(?:title\s[^#\n;]+)/, /^(?:accDescription\s[^#\n;]+)/, /^(?:accTitle\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*:\s*)/, /^(?:(?!\n||)*[^\n]*)/, /^(?:accDescr\s*\{\s*)/, /^(?:[\}])/, /^(?:[^\}]*)/, /^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/, /^(?:%%[^\n]*(\r?\n)*)/, /^(?:\s*(\r?\n)+)/, /^(?:\s+)/, /^(?:C4Context\b)/, /^(?:C4Container\b)/, /^(?:C4Component\b)/, /^(?:C4Dynamic\b)/, /^(?:C4Deployment\b)/, /^(?:Person_Ext\b)/, /^(?:Person\b)/, /^(?:SystemQueue_Ext\b)/, /^(?:SystemDb_Ext\b)/, /^(?:System_Ext\b)/, /^(?:SystemQueue\b)/, /^(?:SystemDb\b)/, /^(?:System\b)/, /^(?:Boundary\b)/, /^(?:Enterprise_Boundary\b)/, /^(?:System_Boundary\b)/, /^(?:ContainerQueue_Ext\b)/, /^(?:ContainerDb_Ext\b)/, /^(?:Container_Ext\b)/, /^(?:ContainerQueue\b)/, /^(?:ContainerDb\b)/, /^(?:Container\b)/, /^(?:Container_Boundary\b)/, /^(?:ComponentQueue_Ext\b)/, /^(?:ComponentDb_Ext\b)/, /^(?:Component_Ext\b)/, /^(?:ComponentQueue\b)/, /^(?:ComponentDb\b)/, /^(?:Component\b)/, /^(?:Deployment_Node\b)/, /^(?:Node\b)/, /^(?:Node_L\b)/, /^(?:Node_R\b)/, /^(?:Rel\b)/, /^(?:BiRel\b)/, /^(?:Rel_Up\b)/, /^(?:Rel_U\b)/, /^(?:Rel_Down\b)/, /^(?:Rel_D\b)/, /^(?:Rel_Left\b)/, /^(?:Rel_L\b)/, /^(?:Rel_Right\b)/, /^(?:Rel_R\b)/, /^(?:Rel_Back\b)/, /^(?:RelIndex\b)/, /^(?:UpdateElementStyle\b)/, /^(?:UpdateRelStyle\b)/, /^(?:UpdateLayoutConfig\b)/, /^(?:$)/, /^(?:[(][ ]*[,])/, /^(?:[(])/, /^(?:[)])/, /^(?:,,)/, /^(?:,)/, /^(?:[ ]*["]["])/, /^(?:[ ]*["])/, /^(?:["])/, /^(?:[^"]*)/, /^(?:[ ]*[\$])/, /^(?:[^=]*)/, /^(?:[=][ ]*["])/, /^(?:[^"]+)/, /^(?:["])/, /^(?:[^,]+)/, /^(?:\{)/, /^(?:\})/, /^(?:[\s]+)/, /^(?:[\n\r]+)/, /^(?:$)/],
|
|
928
|
-
conditions: { "acc_descr_multiline": { "rules": [16, 17], "inclusive": false }, "acc_descr": { "rules": [14], "inclusive": false }, "acc_title": { "rules": [12], "inclusive": false }, "close_directive": { "rules": [], "inclusive": false }, "arg_directive": { "rules": [7, 8], "inclusive": false }, "type_directive": { "rules": [6, 7], "inclusive": false }, "open_directive": { "rules": [5], "inclusive": false }, "string_kv_value": { "rules": [83, 84], "inclusive": false }, "string_kv_key": { "rules": [82], "inclusive": false }, "string_kv": { "rules": [81], "inclusive": false }, "string": { "rules": [78, 79], "inclusive": false }, "attribute": { "rules": [73, 74, 75, 76, 77, 80, 85], "inclusive": false }, "update_layout_config": { "rules": [70, 71, 72, 73], "inclusive": false }, "update_rel_style": { "rules": [70, 71, 72, 73], "inclusive": false }, "update_el_style": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_b": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_r": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_l": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_d": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_u": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_bi": { "rules": [], "inclusive": false }, "rel": { "rules": [70, 71, 72, 73], "inclusive": false }, "node_r": { "rules": [70, 71, 72, 73], "inclusive": false }, "node_l": { "rules": [70, 71, 72, 73], "inclusive": false }, "node": { "rules": [70, 71, 72, 73], "inclusive": false }, "index": { "rules": [], "inclusive": false }, "rel_index": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_ext_queue": { "rules": [], "inclusive": false }, "component_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "component": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_ext_queue": { "rules": [], "inclusive": false }, "container_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "container": { "rules": [70, 71, 72, 73], "inclusive": false }, "birel": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "enterprise_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "system": { "rules": [70, 71, 72, 73], "inclusive": false }, "person_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "person": { "rules": [70, 71, 72, 73], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 9, 10, 11, 13, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 86, 87, 88, 89, 90], "inclusive": true } }
|
|
928
|
+
conditions: { "acc_descr_multiline": { "rules": [16, 17], "inclusive": false }, "acc_descr": { "rules": [14], "inclusive": false }, "acc_title": { "rules": [12], "inclusive": false }, "close_directive": { "rules": [], "inclusive": false }, "arg_directive": { "rules": [7, 8], "inclusive": false }, "type_directive": { "rules": [6, 7], "inclusive": false }, "open_directive": { "rules": [5], "inclusive": false }, "string_kv_value": { "rules": [83, 84], "inclusive": false }, "string_kv_key": { "rules": [82], "inclusive": false }, "string_kv": { "rules": [81], "inclusive": false }, "string": { "rules": [78, 79], "inclusive": false }, "attribute": { "rules": [73, 74, 75, 76, 77, 80, 85], "inclusive": false }, "update_layout_config": { "rules": [70, 71, 72, 73], "inclusive": false }, "update_rel_style": { "rules": [70, 71, 72, 73], "inclusive": false }, "update_el_style": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_b": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_r": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_l": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_d": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_u": { "rules": [70, 71, 72, 73], "inclusive": false }, "rel_bi": { "rules": [], "inclusive": false }, "rel": { "rules": [70, 71, 72, 73], "inclusive": false }, "node_r": { "rules": [70, 71, 72, 73], "inclusive": false }, "node_l": { "rules": [70, 71, 72, 73], "inclusive": false }, "node": { "rules": [70, 71, 72, 73], "inclusive": false }, "index": { "rules": [], "inclusive": false }, "rel_index": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_ext_queue": { "rules": [], "inclusive": false }, "component_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "component_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "component": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_ext_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "container_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "container": { "rules": [70, 71, 72, 73], "inclusive": false }, "birel": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "enterprise_boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "boundary": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_queue": { "rules": [70, 71, 72, 73], "inclusive": false }, "system_db": { "rules": [70, 71, 72, 73], "inclusive": false }, "system": { "rules": [70, 71, 72, 73], "inclusive": false }, "person_ext": { "rules": [70, 71, 72, 73], "inclusive": false }, "person": { "rules": [70, 71, 72, 73], "inclusive": false }, "INITIAL": { "rules": [0, 1, 2, 3, 4, 9, 10, 11, 13, 15, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 86, 87, 88, 89, 90], "inclusive": true } }
|
|
929
929
|
};
|
|
930
930
|
return lexer2;
|
|
931
931
|
}();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as W, d as M, s as H } from "./styles-
|
|
2
|
-
import { c as S, l as d, j as m, k as X } from "./mermaid-
|
|
3
|
-
import { G as Y, l as Z } from "./layout-
|
|
4
|
-
import { s as l } from "./svgDraw-
|
|
5
|
-
import "./line-
|
|
1
|
+
import { p as W, d as M, s as H } from "./styles-659d7242.js";
|
|
2
|
+
import { c as S, l as d, j as m, k as X } from "./mermaid-42f7bf2b.js";
|
|
3
|
+
import { G as Y, l as Z } from "./layout-c5a37d74.js";
|
|
4
|
+
import { s as l } from "./svgDraw-af99a425.js";
|
|
5
|
+
import "./line-ce5d1152.js";
|
|
6
6
|
import "./array-2ff2c7a6.js";
|
|
7
7
|
import "./constant-2fe7eae5.js";
|
|
8
8
|
let h = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as parser, d as db, s as styles } from "./styles-
|
|
1
|
+
import { p as parser, d as db, s as styles } from "./styles-88ad4441.js";
|
|
2
2
|
import { 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 { c as getConfig, l as log, i as configureSvgSize } from "./mermaid-
|
|
6
|
-
import { s as svgDraw } from "./svgDraw-
|
|
5
|
+
import { c as getConfig, l as log, i as configureSvgSize } from "./mermaid-a98f434b.js";
|
|
6
|
+
import { s as svgDraw } from "./svgDraw-5d8a058e.js";
|
|
7
7
|
import "ts-dedent";
|
|
8
8
|
import "dayjs";
|
|
9
9
|
import "@braintree/sanitize-url";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as parser, d as db, s as styles } from "./styles-
|
|
2
|
-
import { c as getConfig, l as log, j as
|
|
3
|
-
import { G as Graph, l as layout } from "./layout-
|
|
4
|
-
import { s as svgDraw } from "./svgDraw-
|
|
5
|
-
import "./line-
|
|
1
|
+
import { p as parser, d as db, s as styles } from "./styles-68f7452d.js";
|
|
2
|
+
import { c as getConfig, l as log, j as d3select, k as configureSvgSize } from "./mermaid-766fee4c.js";
|
|
3
|
+
import { G as Graph, l as layout } from "./layout-cc6d5710.js";
|
|
4
|
+
import { s as svgDraw } from "./svgDraw-f57324fe.js";
|
|
5
|
+
import "./line-cdadca5f.js";
|
|
6
6
|
import "./array-b7dcf730.js";
|
|
7
7
|
import "./constant-b644328d.js";
|
|
8
8
|
let idCache = {};
|
|
@@ -30,9 +30,9 @@ const draw = function(text, id, _version, diagObj) {
|
|
|
30
30
|
const securityLevel = getConfig().securityLevel;
|
|
31
31
|
let sandboxElement;
|
|
32
32
|
if (securityLevel === "sandbox") {
|
|
33
|
-
sandboxElement =
|
|
33
|
+
sandboxElement = d3select("#i" + id);
|
|
34
34
|
}
|
|
35
|
-
const root = securityLevel === "sandbox" ?
|
|
35
|
+
const root = securityLevel === "sandbox" ? d3select(sandboxElement.nodes()[0].contentDocument.body) : d3select("body");
|
|
36
36
|
const diagram2 = root.select(`[id='${id}']`);
|
|
37
37
|
insertMarkers(diagram2);
|
|
38
38
|
const g = new Graph({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as R, d as N, s as B } from "./styles-
|
|
2
|
-
import { l as c, c as r, j as k,
|
|
3
|
-
import { G as P } from "./layout-
|
|
4
|
-
import { r as $ } from "./index-
|
|
5
|
-
import "./edges-
|
|
6
|
-
import "./createText-
|
|
7
|
-
import "./svgDraw-
|
|
8
|
-
import "./line-
|
|
1
|
+
import { p as R, d as N, s as B } from "./styles-659d7242.js";
|
|
2
|
+
import { l as c, c as r, j as k, z as G, t as _, r as E, o as C, p as z, f as A } from "./mermaid-42f7bf2b.js";
|
|
3
|
+
import { G as P } from "./layout-c5a37d74.js";
|
|
4
|
+
import { r as $ } from "./index-d0b453e2.js";
|
|
5
|
+
import "./edges-558884ee.js";
|
|
6
|
+
import "./createText-94e3ebbf.js";
|
|
7
|
+
import "./svgDraw-af99a425.js";
|
|
8
|
+
import "./line-ce5d1152.js";
|
|
9
9
|
import "./array-2ff2c7a6.js";
|
|
10
10
|
import "./constant-2fe7eae5.js";
|
|
11
11
|
const S = (o) => A.sanitizeText(o, r());
|
|
@@ -58,7 +58,7 @@ const q = function(o, t, p, n) {
|
|
|
58
58
|
});
|
|
59
59
|
}, F = function(o, t, p, n) {
|
|
60
60
|
c.info(o), o.forEach(function(e, s) {
|
|
61
|
-
var m,
|
|
61
|
+
var m, x;
|
|
62
62
|
const l = e, a = "", i = { labelStyle: "", style: "" }, y = l.text, d = 0, f = "note", h = {
|
|
63
63
|
labelStyle: i.labelStyle,
|
|
64
64
|
shape: f,
|
|
@@ -73,7 +73,7 @@ const q = function(o, t, p, n) {
|
|
|
73
73
|
tooltip: "",
|
|
74
74
|
type: "note",
|
|
75
75
|
// TODO V10: Flowchart ? Keeping flowchart for backwards compatibility. Remove in next major release
|
|
76
|
-
padding: ((m = r().flowchart) == null ? void 0 : m.padding) ?? ((
|
|
76
|
+
padding: ((m = r().flowchart) == null ? void 0 : m.padding) ?? ((x = r().class) == null ? void 0 : x.padding)
|
|
77
77
|
};
|
|
78
78
|
if (t.setNode(l.id, h), c.info("setNode", h), !l.class || !(l.class in n))
|
|
79
79
|
return;
|
|
@@ -150,9 +150,9 @@ const q = function(o, t, p, n) {
|
|
|
150
150
|
c.info(f), q(y, i, t, n), I(d, i, t, n), H(f, i), F(h, i, f.length + 1, d);
|
|
151
151
|
let b;
|
|
152
152
|
s === "sandbox" && (b = k("#i" + t));
|
|
153
|
-
const u = s === "sandbox" ? k(b.nodes()[0].contentDocument.body) : k("body"), m = u.select(`[id="${t}"]`),
|
|
153
|
+
const u = s === "sandbox" ? k(b.nodes()[0].contentDocument.body) : k("body"), m = u.select(`[id="${t}"]`), x = u.select("#" + t + " g");
|
|
154
154
|
if (await $(
|
|
155
|
-
|
|
155
|
+
x,
|
|
156
156
|
i,
|
|
157
157
|
["aggregation", "extension", "composition", "dependency", "lollipop"],
|
|
158
158
|
"classDiagram",
|
|
@@ -160,8 +160,8 @@ const q = function(o, t, p, n) {
|
|
|
160
160
|
), G.insertTitle(m, "classTitleText", (e == null ? void 0 : e.titleTopMargin) ?? 5, n.db.getDiagramTitle()), _(i, m, e == null ? void 0 : e.diagramPadding, e == null ? void 0 : e.useMaxWidth), !(e != null && e.htmlLabels)) {
|
|
161
161
|
const T = s === "sandbox" ? b.nodes()[0].contentDocument : document, M = T.querySelectorAll('[id="' + t + '"] .edgeLabel .label');
|
|
162
162
|
for (const w of M) {
|
|
163
|
-
const L = w.getBBox(),
|
|
164
|
-
|
|
163
|
+
const L = w.getBBox(), g = T.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
164
|
+
g.setAttribute("rx", 0), g.setAttribute("ry", 0), g.setAttribute("width", L.width), g.setAttribute("height", L.height), w.insertBefore(g, w.firstChild);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as parser, d as db, s as styles } from "./styles-
|
|
1
|
+
import { p as parser, d as db, s as styles } from "./styles-88ad4441.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, p as setupGraphViewbox, o as interpolateToCurve, k as getStylesFromArray, e as common } from "./mermaid-
|
|
5
|
-
import { r as render } from "./index-
|
|
4
|
+
import { l as log, c as getConfig, u as utils, p as setupGraphViewbox, o as interpolateToCurve, k as getStylesFromArray, e as common } from "./mermaid-a98f434b.js";
|
|
5
|
+
import { r as render } from "./index-4c4adb72.js";
|
|
6
6
|
import "ts-dedent";
|
|
7
7
|
import "dayjs";
|
|
8
8
|
import "@braintree/sanitize-url";
|
|
@@ -13,10 +13,10 @@ import "stylis";
|
|
|
13
13
|
import "lodash-es/isEmpty.js";
|
|
14
14
|
import "dagre-d3-es/src/dagre/index.js";
|
|
15
15
|
import "dagre-d3-es/src/graphlib/json.js";
|
|
16
|
-
import "./edges-
|
|
17
|
-
import "./createText-
|
|
16
|
+
import "./edges-b00f0ec2.js";
|
|
17
|
+
import "./createText-285e50b4.js";
|
|
18
18
|
import "mdast-util-from-markdown";
|
|
19
|
-
import "./svgDraw-
|
|
19
|
+
import "./svgDraw-5d8a058e.js";
|
|
20
20
|
const sanitizeText = (txt) => common.sanitizeText(txt, getConfig());
|
|
21
21
|
let conf = {
|
|
22
22
|
dividerMargin: 10,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { p as parser, d as db, s as styles } from "./styles-
|
|
2
|
-
import { l as log, c as getConfig, j as
|
|
3
|
-
import { G as Graph } from "./layout-
|
|
4
|
-
import { r as render } from "./index-
|
|
5
|
-
import "./edges-
|
|
6
|
-
import "./createText-
|
|
7
|
-
import "./svgDraw-
|
|
8
|
-
import "./line-
|
|
1
|
+
import { p as parser, d as db, s as styles } from "./styles-68f7452d.js";
|
|
2
|
+
import { l as log, c as getConfig, j as d3select, z as utils, t as setupGraphViewbox, r as interpolateToCurve, o as curveLinear, p as getStylesFromArray, f as common } from "./mermaid-766fee4c.js";
|
|
3
|
+
import { G as Graph } from "./layout-cc6d5710.js";
|
|
4
|
+
import { r as render } from "./index-4ba10627.js";
|
|
5
|
+
import "./edges-df708b89.js";
|
|
6
|
+
import "./createText-2c3b104b.js";
|
|
7
|
+
import "./svgDraw-f57324fe.js";
|
|
8
|
+
import "./line-cdadca5f.js";
|
|
9
9
|
import "./array-b7dcf730.js";
|
|
10
10
|
import "./constant-b644328d.js";
|
|
11
11
|
const sanitizeText = (txt) => common.sanitizeText(txt, getConfig());
|
|
@@ -216,9 +216,9 @@ const draw = async function(text, id, _version, diagObj) {
|
|
|
216
216
|
addNotes(notes, g, relations.length + 1, classes);
|
|
217
217
|
let sandboxElement;
|
|
218
218
|
if (securityLevel === "sandbox") {
|
|
219
|
-
sandboxElement =
|
|
219
|
+
sandboxElement = d3select("#i" + id);
|
|
220
220
|
}
|
|
221
|
-
const root = securityLevel === "sandbox" ?
|
|
221
|
+
const root = securityLevel === "sandbox" ? d3select(sandboxElement.nodes()[0].contentDocument.body) : d3select("body");
|
|
222
222
|
const svg = root.select(`[id="${id}"]`);
|
|
223
223
|
const element = root.select("#" + id + " g");
|
|
224
224
|
await render(
|