From c50042553080d4d004a58a760f5f67588df1d2c4 Mon Sep 17 00:00:00 2001 From: timelyportfolio Date: Thu, 17 Mar 2016 21:19:09 -0500 Subject: [PATCH 1/2] solution for #463 plotly in ioslides --- inst/htmlwidgets/lib/plotlyjs/plotly-htmlwidgets.css | 9 +++++++++ inst/htmlwidgets/plotly.yaml | 1 + 2 files changed, 10 insertions(+) create mode 100644 inst/htmlwidgets/lib/plotlyjs/plotly-htmlwidgets.css diff --git a/inst/htmlwidgets/lib/plotlyjs/plotly-htmlwidgets.css b/inst/htmlwidgets/lib/plotlyjs/plotly-htmlwidgets.css new file mode 100644 index 0000000000..f35906d52c --- /dev/null +++ b/inst/htmlwidgets/lib/plotlyjs/plotly-htmlwidgets.css @@ -0,0 +1,9 @@ +/* +just here so that plotly works +correctly with ioslides. +see https://github.com/ropensci/plotly/issues/463 +*/ + +slide:not(.current) .plotly.html-widget{ + display: none; +} diff --git a/inst/htmlwidgets/plotly.yaml b/inst/htmlwidgets/plotly.yaml index 05da1f0eb4..381a0f4a07 100644 --- a/inst/htmlwidgets/plotly.yaml +++ b/inst/htmlwidgets/plotly.yaml @@ -3,3 +3,4 @@ dependencies: version: 1.6.1 src: "htmlwidgets/lib/plotlyjs" script: plotly-latest.min.js + stylesheet: plotly-htmlwidgets.css From 60bf6f9862d067418c319bbd80f0fab6d76d2178 Mon Sep 17 00:00:00 2001 From: Carson Sievert Date: Sat, 19 Mar 2016 17:18:41 +1100 Subject: [PATCH 2/2] bump versio; update news --- DESCRIPTION | 2 +- NEWS | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 13936cc4c7..30e6b9d6fd 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: plotly Title: Create Interactive Web Graphics via 'plotly.js' -Version: 3.4.6 +Version: 3.4.7 Authors@R: c(person("Carson", "Sievert", role = c("aut", "cre"), email = "cpsievert1@gmail.com"), person("Chris", "Parmer", role = c("aut", "cph"), diff --git a/NEWS b/NEWS index 24e8ca2ae6..5780565cab 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,9 @@ +3.4.7 -- 19 Mar 2016 + +BUGFIX: + +* Added custom CSS which allows plotly to work nicely in ioslides. + 3.4.6 -- 17 Mar 2016 NEW FEATURES: