Skip to content

Commit 84bc076

Browse files
committed
improve example
1 parent 74cb9a4 commit 84bc076

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

R/bpmnVisualizationR.R

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,16 @@
4242
#' bpmnVisualizationR::display(bpmn_file, width='auto', height='auto')
4343
#'
4444
#' # Display the BPMN diagram featuring overlays with their default positions and styles
45+
#' overlays <- list(
46+
#' bpmnVisualizationR::create_overlay("start_event_1_1", "42"),
47+
#' bpmnVisualizationR::create_overlay("sequence_flow_1_1", "42"),
48+
#' bpmnVisualizationR::create_overlay("task_1_1", "9"),
49+
#' bpmnVisualizationR::create_overlay("sequence_flow_1_2", "8"),
50+
#' bpmnVisualizationR::create_overlay("call_activity_1_1", "7")
51+
#' )
4552
#' bpmnVisualizationR::display(
4653
#' bpmn_file,
47-
#' list(
48-
#' bpmnVisualizationR::create_overlay("start_event_1_1", "42"),
49-
#' bpmnVisualizationR::create_overlay("sequence_flow_1_1", "42"),
50-
#' bpmnVisualizationR::create_overlay("task_1_1", "9"),
51-
#' bpmnVisualizationR::create_overlay("sequence_flow_1_2", "8"),
52-
#' bpmnVisualizationR::create_overlay("call_activity_1_1", "7")
53-
#' ),
54+
#' overlays,
5455
#' width='auto',
5556
#' height='auto'
5657
#' )

man/display.Rd

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)