increased speed of particles in serviceMap

This commit is contained in:
Ankit Nayan 2021-05-10 12:07:38 +05:30
parent 83eb73ee03
commit 41dd007380

View File

@ -2,7 +2,7 @@ import { uniqBy, uniq, maxBy, cloneDeep, find } from "lodash";
import { serviceMapStore } from "Src/store/actions"; import { serviceMapStore } from "Src/store/actions";
import { graphDataType } from "./ServiceMap"; import { graphDataType } from "./ServiceMap";
const MIN_WIDTH = 12; const MIN_WIDTH = 10;
const MAX_WIDTH = 20; const MAX_WIDTH = 20;
const DEFAULT_FONT_SIZE = 6; const DEFAULT_FONT_SIZE = 6;
export const getDimensions = (num, highest) => { export const getDimensions = (num, highest) => {
@ -28,7 +28,7 @@ export const getGraphData = (serviceMap: serviceMapStore): graphDataType => {
return { return {
source: parent, source: parent,
target: child, target: child,
value: (100 - callCount / divNum) * 0.01, value: (100 - callCount / divNum) * 0.03,
}; };
}); });
const uniqParent = uniqBy(cloneDeep(items), "parent").map((e) => e.parent); const uniqParent = uniqBy(cloneDeep(items), "parent").map((e) => e.parent);