@knaw-huc/osd-iiif-viewer 0.1.9 → 0.1.10

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.
package/README.md CHANGED
@@ -5,8 +5,8 @@ Lightweight React wrapper around OpenSeadragon to display and browse image sourc
5
5
  Features:
6
6
  - Canvas navigation
7
7
  - Highlight overlay
8
- - Zoom and fullscreen controls
9
- - IIIF manifest loading
8
+ - Zoom, rotate and fullscreen controls
9
+ - Manifest loading and parsing with @iiif/helpers Vault
10
10
 
11
11
  ## Example
12
12
 
package/dist/index.js CHANGED
@@ -1979,8 +1979,8 @@ function Viewer({ showControls = !0 }) {
1979
1979
  viewer.destroy(), store.getState().resetViewer();
1980
1980
  };
1981
1981
  }, [showControls, store]), useEffect(() => {
1982
- const viewer = store.getState().viewer;
1983
- !viewer || !tileSource || viewer.open(tileSource);
1982
+ const state = store.getState(), viewer = state.viewer;
1983
+ !viewer || !tileSource || (state.setViewerReady(!1), viewer.open(tileSource));
1984
1984
  }, [tileSource, store]), /* @__PURE__ */ jsx(
1985
1985
  "div",
1986
1986
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knaw-huc/osd-iiif-viewer",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/knaw-huc/osd-iiif-viewer.git"