Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Interface IVisibleContentRectsResultData

    A serializable representation of an IVisibleContentRectsResult: the rects of the content in locator on one visible page, one entry per line box or element, each paired with the locator it was generated from.

    In EPUB content, the rects cover lines of text and img, video and picture elements. No other element has a rect of its own. In PDF content, only selectable text has rects. A page without selectable text, such as a scanned page, has none.

    rects is in document order and boundingClientRect spans them all. In PDF content, rects is not always in document order and boundingClientRect does not always contain the rects. PDF rects can also include text outside locator and leave out text inside it.

    Clipping is not computed. Each rect's clippedState is UNKNOWN, and its clippedClientRect equals its clientRect, even for content that a publication element clips.

    All coordinates are in application viewport coordinate space and describe one moment: a later navigation, scroll or ReaderView transform makes them out of date.

    interface IVisibleContentRectsResultData {
        boundingClientRect: IRect;
        clippingRects: IVisibleContentClippingRectData[];
        locator: ISimpleLocatorData;
        rects: IVisibleContentRectData[];
    }

    Properties

    boundingClientRect: IRect

    The bounding rectangle that most closely contains all rectangles in the rects list. Coordinates are in application viewport coordinate space.

    In PDF content, this rectangle can cover more than the rects in rects, and it does not always contain them.

    If the rects list is empty, then this property is null.

    This bound is not clipped, so it may cover content hidden by a clipping ancestor.

    Always empty. IVisiblePage.fetchContentRects does not report clipping, so every clippingRectIndex in rects is null, even when the content is clipped. For clipping elements, use IVisibleContentAreaRectsResultData.clippingRects.

    This API is experimental and might be subject to changes in future releases.

    The locator used to generate this result object. This is the intersection between the locator passed to IVisiblePage.fetchContentRects and the VisiblePage's range locator.

    If no locator was passed to IVisiblePage.fetchContentRects, then this property will be the range locator for the page.

    A list of objects containing rectangles and locators for line boxes and replaced elements such as <img> elements.