• Calculates the pixel coordinates for a domain region.

    Parameters

    • startPixels: number

      The starting pixel position.

    • endPixels: number

      The ending pixel position.

    • hitLen: number

      The length of the hit.

    • startDomain: number

      The starting position of the domain.

    • endDomain: number

      The ending position of the domain.

    • marginWidth: number

      The width of the margin.

    Returns [number, number]

    An array containing the start and end pixel coordinates for the domain.