@kronos-integration/svelte-components 2.4.96 → 2.5.0

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.96",
3
+ "version": "2.5.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@kronos-integration/endpoint": "^9.4.42",
39
- "@kronos-integration/service": "^10.4.47",
39
+ "@kronos-integration/service": "^10.4.49",
40
40
  "svelte-guard-history-router": "^5.5.40"
41
41
  },
42
42
  "devDependencies": {
@@ -33,14 +33,7 @@ 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
- }
36
+ this.layout();
44
37
 
45
38
  if (serviceStore) {
46
39
  this.serviceStore = serviceStore;
@@ -63,9 +56,8 @@ export class ServiceProvider extends ServiceProviderMixin(
63
56
  this.subscriptions.forEach(s => s(this));
64
57
  }
65
58
 
66
- async initialize(json) {
67
- await this.declareServices(json);
68
-
59
+ layout()
60
+ {
69
61
  let cx = 0;
70
62
  let y = 0;
71
63
 
@@ -94,7 +86,12 @@ export class ServiceProvider extends ServiceProviderMixin(
94
86
  }
95
87
 
96
88
  this.height = y;
89
+ }
90
+
91
+ async initialize(json) {
92
+ await this.declareServices(json);
97
93
 
94
+ this.layout();
98
95
  this.fireSubscriptions();
99
96
  }
100
97
 
@@ -112,11 +109,6 @@ export class ServiceProvider extends ServiceProviderMixin(
112
109
  for (const service of Object.values(this.services)) {
113
110
  for (const endpoint of Object.values(service.endpoints)) {
114
111
  for (const connection of endpoint.connections()) {
115
- if (!connection.x || !connection.y || !endpoint.x || !endpoint.y) {
116
- //console.log(endpoint.identifier, "no valid connection", connection);
117
- continue;
118
- }
119
-
120
112
  const key = endpoint.identifier + "-" + connection.identifier;
121
113
  if (!delivered.has(key)) {
122
114
  delivered.add(key);