Function mergeRects

  • Merge a list of rectangles into a single rectangle. If there are no rectangles to merge, then null is returned. Note that, if a single rectangle is supplied, that same rectangle is returned without copying.

    Parameters

    Returns Rect

    Returns the merged rectangle, or null if there are no input rectangles

  • Parameters

    • rects: []

    Returns null