@vivliostyle/core
    Preparing search index...

    Function adjustRectForColumnBreaking

    • Adjust the client rectangle of an element or range to account for the browser's column breaking. This function modifies the rectangle's coordinates to ensure that if the rectangle is located in a column beyond the current one, its position in the block-progression direction is moved accordingly so that overflow checks can be performed based solely on the block-progression position.

      Parameters

      • rect: Vtree.ClientRect

        The client rectangle to check.

      • vertical: boolean

        Whether the layout is vertical.

      Returns number

      the number of columns the start edge of the rectangle is after the current column.