mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-08 16:28:59 +08:00
Merge pull request #108 from SigNoz/remove-zoom-post-stable
Removes abrupt zoom post becoming stable
This commit is contained in:
commit
4c0b81b5c7
@ -86,9 +86,6 @@ const ServiceMap = (props: ServiceMapProps) => {
|
|||||||
<ForceGraph2D
|
<ForceGraph2D
|
||||||
ref={fgRef}
|
ref={fgRef}
|
||||||
cooldownTicks={100}
|
cooldownTicks={100}
|
||||||
onEngineStop={() => {
|
|
||||||
fgRef.current.zoomToFit(100, 120);
|
|
||||||
}}
|
|
||||||
graphData={graphData}
|
graphData={graphData}
|
||||||
nodeLabel={getTooltip}
|
nodeLabel={getTooltip}
|
||||||
linkAutoColorBy={(d) => d.target}
|
linkAutoColorBy={(d) => d.target}
|
||||||
@ -106,7 +103,7 @@ const ServiceMap = (props: ServiceMapProps) => {
|
|||||||
ctx.fill();
|
ctx.fill();
|
||||||
ctx.textAlign = "center";
|
ctx.textAlign = "center";
|
||||||
ctx.textBaseline = "middle";
|
ctx.textBaseline = "middle";
|
||||||
ctx.fillStyle = "#333333";
|
ctx.fillStyle = "#646464";
|
||||||
ctx.fillText(label, node.x, node.y);
|
ctx.fillText(label, node.x, node.y);
|
||||||
}}
|
}}
|
||||||
onNodeClick={(node) => {
|
onNodeClick={(node) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user