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
Copy file name to clipboardExpand all lines: R/bpmnVisualizationR.R
+18-19Lines changed: 18 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -19,19 +19,19 @@
19
19
#'
20
20
#' @param bpmnXML A file name or 'XML' document or string in 'BPMN' 'XML' format
21
21
#' @param overlays An element or a list of elements to be added to the diagram's existing elements.
22
-
#' Use the \code{create_overlay} function to create an overlay object with content and a relative position.
23
-
#' @param enableDefaultOverlayStyle If no style is set on an overlay, and this parameter is set to \code{TRUE}, the default style will be applied to the overlay.
24
-
#' By default, \code{enableDefaultOverlayStyle} is set to \code{TRUE}.
22
+
#' Use the [`create_overlay`] function to create an overlay object with content and a relative position.
23
+
#' @param enableDefaultOverlayStyle If no style is set on an overlay, and this parameter is set to `TRUE`, the default style will be applied to the overlay.
24
+
#' By default, `enableDefaultOverlayStyle` is set to `TRUE`.
25
25
#' @param width A fixed width for the widget (in CSS units).
26
-
#' The default value is \code{NULL}, which results in intelligent automatic sizing based on the widget's container.
26
+
#' The default value is `NULL`, which results in intelligent automatic sizing based on the widget's container.
27
27
#' @param height A fixed height for the widget (in CSS units).
28
-
#' The default value is \code{NULL}, which results in intelligent automatic sizing based on the widget's container.
28
+
#' The default value is `NULL`, which results in intelligent automatic sizing based on the widget's container.
29
29
#' @param elementId The ID of the 'HTML' element to enclose the widget.
30
30
#' Use an explicit element ID for the widget (rather than an automatically generated one).
31
31
#' This is useful if you have other 'JavaScript' that needs to explicitly
32
32
#' discover and interact with a specific widget instance.
33
33
#'
34
-
#' @returns A \code{bpmnVisualizationR} widget that will intelligently print itself into 'HTML' in a variety of contexts
34
+
#' @returns A `bpmnVisualizationR` widget that will intelligently print itself into 'HTML' in a variety of contexts
35
35
#' including the 'R' console, within 'R Markdown' documents, and within 'Shiny' output bindings.
36
36
#'
37
37
#' @examples
@@ -98,7 +98,7 @@
98
98
#' height='auto'
99
99
#' )
100
100
#'
101
-
#' @seealso \code{\link{create_overlay}} to create an overlay
101
+
#' @seealso [`create_overlay`] to create an overlay
102
102
#'
103
103
#' @import htmlwidgets
104
104
#' @import xml2
@@ -128,18 +128,17 @@ display <- function(
128
128
)
129
129
}
130
130
131
-
#' @title Shiny output binding for the \code{bpmnVisualizationR} 'HTML' widget
131
+
#' @title Shiny output binding for the `bpmnVisualizationR` 'HTML' widget
132
132
#'
133
133
#' @name bpmnVisualizationR-shiny-output
134
134
#' @description
135
-
#' Helper to create output function for using the \code{bpmnVisualizationR} 'HTML' widget within 'Shiny' applications and interactive 'Rmd' documents.
135
+
#' Helper to create output function for using the `bpmnVisualizationR` 'HTML' widget within 'Shiny' applications and interactive 'Rmd' documents.
136
136
#'
137
137
#' @param outputId output variable to read from
138
-
#' @param width,height Must be a valid CSS unit (like \code{'100\%'},
139
-
#' \code{'400px'}, \code{'auto'}) or a number, which will be coerced to a
140
-
#' string and have \code{'px'} appended.
138
+
#' @param width,height Must be a valid CSS unit (like `100%`, `400px`, `auto`) or a number,
139
+
#' which will be coerced to a string and have `px` appended.
141
140
#'
142
-
#' @returns An output function that enables the use of the \code{bpmnVisualizationR} widget within 'Shiny' applications.
141
+
#' @returns An output function that enables the use of the `bpmnVisualizationR` widget within 'Shiny' applications.
#' An overlay can be added to existing elements in the diagram.
71
65
#'
72
-
#' See the \code{overlays} argument in the \code{\link{display}} function.
66
+
#' See the `overlays` argument in the [`display`] function.
73
67
#'
74
68
#' Use this function to create the correct overlay structure.
75
69
#'
76
70
#' @param elementId The bpmn element id to which the overlay will be attached
77
71
#' @param label 'HTML' element to use as an overlay
78
72
#' @param style The style of the overlay.
79
-
#' Use \code{\link{create_overlay_style}} function to create the style object of an overlay and be aware of the `enableDefaultOverlayStyle` parameter in the \code{\link{display}} function.
73
+
#' Use [`create_overlay_style`] function to create the style object of an overlay and be aware of the `enableDefaultOverlayStyle` parameter in the [`display`] function.
80
74
#' @param position The position of the overlay
81
-
#' If the bpmn element where the overlay will be attached is a Shape, use \code{\link{overlay_shape_position}}.
82
-
#' Otherwise, use \code{\link{overlay_edge_position}}.
75
+
#' If the bpmn element where the overlay will be attached is a Shape, use [`overlay_shape_position`].
0 commit comments