@altimateai/ui-components 0.0.77-beta.4 → 0.0.77-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.js +402 -0
- package/dist/CoachForm.css +1 -1
- package/dist/CoachForm.js +21630 -18090
- package/dist/Stack.js +2825 -2276
- package/dist/Switch.js +128 -87
- package/dist/ToggleGroup.js +5956 -4781
- package/dist/_basePickBy.js +25 -25
- package/dist/_baseUniq.js +122 -122
- package/dist/arc.js +36 -36
- package/dist/architectureDiagram-VXUJARFQ.js +1 -1
- package/dist/assets/icons/index.js +1 -1
- package/dist/blockDiagram-VD42YOAC.js +1 -1
- package/dist/c4Diagram-YG6GDRKO.js +22 -22
- package/dist/channel.js +2 -2
- package/dist/chatbotV2/index.d.ts +61 -10
- package/dist/chatbotV2/index.js +442 -56
- package/dist/chunk-4BX2VUAB.js +1 -1
- package/dist/chunk-55IACEB6.js +2 -2
- package/dist/chunk-B4BG7PRW.js +1 -1
- package/dist/chunk-DI55MBZ5.js +1 -1
- package/dist/chunk-FMBD7UC4.js +1 -1
- package/dist/chunk-QN33PNHL.js +5 -5
- package/dist/chunk-QZHKN3VN.js +1 -1
- package/dist/chunk-TZMSLE5B.js +1 -1
- package/dist/classDiagram-2ON5EDUG.js +1 -1
- package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
- package/dist/cose-bilkent-S5V4N54A.js +1 -1
- package/dist/dagre-6UL2VRFP.js +58 -58
- package/dist/dayjs.min.js +1 -1
- package/dist/diagram-PSM6KHXK.js +48 -48
- package/dist/diagram-QEK2KX5R.js +26 -26
- package/dist/diagram-S2PKOQOG.js +9 -9
- package/dist/erDiagram-Q2GNP2WA.js +12 -12
- package/dist/flowDiagram-NV44I4VS.js +6 -6
- package/dist/ganttDiagram-LVOFAZNH.js +322 -322
- package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
- package/dist/graph.js +5 -5
- package/dist/index.css +1 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +24 -23
- package/dist/index2.css +1 -0
- package/dist/index2.js +22 -22
- package/dist/infoDiagram-F6ZHWCRC.js +14 -14
- package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
- package/dist/kanban-definition-3W4ZIXB7.js +54 -54
- package/dist/layout.js +52 -52
- package/dist/lineage/index.js +381 -381
- package/dist/main.js +6 -6
- package/dist/mermaid-parser.core.js +1 -1
- package/dist/mindmap-definition-VGOIOE7T.js +16 -16
- package/dist/pieDiagram-ADFJNKIX.js +25 -25
- package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
- package/dist/redux-toolkit.modern.js +7 -7
- package/dist/requirementDiagram-UZGBJVZJ.js +1 -1
- package/dist/sankeyDiagram-TZEHDZUN.js +16 -16
- package/dist/sequenceDiagram-WL72ISMW.js +28 -28
- package/dist/shadcn/index.d.ts +24 -40
- package/dist/shadcn/index.js +6232 -4805
- package/dist/stateDiagram-FKZM4ZOC.js +34 -34
- package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
- package/dist/storybook/Typography.stories.tsx +93 -120
- package/dist/timeline-definition-IT6M3QCI.js +54 -54
- package/dist/xychartDiagram-PRI3JC2R.js +32 -32
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as c, l as te, d as W, G as fe, ae as ye, af as be, ag as me, V as _e, B as K, i as F, o as Ee, J as ke, W as Se, X as le, Y as ce } from "./CoachForm.js";
|
|
2
2
|
import { g as Ne } from "./chunk-FMBD7UC4.js";
|
|
3
3
|
var $ = function() {
|
|
4
|
-
var t = /* @__PURE__ */ c(function(
|
|
5
|
-
for (n = n || {}, a =
|
|
4
|
+
var t = /* @__PURE__ */ c(function(_, s, n, a) {
|
|
5
|
+
for (n = n || {}, a = _.length; a--; n[_[a]] = s) ;
|
|
6
6
|
return n;
|
|
7
|
-
}, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15],
|
|
7
|
+
}, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15], E = [1, 16], f = [1, 20], h = [1, 19], L = [6, 7, 8], C = [1, 26], w = [1, 24], N = [1, 25], i = [6, 7, 11], M = [1, 31], x = [6, 7, 11, 24], P = [1, 6, 13, 16, 17, 20, 23], U = [1, 35], j = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], H = [1, 38], V = {
|
|
8
8
|
trace: /* @__PURE__ */ c(function() {
|
|
9
9
|
}, "trace"),
|
|
10
10
|
yy: {},
|
|
@@ -71,7 +71,7 @@ var $ = function() {
|
|
|
71
71
|
break;
|
|
72
72
|
}
|
|
73
73
|
}, "anonymous"),
|
|
74
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: g }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: g }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: r, 14: 14, 16: p, 17:
|
|
74
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: g }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: g }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, t(L, [2, 3]), { 1: [2, 2] }, t(L, [2, 4]), t(L, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, { 6: d, 9: 22, 12: 11, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, { 6: C, 7: w, 10: 23, 11: N }, t(i, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: f, 23: h }), t(i, [2, 19]), t(i, [2, 21], { 15: 30, 24: M }), t(i, [2, 22]), t(i, [2, 23]), t(x, [2, 25]), t(x, [2, 26]), t(x, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: C, 7: w, 10: 34, 11: N }, { 1: [2, 7], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, t(P, [2, 14], { 7: U, 11: j }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(i, [2, 16], { 15: 37, 24: M }), t(i, [2, 17]), t(i, [2, 18]), t(i, [2, 20], { 24: H }), t(x, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, t(P, [2, 13], { 7: U, 11: j }), t(A, [2, 11]), t(A, [2, 12]), t(i, [2, 15], { 24: H }), t(x, [2, 30]), { 22: [1, 41] }, t(x, [2, 27]), t(x, [2, 29])],
|
|
75
75
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
76
76
|
parseError: /* @__PURE__ */ c(function(s, n) {
|
|
77
77
|
if (n.recoverable)
|
|
@@ -86,8 +86,8 @@ var $ = function() {
|
|
|
86
86
|
for (var J in this.yy)
|
|
87
87
|
Object.prototype.hasOwnProperty.call(this.yy, J) && (T.yy[J] = this.yy[J]);
|
|
88
88
|
b.setInput(s, T.yy), T.yy.lexer = b, T.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
|
|
89
|
-
var
|
|
90
|
-
e.push(
|
|
89
|
+
var q = b.yylloc;
|
|
90
|
+
e.push(q);
|
|
91
91
|
var de = b.options && b.options.ranges;
|
|
92
92
|
typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
93
93
|
function pe(S) {
|
|
@@ -99,38 +99,38 @@ var $ = function() {
|
|
|
99
99
|
return S = o.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (o = S, S = o.pop()), S = n.symbols_[S] || S), S;
|
|
100
100
|
}
|
|
101
101
|
c(ae, "lex");
|
|
102
|
-
for (var k, R, v,
|
|
102
|
+
for (var k, R, v, Q, G = {}, X, I, oe, Y; ; ) {
|
|
103
103
|
if (R = a[a.length - 1], this.defaultActions[R] ? v = this.defaultActions[R] : ((k === null || typeof k > "u") && (k = ae()), v = B[R] && B[R][k]), typeof v > "u" || !v.length || !v[0]) {
|
|
104
104
|
var Z = "";
|
|
105
|
-
|
|
105
|
+
Y = [];
|
|
106
106
|
for (X in B[R])
|
|
107
|
-
this.terminals_[X] && X > ue &&
|
|
107
|
+
this.terminals_[X] && X > ue && Y.push("'" + this.terminals_[X] + "'");
|
|
108
108
|
b.showPosition ? Z = "Parse error on line " + (z + 1) + `:
|
|
109
109
|
` + b.showPosition() + `
|
|
110
|
-
Expecting ` +
|
|
110
|
+
Expecting ` + Y.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (z + 1) + ": Unexpected " + (k == re ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
|
|
111
111
|
text: b.match,
|
|
112
112
|
token: this.terminals_[k] || k,
|
|
113
113
|
line: b.yylineno,
|
|
114
|
-
loc:
|
|
115
|
-
expected:
|
|
114
|
+
loc: q,
|
|
115
|
+
expected: Y
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
if (v[0] instanceof Array && v.length > 1)
|
|
119
119
|
throw new Error("Parse Error: multiple actions possible at state: " + R + ", token: " + k);
|
|
120
120
|
switch (v[0]) {
|
|
121
121
|
case 1:
|
|
122
|
-
a.push(k), u.push(b.yytext), e.push(b.yylloc), a.push(v[1]), k = null, ie = b.yyleng, l = b.yytext, z = b.yylineno,
|
|
122
|
+
a.push(k), u.push(b.yytext), e.push(b.yylloc), a.push(v[1]), k = null, ie = b.yyleng, l = b.yytext, z = b.yylineno, q = b.yylloc;
|
|
123
123
|
break;
|
|
124
124
|
case 2:
|
|
125
|
-
if (I = this.productions_[v[1]][1],
|
|
125
|
+
if (I = this.productions_[v[1]][1], G.$ = u[u.length - I], G._$ = {
|
|
126
126
|
first_line: e[e.length - (I || 1)].first_line,
|
|
127
127
|
last_line: e[e.length - 1].last_line,
|
|
128
128
|
first_column: e[e.length - (I || 1)].first_column,
|
|
129
129
|
last_column: e[e.length - 1].last_column
|
|
130
|
-
}, de && (
|
|
130
|
+
}, de && (G._$.range = [
|
|
131
131
|
e[e.length - (I || 1)].range[0],
|
|
132
132
|
e[e.length - 1].range[1]
|
|
133
|
-
]),
|
|
133
|
+
]), Q = this.performAction.apply(G, [
|
|
134
134
|
l,
|
|
135
135
|
ie,
|
|
136
136
|
z,
|
|
@@ -138,9 +138,9 @@ Expecting ` + K.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
|
|
|
138
138
|
v[1],
|
|
139
139
|
u,
|
|
140
140
|
e
|
|
141
|
-
].concat(ge)), typeof
|
|
142
|
-
return
|
|
143
|
-
I && (a = a.slice(0, -1 * I * 2), u = u.slice(0, -1 * I), e = e.slice(0, -1 * I)), a.push(this.productions_[v[1]][0]), u.push(
|
|
141
|
+
].concat(ge)), typeof Q < "u")
|
|
142
|
+
return Q;
|
|
143
|
+
I && (a = a.slice(0, -1 * I * 2), u = u.slice(0, -1 * I), e = e.slice(0, -1 * I)), a.push(this.productions_[v[1]][0]), u.push(G.$), e.push(G._$), oe = B[a[a.length - 2]][a[a.length - 1]], a.push(oe);
|
|
144
144
|
break;
|
|
145
145
|
case 3:
|
|
146
146
|
return !0;
|
|
@@ -149,7 +149,7 @@ Expecting ` + K.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
|
|
|
149
149
|
return !0;
|
|
150
150
|
}, "parse")
|
|
151
151
|
}, m = /* @__PURE__ */ function() {
|
|
152
|
-
var
|
|
152
|
+
var _ = {
|
|
153
153
|
EOF: 1,
|
|
154
154
|
parseError: /* @__PURE__ */ c(function(n, a) {
|
|
155
155
|
if (this.yy.parser)
|
|
@@ -421,7 +421,7 @@ Expecting ` + K.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "
|
|
|
421
421
|
rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}@]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
|
|
422
422
|
conditions: { shapeDataEndBracket: { rules: [], inclusive: !1 }, shapeDataStr: { rules: [2, 3], inclusive: !1 }, shapeData: { rules: [1, 4, 5], inclusive: !1 }, CLASS: { rules: [9, 10], inclusive: !1 }, ICON: { rules: [14, 15], inclusive: !1 }, NSTR2: { rules: [28, 29], inclusive: !1 }, NSTR: { rules: [31, 32], inclusive: !1 }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: !1 }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: !0 } }
|
|
423
423
|
};
|
|
424
|
-
return
|
|
424
|
+
return _;
|
|
425
425
|
}();
|
|
426
426
|
V.lexer = m;
|
|
427
427
|
function O() {
|
|
@@ -446,22 +446,22 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
446
446
|
}, "getSections"), Le = /* @__PURE__ */ c(function() {
|
|
447
447
|
const t = [], g = [], d = he(), r = W();
|
|
448
448
|
for (const p of d) {
|
|
449
|
-
const
|
|
449
|
+
const E = {
|
|
450
450
|
id: p.id,
|
|
451
|
-
label:
|
|
451
|
+
label: F(p.label ?? "", r),
|
|
452
452
|
isGroup: !0,
|
|
453
453
|
ticket: p.ticket,
|
|
454
454
|
shape: "kanbanSection",
|
|
455
455
|
level: p.level,
|
|
456
456
|
look: r.look
|
|
457
457
|
};
|
|
458
|
-
g.push(
|
|
458
|
+
g.push(E);
|
|
459
459
|
const f = D.filter((h) => h.parentId === p.id);
|
|
460
460
|
for (const h of f) {
|
|
461
461
|
const L = {
|
|
462
462
|
id: h.id,
|
|
463
463
|
parentId: p.id,
|
|
464
|
-
label:
|
|
464
|
+
label: F(h.label ?? "", r),
|
|
465
465
|
isGroup: !1,
|
|
466
466
|
ticket: h == null ? void 0 : h.ticket,
|
|
467
467
|
priority: h == null ? void 0 : h.priority,
|
|
@@ -479,8 +479,8 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
479
479
|
return { nodes: g, edges: t, other: {}, config: W() };
|
|
480
480
|
}, "getData"), Oe = /* @__PURE__ */ c((t, g, d, r, p) => {
|
|
481
481
|
var C, w;
|
|
482
|
-
const
|
|
483
|
-
let f = ((C =
|
|
482
|
+
const E = W();
|
|
483
|
+
let f = ((C = E.mindmap) == null ? void 0 : C.padding) ?? K.mindmap.padding;
|
|
484
484
|
switch (r) {
|
|
485
485
|
case y.ROUNDED_RECT:
|
|
486
486
|
case y.RECT:
|
|
@@ -488,10 +488,10 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
488
488
|
f *= 2;
|
|
489
489
|
}
|
|
490
490
|
const h = {
|
|
491
|
-
id:
|
|
491
|
+
id: F(g, E) || "kbn" + ee++,
|
|
492
492
|
level: t,
|
|
493
|
-
label:
|
|
494
|
-
width: ((w =
|
|
493
|
+
label: F(d, E),
|
|
494
|
+
width: ((w = E.mindmap) == null ? void 0 : w.maxNodeWidth) ?? K.mindmap.maxNodeWidth,
|
|
495
495
|
padding: f,
|
|
496
496
|
isGroup: !1
|
|
497
497
|
};
|
|
@@ -502,7 +502,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
502
502
|
` : N = `{
|
|
503
503
|
` + p + `
|
|
504
504
|
}`;
|
|
505
|
-
const i =
|
|
505
|
+
const i = Ee(N, { schema: ke });
|
|
506
506
|
if (i.shape && (i.shape !== i.shape.toLowerCase() || i.shape.includes("_")))
|
|
507
507
|
throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);
|
|
508
508
|
i != null && i.shape && i.shape === "kanbanItem" && (h.shape = i == null ? void 0 : i.shape), i != null && i.label && (h.label = i == null ? void 0 : i.label), i != null && i.icon && (h.icon = i == null ? void 0 : i.icon.toString()), i != null && i.assigned && (h.assigned = i == null ? void 0 : i.assigned.toString()), i != null && i.ticket && (h.ticket = i == null ? void 0 : i.ticket.toString()), i != null && i.priority && (h.priority = i == null ? void 0 : i.priority);
|
|
@@ -541,7 +541,7 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
541
541
|
if (!t)
|
|
542
542
|
return;
|
|
543
543
|
const g = W(), d = D[D.length - 1];
|
|
544
|
-
t.icon && (d.icon =
|
|
544
|
+
t.icon && (d.icon = F(t.icon, g)), t.class && (d.cssClasses = F(t.class, g));
|
|
545
545
|
}, "decorateNode"), Ae = /* @__PURE__ */ c((t) => {
|
|
546
546
|
switch (t) {
|
|
547
547
|
case y.DEFAULT:
|
|
@@ -574,54 +574,54 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
574
574
|
getLogger: Te,
|
|
575
575
|
getElementById: Re
|
|
576
576
|
}, Ve = Pe, Be = /* @__PURE__ */ c(async (t, g, d, r) => {
|
|
577
|
-
var
|
|
577
|
+
var U, j, A, H, V;
|
|
578
578
|
te.debug(`Rendering kanban diagram
|
|
579
579
|
` + t);
|
|
580
|
-
const
|
|
580
|
+
const E = r.db.getData(), f = W();
|
|
581
581
|
f.htmlLabels = !1;
|
|
582
582
|
const h = fe(g), L = h.append("g");
|
|
583
583
|
L.attr("class", "sections");
|
|
584
584
|
const C = h.append("g");
|
|
585
585
|
C.attr("class", "items");
|
|
586
|
-
const w =
|
|
586
|
+
const w = E.nodes.filter(
|
|
587
587
|
// TODO: TypeScript 5.5 will infer this predicate automatically
|
|
588
588
|
(m) => m.isGroup
|
|
589
589
|
);
|
|
590
590
|
let N = 0;
|
|
591
|
-
const i = 10,
|
|
591
|
+
const i = 10, M = [];
|
|
592
592
|
let x = 25;
|
|
593
593
|
for (const m of w) {
|
|
594
|
-
const O = ((
|
|
594
|
+
const O = ((U = f == null ? void 0 : f.kanban) == null ? void 0 : U.sectionWidth) || 200;
|
|
595
595
|
N = N + 1, m.x = O * N + (N - 1) * i / 2, m.width = O, m.y = 0, m.height = O * 3, m.rx = 5, m.ry = 5, m.cssClasses = m.cssClasses + " section-" + N;
|
|
596
|
-
const
|
|
597
|
-
x = Math.max(x, (
|
|
596
|
+
const _ = await ye(L, m);
|
|
597
|
+
x = Math.max(x, (j = _ == null ? void 0 : _.labelBBox) == null ? void 0 : j.height), M.push(_);
|
|
598
598
|
}
|
|
599
599
|
let P = 0;
|
|
600
600
|
for (const m of w) {
|
|
601
|
-
const O =
|
|
601
|
+
const O = M[P];
|
|
602
602
|
P = P + 1;
|
|
603
|
-
const
|
|
603
|
+
const _ = ((A = f == null ? void 0 : f.kanban) == null ? void 0 : A.sectionWidth) || 200, s = -_ * 3 / 2 + x;
|
|
604
604
|
let n = s;
|
|
605
|
-
const a =
|
|
605
|
+
const a = E.nodes.filter((e) => e.parentId === m.id);
|
|
606
606
|
for (const e of a) {
|
|
607
607
|
if (e.isGroup)
|
|
608
608
|
throw new Error("Groups within groups are not allowed in Kanban diagrams");
|
|
609
|
-
e.x = m.x, e.width =
|
|
609
|
+
e.x = m.x, e.width = _ - 1.5 * i;
|
|
610
610
|
const l = (await be(C, e, { config: f })).node().getBBox();
|
|
611
611
|
e.y = n + l.height / 2, await me(e), n = e.y + l.height / 2 + i / 2;
|
|
612
612
|
}
|
|
613
613
|
const o = O.cluster.select("rect"), u = Math.max(n - s + 3 * i, 50) + (x - 25);
|
|
614
614
|
o.attr("height", u);
|
|
615
615
|
}
|
|
616
|
-
|
|
616
|
+
_e(
|
|
617
617
|
void 0,
|
|
618
618
|
h,
|
|
619
|
-
((H = f.mindmap) == null ? void 0 : H.padding) ??
|
|
620
|
-
((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ??
|
|
619
|
+
((H = f.mindmap) == null ? void 0 : H.padding) ?? K.kanban.padding,
|
|
620
|
+
((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ?? K.kanban.useMaxWidth
|
|
621
621
|
);
|
|
622
|
-
}, "draw"),
|
|
622
|
+
}, "draw"), Ge = {
|
|
623
623
|
draw: Be
|
|
624
|
-
},
|
|
624
|
+
}, Fe = /* @__PURE__ */ c((t) => {
|
|
625
625
|
let g = "";
|
|
626
626
|
for (let r = 0; r < t.THEME_COLOR_LIMIT; r++)
|
|
627
627
|
t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], Se(t["lineColor" + r]) ? t["lineColor" + r] = le(t["lineColor" + r], 20) : t["lineColor" + r] = ce(t["lineColor" + r], 20);
|
|
@@ -677,11 +677,11 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
677
677
|
`;
|
|
678
678
|
}
|
|
679
679
|
return g;
|
|
680
|
-
}, "genSections"),
|
|
680
|
+
}, "genSections"), Me = /* @__PURE__ */ c((t) => `
|
|
681
681
|
.edge {
|
|
682
682
|
stroke-width: 3;
|
|
683
683
|
}
|
|
684
|
-
${
|
|
684
|
+
${Fe(t)}
|
|
685
685
|
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
686
686
|
fill: ${t.git0};
|
|
687
687
|
}
|
|
@@ -709,11 +709,11 @@ var xe = $, D = [], ne = [], ee = 0, se = {}, ve = /* @__PURE__ */ c(() => {
|
|
|
709
709
|
text-align: center;
|
|
710
710
|
}
|
|
711
711
|
${Ne()}
|
|
712
|
-
`, "getStyles"),
|
|
712
|
+
`, "getStyles"), Ue = Me, We = {
|
|
713
713
|
db: Ve,
|
|
714
|
-
renderer:
|
|
714
|
+
renderer: Ge,
|
|
715
715
|
parser: xe,
|
|
716
|
-
styles:
|
|
716
|
+
styles: Ue
|
|
717
717
|
};
|
|
718
718
|
export {
|
|
719
719
|
We as diagram
|
package/dist/layout.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { G as g } from "./graph.js";
|
|
2
2
|
import { b as Te, p as ce, q as le, g as z, e as ee, l as j, o as Ie, s as Me, c as Se, u as Fe, d as f, i as m, f as _, v as x, r as M } from "./_baseUniq.js";
|
|
3
|
-
import { f as O, b as he, a as je, c as Ve, d as
|
|
4
|
-
import {
|
|
3
|
+
import { f as O, b as he, a as je, c as Ve, d as Be, t as V, m as w, e as P, h as ve, g as X, l as T, i as Ae } from "./_basePickBy.js";
|
|
4
|
+
import { bS as Ge, bT as Ye, bU as De, bI as qe, bV as We, bM as pe, bL as we, bW as $e, bH as q, az as ze, bO as Xe, aB as Ue, bX as W } from "./CoachForm.js";
|
|
5
5
|
function He(e) {
|
|
6
6
|
return Ge(Ye(e, void 0, O), e + "");
|
|
7
7
|
}
|
|
8
|
-
var Je = 1,
|
|
9
|
-
function
|
|
10
|
-
return Te(e, Je |
|
|
8
|
+
var Je = 1, Ze = 4;
|
|
9
|
+
function Ke(e) {
|
|
10
|
+
return Te(e, Je | Ze);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Qe(e, n) {
|
|
13
13
|
return e == null ? e : De(e, ce(n), qe);
|
|
14
14
|
}
|
|
15
15
|
function en(e, n) {
|
|
@@ -21,7 +21,7 @@ function nn(e, n) {
|
|
|
21
21
|
function S(e, n) {
|
|
22
22
|
var r = {};
|
|
23
23
|
return n = z(n), le(e, function(t, a, i) {
|
|
24
|
-
|
|
24
|
+
We(r, a, n(t, a, i));
|
|
25
25
|
}), r;
|
|
26
26
|
}
|
|
27
27
|
function y(e) {
|
|
@@ -65,7 +65,7 @@ function on(e, n, r) {
|
|
|
65
65
|
} : i;
|
|
66
66
|
}) : n = [pe];
|
|
67
67
|
var t = -1;
|
|
68
|
-
n = j(n,
|
|
68
|
+
n = j(n, $e(z));
|
|
69
69
|
var a = Ve(e, function(i, o, u) {
|
|
70
70
|
var d = j(n, function(s) {
|
|
71
71
|
return s(i);
|
|
@@ -77,7 +77,7 @@ function on(e, n, r) {
|
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
function un(e, n) {
|
|
80
|
-
return
|
|
80
|
+
return Be(e, n, function(r, t) {
|
|
81
81
|
return Me(e, t);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -155,27 +155,27 @@ function mn(e, n) {
|
|
|
155
155
|
function gn(e, n, r) {
|
|
156
156
|
for (var t = [], a = n[n.length - 1], i = n[0], o; e.nodeCount(); ) {
|
|
157
157
|
for (; o = i.dequeue(); )
|
|
158
|
-
|
|
158
|
+
B(e, n, r, o);
|
|
159
159
|
for (; o = a.dequeue(); )
|
|
160
|
-
|
|
160
|
+
B(e, n, r, o);
|
|
161
161
|
if (e.nodeCount()) {
|
|
162
162
|
for (var u = n.length - 2; u > 0; --u)
|
|
163
163
|
if (o = n[u].dequeue(), o) {
|
|
164
|
-
t = t.concat(
|
|
164
|
+
t = t.concat(B(e, n, r, o, !0));
|
|
165
165
|
break;
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
return t;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function B(e, n, r, t, a) {
|
|
172
172
|
var i = a ? [] : void 0;
|
|
173
173
|
return f(e.inEdges(t.v), function(o) {
|
|
174
174
|
var u = e.edge(o), d = e.node(o.v);
|
|
175
|
-
a && i.push({ v: o.v, w: o.w }), d.out -= u,
|
|
175
|
+
a && i.push({ v: o.v, w: o.w }), d.out -= u, $(n, r, d);
|
|
176
176
|
}), f(e.outEdges(t.v), function(o) {
|
|
177
177
|
var u = e.edge(o), d = o.w, s = e.node(d);
|
|
178
|
-
s.in -= u,
|
|
178
|
+
s.in -= u, $(n, r, s);
|
|
179
179
|
}), e.removeNode(t.v), i;
|
|
180
180
|
}
|
|
181
181
|
function yn(e, n) {
|
|
@@ -190,10 +190,10 @@ function yn(e, n) {
|
|
|
190
190
|
return new pn();
|
|
191
191
|
}), o = t + 1;
|
|
192
192
|
return f(r.nodes(), function(u) {
|
|
193
|
-
|
|
193
|
+
$(i, o, r.node(u));
|
|
194
194
|
}), { graph: r, buckets: i, zeroIdx: o };
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function $(e, n, r) {
|
|
197
197
|
r.out ? r.in ? e[r.out - r.in + n].enqueue(r) : e[e.length - 1].enqueue(r) : e[0].enqueue(r);
|
|
198
198
|
}
|
|
199
199
|
function kn(e) {
|
|
@@ -359,13 +359,13 @@ function ie(e) {
|
|
|
359
359
|
}
|
|
360
360
|
function In(e) {
|
|
361
361
|
f(e.nodes(), function(n) {
|
|
362
|
-
|
|
362
|
+
A(e.node(n));
|
|
363
363
|
}), f(e.edges(), function(n) {
|
|
364
364
|
var r = e.edge(n);
|
|
365
|
-
f(r.points,
|
|
365
|
+
f(r.points, A), Object.prototype.hasOwnProperty.call(r, "y") && A(r);
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function A(e) {
|
|
369
369
|
e.y = -e.y;
|
|
370
370
|
}
|
|
371
371
|
function Mn(e) {
|
|
@@ -433,7 +433,7 @@ function ye(e) {
|
|
|
433
433
|
var n = new g({ directed: !1 }), r = e.nodes()[0], t = e.nodeCount();
|
|
434
434
|
n.setNode(r, {});
|
|
435
435
|
for (var a, i; Vn(n, e) < t; )
|
|
436
|
-
a =
|
|
436
|
+
a = Bn(n, e), i = n.hasNode(a.v) ? C(e, a) : -C(e, a), An(n, e, i);
|
|
437
437
|
return n;
|
|
438
438
|
}
|
|
439
439
|
function Vn(e, n) {
|
|
@@ -445,13 +445,13 @@ function Vn(e, n) {
|
|
|
445
445
|
}
|
|
446
446
|
return f(e.nodes(), r), e.nodeCount();
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function Bn(e, n) {
|
|
449
449
|
return U(n.edges(), function(r) {
|
|
450
450
|
if (e.hasNode(r.v) !== e.hasNode(r.w))
|
|
451
451
|
return C(n, r);
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function An(e, n, r) {
|
|
455
455
|
f(e.nodes(), function(t) {
|
|
456
456
|
n.node(t).rank += r;
|
|
457
457
|
});
|
|
@@ -479,8 +479,8 @@ function Yn(e, n) {
|
|
|
479
479
|
function Dn(e, n) {
|
|
480
480
|
return ke(e, n, "pre");
|
|
481
481
|
}
|
|
482
|
-
k.initLowLimValues =
|
|
483
|
-
k.initCutValues =
|
|
482
|
+
k.initLowLimValues = K;
|
|
483
|
+
k.initCutValues = Z;
|
|
484
484
|
k.calcCutValue = Ee;
|
|
485
485
|
k.leaveEdge = Le;
|
|
486
486
|
k.enterEdge = Ne;
|
|
@@ -488,11 +488,11 @@ k.exchangeEdges = Pe;
|
|
|
488
488
|
function k(e) {
|
|
489
489
|
e = On(e), J(e);
|
|
490
490
|
var n = ye(e);
|
|
491
|
-
|
|
491
|
+
K(n), Z(n, e);
|
|
492
492
|
for (var r, t; r = Le(n); )
|
|
493
493
|
t = Ne(n, e, r), Pe(n, e, r, t);
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Z(e, n) {
|
|
496
496
|
var r = Yn(e, e.nodes());
|
|
497
497
|
r = r.slice(0, r.length - 1), f(r, function(t) {
|
|
498
498
|
qn(e, n, t);
|
|
@@ -508,14 +508,14 @@ function Ee(e, n, r) {
|
|
|
508
508
|
var s = d.v === r, c = s ? d.w : d.v;
|
|
509
509
|
if (c !== a) {
|
|
510
510
|
var l = s === i, h = n.edge(d).weight;
|
|
511
|
-
if (u += l ? h : -h,
|
|
511
|
+
if (u += l ? h : -h, $n(e, r, c)) {
|
|
512
512
|
var v = e.edge(r, c).cutvalue;
|
|
513
513
|
u += l ? -v : v;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
}), u;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
518
|
+
function K(e, n) {
|
|
519
519
|
arguments.length < 2 && (n = e.nodes()[0]), Oe(e, {}, 1, n);
|
|
520
520
|
}
|
|
521
521
|
function Oe(e, n, r, t, a) {
|
|
@@ -543,9 +543,9 @@ function Ne(e, n, r) {
|
|
|
543
543
|
}
|
|
544
544
|
function Pe(e, n, r, t) {
|
|
545
545
|
var a = r.v, i = r.w;
|
|
546
|
-
e.removeEdge(a, i), e.setEdge(t.v, t.w, {}),
|
|
546
|
+
e.removeEdge(a, i), e.setEdge(t.v, t.w, {}), K(e), Z(e, n), Wn(e, n);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Wn(e, n) {
|
|
549
549
|
var r = X(e.nodes(), function(a) {
|
|
550
550
|
return !n.node(a).parent;
|
|
551
551
|
}), t = Dn(e, r);
|
|
@@ -554,7 +554,7 @@ function $n(e, n) {
|
|
|
554
554
|
o || (o = n.edge(i, a), u = !0), n.node(a).rank = n.node(i).rank + (u ? o.minlen : -o.minlen);
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function $n(e, n, r) {
|
|
558
558
|
return e.hasEdge(n, r);
|
|
559
559
|
}
|
|
560
560
|
function oe(e, n, r) {
|
|
@@ -587,7 +587,7 @@ function Hn(e) {
|
|
|
587
587
|
e.graph().nestingRoot = n, f(e.edges(), function(o) {
|
|
588
588
|
e.edge(o).minlen *= a;
|
|
589
589
|
});
|
|
590
|
-
var i =
|
|
590
|
+
var i = Zn(e) + 1;
|
|
591
591
|
f(e.children(), function(o) {
|
|
592
592
|
Ce(e, n, a, i, t, r, o);
|
|
593
593
|
}), e.graph().nodeRankFactor = a;
|
|
@@ -625,7 +625,7 @@ function Jn(e) {
|
|
|
625
625
|
r(t, 1);
|
|
626
626
|
}), n;
|
|
627
627
|
}
|
|
628
|
-
function
|
|
628
|
+
function Zn(e) {
|
|
629
629
|
return M(
|
|
630
630
|
e.edges(),
|
|
631
631
|
function(n, r) {
|
|
@@ -634,14 +634,14 @@ function Qn(e) {
|
|
|
634
634
|
0
|
|
635
635
|
);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function Kn(e) {
|
|
638
638
|
var n = e.graph();
|
|
639
639
|
e.removeNode(n.nestingRoot), delete n.nestingRoot, f(e.edges(), function(r) {
|
|
640
640
|
var t = e.edge(r);
|
|
641
641
|
t.nestingEdge && e.removeEdge(r);
|
|
642
642
|
});
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function Qn(e, n, r) {
|
|
645
645
|
var t = {}, a;
|
|
646
646
|
f(r, function(i) {
|
|
647
647
|
for (var o = e.parent(i), u, d; o; ) {
|
|
@@ -865,7 +865,7 @@ function hr(e) {
|
|
|
865
865
|
for (var i = Number.POSITIVE_INFINITY, o, u = 0, d = 0; d < 4; ++u, ++d) {
|
|
866
866
|
vr(u % 2 ? r : t, u % 4 >= 2), a = F(e);
|
|
867
867
|
var s = rr(e, a);
|
|
868
|
-
s < i && (d = 0, o =
|
|
868
|
+
s < i && (d = 0, o = Ke(a), i = s);
|
|
869
869
|
}
|
|
870
870
|
fe(e, o);
|
|
871
871
|
}
|
|
@@ -880,7 +880,7 @@ function vr(e, n) {
|
|
|
880
880
|
var a = t.graph().root, i = _e(t, a, r, n);
|
|
881
881
|
f(i.vs, function(o, u) {
|
|
882
882
|
t.node(o).order = u;
|
|
883
|
-
}),
|
|
883
|
+
}), Qn(t, r, i.vs);
|
|
884
884
|
});
|
|
885
885
|
}
|
|
886
886
|
function fe(e, n) {
|
|
@@ -934,8 +934,8 @@ function mr(e, n) {
|
|
|
934
934
|
var h = yr(e, c), v = h ? e.node(h).order : d;
|
|
935
935
|
(h || c === s) && (f(i.slice(u, l + 1), function(p) {
|
|
936
936
|
f(e.predecessors(p), function(b) {
|
|
937
|
-
var N = e.node(b),
|
|
938
|
-
(
|
|
937
|
+
var N = e.node(b), Q = N.order;
|
|
938
|
+
(Q < o || v < Q) && !(N.dummy && e.node(p).dummy) && Re(r, b, p);
|
|
939
939
|
});
|
|
940
940
|
}), u = l + 1, o = v);
|
|
941
941
|
}), i;
|
|
@@ -1046,7 +1046,7 @@ function Or(e, n, r, t) {
|
|
|
1046
1046
|
function Lr(e, n) {
|
|
1047
1047
|
return U(x(n), function(r) {
|
|
1048
1048
|
var t = Number.NEGATIVE_INFINITY, a = Number.POSITIVE_INFINITY;
|
|
1049
|
-
return
|
|
1049
|
+
return Qe(r, function(i, o) {
|
|
1050
1050
|
var u = Rr(e, o) / 2;
|
|
1051
1051
|
t = Math.max(i + u, t), a = Math.min(i - u, a);
|
|
1052
1052
|
}), t - a;
|
|
@@ -1075,7 +1075,7 @@ function Pr(e, n) {
|
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
1077
1077
|
function Cr(e) {
|
|
1078
|
-
var n = F(e), r =
|
|
1078
|
+
var n = F(e), r = W(mr(e, n), gr(e, n)), t = {}, a;
|
|
1079
1079
|
f(["u", "d"], function(o) {
|
|
1080
1080
|
a = o === "u" ? n : x(n).reverse(), f(["l", "r"], function(u) {
|
|
1081
1081
|
u === "r" && (a = w(a, function(l) {
|
|
@@ -1143,7 +1143,7 @@ function ot(e, n) {
|
|
|
1143
1143
|
});
|
|
1144
1144
|
}
|
|
1145
1145
|
function Mr(e, n) {
|
|
1146
|
-
n(" makeSpaceForEdgeLabels", () =>
|
|
1146
|
+
n(" makeSpaceForEdgeLabels", () => Wr(e)), n(" removeSelfEdges", () => Qr(e)), n(" acyclic", () => kn(e)), n(" nestingGraph.run", () => Hn(e)), n(" rank", () => zn(be(e))), n(" injectEdgeLabelProxies", () => $r(e)), n(" removeEmptyRanks", () => Nn(e)), n(" nestingGraph.cleanup", () => Kn(e)), n(" normalizeRanks", () => Ln(e)), n(" assignRankMinMax", () => zr(e)), n(" removeEdgeLabelProxies", () => Xr(e)), n(" normalize.run", () => Sn(e)), n(" parentDummyChains", () => pr(e)), n(" addBorderSegments", () => _n(e)), n(" order", () => hr(e)), n(" insertSelfEdges", () => et(e)), n(" adjustCoordinateSystem", () => Rn(e)), n(" position", () => Tr(e)), n(" positionSelfEdges", () => nt(e)), n(" removeBorderNodes", () => Kr(e)), n(" normalize.undo", () => jn(e)), n(" fixupEdgeLabelCoords", () => Jr(e)), n(" undoCoordinateSystem", () => Tn(e)), n(" translateGraph", () => Ur(e)), n(" assignNodeIntersects", () => Hr(e)), n(" reversePoints", () => Zr(e)), n(" acyclic.undo", () => En(e));
|
|
1147
1147
|
}
|
|
1148
1148
|
function Sr(e, n) {
|
|
1149
1149
|
f(e.nodes(), function(r) {
|
|
@@ -1154,7 +1154,7 @@ function Sr(e, n) {
|
|
|
1154
1154
|
t.points = a.points, Object.prototype.hasOwnProperty.call(a, "x") && (t.x = a.x, t.y = a.y);
|
|
1155
1155
|
}), e.graph().width = n.graph().width, e.graph().height = n.graph().height;
|
|
1156
1156
|
}
|
|
1157
|
-
var Fr = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], jr = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, Vr = ["acyclicer", "ranker", "rankdir", "align"],
|
|
1157
|
+
var Fr = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], jr = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, Vr = ["acyclicer", "ranker", "rankdir", "align"], Br = ["width", "height"], Ar = { width: 0, height: 0 }, Gr = ["minlen", "weight", "width", "height", "labeloffset"], Yr = {
|
|
1158
1158
|
minlen: 1,
|
|
1159
1159
|
weight: 1,
|
|
1160
1160
|
width: 0,
|
|
@@ -1165,26 +1165,26 @@ var Fr = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], jr = { ranksep
|
|
|
1165
1165
|
function qr(e) {
|
|
1166
1166
|
var n = new g({ multigraph: !0, compound: !0 }), r = D(e.graph());
|
|
1167
1167
|
return n.setGraph(
|
|
1168
|
-
|
|
1168
|
+
W({}, jr, Y(r, Fr), I(r, Vr))
|
|
1169
1169
|
), f(e.nodes(), function(t) {
|
|
1170
1170
|
var a = D(e.node(t));
|
|
1171
|
-
n.setNode(t,
|
|
1171
|
+
n.setNode(t, Ae(Y(a, Br), Ar)), n.setParent(t, e.parent(t));
|
|
1172
1172
|
}), f(e.edges(), function(t) {
|
|
1173
1173
|
var a = D(e.edge(t));
|
|
1174
1174
|
n.setEdge(
|
|
1175
1175
|
t,
|
|
1176
|
-
|
|
1176
|
+
W({}, Yr, Y(a, Gr), I(a, Dr))
|
|
1177
1177
|
);
|
|
1178
1178
|
}), n;
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function Wr(e) {
|
|
1181
1181
|
var n = e.graph();
|
|
1182
1182
|
n.ranksep /= 2, f(e.edges(), function(r) {
|
|
1183
1183
|
var t = e.edge(r);
|
|
1184
1184
|
t.minlen *= 2, t.labelpos.toLowerCase() !== "c" && (n.rankdir === "TB" || n.rankdir === "BT" ? t.width += t.labeloffset : t.height += t.labeloffset);
|
|
1185
1185
|
});
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function $r(e) {
|
|
1188
1188
|
f(e.edges(), function(n) {
|
|
1189
1189
|
var r = e.edge(n);
|
|
1190
1190
|
if (r.width && r.height) {
|
|
@@ -1247,13 +1247,13 @@ function Jr(e) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
});
|
|
1249
1249
|
}
|
|
1250
|
-
function
|
|
1250
|
+
function Zr(e) {
|
|
1251
1251
|
f(e.edges(), function(n) {
|
|
1252
1252
|
var r = e.edge(n);
|
|
1253
1253
|
r.reversed && r.points.reverse();
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function Kr(e) {
|
|
1257
1257
|
f(e.nodes(), function(n) {
|
|
1258
1258
|
if (e.children(n).length) {
|
|
1259
1259
|
var r = e.node(n), t = e.node(r.borderTop), a = e.node(r.borderBottom), i = e.node(T(r.borderLeft)), o = e.node(T(r.borderRight));
|
|
@@ -1263,7 +1263,7 @@ function Zr(e) {
|
|
|
1263
1263
|
e.node(n).dummy === "border" && e.removeNode(n);
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function Qr(e) {
|
|
1267
1267
|
f(e.edges(), function(n) {
|
|
1268
1268
|
if (n.v === n.w) {
|
|
1269
1269
|
var r = e.node(n.v);
|