-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brush fixes and enhancements #3683
base: main
Are you sure you want to change the base?
Conversation
Sync with the origin
Discard all JS changes; take only R-side functions (mainly to maintain signatures)
double-renders once and for all
I just realized there's actually a system for the alpha version numbers, but I want to be able to easily distinguish my fork from the main branch for the time being.
These have their own pull request now
…remember what all the brush issues were that I was trying to fix
Conflicts: NEWS.md inst/www/shared/shiny-autoreload.js inst/www/shared/shiny-showcase.css inst/www/shared/shiny-showcase.js inst/www/shared/shiny-testmode.js inst/www/shared/shiny.js inst/www/shared/shiny.js.map inst/www/shared/shiny.min.css inst/www/shared/shiny.min.js inst/www/shared/shiny.min.js.map srcts/src/imageutils/createBrush.ts srcts/src/imageutils/createHandlers.ts srcts/types/src/imageutils/createHandlers.d.ts srcts/types/src/utils/index.d.ts
Conflicts: inst/www/shared/shiny.js inst/www/shared/shiny.js.map inst/www/shared/shiny.min.js inst/www/shared/shiny.min.js.map srcts/src/imageutils/createBrush.ts srcts/types/src/imageutils/createBrush.d.ts yarn.lock
I've merged in the latest main, this appears to be working again. The one failure is not the fault of this PR, the latest main commit also fails the 3.5.3 test |
joshuaulrich/xts@1ea13d4 seems to be the source of the 3.5.3 failure--looks like a dependency of a dependency added in an R >= 3.6.0 requirement a few weeks ago. Annoying that the dependency resolution won't take a version of it prior to the explicit R dependency being added. |
@wch is there anything else this would need to get it merged in? I'm aware that this is a pretty huge PR, but it does solve a number of longstanding issues with the "brush" functionality. |
Removing "merge in the fix for R3.5" from the TODO since that doesn't actually seem likely to be fixable given the way that CRAN handles (or really, fails to handle) older versions of packages. Unless someone convinces the |
Does look like there are more commits to main for me to merge in though |
@mjakubczak looks like they updated the CLA and want everyone to re-sign it. Since I based this PR off of yours from three years ago, it looks like they want your signature as well as mine--would you mind doing so? |
@dvg-p4 done ;) |
Thanks! alright, now i just gotta...merge the last two releases of shiny into here, resolve whatever merge conflicts result, and see if I can get the core maintainers to notice me lol |
TODO
Breaking changes
session$resetBrush()
now properly namespaces the brush ID automatically within a module. This breaks previous workarounds, which will now result in a doubly-namespaced brush ID. This function has also been supplemented with the slightly more user-friendlyshiny::resetBrush()
; see details below.New features and improvements
Added
resetBrush()
function for a slightly more user-friendly alternative tosession$resetBrush()
with syntax similar to theupdate*()
functions.Closed Set ggplot2's plot brush programmatically Shiny #1456: Added
updateBrushCoords()
function to programatically update the area brushed on a plot, similar to otherupdate*()
functions. Tested primarily withggplot2
, but may work with reduced functionality with base graphics and images. Seehelp(updateBrushCoords, shiny)
for more details.Bug fixes