digirati-annotation-plugin-resource-editor

v0.3.0-alpha.902c3bec
Resource template exporting UI for annotation images.

Annotation Studio - Resource editor 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-resource-editor digirati-annotation-plugin-core --save-dev

Note: you will probably want a viewer plugin too

Then in your code (ES6 in this example)

import CorePlugin from 'digirati-annotation-plugin-core';
import ResourceEditor from 'digirati-annotation-plugin-resource-editor';

// 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 => {
  ResourceEditor(
    document.getElementById('editor'),
    {
      canvas: {/* ... */}, // IIIF Canvas as JS object
    },
    store
  );
});

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 6/15/2017

Downloads

Maintainers