Commit 5e03363b authored by Alexandre Delanoë's avatar Alexandre Delanoë

[GRAPH] fixing node / label / size.

parent ddedc982
......@@ -225,11 +225,11 @@ sigmaSettings =
, hideEdgesOnMove: true
, labelSize : "fixed"
, labelSizeRatio: 1.0 -- label size in ratio of node size
, labelThreshold: 1.0 -- min node cam size to start showing label
, labelThreshold: 5.0 -- min node cam size to start showing label
, maxEdgeSize: 1.0
, maxNodeSize: 10.0
, maxNodeSize: 7.0
, minEdgeSize: 0.5 -- in fact used in tina as edge size
, minNodeSize: 5.0
, minNodeSize: 0.1
, mouseEnabled: true
, mouseZoomDuration: 150.0
, nodeBorderColor: "node" -- choices: 'default' color vs. node color
......
......@@ -17,6 +17,7 @@ import DOM.Simple.Types (Element)
import Effect.Aff (Aff)
import Reactix as R
import Reactix.DOM.HTML as RH
import Math (log)
import Gargantext.Hooks.Loader (useLoader)
import Gargantext.Hooks.Sigmax (Sigma)
......@@ -207,7 +208,7 @@ convert (GET.GraphData r) = Tuple r.metaData $ SigmaxTypes.Graph {nodes, edges}
nodeFn i (GET.Node n) =
Seq.singleton
{ id : n.id_
, size : toNumber n.size
, size : log (toNumber n.size + 1.0)
, label : n.label
, x : n.x -- cos (toNumber i)
, y : n.y -- sin (toNumber i)
......
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