Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
purescript-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
142
Issues
142
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
purescript-gargantext
Commits
5e03363b
Commit
5e03363b
authored
Dec 04, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[GRAPH] fixing node / label / size.
parent
ddedc982
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
Graph.purs
src/Gargantext/Components/Graph.purs
+3
-3
GraphExplorer.purs
src/Gargantext/Components/GraphExplorer.purs
+2
-1
No files found.
src/Gargantext/Components/Graph.purs
View file @
5e03363b
...
...
@@ -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
...
...
src/Gargantext/Components/GraphExplorer.purs
View file @
5e03363b
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment