Skip to content

Commit

Permalink
CRAN clean
Browse files Browse the repository at this point in the history
  • Loading branch information
bthieurmel committed Dec 22, 2016
1 parent 4b02c9a commit 49a0571
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion R/visInteraction.R
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ visInteraction <- function(graph,
selectConnectedEdges = NULL,
tooltipDelay = NULL,
tooltipStay = 300,
tooltipStyle = 'position: fixed;visibility:hidden;padding: 5px;white-space: nowrap;font-family: verdana;font-size:14px;font-color:#000000;background-color: #f5f4ed;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;border: 1px solid #808074;box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);',
tooltipStyle = NULL,
zoomView = NULL){


Expand Down Expand Up @@ -116,6 +116,9 @@ visInteraction <- function(graph,
if(length(interaction) > 0){
graph$x$options$interaction <- mergeLists(graph$x$options$interaction, interaction)
}
if(is.null(tooltipStyle)){
tooltipStyle <- 'position: fixed;visibility:hidden;padding: 5px;white-space: nowrap;font-family: verdana;font-size:14px;font-color:#000000;background-color: #f5f4ed;-moz-border-radius: 3px;-webkit-border-radius: 3px;border-radius: 3px;border: 1px solid #808074;box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);'
}
x <- list(tooltipStay = tooltipStay, tooltipStyle = tooltipStyle)
graph$x <- mergeLists(graph$x, x)
}
Expand Down
2 changes: 1 addition & 1 deletion R/visLegend.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
#' visNetwork(nodes, edges) %>%
#' visGroups(groupname = "A", color = "red") %>%
#' visGroups(groupname = "B", color = "lightblue") %>%
#' visLegend(addNodes = lnodes, useGroups = T, ncol = 2)
#' visLegend(addNodes = lnodes, useGroups = TRUE, ncol = 2)
#'
#' # for more complex option, you can use a list(of list...)
#' # or a data.frame with specific notaion
Expand Down
3 changes: 1 addition & 2 deletions man/visInteraction.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/visLegend.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 49a0571

Please sign in to comment.