Commit 0e975a01 authored by Alexandre Delanoë's avatar Alexandre Delanoë

[Charts][ToolBox] Adding Brush options (commented for now).

parent fe0cdfad
...@@ -24,6 +24,7 @@ module Gargantext.Components.Charts.Options.Font ...@@ -24,6 +24,7 @@ module Gargantext.Components.Charts.Options.Font
, MagicType , MagicType
, Save , Save
, Restore , Restore
, Brush
) where ) where
import Prelude (Unit, ($), (<<<), (<>)) import Prelude (Unit, ($), (<<<), (<>))
...@@ -121,8 +122,9 @@ type TooltipOptional = ...@@ -121,8 +122,9 @@ type TooltipOptional =
mkToolBox :: ToolBox mkToolBox :: ToolBox
mkToolBox = { feature: { dataView : { show: true, readOnly : false, title : "Data"} mkToolBox = { feature: { dataView : { show: true, readOnly : false, title : "Data"}
, saveAsImage : { show : true, pixelRatio : 10, title : "Image"} , saveAsImage : { show : true, pixelRatio : 10, title : "Image"}
-- , magicType : { show : true, "type" : ["line", "bar", "pie", "stack", "tiled"], title : "Type"} --, magicType : { show : true, "type" : ["line", "bar", "pie", "stack", "tiled"], title : "Type"}
--, restore : {show : true, title : "Restore"} --, restore : {show : true, title : "Restore"}
--, brush : {"type" : ["rect", "polygon", "lineX", "lineY", "keep", "clear"]}
} }
, orient : "vertical" , orient : "vertical"
} }
...@@ -135,6 +137,7 @@ type Feature = { dataView :: DataView ...@@ -135,6 +137,7 @@ type Feature = { dataView :: DataView
, saveAsImage :: Save , saveAsImage :: Save
--, magicType :: MagicType --, magicType :: MagicType
--, restore :: Restore --, restore :: Restore
--, brush :: Brush
} }
--------------------------------------- ---------------------------------------
...@@ -157,6 +160,7 @@ type DataView = { show :: Boolean ...@@ -157,6 +160,7 @@ type DataView = { show :: Boolean
, title :: String , title :: String
} }
type Brush = { "type" :: Array String }
--------------------------------------- ---------------------------------------
mkTooltip :: forall o. Optional o TooltipOptional => Record o -> Tooltip mkTooltip :: forall o. Optional o TooltipOptional => Record o -> Tooltip
......
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