Skip to content

Commit

Permalink
Merge pull request #108 from IIIF-Commons/feature/lodash-fix
Browse files Browse the repository at this point in the history
Fixed lodash import
  • Loading branch information
stephenwf authored May 23, 2022
2 parents 44ee167 + d8be9cb commit f1d9e11
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 128 deletions.
134 changes: 7 additions & 127 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion pkg-tests/index.umd.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@
<script src='../dist-umd/manifesto.js' type="application/javascript"></script>

<script>
manifesto.loadManifest('https://iiif.wellcomecollection.org/presentation/v2/b18035723').then(e => console.log(e));
manifesto.loadManifest('https://iiif.wellcomecollection.org/presentation/v2/b18035723').then(e => {
const manifest = manifesto.parseManifest(e);
console.log(manifest);

const seq1 = manifest.getSequenceByIndex(0);
const first = seq1.getCanvasByIndex(0);
const resource = first.imageResources;
console.log(first, resource);
});
</script>
</body>
</html>
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"outDir": "dist-commonjs",
"skipLibCheck": true,
"sourceMap": true,
"esModuleInterop": true,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"target": "es5"
Expand Down

0 comments on commit f1d9e11

Please sign in to comment.