Skip to content

Commit 14ab302

Browse files
committed
vis: tree display: place clients closer to monoliths
1 parent 2c60177 commit 14ab302

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ const TreeDisplay: React.FC<TreeDisplayProps> = ({ systemState, width, height })
180180
treeLayout(root);
181181
// precompute radial coordinates
182182
root.each(node => {
183+
if (node.data.group === "client") {
184+
// @ts-expect-error d3 adds x and y to the node
185+
node.y *= 0.6;
186+
}
183187
// @ts-expect-error d3 adds x and y to the node
184188
const [x, y] = d3.pointRadial(node.x, node.y);
185189
// @ts-expect-error d3 adds x and y to the node

0 commit comments

Comments
 (0)