chart-svg-0.2.1: Charting library targetting SVGs.
Safe HaskellNone
LanguageHaskell2010

Chart.Reanimate

Description

Integration of reanimate and chart-svg

Synopsis

Documentation

data ReanimateConfig Source #

Instances

Instances details
Eq ReanimateConfig Source # 
Instance details

Defined in Chart.Reanimate

Show ReanimateConfig Source # 
Instance details

Defined in Chart.Reanimate

Generic ReanimateConfig Source # 
Instance details

Defined in Chart.Reanimate

Associated Types

type Rep ReanimateConfig :: Type -> Type #

type Rep ReanimateConfig Source # 
Instance details

Defined in Chart.Reanimate

type Rep ReanimateConfig = D1 ('MetaData "ReanimateConfig" "Chart.Reanimate" "chart-svg-0.2.1-FFi0NOBdO1foP7qbjGvqx" 'False) (C1 ('MetaCons "ReanimateConfig" 'PrefixI 'True) ((S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "background") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "globalFontFamily") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "globalFontStyle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FontStyle)) :*: S1 ('MetaSel ('Just "globalAlignment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Alignment)))))

chartReanimate :: ChartSvg -> ChartReanimate Source #

Render a ChartSvg to Trees, the fitted chart viewbox, and the suggested SVG dimensions

groupTreeA :: ReanimateConfig -> (Double -> ChartSvg) -> Double -> Tree Source #

create a Tree maker from a duration, and a chartsvg maker.

tree :: Chart Double -> Tree Source #

convert a Chart to a Tree

toPixelRGBA8 :: Colour -> PixelRGBA8 Source #

Convert to reanimate color primitive.

fromFile :: FilePath -> IO Tree Source #

import a Tree from a file

translateDA :: HasDrawAttributes s => Point Double -> s -> s Source #

A DrawAttributes to translate by a Point.

scaleDA :: HasDrawAttributes s => Point Double -> s -> s Source #

A DrawAttributes to translate by a Point.