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

    Interface IVisibleContentAreaRectsResultDataExperimental

    A serializable representation of an IVisibleContentAreaRectsResult: the visible content rects of a named area in the ReaderView, 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. They can also cover other elements, such as svg, math and hr elements. An svg or math element has one rect for all of its content. Content with display: none or visibility: hidden, and content without a size, has no rect. In PDF content, only selectable text has rects. A page without selectable text, such as a scanned page, has none.

    rects holds every rect of the result in document order. ranges divides rects into continuous runs of content. Content that a publication element clips is still listed at its full layout geometry in clientRect. Each rect's clippedClientRect holds the geometry left after clipping, and clippingRects lists the clipping elements.

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

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

    interface IVisibleContentAreaRectsResultData {
        areaRect: IRect;
        areaType: VisibleContentAreaType;
        clippingRects: IVisibleContentClippingRectData[];
        ranges: IVisibleContentRectsRangeData[];
        rects: IVisibleContentRectData[];
    }

    Properties

    areaRect: IRect

    The resolved rectangle of areaType that the rects were tested against. Coordinates are in application viewport coordinate space.

    The named area the rects were tested against.

    The elements that can clip the content in rects, whether or not they clip any of it. An element is listed once for each visible page it appears on. Its entries share the same locator, and each entry holds the geometry on its own page. The list may include elements that no rect in rects refers to.

    IVisibleContentRectData.clippingRectIndex is an index into this list, naming the nearest ancestor element that can clip that rect. Each clipping rect's own clippingRectIndex names the nearest ancestor that can clip it, so nested clipping forms a chain from the innermost element outwards. Indices are only valid against the list of the result they came from.

    Only EPUB content produces clipping rects. Rects from other publication formats have null clippingRectIndex values, even when the content is clipped.

    The continuous runs of content in rects, in document order. Together the runs cover every rect in rects exactly once.

    Every rect in this result, in document order.