Colibrio Reader Framework API - Cloud license
    Preparing search index...
    interface IEpubCfiResolvedPath {
        ast: IEpubCfiPathNode;
        characterOffsetOutOfBounds: boolean;
        container: Node;
        documentUrl: URL;
        elementCharacterOffset: number;
        indirectionsResolved: boolean;
        intendedTargetType: EpubCfiIntendedTargetType;
        localPaths: IEpubCfiResolvedLocalPath[];
        offset: number;
        sideBias: EpubCfiSideBias;
        spatialOffset: IEpubCfiSpatialOffset;
        stepsResolved: boolean;
        temporalOffset: IEpubCfiTemporalOffset;
        virtualTarget: EpubCfiVirtualTarget;
        addResolvedLocalPath(localPath: IEpubCfiResolvedLocalPath): void;
        getDocument(): Document;
        getResolverErrors(): IEpubCfiResolverError[];
        getTargetElement(): Element;
        getTargetNode(): Node;
        getTerminalLocalPath(): IEpubCfiResolvedLocalPath;
        isMissingXmlIdAssertions(): boolean;
        isRepairedWithXmlIdAssertions(): boolean;
        isTargetingOpfDocument(): boolean;
    }

    Properties

    The AST used to resolve this path.

    characterOffsetOutOfBounds: boolean
    container: Node

    The container node for the "target", where "target" can be a node in the DOM tree or a character offset. The container can be a Element, Text, Document or DocumentFragment node.

    documentUrl: URL

    The file path to the document

    elementCharacterOffset: number

    Set if intended target type is 'element' and there was a character offset defined. Used for referencing the "alt" text in elements.

    indirectionsResolved: boolean

    If all indirections were resolved successfully.

    intendedTargetType: EpubCfiIntendedTargetType

    If the epubcfi intended to target a characters or an element. This depends if the terminal step in this path was odd or even.

    All local paths that were resolved in this path.

    offset: number

    The childNode offset into container

    sideBias: EpubCfiSideBias

    Will be set if the terminal step of the path contained the assertion parameter 's' with a valid value.

    See http://www.idpf.org/epub/linking/cfi/epub-cfi.html#sec-path-side-bias

    spatialOffset: IEpubCfiSpatialOffset

    The spatial offset if any.

    stepsResolved: boolean

    If steps were resolved, i.e. the steps pointed to existing or virtual nodes, or were recovered using assertions. Will be false if any indirection failed to resolve.

    temporalOffset: IEpubCfiTemporalOffset

    The temporal offset if any,

    virtualTarget: EpubCfiVirtualTarget

    If this path uses a virtual target, targeting 'firstChild' or the 'lastChild'. This will be set if the epubcfi ends with a step of 0 or N+2 where N is the last valid element step. If a step was larger than N+2, virtualTarget will be set to 'lastChild' and stepsResolved to false.

    Methods

    • Returns Document

    • Get the target Element, if the intended target was en element and it is not the virtual first or virtual last element.

      Returns Element

    • Get the target node for this local path, unless the target is a virtual Target in which case the container is returned instead.

      Returns Node

    • Returns boolean

    • Returns boolean

    • Returns boolean