digirati-annotation-plugin-viewer

1.0.0-rc.11 • Public • Published

Annotation Studio - Viewer plugin

This is the Open Seadragon or static image viewer component.

Usage

To use the plugin you need to add it as a dependency along with the core plugin:

$ npm i digirati-annotation-plugin-viewer digirati-annotation-plugin-core --save-dev

Then in your code (ES6 in this example)

import CorePlugin from 'digirati-annotation-plugin-core';
import ViewerPlugin from 'digirati-annotation-plugin-viewer';

// We need the core plugin.
const core = CorePlugin(
  document.getElementById('myContainer'),
  {
    resourceTemplates: '...',
    manifest: '...',
    canvas: '...',
    elucidateServer: '...',
  }
);

// We need to wait for the store to be available.
core.then(store => {
  ViewerPlugin(
    document.getElementById('viewer'),
    {
      viewer: 'OpenSeadragon', // or StaticImageViewer
      // Actual size, will get re-sized.
      height: 6400,
      width: 4800,
    },
    store
  );
  return store;
});

Your HTML should also have a fallback image:

<div id="viewer">
    <img src="..." height="480" width="640"/>
</div>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.0-rc.3dc3dfc10canary
1.0.0-rc.110latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.0-rc.110
1.0.0-rc.3dc3dfc10
1.0.0-rc.1c33a17c0
1.0.0-rc.255d87380
1.0.0-rc.100
1.0.0-rc.90
1.0.0-rc.f3739a390
1.0.0-rc.b54ce50e0
1.0.0-rc.80
1.0.0-rc.60
1.0.0-rc.50
1.0.0-rc.40
1.0.0-rc.30
1.0.0-rc.942bcb800
1.0.0-rc.fcbdc0140
1.0.0-rc.14b412790
1.0.0-rc.f58b0cdf0
1.0.0-rc.62855fd60
1.0.0-rc.e0f25f020
1.0.0-rc.304b4d460
1.0.0-rc.c5a5f41d0
1.0.0-rc.e8dc19f90
1.0.0-rc.10
0.9.50
0.9.40
0.9.30
0.9.20
0.9.10
0.9.00
0.8.160
0.8.150
0.8.140
0.8.130
0.8.120
0.8.110
0.8.90
0.8.80
0.8.60
0.8.50
0.8.40
0.8.30
0.8.20
0.8.00
0.7.10
0.7.00
0.6.20
0.6.1-alpha.4a3192360
0.6.10
0.6.00
0.5.20
0.5.10
0.5.00
0.4.00
0.3.40
0.3.30
0.3.20
0.3.10
0.3.0-alpha.902c3bec0

Package Sidebar

Install

npm i digirati-annotation-plugin-viewer

Weekly Downloads

0

Version

1.0.0-rc.11

License

MIT

Unpacked Size

20.4 kB

Total Files

10

Last publish

Collaborators

  • stephenwf