Constructs a new instance of the Maniiifest class.
This constructor initializes the specification based on the provided data and type. It supports the following types:
The data to be parsed into a specification.
The type of the specification. Can be "AnnotationCollection", "AnnotationPage", "Annotation", or undefined.
Retrieves the annotation if the specification type is 'Annotation'.
The annotation if the specification type is 'Annotation', otherwise null
.
Retrieves the annotation body if the specification type is 'Annotation'.
The annotation body if the specification type is 'Annotation', otherwise null
.
Retrieves the annotation collection if the specification type is 'AnnotationCollection'.
The annotation collection if the specification type is 'AnnotationCollection', otherwise null
.
Retrieves the annotation collection context if the specification type is 'AnnotationCollection'.
The annotation collection context if the specification type is 'AnnotationCollection', otherwise null
.
Retrieves the first annotation in the collection if the specification type is 'AnnotationCollection'.
The first annotation in the collection if the specification type is 'AnnotationCollection', otherwise null
.
Retrieves the annotation collection ID if the specification type is 'AnnotationCollection'.
The annotation collection ID if the specification type is 'AnnotationCollection', otherwise null
.
Retrieves the annotation collection label if the specification type is 'AnnotationCollection'.
The annotation collection label if the specification type is 'AnnotationCollection', otherwise null
.
Retrieves the last annotation in the collection if the specification type is 'AnnotationCollection'.
The last annotation in the collection if the specification type is 'AnnotationCollection', otherwise null
.
Retrieves the total number of annotations in the collection if the specification type is 'AnnotationCollection'.
The total number of annotations in the collection if the specification type is 'AnnotationCollection', otherwise null
.
Retrieves the type of the annotation collection if the specification type is 'AnnotationCollection'.
The type of the annotation collection if the specification type is 'AnnotationCollection', otherwise null
.
Retrieves the annotation context if the specification type is 'Annotation'.
The annotation context if the specification type is 'Annotation', otherwise null
.
Returns the feature collection if the specification kind is 'T6', otherwise returns null.
Retrieves the annotation ID if the specification type is 'Annotation'.
The annotation ID if the specification type is 'Annotation', otherwise null
.
Retrieves the annotation motivation if the specification type is 'Annotation'.
The annotation motivation if the specification type is 'Annotation', otherwise null
.
Retrieves the annotation page if the specification type is 'AnnotationPage'.
The annotation page if the specification type is 'AnnotationPage', otherwise null
.
Retrieves the annotation page context if the specification type is 'AnnotationPage'.
The annotation page context if the specification type is 'AnnotationPage', otherwise null
.
Retrieves the annotation page ID if the specification type is 'AnnotationPage'.
The annotation page ID if the specification type is 'AnnotationPage', otherwise null
.
Retrieves the 'partOf' property from the specification if the type is 'AnnotationPage'.
The 'partOf' property if the specification type is 'AnnotationPage', otherwise null.
Retrieves the type of the annotation page if the specification type is 'AnnotationPage'.
The type of the annotation page if the specification type is 'AnnotationPage', otherwise null
.
Retrieves the annotation target if the specification type is 'Annotation'.
The annotation target if the specification type is 'Annotation', otherwise null
.
Retrieves the annotation type if the specification type is 'Annotation'.
The annotation type if the specification type is 'Annotation', otherwise null
.
Retrieves the collection from the manifest specification if it is of kind 'Collection'.
The collection if the specification is of kind 'Collection' and has a value, otherwise null.
Retrieves the context from the manifest specification if it is of kind 'Collection'.
The context if the specification is of kind 'Collection', otherwise null.
Retrieves the collection ID from the manifest specification if it is of kind 'Collection'.
The collection ID if the specification is of kind 'Collection', otherwise null.
Retrieves the collection label from the manifest specification if it is of kind 'Collection'.
The collection label if the specification is of kind 'Collection', otherwise null.
Retrieves the label from the collection specification by language if it is of kind 'Collection'.
The language code to retrieve the label for.
The label for the specified language if it exists, otherwise null.
Retrieves the manifest from the manifest specification if it is of kind 'Manifest'.
The manifest if the specification is of kind 'Manifest' and has a value, otherwise null.
Retrieves the context from the manifest specification if it is of kind 'Manifest'.
The context if the specification is of kind 'Manifest', otherwise null.
Retrieves the manifest ID if the specification kind is 'Manifest'.
The manifest ID if the specification kind is 'Manifest', otherwise null
.
Retrieves the label from the manifest specification if it is of kind 'Manifest'.
The label if the specification is of kind 'Manifest' and has a label value, otherwise null.
Retrieves the label from the manifest specification by language if it is of kind 'Manifest'.
The language code to retrieve the label for.
The label for the specified language if it exists, otherwise null.
Retrieves the navigation date from the manifest specification if it is of kind 'Manifest'.
The navigation date if the specification is of kind 'Manifest' and has a navDate value, otherwise null.
Retrieves the navigation place from the manifest specification if it is of kind 'Manifest'.
The navigation place if the specification is of kind 'Manifest' and has a navPlace value, otherwise null.
Retrieves the required statement from the manifest specification if it is of kind 'Manifest'.
The required statement if the specification is of kind 'Manifest' and has a required statement value, otherwise null.
Retrieves the rights statement from the manifest specification if it is of kind 'Manifest'.
The rights statement if the specification is of kind 'Manifest' and has a rights value, otherwise null.
Retrieves the start element from the manifest specification if it is of kind 'Manifest'.
The start element if the specification is of kind 'Manifest' and has a start value, otherwise null.
Retrieves the summary from the manifest specification if it is of kind 'Manifest'.
The summary if the specification is of kind 'Manifest' and has a summary value, otherwise null.
Retrieves the viewing direction from the manifest specification if it is of kind 'Manifest'.
The viewing direction if the specification is of kind 'Manifest' and has a viewing direction value, otherwise null.
Retrieves the type of the manifest specification.
The type of the manifest specification.
Generator function that yields each feature if the specification kind is 'T6'.
Generator function that yields point coordinates for each feature with geometry kind 'T1' if the specification kind is 'T6'.
Iterates over the annotations in the specification if the type is 'AnnotationPage'.
Iterates over the textual bodies of annotations in the annotation page.
An iterator over the textual bodies of annotations.
Iterates over the collections in the specification.
This generator function yields collections from the specification and recursively from nested collections.
Iterates over the labels in the collection.
This generator function yields labels from the collection's label and recursively from nested collections.
Iterates over the manifests in the collection.
This generator function yields manifests from the collection's manifest and recursively from nested collections.
Iterates over the metadata in the collection.
This generator function yields metadata from the collection's metadata and recursively from nested collections.
Iterates over the thumbnails in the collection.
This generator function yields thumbnails from the collection's thumbnail and recursively from nested collections.
Iterates over the behavior elements in the manifest.
This generator function yields behavior elements from the manifest.
Iterates over the canvas elements in the manifest.
This generator function yields canvas elements from the manifest.
Iterates over the annotation elements on the canvases in the manifest.
This generator function yields annotation elements from the canvases in the manifest.
Iterates over the annotation page elements on the canvases in the manifest.
This generator function yields annotation page elements from the canvases in the manifest.
Iterates over the navigation place features in the manifest's canvases.
This generator function yields features from the navigation places within the canvases of the manifest.
Iterates over the W3C annotation elements on the canvases in the manifest.
This generator function yields W3C annotation elements from the canvases in the manifest.
Iterates over the W3C annotation page elements on the canvases in the manifest.
This generator function yields W3C annotation page elements from the canvases in the manifest.
Iterates over the textual bodies of annotations in the manifest's canvases.
An iterator over the textual bodies of annotations.
Iterates over the homepage elements in the manifest.
This generator function yields homepage elements from the manifest.
Iterates over the metadata elements in the manifest.
This generator function yields metadata elements from the manifest.
Iterates over the navigation place features in the manifest.
This generator function yields features from the navigation places within the manifest.
Iterates over the "partOf" elements in the manifest.
This generator function yields "partOf" elements from the manifest.
Iterates over the providers in the manifest.
This generator function yields providers from the manifest.
Iterates over the "homepage" elements in the providers of the manifest.
This generator function yields "homepage" elements from the providers within the manifest.
Iterates over the "seeAlso" elements in the providers of the manifest.
This generator function yields "seeAlso" elements from the providers within the manifest.
Iterates over the ranges in the manifest.
This generator function yields ranges from the structures within the manifest.
Iterates over the range items in the manifest.
This generator function yields range items from the structures within the manifest.
Iterates over the "rendering" elements in the manifest.
This generator function yields "rendering" elements from the manifest.
Iterates over the "seeAlso" elements in the manifest.
This generator function yields "seeAlso" elements from the manifest.
Iterates over the services in the manifest.
This generator function yields services from the service pages within the manifest.
Iterates over the services in the manifest.
This generator function yields services from the manifest's service pages.
Iterates over the thumbnail elements in the manifest.
This generator function yields thumbnail elements from the manifest.
Iterates over the services within the thumbnail services in the manifest.
This generator function yields services from the service pages within the thumbnail services of the manifest.
Iterates over the W3C annotations in the manifest.
This generator function yields annotations from the manifest's annotation pages.
Iterates over W3C Annotation Pages in a Manifest.
This generator function iterates through each annotation page present in the manifest's annotations.
It yields each annotation page transformed by F.writeAnnotationPageT
for further processing.
Iterates over the textual bodies of annotations in the manifest.
An iterator over the textual bodies of annotations.
Generated using TypeDoc
The
Maniiifest
class provides methods to parse and manipulate IIIF JSON manifests and collections. It ensures type safety and offers utility functions for working with IIIF data.