@americana/maplibre-shield-generator
    Preparing search index...

    Function pentagonUpShield

    • Draws a shield with a pentagon background, pointed upward

      Parameters

      • yOffset: number

        Height of diagonal edges

      • sideAngle: number

        Angle (in degrees) at which sides deviate from vertical

      • fillColor: string

        Color of pentagon background fill

      • strokeColor: string

        Color of pentagon outline stroke

      • textColor: string

        Color of text (defaults to strokeColor)

      • radius1: number

        Corner radius of pointed side of pentagon (defaults to 2)

      • radius2: number

        Corner radius of flat side of pentagon (defaults to 0)

      • rectWidth: number

        Width of pentagon (defaults to variable-width)

      Returns Partial<ShieldDefinition>

      a shield definition object