SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function subtractRect

    • Breaks the outer rect into 1-4 parts based on the inner rect. If the inner rect doesn't intersect then a 0 length array will be returned.

      Parameters

      • rectOuter: Rectangle

        The outer rectangle.

      • rectInner: Rectangle

        The inner rectangle.

      • vertical: boolean = false

        Subtract vertical before horizontal. Default Value false.

      Returns Rectangle[]

      An array of rectangles representing the remaining parts of the outer rectangle after subtracting the inner rectangle.

      This assumes both valid (bottom > top, right > left) and non zero rects