Module

utils/dom/getelementsintersectionrect

@ckeditor/ckeditor5-utils/src/dom/getelementsintersectionrect

module

Filtering

Functions

  • internal

    getElementsIntersectionRect( elements, viewportTopOffset ) → Rect | null

    Calculates the intersection Rect of a given set of elements (and/or a document). Also, takes into account the viewport top offset configuration.

    Parameters

    elements : Array<HTMLElement | Document>
    viewportTopOffset : number

    Defaults to 0

    Returns

    Rect | null