[graph] fix updateGraph function so that labels are rendered properly

This was visible in the screenshot, where forceAtlas is not started
initially and there were no labels, even though the setting was correct.
parent e9280bbd
Pipeline #7865 passed with stages
in 21 minutes and 44 seconds
...@@ -216,6 +216,9 @@ drawGraphCpt = here.component "drawGraph" cpt ...@@ -216,6 +216,9 @@ drawGraphCpt = here.component "drawGraph" cpt
, edgeWeight: edgeWeight' , edgeWeight: edgeWeight'
, showEdges: showEdges' , showEdges: showEdges'
} }
-- #512 make sure labels are rendered according to forceAtlasState
let renderLabels = SigmaxTypes.forceAtlasLabelState forceAtlasState'
Sigma.setSettings sigma { renderLabels }
-- TODO This is a temporary solution that seems to fix -- TODO This is a temporary solution that seems to fix
-- blank page of graph when there are too many edges. It -- blank page of graph when there are too many edges. It
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment