@zenuml/core 3.29.3 → 3.29.4

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.
@@ -1,4 +1,4 @@
1
- import { b as P, u as H, r as R, s as We, w as k, g as lt, d as at, e as Q, F as Ie, m as pe, t as Re, f as Ve, n as ct, p as ut, h as ft, i as dt, j as ne, U as mt, k as ve, T as pt, l as vt, S as gt, q as ht, v as wt, x as yt, y as xt, z as bt, P as Ct, o as Pe, A as Ot, B as At, a as ge, c as Tt, C as St, D as Et, E as Rt, G as Pt, H as Ft, I as Lt } from "./core-7a7d6a4f.js";
1
+ import { b as P, u as H, r as R, s as We, w as k, g as lt, d as at, e as Q, F as Ie, m as pe, t as Re, f as Ve, n as ct, p as ut, h as ft, i as dt, j as ne, U as mt, k as ve, T as pt, l as vt, S as gt, q as ht, v as wt, x as yt, y as xt, z as bt, P as Ct, o as Pe, A as Ot, B as At, a as ge, c as Tt, C as St, D as Et, E as Rt, G as Pt, H as Ft, I as Lt } from "./core-91e93577.js";
2
2
  const ze = ["top", "right", "bottom", "left"], Fe = ["start", "end"], Le = /* @__PURE__ */ ze.reduce((e, t) => e.concat(t, t + "-" + Fe[0], t + "-" + Fe[1]), []), Z = Math.min, q = Math.max, ae = Math.round, le = Math.floor, X = (e) => ({
3
3
  x: e,
4
4
  y: e
@@ -1853,4 +1853,4 @@ const Vn = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, zn = ["onCl
1853
1853
  export {
1854
1854
  Xn as default
1855
1855
  };
1856
- //# sourceMappingURL=StylePanel-74c9af04.js.map
1856
+ //# sourceMappingURL=StylePanel-0f8a3b66.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core-7a7d6a4f.js";
1
+ import { o as e, c as o, a as t } from "./core-91e93577.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-09538bb3.js.map
24
+ //# sourceMappingURL=close-d53092ac.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core-7a7d6a4f.js";
1
+ import { o as e, c as o, a as t } from "./core-91e93577.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-7573dda4.js.map
19
+ //# sourceMappingURL=collapse-expanded-779e036c.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core-7a7d6a4f.js";
1
+ import { o, c as t, a as e } from "./core-91e93577.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-58902d73.js.map
32
+ //# sourceMappingURL=collapse-unexpanded-0a0a75a3.js.map
@@ -28408,7 +28408,8 @@ class Vf {
28408
28408
  this.withParticipantGaps(this.participantModels), this.withMessageGaps(this.ownableMessages, this.participantModels);
28409
28409
  }
28410
28410
  half(e) {
28411
- return this.halfWithMargin(this.labelOrName(e));
28411
+ const n = this.labelOrName(e);
28412
+ return n ? this._getParticipantWidth(n) / 2 : 0;
28412
28413
  }
28413
28414
  getWidth() {
28414
28415
  const e = this.participantModels[this.participantModels.length - 1].name, n = this.getPosition(e) + this.half(e);
@@ -28453,8 +28454,7 @@ class Vf {
28453
28454
  this.m = e.map((n, i) => e.map((s, r) => r - i === 1 ? this.getParticipantGap(s) : 0));
28454
28455
  }
28455
28456
  getParticipantGap(e) {
28456
- const n = this.half(e.left), i = this.half(e.name);
28457
- return (n || 0) + (i || 0);
28457
+ return this.half(e.left) + this.half(e.name);
28458
28458
  }
28459
28459
  hasIcon(e) {
28460
28460
  if (e === N1)
@@ -28468,9 +28468,6 @@ class Vf {
28468
28468
  const n = this.participantModels.findIndex((i) => i.name === e);
28469
28469
  return n === -1 ? "" : this.participantModels[n].label || this.participantModels[n].name;
28470
28470
  }
28471
- halfWithMargin(e) {
28472
- return e ? this._getParticipantWidth(e) / 2 + bf / 2 : 0;
28473
- }
28474
28471
  _getParticipantWidth(e) {
28475
28472
  if (!e)
28476
28473
  return 0;
@@ -28480,10 +28477,7 @@ class Vf {
28480
28477
  const r = this.hasIcon(e) ? 40 : 0, o = this.widthProvider(
28481
28478
  e || "",
28482
28479
  g8.ParticipantName
28483
- ), l = Math.max(
28484
- o + r,
28485
- If
28486
- );
28480
+ ), l = Math.max(o + r, If) + bf;
28487
28481
  return z6(n, l), console.debug(
28488
28482
  `Width of ${e} is ${l}; labelWidth: ${o}`
28489
28483
  ), l;
@@ -28635,7 +28629,7 @@ const oL = () => ({
28635
28629
  }
28636
28630
  },
28637
28631
  setup(t) {
28638
- const e = t, n = N9(() => Gf(/* @__PURE__ */ Object.assign({ "./icons/close.svg": () => import("./close-09538bb3.js"), "./icons/collapse-expanded.svg": () => import("./collapse-expanded-7573dda4.js"), "./icons/collapse-unexpanded.svg": () => import("./collapse-unexpanded-58902d73.js"), "./icons/debug.svg": () => import("./debug-5b77d6db.js"), "./icons/message-arrow.svg": () => import("./message-arrow-afe78f42.js"), "./icons/non-selected-cycle.svg": () => import("./non-selected-cycle-48272af4.js"), "./icons/numbering.svg": () => import("./numbering-ff4b1a4f.js"), "./icons/privacy.svg": () => import("./privacy-73f2dad7.js"), "./icons/selected-cycle.svg": () => import("./selected-cycle-ae468b62.js"), "./icons/theme.svg": () => import("./theme-054de8bf.js"), "./icons/tip.svg": () => import("./tip-3b5cd347.js"), "./icons/zoom-in.svg": () => import("./zoom-in-91139eff.js"), "./icons/zoom-out.svg": () => import("./zoom-out-2e5c6a46.js") }), `./icons/${e.name}.svg`));
28632
+ const e = t, n = N9(() => Gf(/* @__PURE__ */ Object.assign({ "./icons/close.svg": () => import("./close-d53092ac.js"), "./icons/collapse-expanded.svg": () => import("./collapse-expanded-779e036c.js"), "./icons/collapse-unexpanded.svg": () => import("./collapse-unexpanded-0a0a75a3.js"), "./icons/debug.svg": () => import("./debug-b2b7528b.js"), "./icons/message-arrow.svg": () => import("./message-arrow-2895d73a.js"), "./icons/non-selected-cycle.svg": () => import("./non-selected-cycle-fd0ecf12.js"), "./icons/numbering.svg": () => import("./numbering-299d9bab.js"), "./icons/privacy.svg": () => import("./privacy-e985c1ca.js"), "./icons/selected-cycle.svg": () => import("./selected-cycle-1f66bcf1.js"), "./icons/theme.svg": () => import("./theme-07bca045.js"), "./icons/tip.svg": () => import("./tip-43a7e770.js"), "./icons/zoom-in.svg": () => import("./zoom-in-1defc42f.js"), "./icons/zoom-out.svg": () => import("./zoom-out-52d8584e.js") }), `./icons/${e.name}.svg`));
28639
28633
  return (i, s) => (S(), X("span", {
28640
28634
  class: v2(["flex items-center justify-center", t.iconClass]),
28641
28635
  onClick: s[0] || (s[0] = (r) => i.$emit("icon-click"))
@@ -33245,7 +33239,7 @@ const H7 = /* @__PURE__ */ K2(BA, [["render", WA]]), HA = { class: "message-laye
33245
33239
  context: null
33246
33240
  },
33247
33241
  setup(t) {
33248
- const e = N9(() => import("./StylePanel-74c9af04.js")), n = y8.child({ name: "MessageLayer" }), i = I3(), s = F(() => i.getters.centerOf), r = F(() => i.getters.rootContext), o = F(() => s.value(l.value) + 1), l = F(() => {
33242
+ const e = N9(() => import("./StylePanel-0f8a3b66.js")), n = y8.child({ name: "MessageLayer" }), i = I3(), s = F(() => i.getters.centerOf), r = F(() => i.getters.rootContext), o = F(() => s.value(l.value) + 1), l = F(() => {
33249
33243
  const L = c7(r.value);
33250
33244
  return L.length === 0 ? N1 : L[0].from || N1;
33251
33245
  });
@@ -36146,7 +36140,7 @@ function ZS(t, e, n, i, s, r) {
36146
36140
  ])
36147
36141
  ], 2);
36148
36142
  }
36149
- const QL = /* @__PURE__ */ K2(hS, [["render", ZS]]), TS = "3.29.3";
36143
+ const QL = /* @__PURE__ */ K2(hS, [["render", ZS]]), TS = "3.29.4";
36150
36144
  function XL() {
36151
36145
  return {
36152
36146
  baseUrl: null,
@@ -42144,4 +42138,4 @@ export {
42144
42138
  I3 as y,
42145
42139
  hL as z
42146
42140
  };
42147
- //# sourceMappingURL=core-7a7d6a4f.js.map
42141
+ //# sourceMappingURL=core-91e93577.js.map
@@ -1,4 +1,4 @@
1
- import { o, c as t, a as e } from "./core-7a7d6a4f.js";
1
+ import { o, c as t, a as e } from "./core-91e93577.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-5b77d6db.js.map
33
+ //# sourceMappingURL=debug-b2b7528b.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c as s, a as e } from "./core-7a7d6a4f.js";
1
+ import { o as t, c as s, a as e } from "./core-91e93577.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-afe78f42.js.map
25
+ //# sourceMappingURL=message-arrow-2895d73a.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c, a as o } from "./core-7a7d6a4f.js";
1
+ import { o as e, c, a as o } from "./core-91e93577.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-48272af4.js.map
24
+ //# sourceMappingURL=non-selected-cycle-fd0ecf12.js.map
@@ -1,4 +1,4 @@
1
- import { o as Z, c, a as m } from "./core-7a7d6a4f.js";
1
+ import { o as Z, c, a as m } from "./core-91e93577.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-ff4b1a4f.js.map
26
+ //# sourceMappingURL=numbering-299d9bab.js.map
@@ -1,4 +1,4 @@
1
- import { o as c, c as t, a as e } from "./core-7a7d6a4f.js";
1
+ import { o as c, c as t, a as e } from "./core-91e93577.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-73f2dad7.js.map
18
+ //# sourceMappingURL=privacy-e985c1ca.js.map
@@ -1,4 +1,4 @@
1
- import { o as t, c as o, a as e } from "./core-7a7d6a4f.js";
1
+ import { o as t, c as o, a as e } from "./core-91e93577.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-ae468b62.js.map
32
+ //# sourceMappingURL=selected-cycle-1f66bcf1.js.map
@@ -1,4 +1,4 @@
1
- import { o as c, c as e, a as t } from "./core-7a7d6a4f.js";
1
+ import { o as c, c as e, a as t } from "./core-91e93577.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-054de8bf.js.map
20
+ //# sourceMappingURL=theme-07bca045.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as t, a as o } from "./core-7a7d6a4f.js";
1
+ import { o as e, c as t, a as o } from "./core-91e93577.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-3b5cd347.js.map
19
+ //# sourceMappingURL=tip-43a7e770.js.map