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
9bc014df
Commit
9bc014df
authored
Apr 28, 2022
by
arturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[graph] Edges update
*
#375
: rc7.x
parent
8377dbf5
Pipeline
#2772
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Resources.purs
src/Gargantext/Components/GraphExplorer/Resources.purs
+7
-5
No files found.
src/Gargantext/Components/GraphExplorer/Resources.purs
View file @
9bc014df
...
...
@@ -66,7 +66,6 @@ drawGraphCpt = R.memo' $ here.component "graph" cpt where
graph' <- R2.useLive' graph
startForceAtlas' <- R2.useLive' startForceAtlas
hyperdataGraph' <- R2.useLive' hyperdataGraph
selectedNodeIds' <- R2.useLive' selectedNodeIds
-- | Hooks
-- |
...
...
@@ -143,9 +142,12 @@ drawGraphCpt = R.memo' $ here.component "graph" cpt where
_ -> pure unit
-- Stage ready
-- (?) Probably this can be optimized to re-mark selected nodes only when
-- they changed → done on #375
R.useEffect1' selectedNodeIds' case graphStage' of
--
-- @TODO Probably this can be optimized to re-mark selected nodes only when
-- they changed → one solution could be to list every effects subject
-- to a graph transformation (eg. "showLouvain", "edgeConfluence",
-- etc) // drawback: don't forget to modify the effect white-list
R.useEffect' case graphStage' of
GET.Ready -> do
let tEdgesMap = SigmaxTypes.edgesGraphMap transformedGraph
...
...
@@ -156,7 +158,7 @@ drawGraphCpt = R.memo' $ here.component "graph" cpt where
Sigmax.updateEdges sigma tEdgesMap
Sigmax.updateNodes sigma tNodesMap
let edgesState = not $ SigmaxTypes.edgeStateHidden showEdges'
here.log2 "[graphCpt] edgesState" edgesState
--
here.log2 "[graphCpt] edgesState" edgesState
Sigmax.setEdges sigma edgesState
_ -> pure unit
...
...
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