@infinilabs/ai-chat 0.0.0 → 0.0.2
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 +310 -56
- package/dist/_baseUniq-BFn6cCm9.js +152 -0
- package/dist/_baseUniq-nfJyj2zU.cjs +151 -0
- package/dist/arc-BWSMkwk2.cjs +130 -0
- package/dist/arc-DODeX7B9.js +131 -0
- package/dist/architecture-U656AL7Q-B4C0nw6C.js +5 -0
- package/dist/architecture-U656AL7Q-CVURQXwt.cjs +5 -0
- package/dist/architectureDiagram-VXUJARFQ-2UbdzpNz.cjs +8681 -0
- package/dist/architectureDiagram-VXUJARFQ-NCVmzKuE.js +8681 -0
- package/dist/blockDiagram-VD42YOAC-B3yCPK1N.cjs +3606 -0
- package/dist/blockDiagram-VD42YOAC-C4FsmQfk.js +3606 -0
- package/dist/c4Diagram-YG6GDRKO-ATyoKzFV.js +2481 -0
- package/dist/c4Diagram-YG6GDRKO-COwVcHWj.cjs +2481 -0
- package/dist/channel-2Y73gsu9.cjs +6 -0
- package/dist/channel-oB8MffQV.js +7 -0
- package/dist/chunk-4BX2VUAB-C3diNHZw.cjs +15 -0
- package/dist/chunk-4BX2VUAB-sd2zFBFz.js +16 -0
- package/dist/chunk-55IACEB6-6ohTnYE3.js +13 -0
- package/dist/chunk-55IACEB6-T-CzlJke.cjs +12 -0
- package/dist/chunk-B4BG7PRW-B1zqG62l.cjs +1825 -0
- package/dist/chunk-B4BG7PRW-E1dti26Y.js +1826 -0
- package/dist/chunk-DI55MBZ5-Dk0kfYBV.cjs +1914 -0
- package/dist/chunk-DI55MBZ5-DpHw-vMw.js +1915 -0
- package/dist/chunk-FMBD7UC4-B1vXpasq.js +19 -0
- package/dist/chunk-FMBD7UC4-CShN9-qf.cjs +18 -0
- package/dist/chunk-QN33PNHL-Cw7FG91D.js +24 -0
- package/dist/chunk-QN33PNHL-DJi1fhak.cjs +23 -0
- package/dist/chunk-QZHKN3VN-BweiBR9P.js +17 -0
- package/dist/chunk-QZHKN3VN-DfUW_gDw.cjs +16 -0
- package/dist/chunk-TZMSLE5B-DY2Kbag4.cjs +107 -0
- package/dist/chunk-TZMSLE5B-ZQ2Esoix.js +108 -0
- package/dist/classDiagram-2ON5EDUG-D2tIbkjc.js +19 -0
- package/dist/classDiagram-2ON5EDUG-DRhRmkUb.cjs +19 -0
- package/dist/classDiagram-v2-WZHVMYZB-D2tIbkjc.js +19 -0
- package/dist/classDiagram-v2-WZHVMYZB-DRhRmkUb.cjs +19 -0
- package/dist/clone-BMkj3yun.cjs +7 -0
- package/dist/clone-ChHXIoR6.js +8 -0
- package/dist/cose-bilkent-S5V4N54A-BXnWH5Od.cjs +4942 -0
- package/dist/cose-bilkent-S5V4N54A-D15BmpCb.js +4942 -0
- package/dist/cytoscape.esm-BfvZ3QT_.js +30239 -0
- package/dist/cytoscape.esm-D8IBYQeQ.cjs +30238 -0
- package/dist/dagre-6UL2VRFP-DGQ6TW_g.cjs +693 -0
- package/dist/dagre-6UL2VRFP-WmhUYWg8.js +693 -0
- package/dist/defaultLocale-DVr69WTU.js +206 -0
- package/dist/defaultLocale-DwYGIg9G.cjs +203 -0
- package/dist/diagram-PSM6KHXK-DSfHBoUT.js +845 -0
- package/dist/diagram-PSM6KHXK-J4qyGeN7.cjs +845 -0
- package/dist/diagram-QEK2KX5R-D96wT5cH.cjs +300 -0
- package/dist/diagram-QEK2KX5R-I_nyexpY.js +300 -0
- package/dist/diagram-S2PKOQOG-BC_WyKEe.cjs +210 -0
- package/dist/diagram-S2PKOQOG-aooXSMNo.js +210 -0
- package/dist/erDiagram-Q2GNP2WA-DQ8Lquay.cjs +1158 -0
- package/dist/erDiagram-Q2GNP2WA-DWF8e6EL.js +1158 -0
- package/dist/flowDiagram-NV44I4VS-CM9c4F1o.js +2331 -0
- package/dist/flowDiagram-NV44I4VS-DpYNkyM2.cjs +2331 -0
- package/dist/ganttDiagram-JELNMOA3-CAsoD6rZ.js +3679 -0
- package/dist/ganttDiagram-JELNMOA3-DfKahpj4.cjs +3679 -0
- package/dist/gitGraph-F6HP7TQM-BX2fz4_i.js +5 -0
- package/dist/gitGraph-F6HP7TQM-DRkGg4T1.cjs +5 -0
- package/dist/gitGraphDiagram-NY62KEGX-PXpI94u6.js +1203 -0
- package/dist/gitGraphDiagram-NY62KEGX-YhnKpooH.cjs +1203 -0
- package/dist/graph-BvxpI7Xc.js +596 -0
- package/dist/graph-CI_TWBSn.cjs +595 -0
- package/dist/index-BctLGjTK.cjs +120500 -0
- package/dist/index-CjSgoo1P.js +120485 -0
- package/dist/index.cjs +19 -0
- package/dist/index.js +12 -19961
- package/dist/info-NVLQJR56-BGbTE7dw.cjs +5 -0
- package/dist/info-NVLQJR56-DRxIh-N8.js +5 -0
- package/dist/infoDiagram-WHAUD3N6-BB2Bnbnh.cjs +31 -0
- package/dist/infoDiagram-WHAUD3N6-D_RrgwxS.js +31 -0
- package/dist/init-DevvdK2U.cjs +15 -0
- package/dist/init-ZxktEp_H.js +16 -0
- package/dist/journeyDiagram-XKPGCS4Q-BJjXlMIj.js +1254 -0
- package/dist/journeyDiagram-XKPGCS4Q-BcBLsfI9.cjs +1254 -0
- package/dist/kanban-definition-3W4ZIXB7-0wwNBZ93.js +1047 -0
- package/dist/kanban-definition-3W4ZIXB7-CaY0q4j9.cjs +1047 -0
- package/dist/katex-BhpYeT3b.cjs +14523 -0
- package/dist/katex-ei8sH3Uy.js +14524 -0
- package/dist/layout-CcghncRv.js +2183 -0
- package/dist/layout-CvwzED_C.cjs +2182 -0
- package/dist/linear-CYow-mAK.cjs +339 -0
- package/dist/linear-D_gKQzVp.js +340 -0
- package/dist/mermaid-parser.core-CzmkR-3i.cjs +18703 -0
- package/dist/mermaid-parser.core-DCMDT-Cp.js +18704 -0
- package/dist/min-BBp7Smma.js +41 -0
- package/dist/min-Gu1I_bJ9.cjs +40 -0
- package/dist/mindmap-definition-VGOIOE7T-D16Pp1u5.cjs +1126 -0
- package/dist/mindmap-definition-VGOIOE7T-PjSLRtz4.js +1126 -0
- package/dist/ordinal-CxptdPJm.js +76 -0
- package/dist/ordinal-D7sQNqXZ.cjs +75 -0
- package/dist/packet-BFZMPI3H-BvdogPiS.js +5 -0
- package/dist/packet-BFZMPI3H-C7pOHUWY.cjs +5 -0
- package/dist/pie-7BOR55EZ-D-DxSHbP.cjs +5 -0
- package/dist/pie-7BOR55EZ-DEWJe4Xn.js +5 -0
- package/dist/pieDiagram-ADFJNKIX-CoDddKZl.js +237 -0
- package/dist/pieDiagram-ADFJNKIX-DjN4DU9l.cjs +237 -0
- package/dist/quadrantDiagram-AYHSOK5B-BZOg0JMm.js +1335 -0
- package/dist/quadrantDiagram-AYHSOK5B-DXjTSOL4.cjs +1335 -0
- package/dist/radar-NHE76QYJ-BrnDXy9q.cjs +5 -0
- package/dist/radar-NHE76QYJ-C2WmPmJ4.js +5 -0
- package/dist/requirementDiagram-UZGBJVZJ-CCW1O1xH.js +1161 -0
- package/dist/requirementDiagram-UZGBJVZJ-e5F3-dDI.cjs +1161 -0
- package/dist/sankeyDiagram-TZEHDZUN-BaGzCxTp.js +1193 -0
- package/dist/sankeyDiagram-TZEHDZUN-DtIvOvVI.cjs +1193 -0
- package/dist/sequenceDiagram-WL72ISMW-0vFhYnxn.cjs +3874 -0
- package/dist/sequenceDiagram-WL72ISMW-DL3B7U56.js +3874 -0
- package/dist/stateDiagram-FKZM4ZOC-CXW608BR.cjs +447 -0
- package/dist/stateDiagram-FKZM4ZOC-Ddw6HxPD.js +447 -0
- package/dist/stateDiagram-v2-4FDKWEC3-DZCkQKmp.js +19 -0
- package/dist/stateDiagram-v2-4FDKWEC3-DefWUbvq.cjs +19 -0
- package/dist/timeline-definition-IT6M3QCI-C3TfA9lE.cjs +1222 -0
- package/dist/timeline-definition-IT6M3QCI-DiS88lUo.js +1222 -0
- package/dist/treemap-KMMF4GRG-Bl-H6j2c.cjs +5 -0
- package/dist/treemap-KMMF4GRG-DGGr_R9A.js +5 -0
- package/dist/xychartDiagram-PRI3JC2R-BrOwRjfF.js +1886 -0
- package/dist/xychartDiagram-PRI3JC2R-CM06DttH.cjs +1886 -0
- package/package.json +22 -11
- package/dist/index.css +0 -1582
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { _ as __name } from "./index-CjSgoo1P.js";
|
|
2
|
+
var getIconStyles = /* @__PURE__ */ __name(() => `
|
|
3
|
+
/* Font Awesome icon styling - consolidated */
|
|
4
|
+
.label-icon {
|
|
5
|
+
display: inline-block;
|
|
6
|
+
height: 1em;
|
|
7
|
+
overflow: visible;
|
|
8
|
+
vertical-align: -0.125em;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.node .label-icon path {
|
|
12
|
+
fill: currentColor;
|
|
13
|
+
stroke: revert;
|
|
14
|
+
stroke-width: revert;
|
|
15
|
+
}
|
|
16
|
+
`, "getIconStyles");
|
|
17
|
+
export {
|
|
18
|
+
getIconStyles as g
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const index = require("./index-BctLGjTK.cjs");
|
|
3
|
+
var getIconStyles = /* @__PURE__ */ index.__name(() => `
|
|
4
|
+
/* Font Awesome icon styling - consolidated */
|
|
5
|
+
.label-icon {
|
|
6
|
+
display: inline-block;
|
|
7
|
+
height: 1em;
|
|
8
|
+
overflow: visible;
|
|
9
|
+
vertical-align: -0.125em;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.node .label-icon path {
|
|
13
|
+
fill: currentColor;
|
|
14
|
+
stroke: revert;
|
|
15
|
+
stroke-width: revert;
|
|
16
|
+
}
|
|
17
|
+
`, "getIconStyles");
|
|
18
|
+
exports.getIconStyles = getIconStyles;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { _ as __name, e as configureSvgSize, l as log } from "./index-CjSgoo1P.js";
|
|
2
|
+
var setupViewPortForSVG = /* @__PURE__ */ __name((svg, padding, cssDiagram, useMaxWidth) => {
|
|
3
|
+
svg.attr("class", cssDiagram);
|
|
4
|
+
const { width, height, x, y } = calculateDimensionsWithPadding(svg, padding);
|
|
5
|
+
configureSvgSize(svg, height, width, useMaxWidth);
|
|
6
|
+
const viewBox = createViewBox(x, y, width, height, padding);
|
|
7
|
+
svg.attr("viewBox", viewBox);
|
|
8
|
+
log.debug(`viewBox configured: ${viewBox} with padding: ${padding}`);
|
|
9
|
+
}, "setupViewPortForSVG");
|
|
10
|
+
var calculateDimensionsWithPadding = /* @__PURE__ */ __name((svg, padding) => {
|
|
11
|
+
const bounds = svg.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
|
|
12
|
+
return {
|
|
13
|
+
width: bounds.width + padding * 2,
|
|
14
|
+
height: bounds.height + padding * 2,
|
|
15
|
+
x: bounds.x,
|
|
16
|
+
y: bounds.y
|
|
17
|
+
};
|
|
18
|
+
}, "calculateDimensionsWithPadding");
|
|
19
|
+
var createViewBox = /* @__PURE__ */ __name((x, y, width, height, padding) => {
|
|
20
|
+
return `${x - padding} ${y - padding} ${width} ${height}`;
|
|
21
|
+
}, "createViewBox");
|
|
22
|
+
export {
|
|
23
|
+
setupViewPortForSVG as s
|
|
24
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const index = require("./index-BctLGjTK.cjs");
|
|
3
|
+
var setupViewPortForSVG = /* @__PURE__ */ index.__name((svg, padding, cssDiagram, useMaxWidth) => {
|
|
4
|
+
svg.attr("class", cssDiagram);
|
|
5
|
+
const { width, height, x, y } = calculateDimensionsWithPadding(svg, padding);
|
|
6
|
+
index.configureSvgSize(svg, height, width, useMaxWidth);
|
|
7
|
+
const viewBox = createViewBox(x, y, width, height, padding);
|
|
8
|
+
svg.attr("viewBox", viewBox);
|
|
9
|
+
index.log.debug(`viewBox configured: ${viewBox} with padding: ${padding}`);
|
|
10
|
+
}, "setupViewPortForSVG");
|
|
11
|
+
var calculateDimensionsWithPadding = /* @__PURE__ */ index.__name((svg, padding) => {
|
|
12
|
+
const bounds = svg.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
|
|
13
|
+
return {
|
|
14
|
+
width: bounds.width + padding * 2,
|
|
15
|
+
height: bounds.height + padding * 2,
|
|
16
|
+
x: bounds.x,
|
|
17
|
+
y: bounds.y
|
|
18
|
+
};
|
|
19
|
+
}, "calculateDimensionsWithPadding");
|
|
20
|
+
var createViewBox = /* @__PURE__ */ index.__name((x, y, width, height, padding) => {
|
|
21
|
+
return `${x - padding} ${y - padding} ${width} ${height}`;
|
|
22
|
+
}, "createViewBox");
|
|
23
|
+
exports.setupViewPortForSVG = setupViewPortForSVG;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import { _ as __name } from "./index-CjSgoo1P.js";
|
|
3
|
+
var ImperativeState = (_a = class {
|
|
4
|
+
/**
|
|
5
|
+
* @param init - Function that creates the default state.
|
|
6
|
+
*/
|
|
7
|
+
constructor(init) {
|
|
8
|
+
this.init = init;
|
|
9
|
+
this.records = this.init();
|
|
10
|
+
}
|
|
11
|
+
reset() {
|
|
12
|
+
this.records = this.init();
|
|
13
|
+
}
|
|
14
|
+
}, __name(_a, "ImperativeState"), _a);
|
|
15
|
+
export {
|
|
16
|
+
ImperativeState as I
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
const index = require("./index-BctLGjTK.cjs");
|
|
4
|
+
var ImperativeState = (_a = class {
|
|
5
|
+
/**
|
|
6
|
+
* @param init - Function that creates the default state.
|
|
7
|
+
*/
|
|
8
|
+
constructor(init) {
|
|
9
|
+
this.init = init;
|
|
10
|
+
this.records = this.init();
|
|
11
|
+
}
|
|
12
|
+
reset() {
|
|
13
|
+
this.records = this.init();
|
|
14
|
+
}
|
|
15
|
+
}, index.__name(_a, "ImperativeState"), _a);
|
|
16
|
+
exports.ImperativeState = ImperativeState;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const index = require("./index-BctLGjTK.cjs");
|
|
3
|
+
var drawRect = /* @__PURE__ */ index.__name((element, rectData) => {
|
|
4
|
+
const rectElement = element.append("rect");
|
|
5
|
+
rectElement.attr("x", rectData.x);
|
|
6
|
+
rectElement.attr("y", rectData.y);
|
|
7
|
+
rectElement.attr("fill", rectData.fill);
|
|
8
|
+
rectElement.attr("stroke", rectData.stroke);
|
|
9
|
+
rectElement.attr("width", rectData.width);
|
|
10
|
+
rectElement.attr("height", rectData.height);
|
|
11
|
+
if (rectData.name) {
|
|
12
|
+
rectElement.attr("name", rectData.name);
|
|
13
|
+
}
|
|
14
|
+
if (rectData.rx) {
|
|
15
|
+
rectElement.attr("rx", rectData.rx);
|
|
16
|
+
}
|
|
17
|
+
if (rectData.ry) {
|
|
18
|
+
rectElement.attr("ry", rectData.ry);
|
|
19
|
+
}
|
|
20
|
+
if (rectData.attrs !== void 0) {
|
|
21
|
+
for (const attrKey in rectData.attrs) {
|
|
22
|
+
rectElement.attr(attrKey, rectData.attrs[attrKey]);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (rectData.class) {
|
|
26
|
+
rectElement.attr("class", rectData.class);
|
|
27
|
+
}
|
|
28
|
+
return rectElement;
|
|
29
|
+
}, "drawRect");
|
|
30
|
+
var drawBackgroundRect = /* @__PURE__ */ index.__name((element, bounds) => {
|
|
31
|
+
const rectData = {
|
|
32
|
+
x: bounds.startx,
|
|
33
|
+
y: bounds.starty,
|
|
34
|
+
width: bounds.stopx - bounds.startx,
|
|
35
|
+
height: bounds.stopy - bounds.starty,
|
|
36
|
+
fill: bounds.fill,
|
|
37
|
+
stroke: bounds.stroke,
|
|
38
|
+
class: "rect"
|
|
39
|
+
};
|
|
40
|
+
const rectElement = drawRect(element, rectData);
|
|
41
|
+
rectElement.lower();
|
|
42
|
+
}, "drawBackgroundRect");
|
|
43
|
+
var drawText = /* @__PURE__ */ index.__name((element, textData) => {
|
|
44
|
+
const nText = textData.text.replace(index.lineBreakRegex, " ");
|
|
45
|
+
const textElem = element.append("text");
|
|
46
|
+
textElem.attr("x", textData.x);
|
|
47
|
+
textElem.attr("y", textData.y);
|
|
48
|
+
textElem.attr("class", "legend");
|
|
49
|
+
textElem.style("text-anchor", textData.anchor);
|
|
50
|
+
if (textData.class) {
|
|
51
|
+
textElem.attr("class", textData.class);
|
|
52
|
+
}
|
|
53
|
+
const tspan = textElem.append("tspan");
|
|
54
|
+
tspan.attr("x", textData.x + textData.textMargin * 2);
|
|
55
|
+
tspan.text(nText);
|
|
56
|
+
return textElem;
|
|
57
|
+
}, "drawText");
|
|
58
|
+
var drawImage = /* @__PURE__ */ index.__name((elem, x, y, link) => {
|
|
59
|
+
const imageElement = elem.append("image");
|
|
60
|
+
imageElement.attr("x", x);
|
|
61
|
+
imageElement.attr("y", y);
|
|
62
|
+
const sanitizedLink = index.distExports.sanitizeUrl(link);
|
|
63
|
+
imageElement.attr("xlink:href", sanitizedLink);
|
|
64
|
+
}, "drawImage");
|
|
65
|
+
var drawEmbeddedImage = /* @__PURE__ */ index.__name((element, x, y, link) => {
|
|
66
|
+
const imageElement = element.append("use");
|
|
67
|
+
imageElement.attr("x", x);
|
|
68
|
+
imageElement.attr("y", y);
|
|
69
|
+
const sanitizedLink = index.distExports.sanitizeUrl(link);
|
|
70
|
+
imageElement.attr("xlink:href", `#${sanitizedLink}`);
|
|
71
|
+
}, "drawEmbeddedImage");
|
|
72
|
+
var getNoteRect = /* @__PURE__ */ index.__name(() => {
|
|
73
|
+
const noteRectData = {
|
|
74
|
+
x: 0,
|
|
75
|
+
y: 0,
|
|
76
|
+
width: 100,
|
|
77
|
+
height: 100,
|
|
78
|
+
fill: "#EDF2AE",
|
|
79
|
+
stroke: "#666",
|
|
80
|
+
anchor: "start",
|
|
81
|
+
rx: 0,
|
|
82
|
+
ry: 0
|
|
83
|
+
};
|
|
84
|
+
return noteRectData;
|
|
85
|
+
}, "getNoteRect");
|
|
86
|
+
var getTextObj = /* @__PURE__ */ index.__name(() => {
|
|
87
|
+
const testObject = {
|
|
88
|
+
x: 0,
|
|
89
|
+
y: 0,
|
|
90
|
+
width: 100,
|
|
91
|
+
height: 100,
|
|
92
|
+
"text-anchor": "start",
|
|
93
|
+
style: "#666",
|
|
94
|
+
textMargin: 0,
|
|
95
|
+
rx: 0,
|
|
96
|
+
ry: 0,
|
|
97
|
+
tspan: true
|
|
98
|
+
};
|
|
99
|
+
return testObject;
|
|
100
|
+
}, "getTextObj");
|
|
101
|
+
exports.drawBackgroundRect = drawBackgroundRect;
|
|
102
|
+
exports.drawEmbeddedImage = drawEmbeddedImage;
|
|
103
|
+
exports.drawImage = drawImage;
|
|
104
|
+
exports.drawRect = drawRect;
|
|
105
|
+
exports.drawText = drawText;
|
|
106
|
+
exports.getNoteRect = getNoteRect;
|
|
107
|
+
exports.getTextObj = getTextObj;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { _ as __name, U as lineBreakRegex, j as distExports } from "./index-CjSgoo1P.js";
|
|
2
|
+
var drawRect = /* @__PURE__ */ __name((element, rectData) => {
|
|
3
|
+
const rectElement = element.append("rect");
|
|
4
|
+
rectElement.attr("x", rectData.x);
|
|
5
|
+
rectElement.attr("y", rectData.y);
|
|
6
|
+
rectElement.attr("fill", rectData.fill);
|
|
7
|
+
rectElement.attr("stroke", rectData.stroke);
|
|
8
|
+
rectElement.attr("width", rectData.width);
|
|
9
|
+
rectElement.attr("height", rectData.height);
|
|
10
|
+
if (rectData.name) {
|
|
11
|
+
rectElement.attr("name", rectData.name);
|
|
12
|
+
}
|
|
13
|
+
if (rectData.rx) {
|
|
14
|
+
rectElement.attr("rx", rectData.rx);
|
|
15
|
+
}
|
|
16
|
+
if (rectData.ry) {
|
|
17
|
+
rectElement.attr("ry", rectData.ry);
|
|
18
|
+
}
|
|
19
|
+
if (rectData.attrs !== void 0) {
|
|
20
|
+
for (const attrKey in rectData.attrs) {
|
|
21
|
+
rectElement.attr(attrKey, rectData.attrs[attrKey]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
if (rectData.class) {
|
|
25
|
+
rectElement.attr("class", rectData.class);
|
|
26
|
+
}
|
|
27
|
+
return rectElement;
|
|
28
|
+
}, "drawRect");
|
|
29
|
+
var drawBackgroundRect = /* @__PURE__ */ __name((element, bounds) => {
|
|
30
|
+
const rectData = {
|
|
31
|
+
x: bounds.startx,
|
|
32
|
+
y: bounds.starty,
|
|
33
|
+
width: bounds.stopx - bounds.startx,
|
|
34
|
+
height: bounds.stopy - bounds.starty,
|
|
35
|
+
fill: bounds.fill,
|
|
36
|
+
stroke: bounds.stroke,
|
|
37
|
+
class: "rect"
|
|
38
|
+
};
|
|
39
|
+
const rectElement = drawRect(element, rectData);
|
|
40
|
+
rectElement.lower();
|
|
41
|
+
}, "drawBackgroundRect");
|
|
42
|
+
var drawText = /* @__PURE__ */ __name((element, textData) => {
|
|
43
|
+
const nText = textData.text.replace(lineBreakRegex, " ");
|
|
44
|
+
const textElem = element.append("text");
|
|
45
|
+
textElem.attr("x", textData.x);
|
|
46
|
+
textElem.attr("y", textData.y);
|
|
47
|
+
textElem.attr("class", "legend");
|
|
48
|
+
textElem.style("text-anchor", textData.anchor);
|
|
49
|
+
if (textData.class) {
|
|
50
|
+
textElem.attr("class", textData.class);
|
|
51
|
+
}
|
|
52
|
+
const tspan = textElem.append("tspan");
|
|
53
|
+
tspan.attr("x", textData.x + textData.textMargin * 2);
|
|
54
|
+
tspan.text(nText);
|
|
55
|
+
return textElem;
|
|
56
|
+
}, "drawText");
|
|
57
|
+
var drawImage = /* @__PURE__ */ __name((elem, x, y, link) => {
|
|
58
|
+
const imageElement = elem.append("image");
|
|
59
|
+
imageElement.attr("x", x);
|
|
60
|
+
imageElement.attr("y", y);
|
|
61
|
+
const sanitizedLink = distExports.sanitizeUrl(link);
|
|
62
|
+
imageElement.attr("xlink:href", sanitizedLink);
|
|
63
|
+
}, "drawImage");
|
|
64
|
+
var drawEmbeddedImage = /* @__PURE__ */ __name((element, x, y, link) => {
|
|
65
|
+
const imageElement = element.append("use");
|
|
66
|
+
imageElement.attr("x", x);
|
|
67
|
+
imageElement.attr("y", y);
|
|
68
|
+
const sanitizedLink = distExports.sanitizeUrl(link);
|
|
69
|
+
imageElement.attr("xlink:href", `#${sanitizedLink}`);
|
|
70
|
+
}, "drawEmbeddedImage");
|
|
71
|
+
var getNoteRect = /* @__PURE__ */ __name(() => {
|
|
72
|
+
const noteRectData = {
|
|
73
|
+
x: 0,
|
|
74
|
+
y: 0,
|
|
75
|
+
width: 100,
|
|
76
|
+
height: 100,
|
|
77
|
+
fill: "#EDF2AE",
|
|
78
|
+
stroke: "#666",
|
|
79
|
+
anchor: "start",
|
|
80
|
+
rx: 0,
|
|
81
|
+
ry: 0
|
|
82
|
+
};
|
|
83
|
+
return noteRectData;
|
|
84
|
+
}, "getNoteRect");
|
|
85
|
+
var getTextObj = /* @__PURE__ */ __name(() => {
|
|
86
|
+
const testObject = {
|
|
87
|
+
x: 0,
|
|
88
|
+
y: 0,
|
|
89
|
+
width: 100,
|
|
90
|
+
height: 100,
|
|
91
|
+
"text-anchor": "start",
|
|
92
|
+
style: "#666",
|
|
93
|
+
textMargin: 0,
|
|
94
|
+
rx: 0,
|
|
95
|
+
ry: 0,
|
|
96
|
+
tspan: true
|
|
97
|
+
};
|
|
98
|
+
return testObject;
|
|
99
|
+
}, "getTextObj");
|
|
100
|
+
export {
|
|
101
|
+
drawBackgroundRect as a,
|
|
102
|
+
getTextObj as b,
|
|
103
|
+
drawEmbeddedImage as c,
|
|
104
|
+
drawRect as d,
|
|
105
|
+
drawImage as e,
|
|
106
|
+
drawText as f,
|
|
107
|
+
getNoteRect as g
|
|
108
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-B4BG7PRW-E1dti26Y.js";
|
|
2
|
+
import { _ as __name } from "./index-CjSgoo1P.js";
|
|
3
|
+
var diagram = {
|
|
4
|
+
parser: classDiagram_default,
|
|
5
|
+
get db() {
|
|
6
|
+
return new ClassDB();
|
|
7
|
+
},
|
|
8
|
+
renderer: classRenderer_v3_unified_default,
|
|
9
|
+
styles: styles_default,
|
|
10
|
+
init: /* @__PURE__ */ __name((cnf) => {
|
|
11
|
+
if (!cnf.class) {
|
|
12
|
+
cnf.class = {};
|
|
13
|
+
}
|
|
14
|
+
cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
|
|
15
|
+
}, "init")
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
diagram
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const chunkB4BG7PRW = require("./chunk-B4BG7PRW-B1zqG62l.cjs");
|
|
4
|
+
const index = require("./index-BctLGjTK.cjs");
|
|
5
|
+
var diagram = {
|
|
6
|
+
parser: chunkB4BG7PRW.classDiagram_default,
|
|
7
|
+
get db() {
|
|
8
|
+
return new chunkB4BG7PRW.ClassDB();
|
|
9
|
+
},
|
|
10
|
+
renderer: chunkB4BG7PRW.classRenderer_v3_unified_default,
|
|
11
|
+
styles: chunkB4BG7PRW.styles_default,
|
|
12
|
+
init: /* @__PURE__ */ index.__name((cnf) => {
|
|
13
|
+
if (!cnf.class) {
|
|
14
|
+
cnf.class = {};
|
|
15
|
+
}
|
|
16
|
+
cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
|
|
17
|
+
}, "init")
|
|
18
|
+
};
|
|
19
|
+
exports.diagram = diagram;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { s as styles_default, c as classRenderer_v3_unified_default, a as classDiagram_default, C as ClassDB } from "./chunk-B4BG7PRW-E1dti26Y.js";
|
|
2
|
+
import { _ as __name } from "./index-CjSgoo1P.js";
|
|
3
|
+
var diagram = {
|
|
4
|
+
parser: classDiagram_default,
|
|
5
|
+
get db() {
|
|
6
|
+
return new ClassDB();
|
|
7
|
+
},
|
|
8
|
+
renderer: classRenderer_v3_unified_default,
|
|
9
|
+
styles: styles_default,
|
|
10
|
+
init: /* @__PURE__ */ __name((cnf) => {
|
|
11
|
+
if (!cnf.class) {
|
|
12
|
+
cnf.class = {};
|
|
13
|
+
}
|
|
14
|
+
cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
|
|
15
|
+
}, "init")
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
diagram
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const chunkB4BG7PRW = require("./chunk-B4BG7PRW-B1zqG62l.cjs");
|
|
4
|
+
const index = require("./index-BctLGjTK.cjs");
|
|
5
|
+
var diagram = {
|
|
6
|
+
parser: chunkB4BG7PRW.classDiagram_default,
|
|
7
|
+
get db() {
|
|
8
|
+
return new chunkB4BG7PRW.ClassDB();
|
|
9
|
+
},
|
|
10
|
+
renderer: chunkB4BG7PRW.classRenderer_v3_unified_default,
|
|
11
|
+
styles: chunkB4BG7PRW.styles_default,
|
|
12
|
+
init: /* @__PURE__ */ index.__name((cnf) => {
|
|
13
|
+
if (!cnf.class) {
|
|
14
|
+
cnf.class = {};
|
|
15
|
+
}
|
|
16
|
+
cnf.class.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
|
|
17
|
+
}, "init")
|
|
18
|
+
};
|
|
19
|
+
exports.diagram = diagram;
|