-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.js
28 lines (26 loc) · 1.01 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import Mirador from 'mirador/dist/es/src/index';
import textOverlayPlugin from '../../src';
const config = {
catalog: [
{ manifestId: 'https://iiif.europeana.eu/presentation/9200396/BibliographicResource_3000118436165/manifest', provider: 'Europeana (Annotations)' },
{ manifestId: 'https://wellcomelibrary.org/iiif/b19956435/manifest', provider: 'Wellcome Library (ALTO)' },
{ manifestId: 'https://wellcomelibrary.org/iiif/b18035723/manifest', provider: 'Wellcome Library (ALTO)' },
{ manifestId: 'https://scta.info/iiif/graciliscommentary/lon/manifest', provider: 'SCTA (Annotations)' },
{ manifestId: 'https://purl.stanford.edu/fg165hz3589/iiif/manifest', provider: 'Stanford University Libraries (ALTO)' },
],
id: 'demo',
window: {
textOverlay: {
enabled: true,
selectable: true,
visible: false,
},
},
windows: [{
canvasIndex: 8,
manifestId: 'https://wellcomelibrary.org/iiif/b18035723/manifest',
}],
};
Mirador.viewer(config, [
...textOverlayPlugin,
]);