@kwirthmagnify/kwirth-plugin-status 0.2.5 → 0.2.6
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/front.js +22 -11
- package/package.json +1 -1
package/front.js
CHANGED
|
@@ -160,9 +160,25 @@
|
|
|
160
160
|
*/
|
|
161
161
|
"elk.direction": "DOWN",
|
|
162
162
|
"elk.spacing.nodeNode": "40",
|
|
163
|
-
"elk.layered.spacing.nodeNodeBetweenLayers": "110"
|
|
163
|
+
"elk.layered.spacing.nodeNodeBetweenLayers": "110",
|
|
164
|
+
/*
|
|
165
|
+
UN solo grafo, no uno por componente. De serie elk coloca cada componente conexo por
|
|
166
|
+
su cuenta y luego los apila: un par suelto como sugarless -> sugarless salia en su
|
|
167
|
+
propio bloque de dos filas, con su canal por ENCIMA de productores del bloque grande.
|
|
168
|
+
*/
|
|
169
|
+
"elk.separateConnectedComponents": "false"
|
|
164
170
|
},
|
|
165
|
-
|
|
171
|
+
/*
|
|
172
|
+
Y la fila de cada nodo, fijada: productores en la primera capa, consumidores en la ultima.
|
|
173
|
+
Sin esto, un productor sin aristas (plugin:montag) es un nodo sin salidas y el layering
|
|
174
|
+
lo puede bajar con los consumidores.
|
|
175
|
+
*/
|
|
176
|
+
children: nodos.map((n) => ({
|
|
177
|
+
id: n.id,
|
|
178
|
+
width: 230,
|
|
179
|
+
height: 56,
|
|
180
|
+
layoutOptions: { "elk.layered.layering.layerConstraint": n.data.esProductor ? "FIRST" : "LAST" }
|
|
181
|
+
})),
|
|
166
182
|
edges: aristas.map((e) => ({ id: e.id, sources: [e.source], targets: [e.target] }))
|
|
167
183
|
});
|
|
168
184
|
const pos = {};
|
|
@@ -252,15 +268,10 @@
|
|
|
252
268
|
source: e.providerId,
|
|
253
269
|
target: `channel:${e.channelId}`,
|
|
254
270
|
/*
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
mismo error que poner un 0 donde no hay dato — parecería información y sería decoración.
|
|
260
|
-
|
|
261
|
-
Cuando los contadores de S4 midan caudal de verdad, el movimiento (o el grosor) podrá
|
|
262
|
-
significar algo, y entonces se pone.
|
|
263
|
-
*/
|
|
271
|
+
Una línea en movimiento se lee como "por aquí está pasando algo ahora mismo", así que
|
|
272
|
+
solo se mueve cuando eso se ha MEDIDO (ver 'viva'). Quieta, lo único que dice es que la
|
|
273
|
+
suscripción existe. Cómo frena con auto-refresco está en el contenedor del ReactFlow.
|
|
274
|
+
*/
|
|
264
275
|
...(() => {
|
|
265
276
|
const tocaAlSeleccionado = Boolean(seleccionado) && (e.providerId === seleccionado || `channel:${e.channelId}` === seleccionado);
|
|
266
277
|
const viva = active.has(e.providerId);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"id": "status",
|
|
5
5
|
"name": "@kwirthmagnify/kwirth-plugin-status",
|
|
6
6
|
"displayName": "Kwirth Status",
|
|
7
|
-
"version": "0.2.
|
|
7
|
+
"version": "0.2.6",
|
|
8
8
|
"description": "A look inside Kwirth: what is installed, how it is doing and who consumes what",
|
|
9
9
|
"icon": "<svg viewBox='0 0 24 24'><g fill='none' stroke='currentColor' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='2.6' y='4.6' width='18.8' height='14.8' rx='2.2'/><path d='M6 12h2.6l1.5-3.4 2.6 6.8 1.5-3.4H18'/></g></svg>",
|
|
10
10
|
"requiresRestart": false,
|