Skip to content

Commit

Permalink
Edit clear selection button to address #46
Browse files Browse the repository at this point in the history
  • Loading branch information
tsostarics committed May 15, 2024
1 parent 6059f5d commit 4bb282d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/editor_local.R
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,8 @@ openEditor <- function(
# Temporary button to clear the selection, see issue #46
observeEvent(input$clearSelectButton, {
session$resetBrush('plot_brush')
shinyjs::runjs('document.getElementById("pulsePlot_brush").remove()')

})

########################################################
Expand Down Expand Up @@ -813,7 +815,7 @@ openEditor <- function(
plotFlag$value # Needed to update whenever the data.table updates in place
if (is.null(loadedFile$data))
return(NULL)

# browser()

# These will update when the user changes the color manually with the
# color pickers or if the theme is changed.
Expand Down Expand Up @@ -973,6 +975,7 @@ openEditor <- function(
if (is.null(loadedFile$data))
return(NULL)


clickedPoint <- shiny::nearPoints(loadedFile$data[loadedFile$data[[input$filenameColumnInput]] %in% fileHandler$filenames[fileHandler$isPlotted],],
input$plot_click,
xvar = input$xValColumnInput,
Expand Down

0 comments on commit 4bb282d

Please sign in to comment.