From 23f6fae27aeb56929faddf32080fa89d815987aa Mon Sep 17 00:00:00 2001 From: Kia Lam Date: Wed, 9 Mar 2022 07:36:04 -0800 Subject: [PATCH] Add data-cy to content loader; move simulatioWorker to /util directory. --- .../screens/TopologyView/ContentLoading.js | 2 +- .../utils/workers/simulationWorker.js | 35 ------------------- 2 files changed, 1 insertion(+), 36 deletions(-) delete mode 100644 awx/ui/src/screens/TopologyView/utils/workers/simulationWorker.js diff --git a/awx/ui/src/screens/TopologyView/ContentLoading.js b/awx/ui/src/screens/TopologyView/ContentLoading.js index c4b07bf9f0..656edfe505 100644 --- a/awx/ui/src/screens/TopologyView/ContentLoading.js +++ b/awx/ui/src/screens/TopologyView/ContentLoading.js @@ -24,7 +24,7 @@ const TopologyIcon = styled(PFTopologyIcon)` `; const ContentLoading = ({ className, progress }) => ( - + d.hostname) - ) - .force('collide', d3.forceCollide(MESH_FORCE_LAYOUT.defaultCollisionFactor)) - .force('forceX', d3.forceX(MESH_FORCE_LAYOUT.defaultForceX)) - .force('forceY', d3.forceY(MESH_FORCE_LAYOUT.defaultForceY)) - .stop(); - - for ( - let i = 0, - n = Math.ceil( - Math.log(simulation.alphaMin()) / Math.log(1 - simulation.alphaDecay()) - ); - i < n; - ++i - ) { - postMessage({ type: 'tick', progress: i / n }); - simulation.tick(); - } - - postMessage({ type: 'end', nodes, links }); -};