@@ -35,6 +35,27 @@ export const plugin = new PanelPlugin<CoreOptions>(CorePanel).setPanelOptions(bu
35
35
name : "Use Sample Data" ,
36
36
description : "Use sample data instead of querying the datasource" ,
37
37
} )
38
+ . addNumberInput ( {
39
+ path : "nodes.baseNodeRadius" ,
40
+ name : "Base Node Radius" ,
41
+ description : "Set the radius of the nodes." ,
42
+ defaultValue : 20 ,
43
+ showIf : config => config . view === "tree" || config . view === "topology" ,
44
+ } )
45
+ . addNumberInput ( {
46
+ path : "nodes.balancerNodeRadius" ,
47
+ name : "Balancer Node Radius" ,
48
+ description : "Set the radius of the balancer nodes" ,
49
+ defaultValue : 30 ,
50
+ showIf : config => config . view === "tree" || config . view === "topology" ,
51
+ } )
52
+ . addNumberInput ( {
53
+ path : "nodes.clientNodeRadius" ,
54
+ name : "Client Node Radius" ,
55
+ description : "Set the radius of the client nodes" ,
56
+ defaultValue : 8 ,
57
+ showIf : config => config . view === "tree" || config . view === "topology" ,
58
+ } )
38
59
. addBooleanSwitch ( {
39
60
path : "tree.horizontal" ,
40
61
name : "Horizontal" ,
@@ -67,41 +88,6 @@ export const plugin = new PanelPlugin<CoreOptions>(CorePanel).setPanelOptions(bu
67
88
defaultValue : 300 ,
68
89
showIf : config => config . view === "tree" ,
69
90
} )
70
- . addNumberInput ( {
71
- path : "tree.baseNodeRadius" ,
72
- name : "Base Node Radius" ,
73
- description : "Set the radius of the nodes in the tree view" ,
74
- defaultValue : 20 ,
75
- showIf : config => config . view === "tree" ,
76
- } )
77
- . addNumberInput ( {
78
- path : "topology.baseNodeRadius" ,
79
- name : "Base Node Radius" ,
80
- description : "Set the radius of the nodes in the topology view" ,
81
- defaultValue : 20 ,
82
- showIf : config => config . view === "topology" ,
83
- } )
84
- . addNumberInput ( {
85
- path : "tree.balancerNodeRadius" ,
86
- name : "Tree Balancer Node Radius" ,
87
- description : "Set the radius of the balancer nodes in the tree view" ,
88
- defaultValue : 30 ,
89
- showIf : config => config . view === "tree" ,
90
- } )
91
- . addNumberInput ( {
92
- path : "tree.clientNodeRadius" ,
93
- name : "Client Node Radius" ,
94
- description : "Set the radius of the client nodes in the tree view" ,
95
- defaultValue : 8 ,
96
- showIf : config => config . view === "tree" ,
97
- } )
98
- . addNumberInput ( {
99
- path : "topology.clientNodeRadius" ,
100
- name : "Client Node Radius" ,
101
- description : "Set the radius of the client nodes in the topology view" ,
102
- defaultValue : 8 ,
103
- showIf : config => config . view === "topology" ,
104
- } )
105
91
. addSelect ( {
106
92
path : "tree.balancerGroupStyle" ,
107
93
name : "Tree Balancer Group Style" ,
0 commit comments