• Draws domain rectangles for query and subject regions.

    Parameters

    • startPixels: number

      The domain's starting pixel position.

    • endPixels: number

      The domain's ending pixel position.

    • topPadding: number

      The top padding for positioning.

    • fill: string

      The fill color for the domain rectangles.

    Returns fabric.Rect

    A tuple containing the Fabric.js rectangle objects.