• Draws domain rectangles.

    Parameters

    • startPixels: number

      The starting pixel position.

    • endPixels: number

      The ending pixel position.

    • topPadding: number

      The top padding for positioning.

    • color: string

      The color of the domain rectangles.

    Returns fabric.Rect

    A Fabric.js rectangle object.