• Draws a shield with a triangle background, pointed downward

    Parameters

    • fillColor: string

      Color of triangle background fill

    • strokeColor: string

      Color of triangle outline stroke

    • textColor: string

      Color of text (defaults to strokeColor)

    • radius: number

      Corner radius of triangle (defaults to 2)

    • rectWidth: number

      Width of triangle (defaults to variable-width)

    Returns Partial<ShieldDefinition>

    a shield definition object

Generated using TypeDoc