maniiifest
Version:
Typesafe IIIF presentation v3 manifest and collection parsing without external dependencies
21 lines (20 loc) • 893 B
TypeScript
import type * as U from "./iiif-types";
/**
* Parses and provides access to a standalone W3C Annotation Collection.
*
* Create via `Maniiifest.parseAnnotationCollection(data)` or `new ManiiifestAnnotationCollection(data)`.
*/
export declare class ManiiifestAnnotationCollection {
private specification;
constructor(data: any);
getAnnotationCollection(): U.AnnotationCollection;
getAnnotationCollectionId(): U.Id | null;
getAnnotationCollectionType(): U.Type;
getAnnotationCollectionContext(): U.Context | null;
getAnnotationCollectionLabel(): U.Label | null;
getAnnotationCollectionFirst(): U.First | null;
getAnnotationCollectionLast(): U.Last | null;
getAnnotationCollectionTotal(): U.Total | null;
/** @yields {U.Annotation} Each annotation in the collection. */
iterateAnnotationCollectionAnnotation(): IterableIterator<U.Annotation>;
}