@kronos-integration/svelte-components 2.5.3 → 2.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronos-integration/svelte-components",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -80,9 +80,9 @@
80
80
  <marker
81
81
  id="arrow"
82
82
  viewBox="0 0 8 8"
83
- refX="6"
83
+ refX="2"
84
84
  refY="3"
85
- markerWidth="6"
85
+ markerWidth="4"
86
86
  markerHeight="6"
87
87
  orient="auto-start-reverse"
88
88
  >
package/src/util.mjs CHANGED
@@ -6,9 +6,8 @@ export const INTERCEPTOR = "_INTERCEPTOR";
6
6
  export function connectionPath(from, to) {
7
7
  const fx = from.x + from.owner.x;
8
8
  const fy = from.y + from.owner.y;
9
- const tx = to.x + to.owner.x;
9
+ const tx = to.x + to.owner.x + 4;
10
10
  const ty = to.y + to.owner.y;
11
-
12
- const rx = from.rx === undefined ? 16 : from.rx; //TODO why
13
- return `M${fx} ${fy}H${fx + rx}V${ty}H${tx + 2}`;
11
+ const rx = from.rx || 16; //TODO why
12
+ return `M${fx} ${fy}H${fx + rx}V${ty}H${tx}`;
14
13
  }