Skip to content
Snippets Groups Projects
Verified Commit f1adc279 authored by David Beniamine's avatar David Beniamine
Browse files

WIP try to install annotation plugin

parent 7a13a792
Branches
No related tags found
1 merge request!5Resolve "Image annotation plugin"
......@@ -5,7 +5,7 @@
<title>Mirador Video Annotations</title>
</head>
<body>
<div id="demo"></div>
<script src="/dist/main.js"></script>
<div id="mirador"></div>
<script src="dist/main.js"></script>
</body>
</html>
import Mirador from 'mirador/dist/es/src/index';
import annotationPlugins from 'mirador-annotations/es/index';
import LocalStorageAdapter from 'mirador-annotations/es/LocalStorageAdapter';
import AnnototAdapter from 'mirador-annotations/es/AnnototAdapter';
const config = {
id: 'demo',
id: 'mirador',
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' },
......@@ -17,4 +24,5 @@ const config = {
}
Mirador.viewer(config, [
...annotationPlugins,
]);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment