@kronos-integration/svelte-components 2.4.94 → 2.4.96

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.4.94",
3
+ "version": "2.4.96",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,6 +1,5 @@
1
1
  <script>
2
2
  import {
3
- getContext,
4
3
  setContext,
5
4
  createEventDispatcher,
6
5
  onMount
@@ -33,6 +33,15 @@ export class ServiceProvider extends ServiceProviderMixin(
33
33
  constructor(serviceStore, requestsStore) {
34
34
  super({}, new NoneWaitingInitializationContext());
35
35
 
36
+ for (const service of Object.values(this.services)) {
37
+ service.x = 0;
38
+ service.y = 0;
39
+ for (const endpoint of Object.values(service.endpoints)) {
40
+ endpoint.x = 0;
41
+ endpoint.y = 0;
42
+ }
43
+ }
44
+
36
45
  if (serviceStore) {
37
46
  this.serviceStore = serviceStore;
38
47
  serviceStore.subscribe(services => this.initialize(services));
@@ -72,7 +81,7 @@ export class ServiceProvider extends ServiceProviderMixin(
72
81
  endpoint.y = ey;
73
82
 
74
83
  for (const connection of endpoint.connections()) {
75
- cx = cx + 4;
84
+ cx += 4;
76
85
  connection.rx = cx;
77
86
  }
78
87