Skip to content

Commit d57cf9a

Browse files
committed
+ gray-ish color for event nodes; node size is 8 by default
1 parent cfa3a56 commit d57cf9a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

PSGraph.Vega.Extensions/Assets/vega.force.directed.layout.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@
9797
"type": "symbol",
9898
"encode": {
9999
"enter": {
100-
"fill": {"scale": "color", "field": "group"},
100+
"fill": { "signal": "datum.nodeType === 'BaristaLabs.ChromeDevTools.Runtime.Network.RequestWillBeSentEvent'? '#e0e1dd' : scale('color', datum.group)" },
101101
"stroke": {"value": "white"}
102102
},
103103
"update": {
104104
"cursor": {"value": "pointer"},
105105
"fill": {
106-
"signal": "hoverIndex === datum.index || indata('adjacentIndices', 'adj', datum.index) ? 'red' : scale('color', datum.group)"
106+
"signal": "hoverIndex === datum.index || indata('adjacentIndices', 'adj', datum.index) ? 'red' : datum.nodeType === 'BaristaLabs.ChromeDevTools.Runtime.Network.RequestWillBeSentEvent'? '#e0e1dd' : scale('color', datum.group)"
107107
},
108108
"size": {
109109
"signal": "(hoverIndex === datum.index || indata('adjacentIndices', 'adj', datum.index)) ? 2.5 * nodeRadius * nodeRadius : 2 * nodeRadius * nodeRadius"
@@ -310,7 +310,7 @@
310310
{
311311
"name": "nodeRadius",
312312
"bind": {"input": "range", "max": 50, "min": 1, "step": 1},
313-
"value": 5
313+
"value": 8
314314
},
315315
{
316316
"name": "nodeCharge",

0 commit comments

Comments
 (0)