mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
Respect pixelratio (retina) when redrawing cached images
This commit is contained in:
@@ -149,7 +149,7 @@ resizeSavedPlot <- function(name, session, result, width, height, pixelratio, re
|
||||
outfile <- plotPNG(function() {
|
||||
grDevices::replayPlot(result$recordedPlot)
|
||||
coordmap <<- getCoordmap(result$plotResult, width, height, pixelratio, res)
|
||||
}, width = width, height = height, res = res)
|
||||
}, width = width*pixelratio, height = height*pixelratio, res = res*pixelratio)
|
||||
on.exit(unlink(outfile), add = TRUE)
|
||||
|
||||
img <- list(
|
||||
|
||||
Reference in New Issue
Block a user