1 | import { e as a } from "./mermaid-9357f3d0.js";
|
2 | const l = function(s, t) {
|
3 | const r = s.append("rect");
|
4 | if (r.attr("x", t.x), r.attr("y", t.y), r.attr("fill", t.fill), r.attr("stroke", t.stroke), r.attr("width", t.width), r.attr("height", t.height), r.attr("rx", t.rx), r.attr("ry", t.ry), t.attrs !== "undefined" && t.attrs !== null)
|
5 | for (let n in t.attrs)
|
6 | r.attr(n, t.attrs[n]);
|
7 | return t.class !== "undefined" && r.attr("class", t.class), r;
|
8 | }, c = function(s, t) {
|
9 | l(s, {
|
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 | }).lower();
|
18 | }, d = function(s, t) {
|
19 | const r = t.text.replace(/<br\s*\/?>/gi, " "), n = s.append("text");
|
20 | n.attr("x", t.x), n.attr("y", t.y), n.attr("class", "legend"), n.style("text-anchor", t.anchor), t.class !== void 0 && n.attr("class", t.class);
|
21 | const e = n.append("tspan");
|
22 | return e.attr("x", t.x + t.textMargin * 2), e.text(r), n;
|
23 | }, f = function(s, t, r, n) {
|
24 | const e = s.append("image");
|
25 | e.attr("x", t), e.attr("y", r);
|
26 | var i = a(n);
|
27 | e.attr("xlink:href", i);
|
28 | }, x = function(s, t, r, n) {
|
29 | const e = s.append("use");
|
30 | e.attr("x", t), e.attr("y", r);
|
31 | const i = a(n);
|
32 | e.attr("xlink:href", "#" + i);
|
33 | }, h = function() {
|
34 | return {
|
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 | };
|
45 | }, g = function() {
|
46 | return {
|
47 | x: 0,
|
48 | y: 0,
|
49 | width: 100,
|
50 | height: 100,
|
51 | fill: void 0,
|
52 | anchor: void 0,
|
53 | "text-anchor": "start",
|
54 | style: "#666",
|
55 | textMargin: 0,
|
56 | rx: 0,
|
57 | ry: 0,
|
58 | tspan: !0,
|
59 | valign: void 0
|
60 | };
|
61 | };
|
62 | export {
|
63 | c as a,
|
64 | x as b,
|
65 | f as c,
|
66 | l as d,
|
67 | g as e,
|
68 | d as f,
|
69 | h as g
|
70 | };
|