@elmethis/core 1.0.0-alpha.135 → 1.0.0-alpha.136
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/{Bash-5KqPZETT.js → Bash-BGUPOZp7.js} +1 -1
- package/dist/{Css-Br7IeFYI.js → Css-BCZOJ9TO.js} +1 -1
- package/dist/{Rust-TE1r2SD6.js → Rust-BwvKtYCc.js} +1 -1
- package/dist/_basePickBy-BjVOtBbf.js +152 -0
- package/dist/_baseUniq-DBXEmOed.js +583 -0
- package/dist/arc-CpOtc53l.js +83 -0
- package/dist/architecture-I3QFYML2-B3piHlUx.js +5 -0
- package/dist/architectureDiagram-UYN6MBPD-CIvqBNYd.js +4595 -0
- package/dist/blockDiagram-ZHA2E4KO-BJHIBwi6.js +2247 -0
- package/dist/c4Diagram-6F5ED5ID-DxXqw6e0.js +1581 -0
- package/dist/channel-BgZSmjvA.js +5 -0
- package/dist/chunk-5HRBRIJM-CvhBPtHu.js +24 -0
- package/dist/chunk-7U56Z5CX-CaWvnXle.js +1215 -0
- package/dist/chunk-ASOPGD6M-CQjrO8hd.js +64 -0
- package/dist/chunk-KFBOBJHC-DWru5GNu.js +15 -0
- package/dist/chunk-T2TOU4HS-DqpYO7rW.js +1303 -0
- package/dist/chunk-TMUBEWPD-LmMMNIqt.js +9 -0
- package/dist/classDiagram-LNE6IOMH-D5GoOZTJ.js +14 -0
- package/dist/classDiagram-v2-MQ7JQ4JX-D5GoOZTJ.js +14 -0
- package/dist/clone-DMQ2a__4.js +8 -0
- package/dist/{cobol-DZ3yq6J9.js → cobol-DMssKNmC.js} +1 -1
- package/dist/components/code/ElmMermaid.stories.d.ts +7 -0
- package/dist/components/code/ElmMermaid.vue.d.ts +8 -0
- package/dist/cytoscape.esm-CsRvAgYT.js +17639 -0
- package/dist/dagre-4EVJKHTY-C7YsHY3S.js +447 -0
- package/dist/diagram-QW4FP2JN-iDbrW_yI.js +126 -0
- package/dist/elmethis.js +36 -35
- package/dist/elmethis.umd.cjs +2272 -41
- package/dist/erDiagram-6RL3IURR-LYq0WEw3.js +937 -0
- package/dist/flowDiagram-7ASYPVHJ-DRPtjs2_.js +1484 -0
- package/dist/ganttDiagram-NTVNEXSI-C-hO_7Lp.js +2494 -0
- package/dist/gitGraph-YCYPL57B-BaVhg8eu.js +5 -0
- package/dist/gitGraphDiagram-NRZ2UAAF-u52k9qsq.js +712 -0
- package/dist/graph-CKV5wesZ.js +247 -0
- package/dist/{index-0D7NEPxZ.js → index-DQdUr-_f.js} +3548 -3436
- package/dist/index.d.ts +3 -2
- package/dist/info-46DW6VJ7-D5JUpHK_.js +5 -0
- package/dist/infoDiagram-A4XQUW5V-D5IcjWQu.js +22 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/journeyDiagram-G5WM74LC-XHcEaxXL.js +810 -0
- package/dist/kanban-definition-QRCXZQQD-BFgu8zXi.js +718 -0
- package/dist/layout-Cycesmdu.js +1324 -0
- package/dist/linear-CjRkwbhR.js +423 -0
- package/dist/mermaid-parser.core-CL_REaxY.js +12479 -0
- package/dist/mermaid.core-gtllNrzr.js +14852 -0
- package/dist/mindmap-definition-GWI6TPTV-yPOhYeCo.js +3220 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/packet-W2GHVCYJ-D1drjM5q.js +5 -0
- package/dist/pie-BEWT4RHE-B2xFs62T.js +5 -0
- package/dist/pieDiagram-YF2LJOPJ-Cnvx0DvF.js +162 -0
- package/dist/quadrantDiagram-OS5C2QUG-DBWy6UVd.js +1024 -0
- package/dist/{razor-Dl6rcHmj.js → razor-CeqqNtyB.js} +1 -1
- package/dist/requirementDiagram-MIRIMTAZ-CfHcsBsO.js +768 -0
- package/dist/sankeyDiagram-Y46BX6SQ-C_60tCtv.js +805 -0
- package/dist/sass-eCUyDs9S.js +6 -0
- package/dist/scala-Cly-fENF.js +6 -0
- package/dist/sequenceDiagram-G6AWOVSC-XvgYpHvJ.js +2274 -0
- package/dist/stateDiagram-MAYHULR4-Bx48BKG3.js +268 -0
- package/dist/stateDiagram-v2-4JROLMXI-pDuBzVSZ.js +14 -0
- package/dist/swift-BAWqNR8A.js +6 -0
- package/dist/timeline-definition-U7ZMHBDA-EGhtku4S.js +804 -0
- package/dist/xychartDiagram-6QU3TZC5-B_OmutYz.js +1304 -0
- package/package.json +11 -10
- package/dist/sass-iCyS6eP9.js +0 -6
- package/dist/scala-BQHTnvwx.js +0 -6
- package/dist/swift-OL4r9IGP.js +0 -6
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { _ as n, n as x, m as l } from "./mermaid.core-gtllNrzr.js";
|
|
2
|
+
var c = /* @__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
|
+
c(s, e).lower();
|
|
19
|
+
}, "drawBackgroundRect"), g = /* @__PURE__ */ n((s, t) => {
|
|
20
|
+
const e = t.text.replace(x, " "), 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"), m = /* @__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"), h = /* @__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
|
+
p as a,
|
|
58
|
+
d as b,
|
|
59
|
+
h as c,
|
|
60
|
+
c as d,
|
|
61
|
+
m as e,
|
|
62
|
+
g as f,
|
|
63
|
+
y as g
|
|
64
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { _ as s } from "./mermaid.core-gtllNrzr.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
|
+
};
|