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
Grégoire Locqueville
purescript-gargantext
Commits
1df15338
Commit
1df15338
authored
5 years ago
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Graph] sigma graph renders now
parent
3408b032
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Graph.purs
src/Gargantext/Components/Graph.purs
+1
-1
Sigmax.purs
src/Gargantext/Hooks/Sigmax.purs
+1
-1
No files found.
src/Gargantext/Components/Graph.purs
View file @
1df15338
...
@@ -57,7 +57,7 @@ graphCpt = R.hooksComponent "Graph" cpt
...
@@ -57,7 +57,7 @@ graphCpt = R.hooksComponent "Graph" cpt
ref <- R.useRef null
ref <- R.useRef null
sigma <- useSigma ref props.sigmaSettings
sigma <- useSigma ref props.sigmaSettings
useCanvasRenderer ref sigma
useCanvasRenderer ref sigma
--
useData sigma props.graph
useData sigma props.graph
useForceAtlas2 sigma props.forceAtlas2Settings
useForceAtlas2 sigma props.forceAtlas2Settings
pure $ RH.div { ref, style: {height: "95%"} } []
pure $ RH.div { ref, style: {height: "95%"} } []
...
...
This diff is collapsed.
Click to expand it.
src/Gargantext/Hooks/Sigmax.purs
View file @
1df15338
...
@@ -94,7 +94,7 @@ createSigma settings = do
...
@@ -94,7 +94,7 @@ createSigma settings = do
ret <$ logStatus ret
ret <$ logStatus ret
where
where
logStatus (Left err) = log2 "[useSigma] Error during sigma creation:" err
logStatus (Left err) = log2 "[useSigma] Error during sigma creation:" err
logStatus
_ = log "[useSigma] Initialised sigma successfully"
logStatus
(Right x) = log2 "[useSigma] Initialised sigma successfully:" x
cleanupSigma :: Sigma -> String -> Effect Unit
cleanupSigma :: Sigma -> String -> Effect Unit
cleanupSigma sigma context = traverse_ kill (readSigma sigma)
cleanupSigma sigma context = traverse_ kill (readSigma sigma)
...
...
This diff is collapsed.
Click to expand it.
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