Skip to content

Commit c67248c

Browse files
committed
format
1 parent bfd789d commit c67248c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

packages/ott-vis-panel/src/components/TreeDisplay.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,7 @@ const TreeDisplay: React.FC<TreeDisplayProps> = ({ systemState, width, height })
137137
// because d3-hierarchy doesn't support trees with multiple parents, we need to do manual layouts for balancers and monoliths, but we can use the built-in tree layout for monolith down to clients
138138

139139
const svg = d3.select<SVGSVGElement, TreeNode>(svgRef.current);
140-
const wholeGraph = svg.select("g.chart").attr(
141-
"transform",
142-
chartTransform,
143-
);
140+
const wholeGraph = svg.select("g.chart").attr("transform", chartTransform);
144141
const gb2mLinks = wholeGraph.selectAll("g.b2m-links");
145142

146143
// build all the sub-trees first
@@ -219,7 +216,6 @@ const TreeDisplay: React.FC<TreeDisplayProps> = ({ systemState, width, height })
219216
.text(d => `${d.region.substring(0, 3)} ${d.id}`.substring(0, 10));
220217
balancerTexts.exit().remove();
221218

222-
223219
// create groups for all the monoliths
224220
const monolithGroup = wholeGraph.select("g.monoliths");
225221
const monolithGroups = monolithGroup.selectAll(".monolith").data(monolithNodes);
@@ -263,7 +259,9 @@ const TreeDisplay: React.FC<TreeDisplayProps> = ({ systemState, width, height })
263259
.attr("cy", (d: any) => d.x)
264260
.attr("data-nodeid", d => d.data.id);
265261
monolithCircles.exit().remove();
266-
const monolithTexts = monolith.selectAll(".monolith-text").data(d.tree.descendants());
262+
const monolithTexts = monolith
263+
.selectAll(".monolith-text")
264+
.data(d.tree.descendants());
267265
monolithTexts
268266
.enter()
269267
// intentionally not showing room and client names -- user generated content can contain offensive material

0 commit comments

Comments
 (0)