@zenuml/core 3.31.1 → 3.31.2

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 { c as P, u as H, r as R, s as We, w as k, g as lt, o as at, a as Q, F as Ie, m as pe, t as Re, b as Ve, n as ct, p as ut, d as ft, e as dt, h as ne, U as mt, f as ve, T as pt, i as vt, S as gt, j as ht, k as wt, l as yt, q as xt, v as bt, P as Ct, x as Pe, y as Ot, z as At, A as ge, B as Tt, C as St, D as Et, E as Rt, G as Pt, H as Ft, I as Lt } from "./core-93d86384.js";
1
+ import { c as P, u as H, r as R, s as We, w as k, g as lt, o as at, a as Q, F as Ie, m as pe, t as Re, b as Ve, n as ct, p as ut, d as ft, e as dt, h as ne, U as mt, f as ve, T as pt, i as vt, S as gt, j as ht, k as wt, l as yt, q as xt, v as bt, P as Ct, x as Pe, y as Ot, z as At, A as ge, B as Tt, C as St, D as Et, E as Rt, G as Pt, H as Ft, I as Lt } from "./core-1be41747.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-c6e01b46.js.map
1856
+ //# sourceMappingURL=StylePanel-23e1ca6c.js.map
@@ -33307,7 +33307,7 @@ const V0 = /[!@#$%^&*()+-,.?''":{}|<>/\s]/, f8 = (t) => {
33307
33307
  setup(t) {
33308
33308
  const e = F3(), n = R2(null);
33309
33309
  if (e.state.mode === j1.Static)
33310
- return { translate: 0, participant: n };
33310
+ return { stickyVerticalOffset: 0, participant: n };
33311
33311
  const i = I(() => {
33312
33312
  const L = e.getters.participants.GetPositions(
33313
33313
  t.entity.name
@@ -33319,14 +33319,19 @@ const V0 = /[!@#$%^&*()+-,.?''":{}|<>/\s]/, f8 = (t) => {
33319
33319
  );
33320
33320
  return Array.from(L ?? []).sort((C, c) => c[0] - C[0]);
33321
33321
  }), r = OL(), [o] = FL();
33322
- return { translate: I(() => {
33323
- var h;
33324
- const L = t.offsetTop2 || 0;
33325
- let a = r.value + o.value;
33326
- r.value > Yk && (e != null && e.state.stickyOffset) && (a += e == null ? void 0 : e.state.stickyOffset);
33327
- const C = ((h = e == null ? void 0 : e.state.diagramElement) == null ? void 0 : h.clientHeight) || 0, c = e != null && e.state.diagramElement ? NL(e == null ? void 0 : e.state.diagramElement) : 0;
33328
- return a < L + c ? 0 : Math.min(a - c, C - sp) - L;
33329
- }), participant: n, labelPositions: i, assigneePositions: s };
33322
+ return {
33323
+ stickyVerticalOffset: I(() => {
33324
+ var h;
33325
+ const L = t.offsetTop2 || 0;
33326
+ let a = r.value + o.value;
33327
+ r.value > Yk && (e != null && e.state.stickyOffset) && (a += e == null ? void 0 : e.state.stickyOffset);
33328
+ const C = ((h = e == null ? void 0 : e.state.diagramElement) == null ? void 0 : h.clientHeight) || 0, c = e != null && e.state.diagramElement ? NL(e == null ? void 0 : e.state.diagramElement) : 0;
33329
+ return a < L + c ? 0 : Math.min(a - c, C - sp - 50) - L;
33330
+ }),
33331
+ participant: n,
33332
+ labelPositions: i,
33333
+ assigneePositions: s
33334
+ };
33330
33335
  },
33331
33336
  props: {
33332
33337
  entity: {
@@ -33411,7 +33416,7 @@ function nT(t, e, n, i, s, r) {
33411
33416
  style: w2({
33412
33417
  backgroundColor: r.isDefaultStarter ? void 0 : r.backgroundColor,
33413
33418
  color: r.isDefaultStarter ? void 0 : s.color,
33414
- transform: `translateY(${i.translate}px)`
33419
+ transform: `translateY(${i.stickyVerticalOffset}px)`
33415
33420
  }),
33416
33421
  onClick: e[0] || (e[0] = (...l) => r.onSelect && r.onSelect(...l))
33417
33422
  }, [
@@ -33692,7 +33697,7 @@ const $7 = /* @__PURE__ */ K2(gT, [["render", mT]]), wT = { class: "message-laye
33692
33697
  context: null
33693
33698
  },
33694
33699
  setup(t) {
33695
- const e = v0(() => import("./StylePanel-c6e01b46.js")), n = y8.child({ name: "MessageLayer" }), i = F3(), s = I(() => i.getters.centerOf), r = I(() => i.getters.rootContext), o = I(() => s.value(l.value) + 1), l = I(() => {
33700
+ const e = v0(() => import("./StylePanel-23e1ca6c.js")), n = y8.child({ name: "MessageLayer" }), i = F3(), s = I(() => i.getters.centerOf), r = I(() => i.getters.rootContext), o = I(() => s.value(l.value) + 1), l = I(() => {
33696
33701
  const L = u7(r.value);
33697
33702
  return L.length === 0 ? K1 : L[0].from || K1;
33698
33703
  });
@@ -36593,7 +36598,7 @@ function sI(t, e, n, i, s, r) {
36593
36598
  ])
36594
36599
  ], 2);
36595
36600
  }
36596
- const xa = /* @__PURE__ */ K2(HE, [["render", sI]]), rI = "3.31.1";
36601
+ const xa = /* @__PURE__ */ K2(HE, [["render", sI]]), rI = "3.31.2";
36597
36602
  function _a() {
36598
36603
  return {
36599
36604
  baseUrl: null,
@@ -42638,4 +42643,4 @@ export {
42638
42643
  T2 as y,
42639
42644
  h3 as z
42640
42645
  };
42641
- //# sourceMappingURL=core-93d86384.js.map
42646
+ //# sourceMappingURL=core-1be41747.js.map