Skip to contents

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.

Usage

create_overlay_style(
  font_color = NULL,
  font_size = NULL,
  fill_color = NULL,
  stroke_color = NULL
)

Arguments

font_color

The font color of the overlay. It can be any HTML color name or HEX code.

font_size

The font size of the overlay. Specify a number in pixels.

fill_color

The color of the background of the overlay. It can be any HTML color name or HEX code.

stroke_color

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.

Value

The style object of the overlay