smart-chat-asp 1.0.9 → 1.0.11-alpha
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/lib/arc-82b5f84b.mjs +86 -0
- package/lib/{blockDiagram-38ab4fdb-6d96e231.mjs → blockDiagram-68f4deed-105bd34d.mjs} +47 -47
- package/lib/{c4Diagram-3d4e48cf-e2fd72c2.mjs → c4Diagram-15b5d702-42b67bb9.mjs} +58 -58
- package/lib/channel-10e04cda.mjs +5 -0
- package/lib/{classDiagram-70f12bd4-2b435834.mjs → classDiagram-d40c83e7-362a6c94.mjs} +8 -8
- package/lib/{classDiagram-v2-f2320105-a49ebdd8.mjs → classDiagram-v2-d5a6b087-48362dbe.mjs} +19 -19
- package/lib/{clone-b60360d2.mjs → clone-4b48de85.mjs} +1 -1
- package/lib/{createText-2e5e7dd3-44c5b688.mjs → createText-d213de94-1789b472.mjs} +243 -240
- package/lib/{edges-e0da2a9e-5be5536e.mjs → edges-332bd1c7-7aafddd3.mjs} +335 -330
- package/lib/{erDiagram-9861fffd-6425428b.mjs → erDiagram-880f2ed8-fed7e4c8.mjs} +23 -23
- package/lib/{flowDb-956e92f1-ea19a5b4.mjs → flowDb-7c981674-055e0d96.mjs} +154 -154
- package/lib/{flowDiagram-66a62f08-8d145341.mjs → flowDiagram-cbd28bf7-1ce62dc8.mjs} +42 -42
- package/lib/flowDiagram-v2-ffc7f31a-95dd2a99.mjs +26 -0
- package/lib/{flowchart-elk-definition-4a651766-4d3e7a91.mjs → flowchart-elk-definition-36e2d292-42946ba0.mjs} +5 -5
- package/lib/{ganttDiagram-c361ad54-87210924.mjs → ganttDiagram-04f9e578-e7e05fdb.mjs} +218 -218
- package/lib/{gitGraphDiagram-72cf32ee-638205f0.mjs → gitGraphDiagram-21fc4d3e-74a61fef.mjs} +72 -72
- package/lib/{graph-dba06458.mjs → graph-75999f58.mjs} +31 -31
- package/lib/{index-3862675e-21aabd4d.mjs → index-6079d271-ea6c3891.mjs} +15 -15
- package/lib/{infoDiagram-f8f76790-95e7506a.mjs → infoDiagram-4a4f5b27-0d7de167.mjs} +8 -8
- package/lib/{journeyDiagram-49397b02-d33ea414.mjs → journeyDiagram-29694f62-0e18b05d.mjs} +36 -36
- package/lib/layout-53df66fe.mjs +1525 -0
- package/lib/{main-e089ce7a.mjs → lib-27e4b018.mjs} +30679 -40797
- package/lib/{line-d8285e6b.mjs → line-371a7c5d.mjs} +6 -6
- package/lib/{linear-f5bc5649.mjs → linear-07b66961.mjs} +34 -34
- package/lib/{mindmap-definition-fc14e90a-46fa8f53.mjs → mindmap-definition-ac74a2e8-f141b3e7.mjs} +7824 -7718
- package/lib/{pieDiagram-8a3498a8-5fe75c8b.mjs → pieDiagram-421022e6-d230f460.mjs} +30 -30
- package/lib/{quadrantDiagram-120e2f19-aa2a3556.mjs → quadrantDiagram-0957ecba-d0cabed5.mjs} +20 -20
- package/lib/{requirementDiagram-deff3bca-49799504.mjs → requirementDiagram-23d650b8-8d9a929b.mjs} +94 -94
- package/lib/{sankeyDiagram-04a897e0-496a5c51.mjs → sankeyDiagram-23345273-82f8a55a.mjs} +75 -75
- package/lib/{sequenceDiagram-704730f1-4b7e6b5b.mjs → sequenceDiagram-17ac3bff-266eddad.mjs} +223 -223
- package/lib/smart-chat.es.js +1 -1
- package/lib/{stateDiagram-587899a1-d19e68d9.mjs → stateDiagram-9c5f0230-59f0dd1a.mjs} +14 -14
- package/lib/{stateDiagram-v2-d93cdb3a-8e0be538.mjs → stateDiagram-v2-51a3dcff-32afdae9.mjs} +27 -27
- package/lib/style.css +1 -1
- package/lib/{styles-c10674c1-79a88dd1.mjs → styles-2ab5d517-dce69c23.mjs} +26 -23
- package/lib/{styles-9a916d00-e9f9ac70.mjs → styles-5f03d8d2-c250586e.mjs} +31 -31
- package/lib/{styles-6aaf32cf-cacf5faa.mjs → styles-edf9a4b0-bf19d3be.mjs} +10 -10
- package/lib/{svgDrawCommon-08f97a94-a6274c96.mjs → svgDrawCommon-3ba9043b-459b72ab.mjs} +3 -3
- package/lib/{timeline-definition-85554ec2-beda21c3.mjs → timeline-definition-7e6b55e7-9460f1c6.mjs} +110 -110
- package/lib/{xychartDiagram-e933f94c-dc7dc95c.mjs → xychartDiagram-b6496bcd-e1c7fd2d.mjs} +4 -4
- package/package.json +5 -2
- package/lib/arc-0e2c1f8e.mjs +0 -86
- package/lib/channel-438b08e5.mjs +0 -5
- package/lib/flowDiagram-v2-96b9c2cf-e7759e98.mjs +0 -26
- package/lib/index-2eddd027.mjs +0 -1507
- package/lib/layout-593073b9.mjs +0 -1495
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { d as Le, g as Ne } from "./svgDrawCommon-
|
|
1
|
+
import { s as we, g as Oe, a as Te, b as Re, c as Dt, d as ue, e as De, f as wt, h as Nt, l as le, i as Se, w as Pe, j as Kt, k as oe, m as Me } from "./lib-27e4b018.mjs";
|
|
2
|
+
import { d as Le, g as Ne } from "./svgDrawCommon-3ba9043b-459b72ab.mjs";
|
|
3
3
|
import "vue";
|
|
4
4
|
var Yt = function() {
|
|
5
5
|
var e = function(bt, _, x, m) {
|
|
6
6
|
for (x = x || {}, m = bt.length; m--; x[bt[m]] = _)
|
|
7
7
|
;
|
|
8
8
|
return x;
|
|
9
|
-
}, t = [1, 24], a = [1, 25], o = [1, 26], l = [1, 27], i = [1, 28], s = [1, 63], r = [1, 64], n = [1, 65], h = [1, 66], f = [1, 67], d = [1, 68], p = [1, 69], E = [1, 29],
|
|
9
|
+
}, t = [1, 24], a = [1, 25], o = [1, 26], l = [1, 27], i = [1, 28], s = [1, 63], r = [1, 64], n = [1, 65], h = [1, 66], f = [1, 67], d = [1, 68], p = [1, 69], E = [1, 29], O = [1, 30], R = [1, 31], S = [1, 32], L = [1, 33], Y = [1, 34], Q = [1, 35], H = [1, 36], q = [1, 37], G = [1, 38], K = [1, 39], J = [1, 40], Z = [1, 41], $ = [1, 42], tt = [1, 43], et = [1, 44], it = [1, 45], nt = [1, 46], st = [1, 47], at = [1, 48], rt = [1, 50], lt = [1, 51], ot = [1, 52], ct = [1, 53], ht = [1, 54], ut = [1, 55], dt = [1, 56], ft = [1, 57], pt = [1, 58], yt = [1, 59], gt = [1, 60], At = [14, 42], Vt = [14, 34, 36, 37, 38, 39, 40, 41, 42, 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, 70, 71, 72, 73, 74], Ot = [12, 14, 34, 36, 37, 38, 39, 40, 41, 42, 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, 70, 71, 72, 73, 74], v = [1, 82], k = [1, 83], A = [1, 84], C = [1, 85], w = [12, 14, 42], ne = [12, 14, 33, 42], Pt = [12, 14, 33, 42, 76, 77, 79, 80], mt = [12, 33], zt = [34, 36, 37, 38, 39, 40, 41, 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, 70, 71, 72, 73, 74], Xt = {
|
|
10
10
|
trace: function() {
|
|
11
11
|
},
|
|
12
12
|
yy: {},
|
|
13
13
|
symbols_: { error: 2, start: 3, mermaidDoc: 4, direction: 5, direction_tb: 6, direction_bt: 7, direction_rl: 8, direction_lr: 9, graphConfig: 10, C4_CONTEXT: 11, NEWLINE: 12, statements: 13, EOF: 14, C4_CONTAINER: 15, C4_COMPONENT: 16, C4_DYNAMIC: 17, C4_DEPLOYMENT: 18, otherStatements: 19, diagramStatements: 20, otherStatement: 21, title: 22, accDescription: 23, acc_title: 24, acc_title_value: 25, acc_descr: 26, acc_descr_value: 27, acc_descr_multiline_value: 28, boundaryStatement: 29, boundaryStartStatement: 30, boundaryStopStatement: 31, boundaryStart: 32, LBRACE: 33, ENTERPRISE_BOUNDARY: 34, attributes: 35, SYSTEM_BOUNDARY: 36, BOUNDARY: 37, CONTAINER_BOUNDARY: 38, NODE: 39, NODE_L: 40, NODE_R: 41, RBRACE: 42, diagramStatement: 43, PERSON: 44, PERSON_EXT: 45, SYSTEM: 46, SYSTEM_DB: 47, SYSTEM_QUEUE: 48, SYSTEM_EXT: 49, SYSTEM_EXT_DB: 50, SYSTEM_EXT_QUEUE: 51, CONTAINER: 52, CONTAINER_DB: 53, CONTAINER_QUEUE: 54, CONTAINER_EXT: 55, CONTAINER_EXT_DB: 56, CONTAINER_EXT_QUEUE: 57, COMPONENT: 58, COMPONENT_DB: 59, COMPONENT_QUEUE: 60, COMPONENT_EXT: 61, COMPONENT_EXT_DB: 62, COMPONENT_EXT_QUEUE: 63, REL: 64, BIREL: 65, REL_U: 66, REL_D: 67, REL_L: 68, REL_R: 69, REL_B: 70, REL_INDEX: 71, UPDATE_EL_STYLE: 72, UPDATE_REL_STYLE: 73, UPDATE_LAYOUT_CONFIG: 74, attribute: 75, STR: 76, STR_KEY: 77, STR_VALUE: 78, ATTRIBUTE: 79, ATTRIBUTE_EMPTY: 80, $accept: 0, $end: 1 },
|
|
14
14
|
terminals_: { 2: "error", 6: "direction_tb", 7: "direction_bt", 8: "direction_rl", 9: "direction_lr", 11: "C4_CONTEXT", 12: "NEWLINE", 14: "EOF", 15: "C4_CONTAINER", 16: "C4_COMPONENT", 17: "C4_DYNAMIC", 18: "C4_DEPLOYMENT", 22: "title", 23: "accDescription", 24: "acc_title", 25: "acc_title_value", 26: "acc_descr", 27: "acc_descr_value", 28: "acc_descr_multiline_value", 33: "LBRACE", 34: "ENTERPRISE_BOUNDARY", 36: "SYSTEM_BOUNDARY", 37: "BOUNDARY", 38: "CONTAINER_BOUNDARY", 39: "NODE", 40: "NODE_L", 41: "NODE_R", 42: "RBRACE", 44: "PERSON", 45: "PERSON_EXT", 46: "SYSTEM", 47: "SYSTEM_DB", 48: "SYSTEM_QUEUE", 49: "SYSTEM_EXT", 50: "SYSTEM_EXT_DB", 51: "SYSTEM_EXT_QUEUE", 52: "CONTAINER", 53: "CONTAINER_DB", 54: "CONTAINER_QUEUE", 55: "CONTAINER_EXT", 56: "CONTAINER_EXT_DB", 57: "CONTAINER_EXT_QUEUE", 58: "COMPONENT", 59: "COMPONENT_DB", 60: "COMPONENT_QUEUE", 61: "COMPONENT_EXT", 62: "COMPONENT_EXT_DB", 63: "COMPONENT_EXT_QUEUE", 64: "REL", 65: "BIREL", 66: "REL_U", 67: "REL_D", 68: "REL_L", 69: "REL_R", 70: "REL_B", 71: "REL_INDEX", 72: "UPDATE_EL_STYLE", 73: "UPDATE_REL_STYLE", 74: "UPDATE_LAYOUT_CONFIG", 76: "STR", 77: "STR_KEY", 78: "STR_VALUE", 79: "ATTRIBUTE", 80: "ATTRIBUTE_EMPTY" },
|
|
15
15
|
productions_: [0, [3, 1], [3, 1], [5, 1], [5, 1], [5, 1], [5, 1], [4, 1], [10, 4], [10, 4], [10, 4], [10, 4], [10, 4], [13, 1], [13, 1], [13, 2], [19, 1], [19, 2], [19, 3], [21, 1], [21, 1], [21, 2], [21, 2], [21, 1], [29, 3], [30, 3], [30, 3], [30, 4], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [32, 2], [31, 1], [20, 1], [20, 2], [20, 3], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 1], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [43, 2], [35, 1], [35, 2], [75, 1], [75, 2], [75, 1], [75, 1]],
|
|
16
|
-
performAction: function(_, x, m, g,
|
|
16
|
+
performAction: function(_, x, m, g, T, u, Tt) {
|
|
17
17
|
var y = u.length - 1;
|
|
18
|
-
switch (
|
|
18
|
+
switch (T) {
|
|
19
19
|
case 3:
|
|
20
20
|
g.setDirection("TB");
|
|
21
21
|
break;
|
|
@@ -182,7 +182,7 @@ var Yt = function() {
|
|
|
182
182
|
break;
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: t, 23: a, 24: o, 26: l, 28: i, 29: 49, 30: 61, 32: 62, 34: s, 36: r, 37: n, 38: h, 39: f, 40: d, 41: p, 43: 23, 44: E, 45:
|
|
185
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 7: [1, 6], 8: [1, 7], 9: [1, 8], 10: 4, 11: [1, 9], 15: [1, 10], 16: [1, 11], 17: [1, 12], 18: [1, 13] }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 7] }, { 1: [2, 3] }, { 1: [2, 4] }, { 1: [2, 5] }, { 1: [2, 6] }, { 12: [1, 14] }, { 12: [1, 15] }, { 12: [1, 16] }, { 12: [1, 17] }, { 12: [1, 18] }, { 13: 19, 19: 20, 20: 21, 21: 22, 22: t, 23: a, 24: o, 26: l, 28: i, 29: 49, 30: 61, 32: 62, 34: s, 36: r, 37: n, 38: h, 39: f, 40: d, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: it, 61: nt, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 13: 70, 19: 20, 20: 21, 21: 22, 22: t, 23: a, 24: o, 26: l, 28: i, 29: 49, 30: 61, 32: 62, 34: s, 36: r, 37: n, 38: h, 39: f, 40: d, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: it, 61: nt, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 13: 71, 19: 20, 20: 21, 21: 22, 22: t, 23: a, 24: o, 26: l, 28: i, 29: 49, 30: 61, 32: 62, 34: s, 36: r, 37: n, 38: h, 39: f, 40: d, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: it, 61: nt, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 13: 72, 19: 20, 20: 21, 21: 22, 22: t, 23: a, 24: o, 26: l, 28: i, 29: 49, 30: 61, 32: 62, 34: s, 36: r, 37: n, 38: h, 39: f, 40: d, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: it, 61: nt, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 13: 73, 19: 20, 20: 21, 21: 22, 22: t, 23: a, 24: o, 26: l, 28: i, 29: 49, 30: 61, 32: 62, 34: s, 36: r, 37: n, 38: h, 39: f, 40: d, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: it, 61: nt, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 14: [1, 74] }, e(At, [2, 13], { 43: 23, 29: 49, 30: 61, 32: 62, 20: 75, 34: s, 36: r, 37: n, 38: h, 39: f, 40: d, 41: p, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: it, 61: nt, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }), e(At, [2, 14]), e(Vt, [2, 16], { 12: [1, 76] }), e(At, [2, 36], { 12: [1, 77] }), e(Ot, [2, 19]), e(Ot, [2, 20]), { 25: [1, 78] }, { 27: [1, 79] }, e(Ot, [2, 23]), { 35: 80, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 86, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 87, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 88, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 89, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 90, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 91, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 92, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 93, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 94, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 95, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 96, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 97, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 98, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 99, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 100, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 101, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 102, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 103, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 104, 75: 81, 76: v, 77: k, 79: A, 80: C }, e(w, [2, 59]), { 35: 105, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 106, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 107, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 108, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 109, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 110, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 111, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 112, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 113, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 114, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 115, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 20: 116, 29: 49, 30: 61, 32: 62, 34: s, 36: r, 37: n, 38: h, 39: f, 40: d, 41: p, 43: 23, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: it, 61: nt, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }, { 12: [1, 118], 33: [1, 117] }, { 35: 119, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 120, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 121, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 122, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 123, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 124, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 35: 125, 75: 81, 76: v, 77: k, 79: A, 80: C }, { 14: [1, 126] }, { 14: [1, 127] }, { 14: [1, 128] }, { 14: [1, 129] }, { 1: [2, 8] }, e(At, [2, 15]), e(Vt, [2, 17], { 21: 22, 19: 130, 22: t, 23: a, 24: o, 26: l, 28: i }), e(At, [2, 37], { 19: 20, 20: 21, 21: 22, 43: 23, 29: 49, 30: 61, 32: 62, 13: 131, 22: t, 23: a, 24: o, 26: l, 28: i, 34: s, 36: r, 37: n, 38: h, 39: f, 40: d, 41: p, 44: E, 45: O, 46: R, 47: S, 48: L, 49: Y, 50: Q, 51: H, 52: q, 53: G, 54: K, 55: J, 56: Z, 57: $, 58: tt, 59: et, 60: it, 61: nt, 62: st, 63: at, 64: rt, 65: lt, 66: ot, 67: ct, 68: ht, 69: ut, 70: dt, 71: ft, 72: pt, 73: yt, 74: gt }), e(Ot, [2, 21]), e(Ot, [2, 22]), e(w, [2, 39]), e(ne, [2, 71], { 75: 81, 35: 132, 76: v, 77: k, 79: A, 80: C }), e(Pt, [2, 73]), { 78: [1, 133] }, e(Pt, [2, 75]), e(Pt, [2, 76]), e(w, [2, 40]), e(w, [2, 41]), e(w, [2, 42]), e(w, [2, 43]), e(w, [2, 44]), e(w, [2, 45]), e(w, [2, 46]), e(w, [2, 47]), e(w, [2, 48]), e(w, [2, 49]), e(w, [2, 50]), e(w, [2, 51]), e(w, [2, 52]), e(w, [2, 53]), e(w, [2, 54]), e(w, [2, 55]), e(w, [2, 56]), e(w, [2, 57]), e(w, [2, 58]), e(w, [2, 60]), e(w, [2, 61]), e(w, [2, 62]), e(w, [2, 63]), e(w, [2, 64]), e(w, [2, 65]), e(w, [2, 66]), e(w, [2, 67]), e(w, [2, 68]), e(w, [2, 69]), e(w, [2, 70]), { 31: 134, 42: [1, 135] }, { 12: [1, 136] }, { 33: [1, 137] }, e(mt, [2, 28]), e(mt, [2, 29]), e(mt, [2, 30]), e(mt, [2, 31]), e(mt, [2, 32]), e(mt, [2, 33]), e(mt, [2, 34]), { 1: [2, 9] }, { 1: [2, 10] }, { 1: [2, 11] }, { 1: [2, 12] }, e(Vt, [2, 18]), e(At, [2, 38]), e(ne, [2, 72]), e(Pt, [2, 74]), e(w, [2, 24]), e(w, [2, 35]), e(zt, [2, 25]), e(zt, [2, 26], { 12: [1, 138] }), e(zt, [2, 27])],
|
|
186
186
|
defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 7], 5: [2, 3], 6: [2, 4], 7: [2, 5], 8: [2, 6], 74: [2, 8], 126: [2, 9], 127: [2, 10], 128: [2, 11], 129: [2, 12] },
|
|
187
187
|
parseError: function(_, x) {
|
|
188
188
|
if (x.recoverable)
|
|
@@ -193,7 +193,7 @@ var Yt = function() {
|
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
parse: function(_) {
|
|
196
|
-
var x = this, m = [0], g = [],
|
|
196
|
+
var x = this, m = [0], g = [], T = [null], u = [], Tt = this.table, y = "", Et = 0, se = 0, ve = 2, ae = 1, ke = u.slice.call(arguments, 1), D = Object.create(this.lexer), vt = { yy: {} };
|
|
197
197
|
for (var Qt in this.yy)
|
|
198
198
|
Object.prototype.hasOwnProperty.call(this.yy, Qt) && (vt.yy[Qt] = this.yy[Qt]);
|
|
199
199
|
D.setInput(_, vt.yy), vt.yy.lexer = D, vt.yy.parser = this, typeof D.yylloc > "u" && (D.yylloc = {});
|
|
@@ -202,14 +202,14 @@ var Yt = function() {
|
|
|
202
202
|
var Ae = D.options && D.options.ranges;
|
|
203
203
|
typeof vt.yy.parseError == "function" ? this.parseError = vt.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
204
204
|
function Ce() {
|
|
205
|
-
var
|
|
206
|
-
return
|
|
205
|
+
var X;
|
|
206
|
+
return X = g.pop() || D.lex() || ae, typeof X != "number" && (X instanceof Array && (g = X, X = g.pop()), X = x.symbols_[X] || X), X;
|
|
207
207
|
}
|
|
208
|
-
for (var M, kt, N, qt, Ct = {}, Mt,
|
|
209
|
-
if (kt = m[m.length - 1], this.defaultActions[kt] ? N = this.defaultActions[kt] : ((M === null || typeof M > "u") && (M = Ce()), N =
|
|
208
|
+
for (var M, kt, N, qt, Ct = {}, Mt, z, re, Lt; ; ) {
|
|
209
|
+
if (kt = m[m.length - 1], this.defaultActions[kt] ? N = this.defaultActions[kt] : ((M === null || typeof M > "u") && (M = Ce()), N = Tt[kt] && Tt[kt][M]), typeof N > "u" || !N.length || !N[0]) {
|
|
210
210
|
var Gt = "";
|
|
211
211
|
Lt = [];
|
|
212
|
-
for (Mt in
|
|
212
|
+
for (Mt in Tt[kt])
|
|
213
213
|
this.terminals_[Mt] && Mt > ve && Lt.push("'" + this.terminals_[Mt] + "'");
|
|
214
214
|
D.showPosition ? Gt = "Parse error on line " + (Et + 1) + `:
|
|
215
215
|
` + D.showPosition() + `
|
|
@@ -225,16 +225,16 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
225
225
|
throw new Error("Parse Error: multiple actions possible at state: " + kt + ", token: " + M);
|
|
226
226
|
switch (N[0]) {
|
|
227
227
|
case 1:
|
|
228
|
-
m.push(M),
|
|
228
|
+
m.push(M), T.push(D.yytext), u.push(D.yylloc), m.push(N[1]), M = null, se = D.yyleng, y = D.yytext, Et = D.yylineno, Ht = D.yylloc;
|
|
229
229
|
break;
|
|
230
230
|
case 2:
|
|
231
|
-
if (
|
|
232
|
-
first_line: u[u.length - (
|
|
231
|
+
if (z = this.productions_[N[1]][1], Ct.$ = T[T.length - z], Ct._$ = {
|
|
232
|
+
first_line: u[u.length - (z || 1)].first_line,
|
|
233
233
|
last_line: u[u.length - 1].last_line,
|
|
234
|
-
first_column: u[u.length - (
|
|
234
|
+
first_column: u[u.length - (z || 1)].first_column,
|
|
235
235
|
last_column: u[u.length - 1].last_column
|
|
236
236
|
}, Ae && (Ct._$.range = [
|
|
237
|
-
u[u.length - (
|
|
237
|
+
u[u.length - (z || 1)].range[0],
|
|
238
238
|
u[u.length - 1].range[1]
|
|
239
239
|
]), qt = this.performAction.apply(Ct, [
|
|
240
240
|
y,
|
|
@@ -242,11 +242,11 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
242
242
|
Et,
|
|
243
243
|
vt.yy,
|
|
244
244
|
N[1],
|
|
245
|
-
|
|
245
|
+
T,
|
|
246
246
|
u
|
|
247
247
|
].concat(ke)), typeof qt < "u")
|
|
248
248
|
return qt;
|
|
249
|
-
|
|
249
|
+
z && (m = m.slice(0, -1 * z * 2), T = T.slice(0, -1 * z), u = u.slice(0, -1 * z)), m.push(this.productions_[N[1]][0]), T.push(Ct.$), u.push(Ct._$), re = Tt[m[m.length - 2]][m[m.length - 1]], m.push(re);
|
|
250
250
|
break;
|
|
251
251
|
case 3:
|
|
252
252
|
return !0;
|
|
@@ -285,13 +285,13 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
285
285
|
this._input = _ + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - x), this.offset -= x;
|
|
286
286
|
var g = this.match.split(/(?:\r\n?|\n)/g);
|
|
287
287
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), m.length - 1 && (this.yylineno -= m.length - 1);
|
|
288
|
-
var
|
|
288
|
+
var T = this.yylloc.range;
|
|
289
289
|
return this.yylloc = {
|
|
290
290
|
first_line: this.yylloc.first_line,
|
|
291
291
|
last_line: this.yylineno + 1,
|
|
292
292
|
first_column: this.yylloc.first_column,
|
|
293
293
|
last_column: m ? (m.length === g.length ? this.yylloc.first_column : 0) + g[g.length - m.length].length - m[0].length : this.yylloc.first_column - x
|
|
294
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
294
|
+
}, this.options.ranges && (this.yylloc.range = [T[0], T[0] + this.yyleng - x]), this.yyleng = this.yytext.length, this;
|
|
295
295
|
},
|
|
296
296
|
// When called from action, caches matched text and appends it on next action
|
|
297
297
|
more: function() {
|
|
@@ -332,8 +332,8 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
332
332
|
},
|
|
333
333
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
334
334
|
test_match: function(_, x) {
|
|
335
|
-
var m, g,
|
|
336
|
-
if (this.options.backtrack_lexer && (
|
|
335
|
+
var m, g, T;
|
|
336
|
+
if (this.options.backtrack_lexer && (T = {
|
|
337
337
|
yylineno: this.yylineno,
|
|
338
338
|
yylloc: {
|
|
339
339
|
first_line: this.yylloc.first_line,
|
|
@@ -352,7 +352,7 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
352
352
|
yy: this.yy,
|
|
353
353
|
conditionStack: this.conditionStack.slice(0),
|
|
354
354
|
done: this.done
|
|
355
|
-
}, this.options.ranges && (
|
|
355
|
+
}, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), g = _[0].match(/(?:\r\n?|\n).*/g), g && (this.yylineno += g.length), this.yylloc = {
|
|
356
356
|
first_line: this.yylloc.last_line,
|
|
357
357
|
last_line: this.yylineno + 1,
|
|
358
358
|
first_column: this.yylloc.last_column,
|
|
@@ -360,8 +360,8 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
360
360
|
}, this.yytext += _[0], this.match += _[0], this.matches = _, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(_[0].length), this.matched += _[0], m = this.performAction.call(this, this.yy, this, x, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), m)
|
|
361
361
|
return m;
|
|
362
362
|
if (this._backtrack) {
|
|
363
|
-
for (var u in
|
|
364
|
-
this[u] =
|
|
363
|
+
for (var u in T)
|
|
364
|
+
this[u] = T[u];
|
|
365
365
|
return !1;
|
|
366
366
|
}
|
|
367
367
|
return !1;
|
|
@@ -373,10 +373,10 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
373
373
|
this._input || (this.done = !0);
|
|
374
374
|
var _, x, m, g;
|
|
375
375
|
this._more || (this.yytext = "", this.match = "");
|
|
376
|
-
for (var
|
|
377
|
-
if (m = this._input.match(this.rules[
|
|
376
|
+
for (var T = this._currentRules(), u = 0; u < T.length; u++)
|
|
377
|
+
if (m = this._input.match(this.rules[T[u]]), m && (!x || m[0].length > x[0].length)) {
|
|
378
378
|
if (x = m, g = u, this.options.backtrack_lexer) {
|
|
379
|
-
if (_ = this.test_match(m,
|
|
379
|
+
if (_ = this.test_match(m, T[u]), _ !== !1)
|
|
380
380
|
return _;
|
|
381
381
|
if (this._backtrack) {
|
|
382
382
|
x = !1;
|
|
@@ -386,7 +386,7 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
386
386
|
} else if (!this.options.flex)
|
|
387
387
|
break;
|
|
388
388
|
}
|
|
389
|
-
return x ? (_ = this.test_match(x,
|
|
389
|
+
return x ? (_ = this.test_match(x, T[g]), _ !== !1 ? _ : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
390
390
|
` + this.showPosition(), {
|
|
391
391
|
text: "",
|
|
392
392
|
token: null,
|
|
@@ -424,7 +424,7 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
424
424
|
return this.conditionStack.length;
|
|
425
425
|
},
|
|
426
426
|
options: {},
|
|
427
|
-
performAction: function(x, m, g,
|
|
427
|
+
performAction: function(x, m, g, T) {
|
|
428
428
|
switch (g) {
|
|
429
429
|
case 0:
|
|
430
430
|
return 6;
|
|
@@ -615,11 +615,11 @@ Expecting ` + Lt.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : Gt =
|
|
|
615
615
|
};
|
|
616
616
|
return bt;
|
|
617
617
|
}();
|
|
618
|
-
|
|
618
|
+
Xt.lexer = Ee;
|
|
619
619
|
function Wt() {
|
|
620
620
|
this.yy = {};
|
|
621
621
|
}
|
|
622
|
-
return Wt.prototype =
|
|
622
|
+
return Wt.prototype = Xt, Xt.Parser = Wt, new Wt();
|
|
623
623
|
}();
|
|
624
624
|
Yt.parser = Yt;
|
|
625
625
|
const Be = Yt;
|
|
@@ -771,7 +771,7 @@ const Ye = function() {
|
|
|
771
771
|
} else
|
|
772
772
|
n.link = r;
|
|
773
773
|
n.wrap = xt(), n.typeC4Shape = { text: e }, n.parentBoundary = P;
|
|
774
|
-
},
|
|
774
|
+
}, ze = function(e, t, a, o, l) {
|
|
775
775
|
if (e === null || t === null)
|
|
776
776
|
return;
|
|
777
777
|
let i = {};
|
|
@@ -794,7 +794,7 @@ const Ye = function() {
|
|
|
794
794
|
} else
|
|
795
795
|
i.link = l;
|
|
796
796
|
i.parentBoundary = P, i.wrap = xt(), j = P, P = e, _t.push(j);
|
|
797
|
-
},
|
|
797
|
+
}, Xe = function(e, t, a, o, l) {
|
|
798
798
|
if (e === null || t === null)
|
|
799
799
|
return;
|
|
800
800
|
let i = {};
|
|
@@ -1018,9 +1018,9 @@ const Ye = function() {
|
|
|
1018
1018
|
te = ue(e, Dt());
|
|
1019
1019
|
}, Jt = {
|
|
1020
1020
|
addPersonOrSystem: Ue,
|
|
1021
|
-
addPersonOrSystemBoundary:
|
|
1021
|
+
addPersonOrSystemBoundary: ze,
|
|
1022
1022
|
addContainer: Fe,
|
|
1023
|
-
addContainerBoundary:
|
|
1023
|
+
addContainerBoundary: Xe,
|
|
1024
1024
|
addComponent: Ve,
|
|
1025
1025
|
addDeploymentNode: We,
|
|
1026
1026
|
popBoundaryParseStack: Qe,
|
|
@@ -1043,8 +1043,8 @@ const Ye = function() {
|
|
|
1043
1043
|
getC4ShapeInRow: Ke,
|
|
1044
1044
|
getC4BoundaryInRow: Je,
|
|
1045
1045
|
setAccTitle: we,
|
|
1046
|
-
getAccTitle:
|
|
1047
|
-
getAccDescription:
|
|
1046
|
+
getAccTitle: Oe,
|
|
1047
|
+
getAccDescription: Te,
|
|
1048
1048
|
setAccDescription: Re,
|
|
1049
1049
|
getConfig: () => Dt().c4,
|
|
1050
1050
|
clear: r0,
|
|
@@ -1287,15 +1287,15 @@ const Ye = function() {
|
|
|
1287
1287
|
o(d, f);
|
|
1288
1288
|
}
|
|
1289
1289
|
function t(l, i, s, r, n, h, f, d) {
|
|
1290
|
-
const { fontSize: p, fontFamily: E, fontWeight:
|
|
1290
|
+
const { fontSize: p, fontFamily: E, fontWeight: O } = d, R = l.split(Kt.lineBreakRegex);
|
|
1291
1291
|
for (let S = 0; S < R.length; S++) {
|
|
1292
|
-
const L = S * p - p * (R.length - 1) / 2, Y = i.append("text").attr("x", s + n / 2).attr("y", r).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", p).style("font-weight",
|
|
1292
|
+
const L = S * p - p * (R.length - 1) / 2, Y = i.append("text").attr("x", s + n / 2).attr("y", r).style("text-anchor", "middle").attr("dominant-baseline", "middle").style("font-size", p).style("font-weight", O).style("font-family", E);
|
|
1293
1293
|
Y.append("tspan").attr("dy", L).text(R[S]).attr("alignment-baseline", "mathematical"), o(Y, f);
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
1296
|
function a(l, i, s, r, n, h, f, d) {
|
|
1297
|
-
const p = i.append("switch"),
|
|
1298
|
-
|
|
1297
|
+
const p = i.append("switch"), O = p.append("foreignObject").attr("x", s).attr("y", r).attr("width", n).attr("height", h).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
1298
|
+
O.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(l), t(l, p, s, r, n, h, f, d), o(O, f);
|
|
1299
1299
|
}
|
|
1300
1300
|
function o(l, i) {
|
|
1301
1301
|
for (const s in i)
|
|
@@ -1478,31 +1478,31 @@ function me(e, t, a, o, l) {
|
|
|
1478
1478
|
i.data.widthLimit
|
|
1479
1479
|
), r.label.Y = n + 8, n = r.label.Y + r.label.height, r.type && r.type.text !== "") {
|
|
1480
1480
|
r.type.text = "[" + r.type.text + "]";
|
|
1481
|
-
let
|
|
1481
|
+
let O = Bt(b);
|
|
1482
1482
|
I(
|
|
1483
1483
|
"type",
|
|
1484
1484
|
r,
|
|
1485
1485
|
h,
|
|
1486
|
-
|
|
1486
|
+
O,
|
|
1487
1487
|
i.data.widthLimit
|
|
1488
1488
|
), r.type.Y = n + 5, n = r.type.Y + r.type.height;
|
|
1489
1489
|
}
|
|
1490
1490
|
if (r.descr && r.descr.text !== "") {
|
|
1491
|
-
let
|
|
1492
|
-
|
|
1491
|
+
let O = Bt(b);
|
|
1492
|
+
O.fontSize = O.fontSize - 2, I(
|
|
1493
1493
|
"descr",
|
|
1494
1494
|
r,
|
|
1495
1495
|
h,
|
|
1496
|
-
|
|
1496
|
+
O,
|
|
1497
1497
|
i.data.widthLimit
|
|
1498
1498
|
), r.descr.Y = n + 20, n = r.descr.Y + r.descr.height;
|
|
1499
1499
|
}
|
|
1500
1500
|
if (s == 0 || s % Zt === 0) {
|
|
1501
|
-
let
|
|
1502
|
-
i.setData(
|
|
1501
|
+
let O = a.data.startx + b.diagramMarginX, R = a.data.stopy + b.diagramMarginY + n;
|
|
1502
|
+
i.setData(O, O, R, R);
|
|
1503
1503
|
} else {
|
|
1504
|
-
let
|
|
1505
|
-
i.setData(
|
|
1504
|
+
let O = i.data.stopx !== i.data.startx ? i.data.stopx + b.diagramMarginX : i.data.startx, R = i.data.starty;
|
|
1505
|
+
i.setData(O, O, R, R);
|
|
1506
1506
|
}
|
|
1507
1507
|
i.name = r.alias;
|
|
1508
1508
|
let d = l.db.getC4ShapeArray(r.alias), p = l.db.getC4ShapeKeys(r.alias);
|
|
@@ -1549,28 +1549,28 @@ const w0 = function(e, t, a, o) {
|
|
|
1549
1549
|
let d = o.db.getBoundarys("");
|
|
1550
1550
|
me(n, "", h, d, o), F.insertArrowHead(n), F.insertArrowEnd(n), F.insertArrowCrossHead(n), F.insertArrowFilledHead(n), C0(n, o.db.getRels(), o.db.getC4Shape, o), h.data.stopx = Ut, h.data.stopy = Ft;
|
|
1551
1551
|
const p = h.data;
|
|
1552
|
-
let
|
|
1552
|
+
let O = p.stopy - p.starty + 2 * b.diagramMarginY;
|
|
1553
1553
|
const S = p.stopx - p.startx + 2 * b.diagramMarginX;
|
|
1554
|
-
f && n.append("text").text(f).attr("x", (p.stopx - p.startx) / 2 - 4 * b.diagramMarginX).attr("y", p.starty + b.diagramMarginY), Se(n,
|
|
1554
|
+
f && n.append("text").text(f).attr("x", (p.stopx - p.startx) / 2 - 4 * b.diagramMarginX).attr("y", p.starty + b.diagramMarginY), Se(n, O, S, b.useMaxWidth);
|
|
1555
1555
|
const L = f ? 60 : 0;
|
|
1556
1556
|
n.attr(
|
|
1557
1557
|
"viewBox",
|
|
1558
|
-
p.startx - b.diagramMarginX + " -" + (b.diagramMarginY + L) + " " + S + " " + (
|
|
1558
|
+
p.startx - b.diagramMarginX + " -" + (b.diagramMarginY + L) + " " + S + " " + (O + L)
|
|
1559
1559
|
), le.debug("models:", p);
|
|
1560
1560
|
}, he = {
|
|
1561
1561
|
drawPersonOrSystemArray: xe,
|
|
1562
1562
|
drawBoundary: _e,
|
|
1563
1563
|
setConf: $t,
|
|
1564
1564
|
draw: w0
|
|
1565
|
-
},
|
|
1565
|
+
}, O0 = (e) => `.person {
|
|
1566
1566
|
stroke: ${e.personBorder};
|
|
1567
1567
|
fill: ${e.personBkg};
|
|
1568
1568
|
}
|
|
1569
|
-
`,
|
|
1569
|
+
`, T0 = O0, P0 = {
|
|
1570
1570
|
parser: Be,
|
|
1571
1571
|
db: Jt,
|
|
1572
1572
|
renderer: he,
|
|
1573
|
-
styles:
|
|
1573
|
+
styles: T0,
|
|
1574
1574
|
init: ({ c4: e, wrap: t }) => {
|
|
1575
1575
|
he.setConf(e), Jt.setWrap(t);
|
|
1576
1576
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { p as A, d as S, s as G } from "./styles-
|
|
2
|
-
import {
|
|
3
|
-
import { G as
|
|
4
|
-
import { l as
|
|
5
|
-
import { l as
|
|
1
|
+
import { p as A, d as S, s as G } from "./styles-5f03d8d2-c250586e.mjs";
|
|
2
|
+
import { c as v, l as y, h as B, i as W, F as $, A as M, G as I } from "./lib-27e4b018.mjs";
|
|
3
|
+
import { G as O } from "./graph-75999f58.mjs";
|
|
4
|
+
import { l as P } from "./layout-53df66fe.mjs";
|
|
5
|
+
import { l as X } from "./line-371a7c5d.mjs";
|
|
6
6
|
import "vue";
|
|
7
7
|
import "./array-2ff2c7a6.mjs";
|
|
8
8
|
import "./path-428ebac9.mjs";
|
|
@@ -23,7 +23,7 @@ const Y = function(i, a, t, o, p) {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
a.points = a.points.filter((e) => !Number.isNaN(e.y));
|
|
26
|
-
const s = a.points, c =
|
|
26
|
+
const s = a.points, c = X().x(function(e) {
|
|
27
27
|
return e.x;
|
|
28
28
|
}).y(function(e) {
|
|
29
29
|
return e.y;
|
|
@@ -149,7 +149,7 @@ const E = 20, L = function(i) {
|
|
|
149
149
|
g === "sandbox" && (s = B("#i" + a));
|
|
150
150
|
const c = g === "sandbox" ? B(s.nodes()[0].contentDocument.body) : B("body"), n = c.select(`[id='${a}']`);
|
|
151
151
|
R(n);
|
|
152
|
-
const r = new
|
|
152
|
+
const r = new O({
|
|
153
153
|
multigraph: !0
|
|
154
154
|
});
|
|
155
155
|
r.setGraph({
|
|
@@ -193,7 +193,7 @@ const E = 20, L = function(i) {
|
|
|
193
193
|
},
|
|
194
194
|
"DEFAULT"
|
|
195
195
|
);
|
|
196
|
-
}),
|
|
196
|
+
}), P(r), r.nodes().forEach(function(e) {
|
|
197
197
|
e !== void 0 && r.node(e) !== void 0 && (y.debug("Node " + e + ": " + JSON.stringify(r.node(e))), c.select("#" + (o.db.lookUpDomId(e) || e)).attr(
|
|
198
198
|
"transform",
|
|
199
199
|
"translate(" + (r.node(e).x - r.node(e).width / 2) + "," + (r.node(e).y - r.node(e).height / 2) + " )"
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { p as M, d as _, s as R } from "./styles-
|
|
2
|
-
import {
|
|
3
|
-
import { G as
|
|
4
|
-
import { r as
|
|
5
|
-
import "./layout-
|
|
1
|
+
import { p as M, d as _, s as R } from "./styles-5f03d8d2-c250586e.mjs";
|
|
2
|
+
import { l as d, c, h as w, A as B, t as G, o as D, q as E, n as A, j as C } from "./lib-27e4b018.mjs";
|
|
3
|
+
import { G as q } from "./graph-75999f58.mjs";
|
|
4
|
+
import { r as z } from "./index-6079d271-ea6c3891.mjs";
|
|
5
|
+
import "./layout-53df66fe.mjs";
|
|
6
6
|
import "vue";
|
|
7
|
-
import "./clone-
|
|
8
|
-
import "./edges-
|
|
9
|
-
import "./createText-
|
|
10
|
-
import "./line-
|
|
7
|
+
import "./clone-4b48de85.mjs";
|
|
8
|
+
import "./edges-332bd1c7-7aafddd3.mjs";
|
|
9
|
+
import "./createText-d213de94-1789b472.mjs";
|
|
10
|
+
import "./line-371a7c5d.mjs";
|
|
11
11
|
import "./array-2ff2c7a6.mjs";
|
|
12
12
|
import "./path-428ebac9.mjs";
|
|
13
|
-
const S = (s) =>
|
|
13
|
+
const S = (s) => C.sanitizeText(s, c());
|
|
14
14
|
let k = {
|
|
15
15
|
dividerMargin: 10,
|
|
16
16
|
padding: 5,
|
|
17
17
|
textHeight: 10,
|
|
18
18
|
curve: void 0
|
|
19
19
|
};
|
|
20
|
-
const
|
|
20
|
+
const P = function(s, e, y, a) {
|
|
21
21
|
const t = Object.keys(s);
|
|
22
22
|
d.info("keys:", t), d.info(s), t.forEach(function(i) {
|
|
23
23
|
var o, r;
|
|
@@ -94,7 +94,7 @@ const q = function(s, e, y, a) {
|
|
|
94
94
|
arrowTypeEnd: "none",
|
|
95
95
|
style: "fill:none",
|
|
96
96
|
labelStyle: "",
|
|
97
|
-
curve: E(k.curve,
|
|
97
|
+
curve: E(k.curve, A)
|
|
98
98
|
};
|
|
99
99
|
e.setEdge(l.id, l.class, x, u);
|
|
100
100
|
});
|
|
@@ -119,13 +119,13 @@ const q = function(s, e, y, a) {
|
|
|
119
119
|
arrowTypeEnd: N(t.relation.type2),
|
|
120
120
|
style: "fill:none",
|
|
121
121
|
labelStyle: "",
|
|
122
|
-
curve: E(y == null ? void 0 : y.curve,
|
|
122
|
+
curve: E(y == null ? void 0 : y.curve, A)
|
|
123
123
|
};
|
|
124
124
|
if (d.info(o, t), t.style !== void 0) {
|
|
125
125
|
const r = D(t.style);
|
|
126
126
|
o.style = r.style, o.labelStyle = r.labelStyle;
|
|
127
127
|
}
|
|
128
|
-
t.text = t.title, t.text === void 0 ? t.style !== void 0 && (o.arrowheadStyle = "fill: #333") : (o.arrowheadStyle = "fill: #333", o.labelpos = "c", ((i = c().flowchart) == null ? void 0 : i.htmlLabels) ?? c().htmlLabels ? (o.labelType = "html", o.label = '<span class="edgeLabel">' + t.text + "</span>") : (o.labelType = "text", o.label = t.text.replace(
|
|
128
|
+
t.text = t.title, t.text === void 0 ? t.style !== void 0 && (o.arrowheadStyle = "fill: #333") : (o.arrowheadStyle = "fill: #333", o.labelpos = "c", ((i = c().flowchart) == null ? void 0 : i.htmlLabels) ?? c().htmlLabels ? (o.labelType = "html", o.label = '<span class="edgeLabel">' + t.text + "</span>") : (o.labelType = "text", o.label = t.text.replace(C.lineBreakRegex, `
|
|
129
129
|
`), t.style === void 0 && (o.style = o.style || "stroke: #333; stroke-width: 1.5px;fill:none"), o.labelStyle = o.labelStyle.replace("color:", "fill:"))), e.setEdge(t.id1, t.id2, o, a);
|
|
130
130
|
});
|
|
131
131
|
}, V = function(s) {
|
|
@@ -137,7 +137,7 @@ const q = function(s, e, y, a) {
|
|
|
137
137
|
d.info("Drawing class - ", e);
|
|
138
138
|
const t = c().flowchart ?? c().class, i = c().securityLevel;
|
|
139
139
|
d.info("config:", t);
|
|
140
|
-
const o = (t == null ? void 0 : t.nodeSpacing) ?? 50, r = (t == null ? void 0 : t.rankSpacing) ?? 50, l = new
|
|
140
|
+
const o = (t == null ? void 0 : t.nodeSpacing) ?? 50, r = (t == null ? void 0 : t.rankSpacing) ?? 50, l = new q({
|
|
141
141
|
multigraph: !0,
|
|
142
142
|
compound: !0
|
|
143
143
|
}).setGraph({
|
|
@@ -149,11 +149,11 @@ const q = function(s, e, y, a) {
|
|
|
149
149
|
}).setDefaultEdgeLabel(function() {
|
|
150
150
|
return {};
|
|
151
151
|
}), n = a.db.getNamespaces(), p = a.db.getClasses(), f = a.db.getRelations(), h = a.db.getNotes();
|
|
152
|
-
d.info(f),
|
|
152
|
+
d.info(f), P(n, l, e, a), $(p, l, e, a), H(f, l), F(h, l, f.length + 1, p);
|
|
153
153
|
let b;
|
|
154
154
|
i === "sandbox" && (b = w("#i" + e));
|
|
155
155
|
const m = i === "sandbox" ? w(b.nodes()[0].contentDocument.body) : w("body"), u = m.select(`[id="${e}"]`), x = m.select("#" + e + " g");
|
|
156
|
-
if (await
|
|
156
|
+
if (await z(
|
|
157
157
|
x,
|
|
158
158
|
l,
|
|
159
159
|
["aggregation", "extension", "composition", "dependency", "lollipop"],
|
|
@@ -190,13 +190,13 @@ function N(s) {
|
|
|
190
190
|
}
|
|
191
191
|
return e;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const J = {
|
|
194
194
|
setConf: V,
|
|
195
195
|
draw: W
|
|
196
196
|
}, st = {
|
|
197
197
|
parser: M,
|
|
198
198
|
db: _,
|
|
199
|
-
renderer:
|
|
199
|
+
renderer: J,
|
|
200
200
|
styles: R,
|
|
201
201
|
init: (s) => {
|
|
202
202
|
s.class || (s.class = {}), s.class.arrowMarkerAbsolute = s.arrowMarkerAbsolute, _.clear();
|