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

    Interface IVisibleContentRectsResult

    A result object returned from IReaderView.fetchRectsForVisibleContent().

    interface IVisibleContentRectsResult {
        boundingClientRect: DOMRect;
        contentLocation: IContentLocation;
        rects: IVisibleContentRect[];
        toJSON(): IVisibleContentRectsResultData;
    }

    Properties

    boundingClientRect: DOMRect

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

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

    contentLocation: IContentLocation

    The content location used to generate this result object. This is the intersection between the ContentLocation passed to fetchRectsForVisibleContent and the VisiblePage's range ContentLocation.

    If no contentLocation was passed to fetchRectsForVisibleContent, then this property will be the range content location for the page.

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

    Methods