mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 05:38:59 +08:00
fixes zoom px and disabledNodeDrag
This commit is contained in:
parent
45375fbd53
commit
128d75a144
@ -52,7 +52,7 @@ const ServiceMap = (props: ServiceMapProps) => {
|
||||
}
|
||||
|
||||
const zoomToService = (value: string) => {
|
||||
fgRef && fgRef.current.zoomToFit(700, 350, (e) => e.id === value);
|
||||
fgRef && fgRef.current.zoomToFit(700, 360, (e) => e.id === value);
|
||||
};
|
||||
|
||||
const { nodes, links } = getGraphData(serviceMap);
|
||||
@ -65,6 +65,7 @@ const ServiceMap = (props: ServiceMapProps) => {
|
||||
/>
|
||||
<ForceGraph2D
|
||||
ref={fgRef}
|
||||
enableNodeDrag={false}
|
||||
cooldownTicks={100}
|
||||
onEngineStop={() => fgRef.current.zoomToFit(100, 200)}
|
||||
graphData={graphData}
|
||||
|
@ -2,7 +2,7 @@ import { uniqBy, uniq, maxBy, cloneDeep, find } from "lodash";
|
||||
import { serviceMapStore } from "Src/store/actions";
|
||||
import { graphDataType } from "./ServiceMap";
|
||||
|
||||
const MAX_WIDTH = 8;
|
||||
const MAX_WIDTH = 12;
|
||||
const MIN_WIDTH = 5;
|
||||
const MAX_FONT_SIZE = 8;
|
||||
const MIN_FONT_SIZE = 5;
|
||||
|
Loading…
x
Reference in New Issue
Block a user