@elmethis/core 1.0.0-alpha.135 → 1.0.0-alpha.137
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-JB7mhqMV.js} +1 -1
- package/dist/{Css-Br7IeFYI.js → Css-0NAYD_OW.js} +1 -1
- package/dist/{Rust-TE1r2SD6.js → Rust-kkjDQ8tk.js} +1 -1
- package/dist/_basePickBy-BnRB4lKJ.js +152 -0
- package/dist/_baseUniq-EbPCfcVr.js +583 -0
- package/dist/arc-DtrpWJkn.js +83 -0
- package/dist/architecture-I3QFYML2-y7rP5N07.js +5 -0
- package/dist/architectureDiagram-UYN6MBPD-BbcvGlFy.js +4594 -0
- package/dist/blockDiagram-ZHA2E4KO-J6P17AKU.js +2247 -0
- package/dist/c4Diagram-6F5ED5ID-ESHSv1aa.js +1581 -0
- package/dist/channel-CDCXNZiA.js +5 -0
- package/dist/chunk-5HRBRIJM-DDhAQp1M.js +24 -0
- package/dist/chunk-7U56Z5CX-CTKeOjOF.js +1215 -0
- package/dist/chunk-ASOPGD6M-DHW7NehH.js +64 -0
- package/dist/chunk-KFBOBJHC-B7OcnXB0.js +15 -0
- package/dist/chunk-T2TOU4HS-DsHWJtZN.js +1303 -0
- package/dist/chunk-TMUBEWPD-BgrWpymO.js +9 -0
- package/dist/classDiagram-LNE6IOMH-qfjzSd6G.js +14 -0
- package/dist/classDiagram-v2-MQ7JQ4JX-qfjzSd6G.js +14 -0
- package/dist/clone-B_fpQAhh.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-BnrRqLMr.js +447 -0
- package/dist/diagram-QW4FP2JN-B8pesFEO.js +126 -0
- package/dist/elmethis.js +15 -15
- package/dist/elmethis.umd.cjs +2269 -47
- package/dist/erDiagram-6RL3IURR-CoUFgVbY.js +937 -0
- package/dist/flowDiagram-7ASYPVHJ-C0vGL8Co.js +1484 -0
- package/dist/ganttDiagram-NTVNEXSI-DFgE6ZhA.js +2493 -0
- package/dist/gitGraph-YCYPL57B-csVtWh2b.js +5 -0
- package/dist/gitGraphDiagram-NRZ2UAAF-DvsxegX1.js +712 -0
- package/dist/graph-DgSmHj3V.js +247 -0
- package/dist/{index-0D7NEPxZ.js → index-DS_ZLEHb.js} +5762 -7163
- package/dist/index.d.ts +3 -3
- package/dist/info-46DW6VJ7-DTSUpMFX.js +5 -0
- package/dist/infoDiagram-A4XQUW5V-mioCgA4L.js +22 -0
- package/dist/init-DjUOC4st.js +16 -0
- package/dist/journeyDiagram-G5WM74LC-CG2WrFaV.js +810 -0
- package/dist/kanban-definition-QRCXZQQD-CkUFDhOP.js +718 -0
- package/dist/layout-DhjN4FBE.js +1324 -0
- package/dist/linear-DB6yabxw.js +423 -0
- package/dist/mermaid-parser.core-B8nWC-lt.js +12479 -0
- package/dist/mermaid.core-DF1gJmLQ.js +14857 -0
- package/dist/mindmap-definition-GWI6TPTV-bhYUb7St.js +3219 -0
- package/dist/ordinal-DfAQgscy.js +61 -0
- package/dist/packet-W2GHVCYJ-CTlS02Rf.js +5 -0
- package/dist/pie-BEWT4RHE-DcmreCSy.js +5 -0
- package/dist/pieDiagram-YF2LJOPJ-Bqezep_G.js +162 -0
- package/dist/quadrantDiagram-OS5C2QUG-DKZ8WinF.js +1024 -0
- package/dist/{razor-Dl6rcHmj.js → razor-CeqqNtyB.js} +1 -1
- package/dist/requirementDiagram-MIRIMTAZ-CzzCvPje.js +768 -0
- package/dist/sankeyDiagram-Y46BX6SQ-502GdqPD.js +805 -0
- package/dist/sass-eCUyDs9S.js +6 -0
- package/dist/scala-Cly-fENF.js +6 -0
- package/dist/sequenceDiagram-G6AWOVSC-DlZXQ9-3.js +2274 -0
- package/dist/stateDiagram-MAYHULR4-B_L0a9fM.js +268 -0
- package/dist/stateDiagram-v2-4JROLMXI-B-BnWe3Y.js +14 -0
- package/dist/swift-BAWqNR8A.js +6 -0
- package/dist/timeline-definition-U7ZMHBDA-qQB5gytU.js +804 -0
- package/dist/xychartDiagram-6QU3TZC5-CeSa9ohX.js +1304 -0
- package/package.json +12 -11
- package/dist/components/code/ElmPrismHighlighter.stories.d.ts +0 -7
- package/dist/components/code/ElmPrismHighlighter.vue.d.ts +0 -16
- 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-DF1gJmLQ.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-DF1gJmLQ.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
|
+
};
|