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 = ...@@ -231,7 +231,8 @@ sigmaSettings =
, font: "arial" -- font params , font: "arial" -- font params
, fontStyle: "bold" , fontStyle: "bold"
, hideEdgesOnMove: true , hideEdgesOnMove: true
, labelSize : "proportional" -- alt : proportional --, labelSize : "proportional" -- alt : proportional, 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 -- min node cam size to start showing label , labelThreshold: 7.0 -- min node cam size to start showing label
, maxEdgeSize: 1.0 , maxEdgeSize: 1.0
......
...@@ -58,6 +58,8 @@ labelSizeButton sigmaRef state = ...@@ -58,6 +58,8 @@ labelSizeButton sigmaRef state =
Sigmax.dependOnSigma sigma "[labelSizeButton] sigma: Nothing" $ \s -> do Sigmax.dependOnSigma sigma "[labelSizeButton] sigma: Nothing" $ \s -> do
Sigma.setSettings s { Sigma.setSettings s {
defaultLabelSize: newValue defaultLabelSize: newValue
, drawLabels: true
, labelSizeRatio: newValue / 2.5
} }
setValue $ const newValue setValue $ const newValue
} }
......
...@@ -42,6 +42,7 @@ sigma.canvas.nodes.selected = (node, context, settings) => { ...@@ -42,6 +42,7 @@ sigma.canvas.nodes.selected = (node, context, settings) => {
node.type = 'def'; node.type = 'def';
sigma.canvas.hovers.def(node, context, settings); sigma.canvas.hovers.def(node, context, settings);
node.type = 'selected'; node.type = 'selected';
console.log('hovers, settings:', settings);
}; };
CustomShapes.init(); 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