Skip to content

Commit 6186822

Browse files
authored
Update to plotly.js v2.5.1 (#2002)
* update to plotly.js v2.5.1 * new visual baselines
1 parent 5b83c64 commit 6186822

32 files changed

+71
-51
lines changed

NEWS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Breaking changes in JavaScript API
44

5-
* This version of the R package upgrades the version of the underlying plotly.js library from v1.57.1 to v2.2.1. This includes many breaking changes, bug fixes, and improvements to the underlying JavaScript library. The [plotly.js release page](https://github.com/plotly/plotly.js/releases) has the full list of changes.
5+
* This version of the R package upgrades the version of the underlying plotly.js library from v1.57.1 to v2.5.1. This includes many breaking changes, bug fixes, and improvements to the underlying JavaScript library. The [plotly.js release page](https://github.com/plotly/plotly.js/releases) has the full list of changes.
66

77
## Breaking changes in R API
88

R/plotly.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ typedArrayPolyfill <- function() {
479479
plotlyMainBundle <- function() {
480480
htmltools::htmlDependency(
481481
name = "plotly-main",
482-
version = "2.2.1",
482+
version = "2.5.1",
483483
package = "plotly",
484484
src = dependency_dir("plotlyjs"),
485485
script = "plotly-latest.min.js",

R/sysdata.rda

6.04 KB
Binary file not shown.

inst/examples/shiny/event_data/tests/shinytest/mytest-expected/001.json

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
{
22
"input": {
3+
".clientValue-default-plotlyCrosstalkOpts": {
4+
"on": "plotly_click",
5+
"persistent": false,
6+
"dynamic": false,
7+
"selectize": false,
8+
"opacityDim": 0.2,
9+
"selected": {
10+
"opacity": 1
11+
},
12+
"debounce": 0,
13+
"color": [
14+
15+
]
16+
},
17+
"plotly_afterplot-A": "\"plot\"",
318
"plotType": "ggplotly"
419
},
520
"output": {
@@ -443,9 +458,9 @@
443458
},
444459
{
445460
"name": "plotly-htmlwidgets-css",
446-
"version": "2.2.1",
461+
"version": "2.5.1",
447462
"src": {
448-
"href": "plotly-htmlwidgets-css-2.2.1"
463+
"href": "plotly-htmlwidgets-css-2.5.1"
449464
},
450465
"meta": null,
451466
"script": null,
@@ -456,9 +471,9 @@
456471
},
457472
{
458473
"name": "plotly-main",
459-
"version": "2.2.1",
474+
"version": "2.5.1",
460475
"src": {
461-
"href": "plotly-main-2.2.1"
476+
"href": "plotly-main-2.5.1"
462477
},
463478
"meta": null,
464479
"script": "plotly-latest.min.js",

inst/examples/shiny/event_data/tests/shinytest/mytest-expected/002.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,9 @@
460460
},
461461
{
462462
"name": "plotly-htmlwidgets-css",
463-
"version": "2.2.1",
463+
"version": "2.5.1",
464464
"src": {
465-
"href": "plotly-htmlwidgets-css-2.2.1"
465+
"href": "plotly-htmlwidgets-css-2.5.1"
466466
},
467467
"meta": null,
468468
"script": null,
@@ -473,9 +473,9 @@
473473
},
474474
{
475475
"name": "plotly-main",
476-
"version": "2.2.1",
476+
"version": "2.5.1",
477477
"src": {
478-
"href": "plotly-main-2.2.1"
478+
"href": "plotly-main-2.5.1"
479479
},
480480
"meta": null,
481481
"script": "plotly-latest.min.js",

inst/examples/shiny/event_data/tests/shinytest/mytest-expected/003.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -464,9 +464,9 @@
464464
},
465465
{
466466
"name": "plotly-htmlwidgets-css",
467-
"version": "2.2.1",
467+
"version": "2.5.1",
468468
"src": {
469-
"href": "plotly-htmlwidgets-css-2.2.1"
469+
"href": "plotly-htmlwidgets-css-2.5.1"
470470
},
471471
"meta": null,
472472
"script": null,
@@ -477,9 +477,9 @@
477477
},
478478
{
479479
"name": "plotly-main",
480-
"version": "2.2.1",
480+
"version": "2.5.1",
481481
"src": {
482-
"href": "plotly-main-2.2.1"
482+
"href": "plotly-main-2.5.1"
483483
},
484484
"meta": null,
485485
"script": "plotly-latest.min.js",

inst/examples/shiny/event_data/tests/shinytest/mytest-expected/004.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,9 @@
465465
},
466466
{
467467
"name": "plotly-htmlwidgets-css",
468-
"version": "2.2.1",
468+
"version": "2.5.1",
469469
"src": {
470-
"href": "plotly-htmlwidgets-css-2.2.1"
470+
"href": "plotly-htmlwidgets-css-2.5.1"
471471
},
472472
"meta": null,
473473
"script": null,
@@ -478,9 +478,9 @@
478478
},
479479
{
480480
"name": "plotly-main",
481-
"version": "2.2.1",
481+
"version": "2.5.1",
482482
"src": {
483-
"href": "plotly-main-2.2.1"
483+
"href": "plotly-main-2.5.1"
484484
},
485485
"meta": null,
486486
"script": "plotly-latest.min.js",

inst/htmlwidgets/lib/plotlyjs/plotly-latest.min.js

+14-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/_snaps/ggplot-heatmap/heatmap-discrete.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-heatmap/heatmap-midpoint.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-heatmap/heatmap.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-hex/hex-basic.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-hex/hex-bins.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-hex/hex-binwidth.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-histogram/histogram-fill.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-map/map-facet.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-path/path-colors.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-segment/segment-multiple-non-numeric.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-sf/sf-fill-text.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-theme/theme-marker-default.svg

+1-1
Loading

tests/testthat/_snaps/ggplot-tooltip/heatmap-discrete-tooltip.svg

+1-1
Loading

tests/testthat/_snaps/plotly-color/plotly-color-scatterplot-color-numeric-custom.svg

+1-1
Loading

tests/testthat/_snaps/plotly-color/plotly-color-scatterplot-color-numeric.svg

+1-1
Loading

tests/testthat/_snaps/plotly-colorbar/plotly-colorbar-expand.svg

+1-1
Loading

tests/testthat/_snaps/plotly-colorbar/plotly-colorbar-restrict.svg

+1-1
Loading

tests/testthat/_snaps/plotly-colorbar/plotly-colorbar-z-expand.svg

+1-1
Loading

tests/testthat/_snaps/plotly-colorbar/plotly-colorbar-z-restrict.svg

+1-1
Loading

tests/testthat/_snaps/plotly-colorbar/plotly-colorbar.svg

+1-1
Loading

tests/testthat/_snaps/plotly-colorscale/colorramp.svg

+1-1
Loading

tests/testthat/_snaps/plotly-subplot/plotly-subplot-geo-cartesian.svg

+1-1
Loading

tests/testthat/_snaps/plotly/plotly-alpha-blending.svg

+1-1
Loading

tools/update_plotlyjs.R

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ withr::with_dir(tmpdir, {
4343

4444
# build just the main bundle
4545
# (also builds schema and locales)
46+
system("npm update")
4647
system("npm install")
4748
system("npm run bundle")
4849

0 commit comments

Comments
 (0)