packages feed

aivika-experiment-cairo 5.0 → 5.1

raw patch · 2 files changed

+37/−3 lines, 2 filesdep +colourdep +lensdep ~aivika-experimentdep ~aivika-experiment-chartPVP ok

version bump matches the API change (PVP)

Dependencies added: colour, lens

Dependency ranges changed: aivika-experiment, aivika-experiment-chart

API changes (from Hackage documentation)

Files

Simulation/Aivika/Experiment/Chart/Backend/Cairo.hs view
@@ -16,6 +16,11 @@ module Simulation.Aivika.Experiment.Chart.Backend.Cairo        (CairoRenderer(..)) where +import Data.Colour+import Data.Colour.Names++import Control.Lens+ import Graphics.Rendering.Chart import Graphics.Rendering.Chart.Backend.Cairo @@ -34,3 +39,30 @@      renderChart (CairoRenderer format) size =     renderableToFile (FileOptions size format)++  renderingLayout (CairoRenderer _) = defaultLayout+  renderingLayoutLR (CairoRenderer _) = defaultLayoutLR++-- | Default font style.+defaultFontStyle :: FontStyle+defaultFontStyle =+  FontStyle "serif" 13 FontSlantNormal FontWeightNormal (opaque black) ++-- | Default title font style.+defaultTitleFontStyle :: FontStyle+defaultTitleFontStyle =+  FontStyle "serif" 18 FontSlantNormal FontWeightBold (opaque black) ++-- | The default layout.+defaultLayoutLR :: LayoutLR Double Double Double -> LayoutLR Double Double Double+defaultLayoutLR layoutlr =+  layoutlr_title_style .~ defaultTitleFontStyle $+  layoutlr_all_font_styles .~ defaultFontStyle $+  layoutlr++-- | The default layout.+defaultLayout :: Layout Double Double -> Layout Double Double+defaultLayout layout =+  layout_title_style .~ defaultTitleFontStyle $+  layout_all_font_styles .~ defaultFontStyle $+  layout
aivika-experiment-cairo.cabal view
@@ -1,5 +1,5 @@ name:            aivika-experiment-cairo-version:         5.0+version:         5.1 synopsis:        Cairo-based charting backend for the Aivika simulation library description:     This is one of the charting backends for the aivika-experiment-chart [1] package.@@ -25,10 +25,12 @@     exposed-modules: Simulation.Aivika.Experiment.Chart.Backend.Cairo      build-depends:   base >= 3 && < 6,+                     colour >= 2.3.3,+                     lens >= 3.9,                      Chart >= 1.5,                      Chart-cairo >= 1.5,-                     aivika-experiment >= 5.0,-                     aivika-experiment-chart >= 5.0+                     aivika-experiment >= 5.1,+                     aivika-experiment-chart >= 5.1      extensions:      MultiParamTypeClasses