@zenuml/core 3.24.15 → 3.24.17

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.
@@ -14,12 +14,22 @@
14
14
  const ZenUml = window["zenuml"].default;
15
15
  const zenuml = new ZenUml(document.getElementById("app"));
16
16
  const code = `
17
- @EC2 BookService
18
- @DynamoDB BookRepository
19
- BookService.saveBook(1) {
20
- BookRepository.storeBook()
17
+ A B C D
18
+
19
+ A->B.method() {
20
+ ret0_assign_rtl =C.method_long_to_give_space {
21
+ @return C->D: ret1_annotation_ltr
22
+ ret5_assign_ltr = B.method
23
+ B.method2 {
24
+ return ret2_return_ltr
25
+ }
21
26
  }
22
- `;
27
+
28
+ return ret2_return_rtl
29
+ @return B->A: ret4_annotation_rtl
30
+ }
31
+
32
+ `;
23
33
  zenuml.render(code, { theme: "theme-blue" });
24
34
  </script>
25
35
  </body>
@@ -14,21 +14,21 @@
14
14
  <body>
15
15
  <div id="diagram" class="diagram">
16
16
  <pre class="zenuml" style="margin: 0">
17
- Browser->BookController.onPost() {
18
- BookLibService.Borrow(id) {
19
- receipt = process(id1)
20
- if (receipt != null) {
21
- return receipt
22
- @return BookController->Browser: receipt
23
- } else {
24
- return null
25
- @return BookController->Browser: 404
26
- }
27
- self() {
28
- return a_long_value_from_self_call
29
- }
17
+ A B C D
18
+
19
+ A->B.method() {
20
+ ret0_assign_rtl =C.method_long_to_give_space {
21
+ @return C->D: ret1_annotation_ltr
22
+ ret5_assign_ltr = B.method
23
+ B.method2 {
24
+ return ret2_return_ltr
25
+ }
30
26
  }
27
+
28
+ return ret2_return_rtl
29
+ @return B->A: ret4_annotation_rtl
31
30
  }
31
+
32
32
  </pre
33
33
  >
34
34
  </div>
@@ -1,4 +1,4 @@
1
- import { b as P, u as H, r as E, s as _e, w as k, g as lt, d as at, e as Q, F as ze, m as pe, t as Ee, f as Ve, n as ct, p as ft, h as ut, i as dt, j as ne, U as mt, k as he, T as pt, l as ht, S as gt, q as vt, v as wt, x as yt, y as xt, P as bt, o as Pe, z as Ct, A as At, a as ge, c as Ot, B as Tt, C as St, D as Rt, E as Et, G as Pt, H as Lt } from "./core.840f0274.js";
1
+ import { b as P, u as H, r as E, s as _e, w as k, g as lt, d as at, e as Q, F as ze, m as pe, t as Ee, f as Ve, n as ct, p as ft, h as ut, i as dt, j as ne, U as mt, k as he, T as pt, l as ht, S as gt, q as vt, v as wt, x as yt, y as xt, P as bt, o as Pe, z as Ct, A as At, a as ge, c as Ot, B as Tt, C as St, D as Rt, E as Et, G as Pt, H as Lt } from "./core.c145a13c.js";
2
2
  const Ie = ["top", "right", "bottom", "left"], Le = ["start", "end"], Fe = /* @__PURE__ */ Ie.reduce((e, t) => e.concat(t, t + "-" + Le[0], t + "-" + Le[1]), []), Z = Math.min, q = Math.max, ae = Math.round, le = Math.floor, X = (e) => ({
3
3
  x: e,
4
4
  y: e
@@ -1821,4 +1821,4 @@ const zn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Vn = ["onCl
1821
1821
  export {
1822
1822
  Un as default
1823
1823
  };
1824
- //# sourceMappingURL=StylePanel.980a19a5.js.map
1824
+ //# sourceMappingURL=StylePanel.00389863.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.840f0274.js";
1
+ import { o as e, c as o, a as t } from "./core.c145a13c.js";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
@@ -21,4 +21,4 @@ export {
21
21
  i as default,
22
22
  c as render
23
23
  };
24
- //# sourceMappingURL=close.1fc2278e.js.map
24
+ //# sourceMappingURL=close.4f800947.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.840f0274.js";
1
+ import { o as e, c as o, a as t } from "./core.c145a13c.js";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
@@ -16,4 +16,4 @@ export {
16
16
  h as default,
17
17
  c as render
18
18
  };
19
- //# sourceMappingURL=collapse-expanded.6397bc29.js.map
19
+ //# sourceMappingURL=collapse-expanded.55a714bb.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core.840f0274.js";
1
+ import { o, c as t, a as e } from "./core.c145a13c.js";
2
2
  const n = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "currentColor",
@@ -29,4 +29,4 @@ export {
29
29
  i as default,
30
30
  s as render
31
31
  };
32
- //# sourceMappingURL=collapse-unexpanded.8d9fb59c.js.map
32
+ //# sourceMappingURL=collapse-unexpanded.ffb8eaa7.js.map
@@ -25902,7 +25902,7 @@ const Yl = () => ({
25902
25902
  }
25903
25903
  },
25904
25904
  setup(n) {
25905
- const e = n, t = E9(() => zf(/* @__PURE__ */ Object.assign({ "./icons/close.svg": () => import("./close.1fc2278e.js"), "./icons/collapse-expanded.svg": () => import("./collapse-expanded.6397bc29.js"), "./icons/collapse-unexpanded.svg": () => import("./collapse-unexpanded.8d9fb59c.js"), "./icons/debug.svg": () => import("./debug.f79cff31.js"), "./icons/message-arrow.svg": () => import("./message-arrow.9ee62040.js"), "./icons/non-selected-cycle.svg": () => import("./non-selected-cycle.ffe1a394.js"), "./icons/numbering.svg": () => import("./numbering.795f3dcf.js"), "./icons/privacy.svg": () => import("./privacy.a6065d00.js"), "./icons/selected-cycle.svg": () => import("./selected-cycle.a40fddb2.js"), "./icons/theme.svg": () => import("./theme.2379264f.js"), "./icons/tip.svg": () => import("./tip.7ef0f433.js"), "./icons/zoom-in.svg": () => import("./zoom-in.19d9c8a9.js"), "./icons/zoom-out.svg": () => import("./zoom-out.92346467.js") }), `./icons/${e.name}.svg`));
25905
+ const e = n, t = E9(() => zf(/* @__PURE__ */ Object.assign({ "./icons/close.svg": () => import("./close.4f800947.js"), "./icons/collapse-expanded.svg": () => import("./collapse-expanded.55a714bb.js"), "./icons/collapse-unexpanded.svg": () => import("./collapse-unexpanded.ffb8eaa7.js"), "./icons/debug.svg": () => import("./debug.5dc70b59.js"), "./icons/message-arrow.svg": () => import("./message-arrow.d7668107.js"), "./icons/non-selected-cycle.svg": () => import("./non-selected-cycle.a2625257.js"), "./icons/numbering.svg": () => import("./numbering.54d4239e.js"), "./icons/privacy.svg": () => import("./privacy.f7919041.js"), "./icons/selected-cycle.svg": () => import("./selected-cycle.28e1e3a1.js"), "./icons/theme.svg": () => import("./theme.9e3d4b27.js"), "./icons/tip.svg": () => import("./tip.31fe2462.js"), "./icons/zoom-in.svg": () => import("./zoom-in.24c3bd11.js"), "./icons/zoom-out.svg": () => import("./zoom-out.01a03c5c.js") }), `./icons/${e.name}.svg`));
25906
25906
  return (i, s) => (T(), $("span", {
25907
25907
  class: M2(["flex items-center justify-center", n.iconClass]),
25908
25908
  onClick: s[0] || (s[0] = (r) => i.$emit("icon-click"))
@@ -30181,10 +30181,6 @@ const H0 = /[!@#$%^&*()+-,.?''":{}|<>/\s]/, d8 = (n) => {
30181
30181
  this.$store.commit("onSelect", this.entity.name);
30182
30182
  },
30183
30183
  updateFontColor() {
30184
- if (!this.backgroundColor) {
30185
- this.color = "inherit";
30186
- return;
30187
- }
30188
30184
  let n = window.getComputedStyle(this.$refs.participant).getPropertyValue("background-color");
30189
30185
  if (!n) {
30190
30186
  this.color = "inherit";
@@ -30479,7 +30475,7 @@ const O7 = /* @__PURE__ */ q2(ZA, [["render", SA]]), bA = { class: "message-laye
30479
30475
  context: null
30480
30476
  },
30481
30477
  setup(n) {
30482
- const e = E9(() => import("./StylePanel.980a19a5.js")), t = j0.child({ name: "MessageLayer" }), i = D1(), s = b(() => i.getters.participants), r = b(() => i.getters.centerOf), o = b(() => {
30478
+ const e = E9(() => import("./StylePanel.00389863.js")), t = j0.child({ name: "MessageLayer" }), i = D1(), s = b(() => i.getters.participants), r = b(() => i.getters.centerOf), o = b(() => {
30483
30479
  if (s.value.Array().length >= 1) {
30484
30480
  const l = s.value.Array().slice(0)[0].name;
30485
30481
  return r.value(l) + 1;
@@ -38530,7 +38526,7 @@ const gN = /* @__PURE__ */ q2(sN, [["render", dN], ["__scopeId", "data-v-1d16326
38530
38526
  return this.isSelf ? W0(this.signature, B4.MessageContent) : Math.abs(this.distance(this.target, this.source));
38531
38527
  },
38532
38528
  left: function() {
38533
- return this.rightToLeft ? this.distance(this.target, this.from) + 2 : this.distance(this.source, this.from) + 2;
38529
+ return this.rightToLeft ? this.distance(this.target, this.from) : this.distance(this.source, this.from);
38534
38530
  },
38535
38531
  rightToLeft: function() {
38536
38532
  return this.distance(this.target, this.source) < 0;
@@ -38547,15 +38543,19 @@ const gN = /* @__PURE__ */ q2(sN, [["render", dN], ["__scopeId", "data-v-1d16326
38547
38543
  var n, e, t, i;
38548
38544
  return ((e = (n = this.asyncMessage) == null ? void 0 : n.to()) == null ? void 0 : e.getFormattedText()) || ((i = (t = this.context) == null ? void 0 : t.ret()) == null ? void 0 : i.ReturnTo());
38549
38545
  },
38546
+ borderWidth: function() {
38547
+ const n = {
38548
+ borderLeftWidth: "7px",
38549
+ borderRightWidth: "7px"
38550
+ }, e = this.rightToLeft ? "Left" : "Right", t = this.rightToLeft ? "Right" : "Left";
38551
+ return this.isJointOccurrence(this.source) || (n[`border${t}Width`] = "0px"), this.isJointOccurrence(this.target) || (n[`border${e}Width`] = "0px"), n;
38552
+ },
38550
38553
  isCurrent: function() {
38551
38554
  return !1;
38552
38555
  },
38553
38556
  isSelf: function() {
38554
38557
  return this.source === this.target;
38555
38558
  },
38556
- isReturnToStart() {
38557
- return this.target === this.participants.Starter().name;
38558
- },
38559
38559
  messageTextStyle() {
38560
38560
  var n;
38561
38561
  return (n = this.commentObj) == null ? void 0 : n.messageStyle;
@@ -38572,6 +38572,23 @@ const gN = /* @__PURE__ */ q2(sN, [["render", dN], ["__scopeId", "data-v-1d16326
38572
38572
  methods: {
38573
38573
  onClick() {
38574
38574
  this.onElementClick(t0.from(this.context));
38575
+ },
38576
+ isJointOccurrence(n) {
38577
+ let e = this.findOwningContext(n);
38578
+ return e ? e instanceof u.MessageContext || e instanceof u.CreationContext : !1;
38579
+ },
38580
+ findOwningContext(n) {
38581
+ let e = this.context;
38582
+ for (; e; ) {
38583
+ if (!e.Owner) {
38584
+ e = e.parentCtx;
38585
+ continue;
38586
+ }
38587
+ if (e.Owner() === n)
38588
+ return e;
38589
+ e = e.parentCtx;
38590
+ }
38591
+ return null;
38575
38592
  }
38576
38593
  },
38577
38594
  components: {
@@ -38599,12 +38616,13 @@ function _N(n, e, t, i, s, r) {
38599
38616
  return T(), $("div", {
38600
38617
  class: M2(["interaction return relative", {
38601
38618
  "right-to-left": r.rightToLeft,
38602
- highlight: r.isCurrent,
38603
- "return-to-start": r.isReturnToStart
38619
+ "bare-source": n.bareSource,
38620
+ "bare-target": n.bareTarget,
38621
+ highlight: r.isCurrent
38604
38622
  }]),
38605
38623
  onClick: e[0] || (e[0] = i5((...L) => r.onClick && r.onClick(...L), ["stop"])),
38606
38624
  "data-signature": r.signature,
38607
- style: v2({ width: r.width + "px", left: r.left + "px" })
38625
+ style: v2({ ...r.borderWidth, width: r.width + "px", left: r.left + "px" })
38608
38626
  }, [
38609
38627
  t.comment ? (T(), I2(o, {
38610
38628
  key: 0,
@@ -39084,4 +39102,4 @@ export {
39084
39102
  nL as y,
39085
39103
  I2 as z
39086
39104
  };
39087
- //# sourceMappingURL=core.840f0274.js.map
39105
+ //# sourceMappingURL=core.c145a13c.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core.840f0274.js";
1
+ import { o, c as t, a as e } from "./core.c145a13c.js";
2
2
  const c = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -30,4 +30,4 @@ export {
30
30
  u as default,
31
31
  i as render
32
32
  };
33
- //# sourceMappingURL=debug.f79cff31.js.map
33
+ //# sourceMappingURL=debug.5dc70b59.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c as s, a as e } from "./core.840f0274.js";
1
+ import { o as t, c as s, a as e } from "./core.c145a13c.js";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "30",
@@ -22,4 +22,4 @@ export {
22
22
  i as default,
23
23
  c as render
24
24
  };
25
- //# sourceMappingURL=message-arrow.9ee62040.js.map
25
+ //# sourceMappingURL=message-arrow.d7668107.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c, a as o } from "./core.840f0274.js";
1
+ import { o as e, c, a as o } from "./core.c145a13c.js";
2
2
  const t = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -21,4 +21,4 @@ export {
21
21
  d as default,
22
22
  s as render
23
23
  };
24
- //# sourceMappingURL=non-selected-cycle.ffe1a394.js.map
24
+ //# sourceMappingURL=non-selected-cycle.a2625257.js.map
@@ -1,4 +1,4 @@
1
- import { o as Z, c, a as m } from "./core.840f0274.js";
1
+ import { o as Z, c, a as m } from "./core.c145a13c.js";
2
2
  const l = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "24",
@@ -23,4 +23,4 @@ export {
23
23
  s as default,
24
24
  e as render
25
25
  };
26
- //# sourceMappingURL=numbering.795f3dcf.js.map
26
+ //# sourceMappingURL=numbering.54d4239e.js.map
@@ -1,4 +1,4 @@
1
- import { o as c, c as t, a as e } from "./core.840f0274.js";
1
+ import { o as c, c as t, a as e } from "./core.c145a13c.js";
2
2
  const a = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -15,4 +15,4 @@ export {
15
15
  p as default,
16
16
  r as render
17
17
  };
18
- //# sourceMappingURL=privacy.a6065d00.js.map
18
+ //# sourceMappingURL=privacy.f7919041.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c as o, a as e } from "./core.840f0274.js";
1
+ import { o as t, c as o, a as e } from "./core.c145a13c.js";
2
2
  const s = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  "xml:space": "preserve",
@@ -29,4 +29,4 @@ export {
29
29
  f as default,
30
30
  r as render
31
31
  };
32
- //# sourceMappingURL=selected-cycle.a40fddb2.js.map
32
+ //# sourceMappingURL=selected-cycle.28e1e3a1.js.map
@@ -1,4 +1,4 @@
1
- import { o as c, c as e, a as t } from "./core.840f0274.js";
1
+ import { o as c, c as e, a as t } from "./core.c145a13c.js";
2
2
  const o = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  class: "grayscale h-4 w-4",
@@ -17,4 +17,4 @@ export {
17
17
  h as default,
18
18
  a as render
19
19
  };
20
- //# sourceMappingURL=theme.2379264f.js.map
20
+ //# sourceMappingURL=theme.9e3d4b27.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as t, a as o } from "./core.840f0274.js";
1
+ import { o as e, c as t, a as o } from "./core.c145a13c.js";
2
2
  const s = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  viewBox: "0 0 1024 1024"
@@ -16,4 +16,4 @@ export {
16
16
  i as default,
17
17
  c as render
18
18
  };
19
- //# sourceMappingURL=tip.7ef0f433.js.map
19
+ //# sourceMappingURL=tip.31fe2462.js.map