@kronos-integration/svelte-components 2.4.97 → 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 +1 -1
- package/src/service-provider.mjs +8 -16
package/package.json
CHANGED
package/src/service-provider.mjs
CHANGED
|
@@ -33,14 +33,7 @@ export class ServiceProvider extends ServiceProviderMixin(
|
|
|
33
33
|
constructor(serviceStore, requestsStore) {
|
|
34
34
|
super({}, new NoneWaitingInitializationContext());
|
|
35
35
|
|
|
36
|
-
|
|
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
|
-
|
|
67
|
-
|
|
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);
|