Options
All
  • Public
  • Public/Protected
  • All
Menu

Used for resolving an EPUB CFI against XML-based documents. Only intended for internal framework usage. Framework users should use ReaderPublication.fetchContentLocation() to resolve EPUB CFI locators to publication content.

Hierarchy

  • EpubCfiResolver

Implements

Index

Constructors

constructor

Methods

continueResolving

  • Resolves a path in the EPUB CFI one document at a time, stopping each time it reaches an indirection instruction.

    Start the resolving by passing the OPF document and its URL. Each time the resolver reaches an indirection instruction, this function returns with an IEpubCfiIndirectionResult with the element containing the reference to the next document. In order to continue the process, pass the document referenced by the element to continueResolving(), or call skipNextIndirection() to not follow the indirection path.

    The resolving is finished when this method returns null.

    Use getResolvedTarget() to get the current state of the resolving process.

    Parameters

    • targetNode: Element | Document
    • documentUrl: URL

    Returns IEpubCfiIndirectionResult

getResolvedTarget

skipNextIndirection

Generated using TypeDoc