• Draws a shield with a rectangle background

    Parameters

    • fillColor: string

      Color of rectangle background fill

    • strokeColor: string

      Color of rectangle outline stroke

    • textColor: string

      Color of text (defaults to strokeColor)

    • rectWidth: number

      Width of rectangle (defaults to variable-width)

    • radius: number

      Corner radius of rectangle (defaults to 2)

    Returns Partial<ShieldDefinition>

    a shield definition object

Generated using TypeDoc