packages feed

aivika-experiment-diagrams 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/Diagrams.hs view
@@ -18,8 +18,13 @@        (DiagramsRenderer(..)) where  import System.FilePath+ import Data.Map+import Data.Colour+import Data.Colour.Names +import Control.Lens+ import Graphics.Rendering.Chart import Graphics.Rendering.Chart.Backend.Diagrams @@ -42,3 +47,30 @@      renderChart (DiagramsRenderer format fonts) (width, height) =     renderableToFile (FileOptions (fromIntegral width, fromIntegral height) format fonts)++  renderingLayout (DiagramsRenderer _ _) = defaultLayout+  renderingLayoutLR (DiagramsRenderer _ _) = defaultLayoutLR++-- | Default font style.+defaultFontStyle :: FontStyle+defaultFontStyle =+  FontStyle "serif" 16 FontSlantNormal FontWeightNormal (opaque black) ++-- | Default title font style.+defaultTitleFontStyle :: FontStyle+defaultTitleFontStyle =+  FontStyle "serif" 20 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-diagrams.cabal view
@@ -1,5 +1,5 @@ name:            aivika-experiment-diagrams-version:         5.0+version:         5.1 synopsis:        Diagrams-based charting backend for the Aivika simulation library description:     This is one of the charting backends for the aivika-experiment-chart [1] package.@@ -27,10 +27,12 @@     build-depends:   base >= 3 && < 6,                      containers >= 0.4.0.0,                      filepath >= 1.3.0.0,+                     colour >= 2.3.3,+                     lens >= 3.9,                      Chart >= 1.5,                      Chart-diagrams >= 1.5,-                     aivika-experiment >= 5.0,-                     aivika-experiment-chart >= 5.0+                     aivika-experiment >= 5.1,+                     aivika-experiment-chart >= 5.1      extensions:      MultiParamTypeClasses