You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For on hover events, one needs to modify the function updatePixelPosition() in EBImage/htmlwidgets/lib/viewer/viewer.js by adding the line Shiny.setInputValue("pixelPosition", pixelPos);
at the end of the function. This will make the mouse pixel coordinates available in the variable input$pixelPosition. Similarly, one can get the current frame by adding Shiny.setInputValue("currentFrame", currentFrame);
to setFrame() and the image dimensions with:
in reset().
The mouse click function is already used for panning so to get the mouse position in pixel coordinates, one needs to add Shiny.setInputValue("pixelPosition", viewer.getPixelPosition(event));
to the function grabImage().
Hi,
Just wondering if there is the capability in the shiny binding to get the location of the cursor as with plotOutput:
plotOutput("plot1", click = "plot_click", dblclick = "plot_dblclick", hover = "plot_hover", brush = "plot_brush" ),
Which are then available via input$plot_click etc. I can't see anything in the docs, so maybe this is a feature request?
The text was updated successfully, but these errors were encountered: