From 41dd007380b833f01d76ada0ba75a06a0f36952e Mon Sep 17 00:00:00 2001 From: Ankit Nayan Date: Mon, 10 May 2021 12:07:38 +0530 Subject: [PATCH] increased speed of particles in serviceMap --- frontend/src/modules/Servicemap/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/modules/Servicemap/utils.ts b/frontend/src/modules/Servicemap/utils.ts index 775af2a3b8..296cd05060 100644 --- a/frontend/src/modules/Servicemap/utils.ts +++ b/frontend/src/modules/Servicemap/utils.ts @@ -2,7 +2,7 @@ import { uniqBy, uniq, maxBy, cloneDeep, find } from "lodash"; import { serviceMapStore } from "Src/store/actions"; import { graphDataType } from "./ServiceMap"; -const MIN_WIDTH = 12; +const MIN_WIDTH = 10; const MAX_WIDTH = 20; const DEFAULT_FONT_SIZE = 6; export const getDimensions = (num, highest) => { @@ -28,7 +28,7 @@ export const getGraphData = (serviceMap: serviceMapStore): graphDataType => { return { source: parent, target: child, - value: (100 - callCount / divNum) * 0.01, + value: (100 - callCount / divNum) * 0.03, }; }); const uniqParent = uniqBy(cloneDeep(items), "parent").map((e) => e.parent);