| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/image-interact-opts.R |
| 3 |
\name{clickOpts} |
| 4 |
\alias{clickOpts} |
| 5 |
\alias{dblclickOpts} |
| 6 |
\alias{hoverOpts} |
| 7 |
\title{Control interactive plot point events} |
| 8 |
\usage{ |
| 9 |
clickOpts(id, clip = TRUE) |
| 10 |
|
| 11 |
dblclickOpts(id, clip = TRUE, delay = 400) |
| 12 |
|
| 13 |
hoverOpts( |
| 14 |
id, |
| 15 |
delay = 300, |
| 16 |
delayType = c("debounce", "throttle"), |
| 17 |
clip = TRUE, |
| 18 |
nullOutside = TRUE |
| 19 |
) |
| 20 |
} |
| 21 |
\arguments{ |
| 22 |
\item{id}{Input value name. For example, if the value is \code{"plot_click"}, |
| 23 |
then the event data will be available as \code{input$plot_click}.} |
| 24 |
|
| 25 |
\item{clip}{Should the click area be clipped to the plotting area? If |
| 26 |
\code{FALSE}, then the server will receive click events even when the mouse is |
| 27 |
outside the plotting area, as long as it is still inside the image.} |
| 28 |
|
| 29 |
\item{delay}{For \code{dblClickOpts()}: the maximum delay (in ms) between a |
| 30 |
pair clicks for them to be counted as a double-click. |
| 31 |
|
| 32 |
For \code{hoverOpts()}: how long to delay (in ms) when debouncing or throttling |
| 33 |
before sending the mouse location to the server.} |
| 34 |
|
| 35 |
\item{delayType}{The type of algorithm for limiting the number of hover |
| 36 |
events. Use \code{"throttle"} to limit the number of hover events to one |
| 37 |
every \code{delay} milliseconds. Use \code{"debounce"} to suspend events |
| 38 |
while the cursor is moving, and wait until the cursor has been at rest for |
| 39 |
\code{delay} milliseconds before sending an event.} |
| 40 |
|
| 41 |
\item{nullOutside}{If \code{TRUE} (the default), the value will be set to |
| 42 |
\code{NULL} when the mouse exits the plotting area. If \code{FALSE}, the |
| 43 |
value will stop changing when the cursor exits the plotting area.} |
| 44 |
} |
| 45 |
\description{ |
| 46 |
These functions give control over the \code{click}, \code{dblClick} and |
| 47 |
\code{hover} events generated by \code{\link[=imageOutput]{imageOutput()}} and \code{\link[=plotOutput]{plotOutput()}}. |
| 48 |
} |
| 49 |
\seealso{ |
| 50 |
\code{\link[=brushOpts]{brushOpts()}} for brushing events. |
| 51 |
} |