hub-ui-x 0.0.1
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/README.md +5 -0
- package/dist/_basePickBy-C1WsytTM.js +151 -0
- package/dist/_baseUniq-CGQBVjq6.js +614 -0
- package/dist/arc-CfWEFjh8.js +84 -0
- package/dist/architecture-4AB2E3PP-DcT_AgQk.js +5 -0
- package/dist/architectureDiagram-IEHRJDOE-HOxolPJX.js +4635 -0
- package/dist/blockDiagram-JOT3LUYC-DOUpbN2x.js +2248 -0
- package/dist/c4Diagram-VJAJSXHY-BFAcC0i5.js +1582 -0
- package/dist/channel-Cu0z2gst.js +5 -0
- package/dist/chart-CJ_SRNKN.js +9241 -0
- package/dist/chunk-4BMEZGHF-BBaiA8MA.js +9 -0
- package/dist/chunk-A2AXSNBT-BWpKSYi4.js +1373 -0
- package/dist/chunk-AEK57VVT-doTsaHuQ.js +1415 -0
- package/dist/chunk-D6G4REZN-B6Iq6yid.js +64 -0
- package/dist/chunk-RZ5BOZE2-OspkSZtw.js +25 -0
- package/dist/chunk-XZIHB7SX-BTYIr8g5.js +15 -0
- package/dist/classDiagram-GIVACNV2-B_ES2mS7.js +17 -0
- package/dist/classDiagram-v2-COTLJTTW-B_ES2mS7.js +17 -0
- package/dist/clone-BZBtMp_G.js +8 -0
- package/dist/colors-BD7LS4qt.js +7 -0
- package/dist/cytoscape.esm-Swd9B-1A.js +18633 -0
- package/dist/dagre-OKDRZEBW-qXmKnSET.js +447 -0
- package/dist/diagram-SSKATNLV-D9zp03W0.js +221 -0
- package/dist/diagram-VNBRO52H-CBXg8AYQ.js +126 -0
- package/dist/download-B6Cbg_6N.js +39 -0
- package/dist/echarts-CvKQD1G1.js +44028 -0
- package/dist/erDiagram-Q7BY3M3F-BOJJGO7u.js +842 -0
- package/dist/flowDiagram-4HSFHLVR-jSArwKHg.js +1623 -0
- package/dist/ganttDiagram-APWFNJXF-DlkSU7D9.js +2472 -0
- package/dist/gitGraph-O2Q2CXLX-BKCeQqs8.js +5 -0
- package/dist/gitGraphDiagram-7IBYFJ6S-DUvZEq_S.js +713 -0
- package/dist/graph-zFu0gYaZ.js +247 -0
- package/dist/helper-C5NlRbA2.js +13 -0
- package/dist/hub-ui-x.css +1 -0
- package/dist/hub-ui-x.es.ts +5 -0
- package/dist/hub-ui-x.umd.ts +3258 -0
- package/dist/index-evjDGH2n.js +62533 -0
- package/dist/info-4N47QTOZ-BYDGL7Ae.js +5 -0
- package/dist/infoDiagram-PH2N3AL5-DJvDYk-t.js +22 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/journeyDiagram-U35MCT3I---dClVe4.js +810 -0
- package/dist/kanban-definition-NDS4AKOZ-DPL_aBPT.js +719 -0
- package/dist/katex-9tX9hjoM.js +11692 -0
- package/dist/layout-BqSq5ofg.js +1324 -0
- package/dist/linear-fJjgKrP9.js +423 -0
- package/dist/mermaid-CZvYCPmi.js +14243 -0
- package/dist/mermaid-parser.core-Bz7ADZ88.js +12835 -0
- package/dist/min-DLf0xQMm.js +28 -0
- package/dist/mindmap-definition-ALO5MXBD-CzxIzyQv.js +3222 -0
- package/dist/mindmap-r94UHoYv.js +21909 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/packet-KVYON367-D4di2cz5.js +5 -0
- package/dist/pie-R6RNRRYF-CcxAsT3F.js +5 -0
- package/dist/pieDiagram-IB7DONF6-B5HBkGlO.js +162 -0
- package/dist/quadrantDiagram-7GDLP6J5-BS5bmqKW.js +1025 -0
- package/dist/radar-MK3ICKWK-CVYy5goT.js +5 -0
- package/dist/requirementDiagram-KVF5MWMF-Cr8GcN4Y.js +851 -0
- package/dist/sankeyDiagram-QLVOVGJD-Bhq9k8_q.js +806 -0
- package/dist/sequenceDiagram-X6HHIX6F-CCmFoYyv.js +2282 -0
- package/dist/stateDiagram-DGXRK772-JkIqKyGq.js +271 -0
- package/dist/stateDiagram-v2-YXO3MK2T-DMxAxUZ1.js +17 -0
- package/dist/timeline-definition-BDJGKUSR-Bi42udQn.js +805 -0
- package/dist/transform-Bsa6BTXX.js +1834 -0
- package/dist/xychartDiagram-VJFVF3MP-BI97ppBM.js +1305 -0
- package/package.json +55 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { _ as n, S as o, i as l } from "./mermaid-CZvYCPmi.js";
|
|
2
|
+
var x = /* @__PURE__ */ n((s, t) => {
|
|
3
|
+
const e = s.append("rect");
|
|
4
|
+
if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
|
|
5
|
+
for (const r in t.attrs)
|
|
6
|
+
e.attr(r, t.attrs[r]);
|
|
7
|
+
return t.class && e.attr("class", t.class), e;
|
|
8
|
+
}, "drawRect"), d = /* @__PURE__ */ n((s, t) => {
|
|
9
|
+
const e = {
|
|
10
|
+
x: t.startx,
|
|
11
|
+
y: t.starty,
|
|
12
|
+
width: t.stopx - t.startx,
|
|
13
|
+
height: t.stopy - t.starty,
|
|
14
|
+
fill: t.fill,
|
|
15
|
+
stroke: t.stroke,
|
|
16
|
+
class: "rect"
|
|
17
|
+
};
|
|
18
|
+
x(s, e).lower();
|
|
19
|
+
}, "drawBackgroundRect"), g = /* @__PURE__ */ n((s, t) => {
|
|
20
|
+
const e = t.text.replace(o, " "), r = s.append("text");
|
|
21
|
+
r.attr("x", t.x), r.attr("y", t.y), r.attr("class", "legend"), r.style("text-anchor", t.anchor), t.class && r.attr("class", t.class);
|
|
22
|
+
const a = r.append("tspan");
|
|
23
|
+
return a.attr("x", t.x + t.textMargin * 2), a.text(e), r;
|
|
24
|
+
}, "drawText"), h = /* @__PURE__ */ n((s, t, e, r) => {
|
|
25
|
+
const a = s.append("image");
|
|
26
|
+
a.attr("x", t), a.attr("y", e);
|
|
27
|
+
const i = l.sanitizeUrl(r);
|
|
28
|
+
a.attr("xlink:href", i);
|
|
29
|
+
}, "drawImage"), m = /* @__PURE__ */ n((s, t, e, r) => {
|
|
30
|
+
const a = s.append("use");
|
|
31
|
+
a.attr("x", t), a.attr("y", e);
|
|
32
|
+
const i = l.sanitizeUrl(r);
|
|
33
|
+
a.attr("xlink:href", `#${i}`);
|
|
34
|
+
}, "drawEmbeddedImage"), y = /* @__PURE__ */ n(() => ({
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0,
|
|
37
|
+
width: 100,
|
|
38
|
+
height: 100,
|
|
39
|
+
fill: "#EDF2AE",
|
|
40
|
+
stroke: "#666",
|
|
41
|
+
anchor: "start",
|
|
42
|
+
rx: 0,
|
|
43
|
+
ry: 0
|
|
44
|
+
}), "getNoteRect"), p = /* @__PURE__ */ n(() => ({
|
|
45
|
+
x: 0,
|
|
46
|
+
y: 0,
|
|
47
|
+
width: 100,
|
|
48
|
+
height: 100,
|
|
49
|
+
"text-anchor": "start",
|
|
50
|
+
style: "#666",
|
|
51
|
+
textMargin: 0,
|
|
52
|
+
rx: 0,
|
|
53
|
+
ry: 0,
|
|
54
|
+
tspan: !0
|
|
55
|
+
}), "getTextObj");
|
|
56
|
+
export {
|
|
57
|
+
d as a,
|
|
58
|
+
p as b,
|
|
59
|
+
m as c,
|
|
60
|
+
x as d,
|
|
61
|
+
h as e,
|
|
62
|
+
g as f,
|
|
63
|
+
y as g
|
|
64
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { _ as a, d, l as g } from "./mermaid-CZvYCPmi.js";
|
|
2
|
+
import { s as n } from "./transform-Bsa6BTXX.js";
|
|
3
|
+
var b = /* @__PURE__ */ a((t, e) => {
|
|
4
|
+
let o;
|
|
5
|
+
return e === "sandbox" && (o = n("#i" + t)), (e === "sandbox" ? n(o.nodes()[0].contentDocument.body) : n("body")).select(`[id="${t}"]`);
|
|
6
|
+
}, "getDiagramElement"), B = /* @__PURE__ */ a((t, e, o, i) => {
|
|
7
|
+
t.attr("class", o);
|
|
8
|
+
const { width: r, height: s, x: h, y: x } = m(t, e);
|
|
9
|
+
d(t, s, r, i);
|
|
10
|
+
const c = l(h, x, r, s, e);
|
|
11
|
+
t.attr("viewBox", c), g.debug(`viewBox configured: ${c} with padding: ${e}`);
|
|
12
|
+
}, "setupViewPortForSVG"), m = /* @__PURE__ */ a((t, e) => {
|
|
13
|
+
var i;
|
|
14
|
+
const o = ((i = t.node()) == null ? void 0 : i.getBBox()) || { width: 0, height: 0, x: 0, y: 0 };
|
|
15
|
+
return {
|
|
16
|
+
width: o.width + e * 2,
|
|
17
|
+
height: o.height + e * 2,
|
|
18
|
+
x: o.x,
|
|
19
|
+
y: o.y
|
|
20
|
+
};
|
|
21
|
+
}, "calculateDimensionsWithPadding"), l = /* @__PURE__ */ a((t, e, o, i, r) => `${t - r} ${e - r} ${o} ${i}`, "createViewBox");
|
|
22
|
+
export {
|
|
23
|
+
b as g,
|
|
24
|
+
B as s
|
|
25
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { _ as s } from "./mermaid-CZvYCPmi.js";
|
|
2
|
+
var t, e = (t = class {
|
|
3
|
+
/**
|
|
4
|
+
* @param init - Function that creates the default state.
|
|
5
|
+
*/
|
|
6
|
+
constructor(i) {
|
|
7
|
+
this.init = i, this.records = this.init();
|
|
8
|
+
}
|
|
9
|
+
reset() {
|
|
10
|
+
this.records = this.init();
|
|
11
|
+
}
|
|
12
|
+
}, s(t, "ImperativeState"), t);
|
|
13
|
+
export {
|
|
14
|
+
e as I
|
|
15
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-A2AXSNBT-BWpKSYi4.js";
|
|
2
|
+
import { _ as l } from "./mermaid-CZvYCPmi.js";
|
|
3
|
+
import "./transform-Bsa6BTXX.js";
|
|
4
|
+
var m = {
|
|
5
|
+
parser: e,
|
|
6
|
+
get db() {
|
|
7
|
+
return new t();
|
|
8
|
+
},
|
|
9
|
+
renderer: s,
|
|
10
|
+
styles: r,
|
|
11
|
+
init: /* @__PURE__ */ l((a) => {
|
|
12
|
+
a.class || (a.class = {}), a.class.arrowMarkerAbsolute = a.arrowMarkerAbsolute;
|
|
13
|
+
}, "init")
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
m as diagram
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { s as r, c as s, a as e, C as t } from "./chunk-A2AXSNBT-BWpKSYi4.js";
|
|
2
|
+
import { _ as l } from "./mermaid-CZvYCPmi.js";
|
|
3
|
+
import "./transform-Bsa6BTXX.js";
|
|
4
|
+
var m = {
|
|
5
|
+
parser: e,
|
|
6
|
+
get db() {
|
|
7
|
+
return new t();
|
|
8
|
+
},
|
|
9
|
+
renderer: s,
|
|
10
|
+
styles: r,
|
|
11
|
+
init: /* @__PURE__ */ l((a) => {
|
|
12
|
+
a.class || (a.class = {}), a.class.arrowMarkerAbsolute = a.arrowMarkerAbsolute;
|
|
13
|
+
}, "init")
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
m as diagram
|
|
17
|
+
};
|