Commit cd54ce7b authored by Alexandre Delanoë's avatar Alexandre Delanoë

[FIX] GraphExplorer settings (validated with David)

parent 901656f8
...@@ -255,9 +255,9 @@ sigmaSettings = ...@@ -255,9 +255,9 @@ sigmaSettings =
, labelSize : "proportional" -- alt : proportional, fixed , labelSize : "proportional" -- alt : proportional, fixed
-- , labelSize: "fixed" -- , labelSize: "fixed"
, labelSizeRatio: 2.0 -- label size in ratio of node size , labelSizeRatio: 2.0 -- label size in ratio of node size
, labelThreshold: 7.0 -- 5.0 for more labels -- min node cam size to start showing label , labelThreshold: 9.0 -- 5.0 for more labels -- min node cam size to start showing label
, maxEdgeSize: 1.0 , maxEdgeSize: 1.0
, maxNodeSize: 8.0 , maxNodeSize: 10.0
, minEdgeSize: 0.5 -- in fact used in tina as edge size , minEdgeSize: 0.5 -- in fact used in tina as edge size
, minNodeSize: 1.0 , minNodeSize: 1.0
, mouseEnabled: true , mouseEnabled: true
...@@ -306,11 +306,11 @@ forceAtlas2Settings = ...@@ -306,11 +306,11 @@ forceAtlas2Settings =
, barnesHutOptimize : true , barnesHutOptimize : true
, edgeWeightInfluence : 1.0 , edgeWeightInfluence : 1.0
-- fixedY : false -- fixedY : false
, gravity : 0.1 , gravity : 0.01
, iterationsPerRender : 50.0 -- 10.0 , iterationsPerRender : 50.0 -- 10.0
, linLogMode : false -- false , linLogMode : false -- false
, outboundAttractionDistribution: false , outboundAttractionDistribution: false
, scalingRatio : 100.0 , scalingRatio : 1000.0
, skipHidden: false , skipHidden: false
, slowDown : 1.0 , slowDown : 1.0
, startingIterations : 10.0 , startingIterations : 10.0
......
...@@ -51,8 +51,8 @@ labelSizeButton sigmaRef state = ...@@ -51,8 +51,8 @@ labelSizeButton sigmaRef state =
sizeButton { sizeButton {
state state
, caption: "Label Size" , caption: "Label Size"
, min: 2.0 , min: 1.0
, max: 15.0 , max: 30.0
, onChange: \e -> do , onChange: \e -> do
let sigma = R.readRef sigmaRef let sigma = R.readRef sigmaRef
let newValue = readFloat $ R.unsafeEventValue e let newValue = readFloat $ R.unsafeEventValue e
...@@ -61,7 +61,8 @@ labelSizeButton sigmaRef state = ...@@ -61,7 +61,8 @@ labelSizeButton sigmaRef state =
Sigma.setSettings s { Sigma.setSettings s {
defaultLabelSize: newValue defaultLabelSize: newValue
, drawLabels: true , drawLabels: true
, labelSizeRatio: newValue / 2.5 , maxNodeSize: newValue / 2.5
--, labelSizeRatio: newValue / 2.5
} }
setValue $ const newValue setValue $ const newValue
} }
......
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