• Draws a shield with a diamond background

    Parameters

    • fillColor: string

      Color of diamond background fill

    • strokeColor: string

      Color of diamond outline stroke

    • textColor: string

      Color of text (defaults to strokeColor)

    • radius: number

      Corner radius of diamond (defaults to 2)

    • rectWidth: number

      Width of diamond (defaults to variable-width)

    Returns Partial<ShieldDefinition>

    a shield definition object

Generated using TypeDoc