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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Christian Merten
purescript-gargantext
Commits
a5d78f02
Verified
Commit
a5d78f02
authored
Jan 13, 2023
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[graph] rendering of graph snapshot works now
parent
b6af6fe8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
Resources.purs
src/Gargantext/Components/GraphExplorer/Resources.purs
+14
-11
No files found.
src/Gargantext/Components/GraphExplorer/Resources.purs
View file @
a5d78f02
...
@@ -154,19 +154,20 @@ drawGraphCpt = here.component "drawGraph" cpt where
...
@@ -154,19 +154,20 @@ drawGraphCpt = here.component "drawGraph" cpt where
, showEdges: showEdges' }
, showEdges: showEdges' }
-- here.log2 "[graph] startForceAtlas" startForceAtlas
-- here.log2 "[graph] startForceAtlas" startForceAtlas
if startForceAtlas' then
case R.readRef fa2Ref of
case R.readRef fa2Ref of
Nothing -> do
Nothing -> do
fa2 <- ForceAtlas2.init (Sigma.graph sig) fa2Settings
fa2 <- ForceAtlas2.init (Sigma.graph sig) fa2Settings
R.setRef fa2Ref (Just fa2)
if startForceAtlas' then do
ForceAtlas2.start fa2
ForceAtlas2.start fa2
R.setRef fa2Ref (Just fa2)
else do
Just _fa2 -> do
pure unit
-- TODO Kill and restart? Maybe check fa2.graph first? Should be equal to sigma.graph
Just fa2 -> do
-- TODO Kill and restart? Maybe check fa2.graph first? Should be equal to sigma.graph
if startForceAtlas' then
pure unit
pure unit
else
else
case R.readRef fa2Ref of
ForceAtlas2.stop fa2
Nothing -> pure unit
Just fa2 -> ForceAtlas2.stop fa2
case R.readRef noverlapRef of
case R.readRef noverlapRef of
Nothing -> do
Nothing -> do
...
@@ -228,6 +229,8 @@ drawGraphCpt = here.component "drawGraph" cpt where
...
@@ -228,6 +229,8 @@ drawGraphCpt = here.component "drawGraph" cpt where
case Tuple forceAtlasState' graphStage' of
case Tuple forceAtlasState' graphStage' of
--Tuple SigmaxTypes.InitialLoading GET.Ready -> updateGraph
--Tuple SigmaxTypes.InitialLoading GET.Ready -> updateGraph
-- forceatlas can be stopped initially for eg graph snapshots
Tuple SigmaxTypes.InitialStopped GET.Ready -> updateGraph
Tuple SigmaxTypes.InitialRunning GET.Ready -> updateGraph
Tuple SigmaxTypes.InitialRunning GET.Ready -> updateGraph
Tuple SigmaxTypes.Paused GET.Ready -> updateGraph
Tuple SigmaxTypes.Paused GET.Ready -> updateGraph
...
...
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