Skip to content

Commit

Permalink
Update the documentation for the overlay position
Browse files Browse the repository at this point in the history
  • Loading branch information
csouchet committed Sep 11, 2023
1 parent 62d9663 commit c51164c
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 13 deletions.
22 changes: 19 additions & 3 deletions R/funs.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#' @description
#' To specify the position when creating an overlay object that will be attached to BPMN \code{Shape} elements in the diagram.
#'
#' \code{overlay_shape_position} includes the following positions:
#' @section \code{overlay_shape_position} includes the following positions:
#'
#' - \code{"top-left"}
#' - \code{"top-right"}
Expand All @@ -14,8 +14,16 @@
#' - \code{"middle-left"}
#' - \code{"middle-right"}
#'
#' @details
#' Use these constants as the \code{position} argument in the \code{\link{create_overlay}} function.
#'
#' @examples
#' # Create an overlay at the top-left corner of a shape
#' overlay <- create_overlay(elementId = 1, label = "My label", position = overlay_shape_position[1])
#'
#' @seealso
#' \code{\link{create_overlay}}
#'
#' @export
overlay_shape_position <-
c(
Expand All @@ -34,13 +42,21 @@ overlay_shape_position <-
#' @description
#' To specify the position when creating an overlay object that will be attached to BPMN \code{Edge} elements in the diagram.
#'
#' \code{overlay_edge_position} includes the following positions:
#' @section \code{overlay_edge_position} includes the following positions:
#' - \code{"start"}
#' - \code{"end"}
#' - \code{"middle"}
#'
#' @details
#' Use these constants as the \code{position} argument in the \code{\link{create_overlay}} function.
#'
#'
#' @examples
#' # Create an overlay at the starting point of an edge
#' overlay <- create_overlay(elementId = 1, label = "My label", position = overlay_edge_position[1])
#'
#' @seealso
#' \code{\link{create_overlay}}
#'
#' @export
overlay_edge_position <- c("start", "end", "middle")

Expand Down
4 changes: 2 additions & 2 deletions man/create_overlay.Rd

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

8 changes: 4 additions & 4 deletions man/create_overlay_style.Rd

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

15 changes: 13 additions & 2 deletions man/overlay_edge_position.Rd

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

15 changes: 13 additions & 2 deletions man/overlay_shape_position.Rd

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

0 comments on commit c51164c

Please sign in to comment.