UNPKG

cozy-iiif

Version:

A developer-friendly collection of abstractions and utilities built on top of @iiif/presentation-3 and @iiif/parser

144 lines (140 loc) 4.49 kB
export const HAS_BROKEN_ANNOTATION_LIST = 'https://digitalarchive.npm.gov.tw/Integrate/GetJson?cid=40&dept=P'; // Modified from https://iiif.io/api/cookbook/recipe/0021-tagging/ export const ANNOTATIONS = [{ id: 'https://iiif.io/api/cookbook/recipe/0021-tagging/annotation/p0001', type: 'Annotation', motivation: 'tagging', body: { type: 'TextualBody', value: 'Test Annotation 1', format: 'text/plain' }, target: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/canvas/p1#xywh=265,661,1260,1239' },{ id: 'https://iiif.io/api/cookbook/recipe/0021-tagging/annotation/p0002', type: 'Annotation', motivation: 'tagging', body: { type: 'TextualBody', value: 'Test Annotation 2', format: 'text/plain' }, target: { source: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/canvas/p2', selector: { type: 'FragmentSelector', value: 'xywh=265,661,1260,1239' } } }] // https://iiif.io/api/cookbook/recipe/0001-mvm-image/ export const SINGLE_CANVAS_NO_ANNOTATIONS = { '@context': 'http://iiif.io/api/presentation/3/context.json', id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/manifest.json', type: 'Manifest', label: { en: [ 'Single Image Example' ] }, items: [ { id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/canvas/p1', type: 'Canvas', height: 1800, width: 1200, items: [ { id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/page/p1/1', type: 'AnnotationPage', items: [ { id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/annotation/p0001-image', type: 'Annotation', motivation: 'painting', body: { id: 'http://iiif.io/api/presentation/2.1/example/fixtures/resources/page1-full.png', type: 'Image', format: 'image/png', height: 1800, width: 1200 }, target: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/canvas/p1' } ] } ] } ] } export const TWO_CANVASES_NO_ANNOTATIONS = { '@context': 'http://iiif.io/api/presentation/3/context.json', id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/manifest.json', type: 'Manifest', label: { en: [ 'Single Image Example' ] }, items: [ { id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/canvas/p1', type: 'Canvas', height: 1800, width: 1200, items: [ { id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/page/p1/1', type: 'AnnotationPage', items: [ { id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/annotation/p0001-image', type: 'Annotation', motivation: 'painting', body: { id: 'http://iiif.io/api/presentation/2.1/example/fixtures/resources/page1-full.png', type: 'Image', format: 'image/png', height: 1800, width: 1200 }, target: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/canvas/p1' } ] } ] }, { id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/canvas/p2', type: 'Canvas', height: 1800, width: 1200, items: [ { id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/page/p1/1', type: 'AnnotationPage', items: [ { id: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/annotation/p0001-image', type: 'Annotation', motivation: 'painting', body: { id: 'http://iiif.io/api/presentation/2.1/example/fixtures/resources/page1-full.png', type: 'Image', format: 'image/png', height: 1800, width: 1200 }, target: 'https://iiif.io/api/cookbook/recipe/0001-mvm-image/canvas/p1' } ] } ] } ] } // With Media Fragment in target URL // { // "target": "https://cogapplabs.github.io/StoriiiesViewer/demo/grande-jatte/canvases/1#xywh=346,597,8800,4812" // } export const HAS_FRAGEMENT_TARGET = 'https://raw.githubusercontent.com/cogappLabs/storiiiesViewer/main/docs/demo/grande-jatte.json';