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
ddedc982
Commit
ddedc982
authored
Dec 04, 2019
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[GRAPH][OPTIM] edgeHovering cause perf issue.
parent
943d280e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Graph.purs
src/Gargantext/Components/Graph.purs
+1
-1
Types.purs
src/Gargantext/Components/GraphExplorer/Types.purs
+4
-2
No files found.
src/Gargantext/Components/Graph.purs
View file @
ddedc982
...
@@ -215,7 +215,7 @@ sigmaSettings =
...
@@ -215,7 +215,7 @@ sigmaSettings =
, drawEdges: true
, drawEdges: true
, drawLabels: true
, drawLabels: true
, drawNodes: true
, drawNodes: true
, enableEdgeHovering:
tru
e
, enableEdgeHovering:
fals
e
, edgeHoverExtremities: true
, edgeHoverExtremities: true
, edgeHoverColor: "edge"
, edgeHoverColor: "edge"
, edgeHoverSizeRatio: 2.0
, edgeHoverSizeRatio: 2.0
...
...
src/Gargantext/Components/GraphExplorer/Types.purs
View file @
ddedc982
...
@@ -62,6 +62,7 @@ newtype MetaData = MetaData
...
@@ -62,6 +62,7 @@ newtype MetaData = MetaData
, legend :: Array Legend
, legend :: Array Legend
, corpusId :: Array Int
, corpusId :: Array Int
, listId :: ListId
, listId :: ListId
, version :: Int
}
}
getLegend :: GraphData -> Maybe (Array Legend)
getLegend :: GraphData -> Maybe (Array Legend)
...
@@ -97,7 +98,7 @@ initialGraphData = GraphData {
...
@@ -97,7 +98,7 @@ initialGraphData = GraphData {
nodes: []
nodes: []
, edges: []
, edges: []
, sides: []
, sides: []
, metaData : Just $ MetaData {title : "", legend : [], corpusId : [], listId : 0}
, metaData : Just $ MetaData {title : "", legend : [], corpusId : [], listId : 0
, version : 0
}
}
}
instance decodeJsonGraphData :: DecodeJson GraphData where
instance decodeJsonGraphData :: DecodeJson GraphData where
...
@@ -134,7 +135,8 @@ instance decodeJsonMetaData :: DecodeJson MetaData where
...
@@ -134,7 +135,8 @@ instance decodeJsonMetaData :: DecodeJson MetaData where
legend <- obj .: "legend"
legend <- obj .: "legend"
corpusId <- obj .: "corpusId"
corpusId <- obj .: "corpusId"
listId <- obj .: "listId"
listId <- obj .: "listId"
pure $ MetaData { title, legend, corpusId, listId}
version <- obj .: "version"
pure $ MetaData { title, legend, corpusId, listId, version}
instance decodeJsonLegend :: DecodeJson Legend where
instance decodeJsonLegend :: DecodeJson Legend where
...
...
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