Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@annotation-studio/plugin-resource-editor

Package Overview
Dependencies
Maintainers
1
Versions
182
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@annotation-studio/plugin-resource-editor

Resource template exporting UI for annotation images.

  • 1.0.0-rc.35
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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 @annotation-studio/plugin-resource-editor @annotation-studio/plugin-core --save-dev

Note: you will probably want a viewer plugin too

Then in your code (ES6 in this example)

import CorePlugin from '@annotation-studio/plugin-core';
import ResourceEditor from '@annotation-studio/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
  );
});

FAQs

Package last updated on 15 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc