-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature: Highlight and Enlarge points #123
base: main
Are you sure you want to change the base?
Feature: Highlight and Enlarge points #123
Conversation
a05cf48
to
9872622
Compare
9872622
to
b393221
Compare
Hi @casperhart, I finally managed to clean up all the PRs with demos. This PR introduces,
The demo is located at |
force_rerender <- function(proxy) { | ||
proxy$session$sendCustomMessage("clear-enlarge", list(id = proxy$id)) | ||
return(proxy) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additional function to call render on the scene
#' | ||
#' @param proxy proxy object created by \code{\link{display_scatter_proxy}} | ||
#' @param point_list Numeric vector. indexes to highlight in the prinary dataset | ||
#' @param alpha The transparency value of the points outside of the point_list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The alpha
parameter points towards the alpha of the points outside because the points given by the id list will have an alpha of 1
@@ -1,5 +1,5 @@ | |||
export const VERTEX_SHADER_2D = ` | |||
uniform float size; | |||
attribute float size; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made changes to the vertex shader to be able to change the size as an attribute
Depends on: #122
Changes:
enlarge_points
andhighlight_points
through a proxyclear_*
to clear points, edges, highlights and enlarge through a proxy