@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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
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
|
-
-
|
|
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
|
|
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
|
{
|