From cf9fa82b67cafaba6f2de39cd3a6cb23c5e69720 Mon Sep 17 00:00:00 2001 From: Itay Mizeretz Date: Thu, 28 Sep 2017 11:13:00 +0300 Subject: [PATCH] Change C&C map physics to something decent --- monkey_island/cc/ui/src/components/pages/MapPage.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/monkey_island/cc/ui/src/components/pages/MapPage.js b/monkey_island/cc/ui/src/components/pages/MapPage.js index e597ea97f..2b0336814 100644 --- a/monkey_island/cc/ui/src/components/pages/MapPage.js +++ b/monkey_island/cc/ui/src/components/pages/MapPage.js @@ -32,6 +32,12 @@ let options = { type: 'curvedCW' } }, + physics: { + solver: 'forceAtlas2Based', + forceAtlas2Based: { + gravitationalConstant: -370 + } + }, groups: getGroupsOptions() };