@miragon/event-storming-renderer 0.2.1 → 0.2.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.
package/dist/index.js CHANGED
@@ -951,7 +951,7 @@ var ft = {
951
951
  };
952
952
  function gt(e) {
953
953
  let t = e.alignHorizontal && e.alignHorizontal !== "left" ? e.alignHorizontal : void 0, n = e.alignVertical && e.alignVertical !== "top" ? e.alignVertical : void 0;
954
- if (!(!t && !n)) return {
954
+ if (t || n) return {
955
955
  ...t ? { horizontal: t } : {},
956
956
  ...n ? { vertical: n } : {}
957
957
  };
@@ -2436,9 +2436,9 @@ var lr = class {
2436
2436
  static $inject = ["eventBus", "interactionEvents"];
2437
2437
  constructor(e, t) {
2438
2438
  e.on("interactionEvents.createHit", (e) => {
2439
- if (!(!B(e.element) || !e.gfx)) return dr(e.element, e.gfx), !1;
2439
+ if (B(e.element) && e.gfx) return dr(e.element, e.gfx), !1;
2440
2440
  }), e.on("interactionEvents.updateHit", (e) => {
2441
- if (!(!B(e.element) || !e.gfx)) return t.removeHits(e.gfx), dr(e.element, e.gfx), !1;
2441
+ if (B(e.element) && e.gfx) return t.removeHits(e.gfx), dr(e.element, e.gfx), !1;
2442
2442
  });
2443
2443
  }
2444
2444
  };