Merge pull request #108 from SigNoz/remove-zoom-post-stable

Removes abrupt zoom post becoming stable
This commit is contained in:
Ankit Nayan 2021-05-17 11:58:32 +05:30 committed by GitHub
commit 4c0b81b5c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,9 +86,6 @@ const ServiceMap = (props: ServiceMapProps) => {
<ForceGraph2D
ref={fgRef}
cooldownTicks={100}
onEngineStop={() => {
fgRef.current.zoomToFit(100, 120);
}}
graphData={graphData}
nodeLabel={getTooltip}
linkAutoColorBy={(d) => d.target}
@ -106,7 +103,7 @@ const ServiceMap = (props: ServiceMapProps) => {
ctx.fill();
ctx.textAlign = "center";
ctx.textBaseline = "middle";
ctx.fillStyle = "#333333";
ctx.fillStyle = "#646464";
ctx.fillText(label, node.x, node.y);
}}
onNodeClick={(node) => {