create_overlay | R Documentation |
An overlay can be added to existing elements in the diagram.
See the overlays
argument in the display
function.
Use this function to create the correct overlay structure.
create_overlay(elementId, label, style = NULL, position = NULL)
elementId |
The bpmn element id to which the overlay will be attached |
label |
'HTML' element to use as an overlay |
style |
The style of the overlay.
Use |
position |
The position of the overlay
If the bpmn element where the overlay will be attached is a Shape, use |
An overlay object
# Example 1: Create an overlay with shape position "top-left"
overlay_style <- create_overlay_style(
font_color = 'DarkSlateGray',
font_size = 23,
fill_color = 'MistyRose',
stroke_color = 'Red'
)
overlay <- create_overlay(
"my-shape-id",
"My Overlay Label",
style = overlay_style,
position = overlay_shape_position[1]
)
# Example 2: Create an overlay with edge position "end"
overlay_style <- create_overlay_style(
font_color = 'DarkSlateGray',
font_size = 23,
fill_color = 'MistyRose',
stroke_color = 'Red'
)
overlay <- create_overlay(
"my-edge-id",
"My Overlay Label",
style = overlay_style,
position = overlay_edge_position[2]
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.