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

Merge branch 'dev-explorer-fixes' of...

Merge branch 'dev-explorer-fixes' of ssh://gitlab.iscpif.fr:20022/gargantext/purescript-gargantext into dev-refact
parents 7f5bce4a 150aaeb7
......@@ -231,7 +231,8 @@ sigmaSettings =
, font: "arial" -- font params
, fontStyle: "bold"
, hideEdgesOnMove: true
, labelSize : "proportional" -- alt : proportional
--, labelSize : "proportional" -- alt : proportional, fixed
, labelSize: "fixed"
, labelSizeRatio: 2.0 -- label size in ratio of node size
, labelThreshold: 7.0 -- min node cam size to start showing label
, maxEdgeSize: 1.0
......
......@@ -58,6 +58,8 @@ labelSizeButton sigmaRef state =
Sigmax.dependOnSigma sigma "[labelSizeButton] sigma: Nothing" $ \s -> do
Sigma.setSettings s {
defaultLabelSize: newValue
, drawLabels: true
, labelSizeRatio: newValue / 2.5
}
setValue $ const newValue
}
......
......@@ -42,6 +42,7 @@ sigma.canvas.nodes.selected = (node, context, settings) => {
node.type = 'def';
sigma.canvas.hovers.def(node, context, settings);
node.type = 'selected';
console.log('hovers, settings:', settings);
};
CustomShapes.init();
......
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