Commit ddedc982 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[GRAPH][OPTIM] edgeHovering cause perf issue.

parent 943d280e
...@@ -215,7 +215,7 @@ sigmaSettings = ...@@ -215,7 +215,7 @@ sigmaSettings =
, drawEdges: true , drawEdges: true
, drawLabels: true , drawLabels: true
, drawNodes: true , drawNodes: true
, enableEdgeHovering: true , enableEdgeHovering: false
, edgeHoverExtremities: true , edgeHoverExtremities: true
, edgeHoverColor: "edge" , edgeHoverColor: "edge"
, edgeHoverSizeRatio: 2.0 , edgeHoverSizeRatio: 2.0
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment