triiiceratops 0.11.0 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +17 -9
  2. package/dist/{ArrowCounterClockwise-CN8KGaI0.js → ArrowCounterClockwise-B_hB6fl1.js} +1 -1
  3. package/dist/X-Boj9jj2h.js +890 -0
  4. package/dist/{annotation_tool_point-BpZXtX5D.js → annotation_tool_point-rZvdAtGa.js} +1 -1
  5. package/dist/annotorious-openseadragon.es-tb5X-LtF.js +33045 -0
  6. package/dist/components/AnnotationOverlay.svelte +10 -17
  7. package/dist/components/DemoHeader.svelte +4 -5
  8. package/dist/components/MetadataDialog.svelte +4 -1
  9. package/dist/components/OSDViewer.svelte +8 -2
  10. package/dist/components/SearchPanel.svelte +8 -5
  11. package/dist/components/ThemeToggle.svelte +1 -1
  12. package/dist/components/ThumbnailGallery.svelte +4 -4
  13. package/dist/components/Toolbar.svelte +5 -4
  14. package/dist/components/TriiiceratopsViewerElement.svelte +3 -1
  15. package/dist/custom-element.js +1 -0
  16. package/dist/{image_filters_reset-CyWg622b.js → image_filters_reset-CAUhlDWt.js} +1 -1
  17. package/dist/plugins/annotation-editor/AnnotationEditorController.svelte +5 -3
  18. package/dist/plugins/annotation-editor/AnnotationEditorPanel.svelte +3 -3
  19. package/dist/plugins/annotation-editor/AnnotationManager.svelte.d.ts +3 -0
  20. package/dist/plugins/annotation-editor/AnnotationManager.svelte.js +19 -14
  21. package/dist/plugins/annotation-editor/loader.svelte.js +2 -2
  22. package/dist/plugins/annotation-editor.js +1228 -32159
  23. package/dist/plugins/image-manipulation/ImageManipulationController.svelte +1 -1
  24. package/dist/plugins/image-manipulation.js +3 -3
  25. package/dist/state/manifests.svelte.d.ts +2 -1
  26. package/dist/state/manifests.svelte.js +5 -9
  27. package/dist/state/manifests.test.js +52 -50
  28. package/dist/state/viewer.svelte.d.ts +2 -1
  29. package/dist/state/viewer.svelte.js +8 -8
  30. package/dist/triiiceratops-bundle.js +1167 -1179
  31. package/dist/triiiceratops-element.iife.js +26 -26
  32. package/dist/triiiceratops.css +1 -1
  33. package/dist/utils/annotationAdapter.js +2 -2
  34. package/dist/utils/annotationAdapter.test.js +0 -1
  35. package/package.json +12 -2
  36. package/dist/X-i_EmjXwW.js +0 -906
package/README.md CHANGED
@@ -30,13 +30,21 @@ The viewer is available as a web component that works in any framework or static
30
30
  **Via CDN:**
31
31
 
32
32
  ```html
33
- <script type="module" src="https://unpkg.com/triiiceratops/dist/triiiceratops-element.js"></script>
34
- <link rel="stylesheet" href="https://unpkg.com/triiiceratops/dist/triiiceratops-element.css">
33
+ <script
34
+ type="module"
35
+ src="https://unpkg.com/triiiceratops/dist/triiiceratops-element.js"
36
+ ></script>
37
+ <link
38
+ rel="stylesheet"
39
+ href="https://unpkg.com/triiiceratops/dist/triiiceratops-element.css"
40
+ />
35
41
 
36
42
  <div style="height: 600px; width: 100%;">
37
- <triiiceratops-viewer style="height: 100%; width: 100%; display: block;"
38
- manifest-id="https://iiif.wellcomecollection.org/presentation/v2/b18035723">
39
- </triiiceratops-viewer>
43
+ <triiiceratops-viewer
44
+ style="height: 100%; width: 100%; display: block;"
45
+ manifest-id="https://iiif.wellcomecollection.org/presentation/v2/b18035723"
46
+ >
47
+ </triiiceratops-viewer>
40
48
  </div>
41
49
  ```
42
50
 
@@ -54,14 +62,14 @@ pnpm add triiiceratops
54
62
 
55
63
  ```svelte
56
64
  <script>
57
- import { TriiiceratopsViewer } from 'triiiceratops';
65
+ import { TriiiceratopsViewer } from 'triiiceratops';
58
66
  </script>
59
67
 
60
68
  <!-- Container must have height -->
61
69
  <div style="height: 600px;">
62
- <TriiiceratopsViewer
63
- manifestId="https://iiif.wellcomecollection.org/presentation/v2/b18035723"
64
- />
70
+ <TriiiceratopsViewer
71
+ manifestId="https://iiif.wellcomecollection.org/presentation/v2/b18035723"
72
+ />
65
73
  </div>
66
74
  ```
67
75
 
@@ -1,6 +1,6 @@
1
1
  import "svelte/internal/disclose-version";
2
2
  import * as a from "svelte/internal/client";
3
- import { g as N } from "./X-i_EmjXwW.js";
3
+ import { g as N } from "./X-Boj9jj2h.js";
4
4
  var O = a.from_svg('<path d="M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"></path>'), P = a.from_svg('<path d="M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z" opacity="0.2"></path><path d="M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"></path>', 1), Q = a.from_svg('<path d="M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"></path>'), R = a.from_svg('<path d="M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"></path>'), S = a.from_svg('<path d="M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"></path>'), T = a.from_svg('<path d="M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"></path>'), W = a.from_svg('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');
5
5
  function $(L, r) {
6
6
  a.push(r, !0);