@leavepulse/ui 0.22.2 → 0.22.3
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/dist/chunks/{LpTopologyCanvas-CQt-G9KL.js → LpTopologyCanvas-DCQINTZE.js} +3 -2
- package/dist/components/LpTopologyCanvas.vue.d.ts +6 -0
- package/dist/components/LpTopologyCanvas.vue.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/LpTopologyCanvas.vue +8 -1
|
@@ -103,7 +103,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
103
103
|
source: e.source,
|
|
104
104
|
target: e.target,
|
|
105
105
|
type: "default",
|
|
106
|
-
animated: obs !== "applied",
|
|
106
|
+
animated: obs !== "applied" && !e.dimmed,
|
|
107
107
|
label: e.kind,
|
|
108
108
|
labelBgStyle: { fill: "var(--color-surface)" },
|
|
109
109
|
labelStyle: { fill: "var(--color-muted-strong)", fontSize: "10px" },
|
|
@@ -111,7 +111,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
111
111
|
stroke: color,
|
|
112
112
|
strokeWidth: cat === "structural" ? 1.5 : 2,
|
|
113
113
|
strokeDasharray: edgeDash(cat, obs),
|
|
114
|
-
strokeLinecap: "round"
|
|
114
|
+
strokeLinecap: "round",
|
|
115
|
+
opacity: e.dimmed ? 0.12 : 1
|
|
115
116
|
},
|
|
116
117
|
markerEnd: { type: MarkerType.ArrowClosed, color }
|
|
117
118
|
};
|
|
@@ -40,6 +40,12 @@ export interface TopologyEdge {
|
|
|
40
40
|
/** Semantic class driving colour + dash. Inferred from `kind` if omitted. */
|
|
41
41
|
category?: EdgeCategory;
|
|
42
42
|
observed?: EdgeObserved;
|
|
43
|
+
/**
|
|
44
|
+
* Push the edge into the background, matching the node data's `dimmed`. A
|
|
45
|
+
* focus highlight has to fade the edges too — dimming only the nodes leaves
|
|
46
|
+
* every unrelated line at full strength.
|
|
47
|
+
*/
|
|
48
|
+
dimmed?: boolean;
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* A background swimlane: a sized zone (one per project / overlay network) drawn
|
package/dist/index.js
CHANGED
|
@@ -64,7 +64,7 @@ import { D, _ as _56, N, T, b, c, d, e, f, g, i, l, h, j, n, r, t, k, m, u, v }
|
|
|
64
64
|
import { _ as _57 } from "./chunks/LpTilt-DuyKbpkA.js";
|
|
65
65
|
import { _ as _58 } from "./chunks/LpToaster-gDB1EaU3.js";
|
|
66
66
|
import { _ as _59 } from "./chunks/LpTooltip-D1hbjQWG.js";
|
|
67
|
-
import { _ as _60 } from "./chunks/LpTopologyCanvas-
|
|
67
|
+
import { _ as _60 } from "./chunks/LpTopologyCanvas-DCQINTZE.js";
|
|
68
68
|
import { _ as _61 } from "./chunks/LpUptimeBar-CB366k0O.js";
|
|
69
69
|
import { deserializeLayout, serializeLayout } from "./layout/tree.js";
|
|
70
70
|
import { addLeaf, addTab, countBlocks, countLeaves, makeLayout, moveLeaf, removeBlock, removeLeaf, reorderTab, resizeAt, setActiveTab } from "./layout/tree.js";
|
package/package.json
CHANGED
|
@@ -71,6 +71,12 @@ export interface TopologyEdge {
|
|
|
71
71
|
/** Semantic class driving colour + dash. Inferred from `kind` if omitted. */
|
|
72
72
|
category?: EdgeCategory
|
|
73
73
|
observed?: EdgeObserved
|
|
74
|
+
/**
|
|
75
|
+
* Push the edge into the background, matching the node data's `dimmed`. A
|
|
76
|
+
* focus highlight has to fade the edges too — dimming only the nodes leaves
|
|
77
|
+
* every unrelated line at full strength.
|
|
78
|
+
*/
|
|
79
|
+
dimmed?: boolean
|
|
74
80
|
}
|
|
75
81
|
|
|
76
82
|
/**
|
|
@@ -248,7 +254,7 @@ const flowEdges = computed(() =>
|
|
|
248
254
|
source: e.source,
|
|
249
255
|
target: e.target,
|
|
250
256
|
type: "default",
|
|
251
|
-
animated: obs !== "applied",
|
|
257
|
+
animated: obs !== "applied" && !e.dimmed,
|
|
252
258
|
label: e.kind,
|
|
253
259
|
labelBgStyle: { fill: "var(--color-surface)" },
|
|
254
260
|
labelStyle: { fill: "var(--color-muted-strong)", fontSize: "10px" },
|
|
@@ -257,6 +263,7 @@ const flowEdges = computed(() =>
|
|
|
257
263
|
strokeWidth: cat === "structural" ? 1.5 : 2,
|
|
258
264
|
strokeDasharray: edgeDash(cat, obs),
|
|
259
265
|
strokeLinecap: "round" as const,
|
|
266
|
+
opacity: e.dimmed ? 0.12 : 1,
|
|
260
267
|
},
|
|
261
268
|
markerEnd: { type: MarkerType.ArrowClosed, color },
|
|
262
269
|
}
|