When adding an overlay to an existing element in a diagram, it's possible to customize its style.
Refer to the style parameter in the create_overlay function for more information.
Use this function to create the correct style structure for an overlay.
create_overlay_style(
font_color = NULL,
font_size = NULL,
fill_color = NULL,
stroke_color = NULL
)The style object of the overlay
The font color of the overlay. It can be any HTML color name or HEX code.
The font size of the overlay. Specify a number in pixels.
The color of the background of the overlay. It can be any HTML color name or HEX code.
The color of the stroke of the overlay. It can be any HTML color name or HEX code.
If you don't want to display a stroke, you can set the color to:
transparent,
the same value as for the fill_color. This increases the padding/margin.