mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-08 13:29:01 +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
|
||||
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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user