Skip to contents

Used by module Reset buttons, so a dragged legend, annotation, axis title or colorbar goes back to where the rebuilt figure puts it. The store's fields are reactive values, so they are cleared in place; reassigning the list returned by setup_manual_edits() would only change a local copy.

Usage

reset_manual_edits(store)

Arguments

store

The list returned by setup_manual_edits().

Value

Invisibly NULL; called for its side effect.

Author

Jared Andrews

Examples

if (FALSE) { # \dontrun{
# Inside a module's observeEvent(input$reset, ...):
manual_edits <- setup_manual_edits(input, session, plot_source)
reset_manual_edits(manual_edits)
} # }