bg-editor 0.0.7 → 0.0.8
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/umo-editor.js +89809 -7
- package/package.json +21 -1
- package/dist/_baseUniq-CK68Es8H.js +0 -473
- package/dist/arc-cD-4ba7d.js +0 -84
- package/dist/architecture-U656AL7Q-jxTBuJdN.js +0 -6
- package/dist/architectureDiagram-VXUJARFQ-D3XlpFhb.js +0 -4660
- package/dist/blockDiagram-VD42YOAC-BslbvMOG.js +0 -2262
- package/dist/c4Diagram-YG6GDRKO-DD3uWYPM.js +0 -1581
- package/dist/channel-DjTSKqWx.js +0 -6
- package/dist/chunk-4BX2VUAB-lfhsh4gk.js +0 -9
- package/dist/chunk-55IACEB6-O42zw0MT.js +0 -9
- package/dist/chunk-B4BG7PRW-CAose2Ox.js +0 -1376
- package/dist/chunk-DI55MBZ5-DkOlwdzs.js +0 -1371
- package/dist/chunk-FMBD7UC4-XviEvZms.js +0 -20
- package/dist/chunk-QN33PNHL-CNGSzgpw.js +0 -20
- package/dist/chunk-QZHKN3VN-CRgLUJXR.js +0 -16
- package/dist/chunk-TZMSLE5B-BkHNUxTN.js +0 -65
- package/dist/classDiagram-2ON5EDUG-Cakz_SCw.js +0 -17
- package/dist/classDiagram-v2-WZHVMYZB-Cakz_SCw.js +0 -17
- package/dist/clone-CIrbb4_D.js +0 -9
- package/dist/cose-bilkent-S5V4N54A-EoSlB5N_.js +0 -2606
- package/dist/cytoscape.esm-DoU_GB5M.js +0 -18732
- package/dist/dagre-6UL2VRFP-BPH1NIvl.js +0 -444
- package/dist/defaultLocale-DEnRyJdC.js +0 -172
- package/dist/diagram-PSM6KHXK-DCRoLhFv.js +0 -396
- package/dist/diagram-QEK2KX5R-2gxFpsCA.js +0 -218
- package/dist/diagram-S2PKOQOG-BIPpN2G8.js +0 -143
- package/dist/erDiagram-Q2GNP2WA-pfb2dpnp.js +0 -842
- package/dist/flowDiagram-NV44I4VS-Dv631-Fh.js +0 -1621
- package/dist/ganttDiagram-LVOFAZNH-BOKYXijK.js +0 -2500
- package/dist/gitGraph-F6HP7TQM-CRerkbyh.js +0 -6
- package/dist/gitGraphDiagram-NY62KEGX-CgO9x7O1.js +0 -700
- package/dist/graph-CG-rVaun.js +0 -382
- package/dist/index-LPeu-5gp.js +0 -164788
- package/dist/info-NVLQJR56-CZcMDuD4.js +0 -6
- package/dist/infoDiagram-ER5ION4S-CpfjxDXT.js +0 -25
- package/dist/init-Dbt-6wo9.js +0 -17
- package/dist/journeyDiagram-XKPGCS4Q-D4m1xk_j.js +0 -837
- package/dist/kanban-definition-3W4ZIXB7-GUMW-GDO.js +0 -719
- package/dist/layout-C7pGfQvF.js +0 -1416
- package/dist/linear-CQdBpz9H.js +0 -260
- package/dist/mermaid-parser.core-C3Lk4un7.js +0 -14143
- package/dist/min-D7xNMq31.js +0 -39
- package/dist/mindmap-definition-VGOIOE7T-GfQh2q9s.js +0 -784
- package/dist/ordinal-mgyNSFm_.js +0 -62
- package/dist/packet-BFZMPI3H-DughJE3g.js +0 -6
- package/dist/pie-7BOR55EZ-B1py7mee.js +0 -6
- package/dist/pieDiagram-ADFJNKIX-DENmX4xL.js +0 -162
- package/dist/quadrantDiagram-AYHSOK5B-BFVycH-W.js +0 -1023
- package/dist/radar-NHE76QYJ-DuTW4rXt.js +0 -6
- package/dist/requirementDiagram-UZGBJVZJ-f8rb43Mp.js +0 -851
- package/dist/sankeyDiagram-TZEHDZUN-CUN0tZ5p.js +0 -811
- package/dist/sequenceDiagram-WL72ISMW-7X4nul9T.js +0 -2512
- package/dist/stateDiagram-FKZM4ZOC-CypL793K.js +0 -264
- package/dist/stateDiagram-v2-4FDKWEC3-D5vS5FM5.js +0 -17
- package/dist/timeline-definition-IT6M3QCI-B_WOoOGO.js +0 -798
- package/dist/treemap-KMMF4GRG-BzINyJBJ.js +0 -6
- package/dist/xychartDiagram-PRI3JC2R-Llw16NDY.js +0 -1341
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
import { _ as e } from "./index-LPeu-5gp.js";
|
|
3
|
-
var l = /* @__PURE__ */ e(() => `
|
|
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
|
-
export {
|
|
19
|
-
l as g
|
|
20
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
import { _ as a, e as w, l as x } from "./index-LPeu-5gp.js";
|
|
3
|
-
var g = /* @__PURE__ */ a((e, t, i, r) => {
|
|
4
|
-
e.attr("class", i);
|
|
5
|
-
const { width: o, height: h, x: n, y: c } = u(e, t);
|
|
6
|
-
w(e, h, o, r);
|
|
7
|
-
const s = l(n, c, o, h, t);
|
|
8
|
-
e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`);
|
|
9
|
-
}, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => {
|
|
10
|
-
const i = e.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
|
|
11
|
-
return {
|
|
12
|
-
width: i.width + t * 2,
|
|
13
|
-
height: i.height + t * 2,
|
|
14
|
-
x: i.x,
|
|
15
|
-
y: i.y
|
|
16
|
-
};
|
|
17
|
-
}, "calculateDimensionsWithPadding"), l = /* @__PURE__ */ a((e, t, i, r, o) => `${e - o} ${t - o} ${i} ${r}`, "createViewBox");
|
|
18
|
-
export {
|
|
19
|
-
g as s
|
|
20
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
import { _ as s } from "./index-LPeu-5gp.js";
|
|
3
|
-
var t, a = (t = class {
|
|
4
|
-
/**
|
|
5
|
-
* @param init - Function that creates the default state.
|
|
6
|
-
*/
|
|
7
|
-
constructor(i) {
|
|
8
|
-
this.init = i, this.records = this.init();
|
|
9
|
-
}
|
|
10
|
-
reset() {
|
|
11
|
-
this.records = this.init();
|
|
12
|
-
}
|
|
13
|
-
}, s(t, "ImperativeState"), t);
|
|
14
|
-
export {
|
|
15
|
-
a as I
|
|
16
|
-
};
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
import { _ as n, U as o, j as l } from "./index-LPeu-5gp.js";
|
|
3
|
-
var c = /* @__PURE__ */ n((a, t) => {
|
|
4
|
-
const e = a.append("rect");
|
|
5
|
-
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)
|
|
6
|
-
for (const r in t.attrs)
|
|
7
|
-
e.attr(r, t.attrs[r]);
|
|
8
|
-
return t.class && e.attr("class", t.class), e;
|
|
9
|
-
}, "drawRect"), g = /* @__PURE__ */ n((a, t) => {
|
|
10
|
-
const e = {
|
|
11
|
-
x: t.startx,
|
|
12
|
-
y: t.starty,
|
|
13
|
-
width: t.stopx - t.startx,
|
|
14
|
-
height: t.stopy - t.starty,
|
|
15
|
-
fill: t.fill,
|
|
16
|
-
stroke: t.stroke,
|
|
17
|
-
class: "rect"
|
|
18
|
-
};
|
|
19
|
-
c(a, e).lower();
|
|
20
|
-
}, "drawBackgroundRect"), m = /* @__PURE__ */ n((a, t) => {
|
|
21
|
-
const e = t.text.replace(o, " "), r = a.append("text");
|
|
22
|
-
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);
|
|
23
|
-
const s = r.append("tspan");
|
|
24
|
-
return s.attr("x", t.x + t.textMargin * 2), s.text(e), r;
|
|
25
|
-
}, "drawText"), h = /* @__PURE__ */ n((a, t, e, r) => {
|
|
26
|
-
const s = a.append("image");
|
|
27
|
-
s.attr("x", t), s.attr("y", e);
|
|
28
|
-
const i = l(r);
|
|
29
|
-
s.attr("xlink:href", i);
|
|
30
|
-
}, "drawImage"), y = /* @__PURE__ */ n((a, t, e, r) => {
|
|
31
|
-
const s = a.append("use");
|
|
32
|
-
s.attr("x", t), s.attr("y", e);
|
|
33
|
-
const i = l(r);
|
|
34
|
-
s.attr("xlink:href", `#${i}`);
|
|
35
|
-
}, "drawEmbeddedImage"), p = /* @__PURE__ */ n(() => ({
|
|
36
|
-
x: 0,
|
|
37
|
-
y: 0,
|
|
38
|
-
width: 100,
|
|
39
|
-
height: 100,
|
|
40
|
-
fill: "#EDF2AE",
|
|
41
|
-
stroke: "#666",
|
|
42
|
-
anchor: "start",
|
|
43
|
-
rx: 0,
|
|
44
|
-
ry: 0
|
|
45
|
-
}), "getNoteRect"), f = /* @__PURE__ */ n(() => ({
|
|
46
|
-
x: 0,
|
|
47
|
-
y: 0,
|
|
48
|
-
width: 100,
|
|
49
|
-
height: 100,
|
|
50
|
-
"text-anchor": "start",
|
|
51
|
-
style: "#666",
|
|
52
|
-
textMargin: 0,
|
|
53
|
-
rx: 0,
|
|
54
|
-
ry: 0,
|
|
55
|
-
tspan: !0
|
|
56
|
-
}), "getTextObj");
|
|
57
|
-
export {
|
|
58
|
-
g as a,
|
|
59
|
-
f as b,
|
|
60
|
-
y as c,
|
|
61
|
-
c as d,
|
|
62
|
-
h as e,
|
|
63
|
-
m as f,
|
|
64
|
-
p as g
|
|
65
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-CAose2Ox.js";
|
|
3
|
-
import { _ as l } from "./index-LPeu-5gp.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
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import "./style.css";
|
|
2
|
-
import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-CAose2Ox.js";
|
|
3
|
-
import { _ as l } from "./index-LPeu-5gp.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
|
-
};
|