vega-view 0.3.1.5 → 0.3.1.6
raw patch · 3 files changed
+18/−6 lines, 3 files
Files
- ChangeLog.md +9/−0
- app/Main.hs +7/−4
- vega-view.cabal +2/−2
ChangeLog.md view
@@ -1,5 +1,14 @@ # Changelog for vega-view +## 0.3.1.6++Update to Vega Lite version 4 and drop the version requirement on+Vega Embed (Javascript libraries).++Directory listing now has a scroll bar so that it doesn't extend beyond+the bottom of the page (ish), which makes it much easier when flipping+between in-line visualizations.+ ## 0.3.1.5 Report that an error occurred when the embed option failed, which is
app/Main.hs view
@@ -74,7 +74,7 @@ toJS = (H.script ! A.type_ "text/javascript") . mconcat --- Represent a Vega or Vega-Lite sepcification, which has+-- Represent a Vega or Vega-Lite specification, which has -- to be a Javascript object. Other than checking that we -- have an object, there is no other validation of the -- JSON.@@ -662,6 +662,9 @@ , "#visualizations { " , "float: left; " , "margin-right: 1em; "+ , "width: 20em; " -- seem to need this+ , "height: 80vh; " -- guess that 80% is sensible+ , "overflow-y: auto; " , "} " , "#visualizations h2 { " , "margin-bottom: 0; "@@ -778,12 +781,12 @@ vegaEmbed :: H.Html vegaEmbed = let load n = H.script ! A.src (mconcat [ "https://cdn.jsdelivr.net/npm/"- , n])+ , n ]) in do load "vega@5" ""- load "vega-lite@3" ""- load "vega-embed@4" ""+ load "vega-lite@4" ""+ load "vega-embed" "" pageCSS :: H.Html
vega-view.cabal view
@@ -1,5 +1,5 @@ name: vega-view-version: 0.3.1.5+version: 0.3.1.6 synopsis: Easily view Vega or Vega-Lite visualizations. description: A web server that is used to view all the Vega and Vega-Lite specifications in a directory, or sub-directory. It is similar@@ -12,7 +12,7 @@ bug-reports: https://github.com/DougBurke/vega-view/issues author: Douglas Burke maintainer: dburke.gw@gmail.com-copyright: 2019 Douglas Burke+copyright: 2019, 2020 Douglas Burke license: BSD3 license-file: LICENSE build-type: Simple