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
f1cff044
Commit
f1cff044
authored
Oct 04, 2022
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[GraphExplorer] fix camera so that graph is centered
parent
b1bb7a1c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Resources.purs
src/Gargantext/Components/GraphExplorer/Resources.purs
+1
-1
Types.purs
src/Gargantext/Components/GraphExplorer/Types.purs
+1
-1
No files found.
src/Gargantext/Components/GraphExplorer/Resources.purs
View file @
f1cff044
...
...
@@ -153,7 +153,7 @@ drawGraphCpt = R.memo' $ here.component "graph" cpt where
-- Default camera: slightly de-zoom the graph to avoid
-- nodes sticking to the container borders
Nothing ->
Sigma.updateCamera sig { ratio: 1.1, x: 0.
0, y: 0.0
}
Sigma.updateCamera sig { ratio: 1.1, x: 0.
5, y: 0.5
}
-- Reload Sigma on Theme changes
-- TODO
...
...
src/Gargantext/Components/GraphExplorer/Types.purs
View file @
f1cff044
...
...
@@ -51,7 +51,7 @@ instance JSON.ReadForeign Node where
Record.rename idP id_P $
Record.rename typeP type_P $
Record.rename x_coordP xP $
Record.rename y_coordP yP inst
Record.rename y_coordP yP
$
inst
instance JSON.WriteForeign Node where
writeImpl (Node nd) = JSON.writeImpl $
Record.rename id_P idP $
...
...
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