diff --git a/src/index.js b/src/index.js index e8793abb1f81245c8ee1c5b7055b9189b55f6178..f0b501b55d4ef7ada83a58d2d5f18b7559bf9ef4 100644 --- a/src/index.js +++ b/src/index.js @@ -1,32 +1,9 @@ import Mirador from 'mirador/dist/es/src/index'; -// const config = { -// id: 'demo', -// windows: [{ -// imageToolsEnabled: true, -// imageToolsOpen: true, -// manifestId: 'https://purl.stanford.edu/sn904cj3429/iiif/manifest', -// }], -// theme: { -// palette: { -// primary: { -// main: '#1967d2', -// }, -// }, -// }, -// }; - -Mirador.viewer(config, [ - ...miradorImageToolsPlugin, -]); const config = { - id: 'mirador', + id: 'demo', theme: { transitions: window.location.port === '4488' ? { create: () => 'none' } : {}, }, - annotation: { - adapter: (canvasId) => new LocalStorageAdapter(`localStorage://?canvasId=${canvasId}`), - exportLocalStorageAnnotations: true, - }, catalog: [ { manifestId: 'http://localhost/dzkimgs_annotated_video.json' }, { manifestId: 'http://localhost/video_split_annopage.json' }, @@ -38,3 +15,6 @@ const config = { { manifestId: 'https://iiif.harvardartmuseums.org/manifests/object/299843' } ] } + +Mirador.viewer(config, [ +]);