• Draws a hit transparent box.

    Parameters

    • startPixels: number

      The starting pixel position.

    • endPixels: number

      The ending pixel position.

    • topPadding: number

      The top padding for positioning.

    • fill: string

      The fill color for the box.

    • height: number

      The height of the box.

    Returns fabric.Rect

    A Fabric.js rectangle object.