File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ This is minor patch release with a few minor bug fixes and updates test expectat
4
4
5
5
## BUG FIXES
6
6
7
- * ` plot_mapbox() ` now correctly defaults to a scattermapbox trace (unless z is present, then it defaults to choroplethmapbox) (#1702 ).
7
+ * Fixes rendering issues non-HTML ** rmarkdown** output formats, which was introduced in the 4.9.2 release (#1702 ).
8
+ * ` plot_mapbox() ` now correctly defaults to a scattermapbox trace (unless z is present, then it defaults to choroplethmapbox) (#1707 ).
8
9
* ` ggplotly() ` now correctly resolves overlapping axis tick text in ` coord_sf() ` (#1673 ).
9
10
* A false-positive warning is no longer thrown when attempting to cast ` toWebGL() ` (#1569 ).
10
11
Original file line number Diff line number Diff line change @@ -430,7 +430,7 @@ as_widget <- function(x, ...) {
430
430
# we shouldn't need it because Object.setPrototypeOf() is pretty widely supported
431
431
# https://github.com/plotly/plotly.js/issues/4556#issuecomment-583061419
432
432
# https://caniuse.com/#search=setPrototypeOf
433
- if (isTRUE(getOption( " shiny.testmode " ) )) {
433
+ if (needsPrototypePolyfill( )) {
434
434
list (setPrototypeOfPolyfill())
435
435
},
436
436
list (typedArrayPolyfill()),
@@ -441,6 +441,18 @@ as_widget <- function(x, ...) {
441
441
)
442
442
}
443
443
444
+ needsPrototypePolyfill <- function () {
445
+ if (isTRUE(getOption(" shiny.testmode" ))) {
446
+ return (TRUE )
447
+ }
448
+
449
+ if (isTRUE(getOption(" knitr.in.progress" ))) {
450
+ return (! knitr :: is_html_output())
451
+ }
452
+
453
+ return (FALSE )
454
+ }
455
+
444
456
setPrototypeOfPolyfill <- function () {
445
457
htmltools :: htmlDependency(
446
458
name = " setprototypeof" ,
You can’t perform that action at this time.
0 commit comments