bg-editor 0.0.1

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.
Files changed (67) hide show
  1. package/LICENSE +8 -0
  2. package/README.md +51 -0
  3. package/README.zh-CN.md +51 -0
  4. package/dist/_basePickBy-4kmg42pS.js +158 -0
  5. package/dist/_baseUniq-WOvvCHTI.js +621 -0
  6. package/dist/arc-wItjmL5I.js +90 -0
  7. package/dist/architecture-U656AL7Q-FYDwFSxk.js +12 -0
  8. package/dist/architectureDiagram-VXUJARFQ-iG5MkBjx.js +4666 -0
  9. package/dist/blockDiagram-VD42YOAC-i2GlXmWy.js +2268 -0
  10. package/dist/c4Diagram-YG6GDRKO-IufO7T1R.js +1587 -0
  11. package/dist/channel-Dah4F59k.js +12 -0
  12. package/dist/chunk-4BX2VUAB-5_v9rnje.js +15 -0
  13. package/dist/chunk-55IACEB6-BDNtSypP.js +15 -0
  14. package/dist/chunk-B4BG7PRW-DzaYPsfW.js +1382 -0
  15. package/dist/chunk-DI55MBZ5-Buwrprkw.js +1377 -0
  16. package/dist/chunk-FMBD7UC4-BaEPEIWb.js +26 -0
  17. package/dist/chunk-QN33PNHL-DhbA7i5G.js +26 -0
  18. package/dist/chunk-QZHKN3VN-BAb_D1oz.js +22 -0
  19. package/dist/chunk-TZMSLE5B-OU1MJ2do.js +71 -0
  20. package/dist/classDiagram-2ON5EDUG-KStC8v09.js +23 -0
  21. package/dist/classDiagram-v2-WZHVMYZB-KStC8v09.js +23 -0
  22. package/dist/clone-C74UiRbr.js +15 -0
  23. package/dist/cose-bilkent-S5V4N54A-eRXCoix2.js +2612 -0
  24. package/dist/cytoscape.esm-BG3R4uVs.js +18738 -0
  25. package/dist/dagre-6UL2VRFP-Bi83jPQf.js +451 -0
  26. package/dist/defaultLocale-DgmhL6Re.js +178 -0
  27. package/dist/diagram-PSM6KHXK-aW98k2-4.js +539 -0
  28. package/dist/diagram-QEK2KX5R-BR--iNM5.js +224 -0
  29. package/dist/diagram-S2PKOQOG-NTnEy5_O.js +149 -0
  30. package/dist/erDiagram-Q2GNP2WA-C8oZ5c-S.js +848 -0
  31. package/dist/flowDiagram-NV44I4VS-DiKad3Bb.js +1627 -0
  32. package/dist/ganttDiagram-LVOFAZNH-CthzjjJq.js +2506 -0
  33. package/dist/gitGraph-F6HP7TQM-CuXAC0XT.js +12 -0
  34. package/dist/gitGraphDiagram-NY62KEGX-d4KszKqi.js +706 -0
  35. package/dist/graph-CnOTx4E0.js +254 -0
  36. package/dist/index-D6-Wf75-.js +122127 -0
  37. package/dist/info-NVLQJR56-Dhmtdc7O.js +12 -0
  38. package/dist/infoDiagram-ER5ION4S-DedidjTu.js +31 -0
  39. package/dist/init-d639unba.js +23 -0
  40. package/dist/journeyDiagram-XKPGCS4Q-BylvmUWL.js +843 -0
  41. package/dist/kanban-definition-3W4ZIXB7-DGV_aVgU.js +725 -0
  42. package/dist/layout-OXk4OSoz.js +1342 -0
  43. package/dist/linear-CO_vz87n.js +266 -0
  44. package/dist/mermaid-parser.core-CYtF6phW.js +12928 -0
  45. package/dist/mindmap-definition-VGOIOE7T-BU05Y6Vz.js +790 -0
  46. package/dist/ordinal-CofNqUw2.js +68 -0
  47. package/dist/packet-BFZMPI3H-D7H_8Q-U.js +12 -0
  48. package/dist/pie-7BOR55EZ-BNWNcO5Z.js +12 -0
  49. package/dist/pieDiagram-ADFJNKIX-reGTUsiW.js +168 -0
  50. package/dist/quadrantDiagram-AYHSOK5B-NeHOJ0lX.js +1029 -0
  51. package/dist/radar-NHE76QYJ-DrVEcvh1.js +12 -0
  52. package/dist/requirementDiagram-UZGBJVZJ-BE76XNaT.js +857 -0
  53. package/dist/sankeyDiagram-TZEHDZUN-UHfMLEKl.js +817 -0
  54. package/dist/sequenceDiagram-WL72ISMW-62KWnVbh.js +2518 -0
  55. package/dist/stateDiagram-FKZM4ZOC--_CkWvu6.js +270 -0
  56. package/dist/stateDiagram-v2-4FDKWEC3-Dj7ZjAmI.js +23 -0
  57. package/dist/style.css +1 -0
  58. package/dist/timeline-definition-IT6M3QCI-C3Wb0xMN.js +804 -0
  59. package/dist/treemap-KMMF4GRG-Bc8F2dFd.js +12 -0
  60. package/dist/umo-editor.js +16 -0
  61. package/dist/xychartDiagram-PRI3JC2R-D2J307cO.js +1347 -0
  62. package/package.json +200 -0
  63. package/types/index.d.ts +277 -0
  64. package/types/src/components/index.d.ts +9 -0
  65. package/types/src/components/menus/button.vue.d.ts +583 -0
  66. package/types/src/components/modal.vue.d.ts +2 -0
  67. package/types/src/components/tooltip.vue.d.ts +27 -0
@@ -0,0 +1,26 @@
1
+ import "./style.css";
2
+ import { _ as e } from "./index-D6-Wf75-.js";
3
+ /**
4
+ * @umoteam/editor 9.0.1
5
+ * @license MIT
6
+ * @author umodoc https://www.umodoc.com
7
+ * @see https://www.umodoc.com
8
+ **/
9
+ var l = /* @__PURE__ */ e(() => `
10
+ /* Font Awesome icon styling - consolidated */
11
+ .label-icon {
12
+ display: inline-block;
13
+ height: 1em;
14
+ overflow: visible;
15
+ vertical-align: -0.125em;
16
+ }
17
+
18
+ .node .label-icon path {
19
+ fill: currentColor;
20
+ stroke: revert;
21
+ stroke-width: revert;
22
+ }
23
+ `, "getIconStyles");
24
+ export {
25
+ l as g
26
+ };
@@ -0,0 +1,26 @@
1
+ import "./style.css";
2
+ import { _ as a, e as w, l as x } from "./index-D6-Wf75-.js";
3
+ /**
4
+ * @umoteam/editor 9.0.1
5
+ * @license MIT
6
+ * @author umodoc https://www.umodoc.com
7
+ * @see https://www.umodoc.com
8
+ **/
9
+ var g = /* @__PURE__ */ a((e, t, i, r) => {
10
+ e.attr("class", i);
11
+ const { width: o, height: h, x: n, y: c } = u(e, t);
12
+ w(e, h, o, r);
13
+ const s = l(n, c, o, h, t);
14
+ e.attr("viewBox", s), x.debug(`viewBox configured: ${s} with padding: ${t}`);
15
+ }, "setupViewPortForSVG"), u = /* @__PURE__ */ a((e, t) => {
16
+ const i = e.node()?.getBBox() || { width: 0, height: 0, x: 0, y: 0 };
17
+ return {
18
+ width: i.width + t * 2,
19
+ height: i.height + t * 2,
20
+ x: i.x,
21
+ y: i.y
22
+ };
23
+ }, "calculateDimensionsWithPadding"), l = /* @__PURE__ */ a((e, t, i, r, o) => `${e - o} ${t - o} ${i} ${r}`, "createViewBox");
24
+ export {
25
+ g as s
26
+ };
@@ -0,0 +1,22 @@
1
+ import "./style.css";
2
+ import { _ as s } from "./index-D6-Wf75-.js";
3
+ /**
4
+ * @umoteam/editor 9.0.1
5
+ * @license MIT
6
+ * @author umodoc https://www.umodoc.com
7
+ * @see https://www.umodoc.com
8
+ **/
9
+ var t, a = (t = class {
10
+ /**
11
+ * @param init - Function that creates the default state.
12
+ */
13
+ constructor(i) {
14
+ this.init = i, this.records = this.init();
15
+ }
16
+ reset() {
17
+ this.records = this.init();
18
+ }
19
+ }, s(t, "ImperativeState"), t);
20
+ export {
21
+ a as I
22
+ };
@@ -0,0 +1,71 @@
1
+ import "./style.css";
2
+ import { _ as n, U as o, j as l } from "./index-D6-Wf75-.js";
3
+ /**
4
+ * @umoteam/editor 9.0.1
5
+ * @license MIT
6
+ * @author umodoc https://www.umodoc.com
7
+ * @see https://www.umodoc.com
8
+ **/
9
+ var c = /* @__PURE__ */ n((a, t) => {
10
+ const e = a.append("rect");
11
+ 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)
12
+ for (const r in t.attrs)
13
+ e.attr(r, t.attrs[r]);
14
+ return t.class && e.attr("class", t.class), e;
15
+ }, "drawRect"), g = /* @__PURE__ */ n((a, t) => {
16
+ const e = {
17
+ x: t.startx,
18
+ y: t.starty,
19
+ width: t.stopx - t.startx,
20
+ height: t.stopy - t.starty,
21
+ fill: t.fill,
22
+ stroke: t.stroke,
23
+ class: "rect"
24
+ };
25
+ c(a, e).lower();
26
+ }, "drawBackgroundRect"), m = /* @__PURE__ */ n((a, t) => {
27
+ const e = t.text.replace(o, " "), r = a.append("text");
28
+ 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);
29
+ const s = r.append("tspan");
30
+ return s.attr("x", t.x + t.textMargin * 2), s.text(e), r;
31
+ }, "drawText"), h = /* @__PURE__ */ n((a, t, e, r) => {
32
+ const s = a.append("image");
33
+ s.attr("x", t), s.attr("y", e);
34
+ const i = l(r);
35
+ s.attr("xlink:href", i);
36
+ }, "drawImage"), y = /* @__PURE__ */ n((a, t, e, r) => {
37
+ const s = a.append("use");
38
+ s.attr("x", t), s.attr("y", e);
39
+ const i = l(r);
40
+ s.attr("xlink:href", `#${i}`);
41
+ }, "drawEmbeddedImage"), p = /* @__PURE__ */ n(() => ({
42
+ x: 0,
43
+ y: 0,
44
+ width: 100,
45
+ height: 100,
46
+ fill: "#EDF2AE",
47
+ stroke: "#666",
48
+ anchor: "start",
49
+ rx: 0,
50
+ ry: 0
51
+ }), "getNoteRect"), f = /* @__PURE__ */ n(() => ({
52
+ x: 0,
53
+ y: 0,
54
+ width: 100,
55
+ height: 100,
56
+ "text-anchor": "start",
57
+ style: "#666",
58
+ textMargin: 0,
59
+ rx: 0,
60
+ ry: 0,
61
+ tspan: !0
62
+ }), "getTextObj");
63
+ export {
64
+ g as a,
65
+ f as b,
66
+ y as c,
67
+ c as d,
68
+ h as e,
69
+ m as f,
70
+ p as g
71
+ };
@@ -0,0 +1,23 @@
1
+ import "./style.css";
2
+ import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-DzaYPsfW.js";
3
+ import { _ as l } from "./index-D6-Wf75-.js";
4
+ /**
5
+ * @umoteam/editor 9.0.1
6
+ * @license MIT
7
+ * @author umodoc https://www.umodoc.com
8
+ * @see https://www.umodoc.com
9
+ **/
10
+ var m = {
11
+ parser: e,
12
+ get db() {
13
+ return new t();
14
+ },
15
+ renderer: s,
16
+ styles: r,
17
+ init: /* @__PURE__ */ l((a) => {
18
+ a.class || (a.class = {}), a.class.arrowMarkerAbsolute = a.arrowMarkerAbsolute;
19
+ }, "init")
20
+ };
21
+ export {
22
+ m as diagram
23
+ };
@@ -0,0 +1,23 @@
1
+ import "./style.css";
2
+ import { s as r, c as s, a as e, C as t } from "./chunk-B4BG7PRW-DzaYPsfW.js";
3
+ import { _ as l } from "./index-D6-Wf75-.js";
4
+ /**
5
+ * @umoteam/editor 9.0.1
6
+ * @license MIT
7
+ * @author umodoc https://www.umodoc.com
8
+ * @see https://www.umodoc.com
9
+ **/
10
+ var m = {
11
+ parser: e,
12
+ get db() {
13
+ return new t();
14
+ },
15
+ renderer: s,
16
+ styles: r,
17
+ init: /* @__PURE__ */ l((a) => {
18
+ a.class || (a.class = {}), a.class.arrowMarkerAbsolute = a.arrowMarkerAbsolute;
19
+ }, "init")
20
+ };
21
+ export {
22
+ m as diagram
23
+ };
@@ -0,0 +1,15 @@
1
+ import "./style.css";
2
+ import { b as r } from "./_baseUniq-WOvvCHTI.js";
3
+ /**
4
+ * @umoteam/editor 9.0.1
5
+ * @license MIT
6
+ * @author umodoc https://www.umodoc.com
7
+ * @see https://www.umodoc.com
8
+ **/
9
+ var e = 4;
10
+ function a(o) {
11
+ return r(o, e);
12
+ }
13
+ export {
14
+ a as c
15
+ };