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
152
Issues
152
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
832e8add
Unverified
Commit
832e8add
authored
Oct 08, 2018
by
Nicolas Pouillard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[GraphExplorer] mount the Sigma component only once
parent
fe72f3d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
21 deletions
+20
-21
Graph.purs
src/Gargantext/Pages/Corpus/Doc/Facets/Graph.purs
+20
-21
No files found.
src/Gargantext/Pages/Corpus/Doc/Facets/Graph.purs
View file @
832e8add
...
@@ -107,12 +107,12 @@ render d p (State s) c =
...
@@ -107,12 +107,12 @@ render d p (State s) c =
, option [value "imtNew.json"] [text "imtNew.json"]
, option [value "imtNew.json"] [text "imtNew.json"]
-- , option [value "exemplePhyloBipartite.gexf"] [text "exemplePhyloBipartite.gexf"]
-- , option [value "exemplePhyloBipartite.gexf"] [text "exemplePhyloBipartite.gexf"]
]
]
]
, sigma
<>
{ graph:
-- TODO cleanup
case s.sigmaGraphData of
case s.sigmaGraphData of
Nothing -> []
Nothing -> SigmaGraphData {nodes: [], edges: []}
Just gData ->
Just gData -> gData
[ sigma { graph: gData
, renderer : canvas
, renderer : canvas
, settings : mySettings
, settings : mySettings
, style : sStyle { height : "95%"}
, style : sStyle { height : "95%"}
...
@@ -126,9 +126,8 @@ render d p (State s) c =
...
@@ -126,9 +126,8 @@ render d p (State s) c =
, forceAtlas2 forceAtlas2Config
, forceAtlas2 forceAtlas2Config
, edgeShapes {"default" : edgeShape.curve}
, edgeShapes {"default" : edgeShape.curve}
]
]
, dispLegend s.legendData
]
]
<>
[dispLegend s.legendData]
forceAtlas2Config :: { slowDown :: Number
forceAtlas2Config :: { slowDown :: Number
, startingIterations :: Number
, startingIterations :: Number
...
...
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