Annotation studio core plugin


1.0.0-rc.332 years ago4 years agoMinified + gzip package size for @annotation-studio/plugin-core in KB


Annotation Studio - Core plugin

This is the state behind the other components.


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

$ npm i @annotation-studio/plugin-core --save-dev

Then in your code (ES6 in this example)

import CorePlugin from '@annotation-studio/plugin-core';

const core = CorePlugin(
    resourceTemplates: '...',
    manifest: '...',
    canvas: '...',
    elucidateServer: '...',

core.then(store => {
  // this is called whenever the store changes
  store.subscribe(() => {
    // This is how to get the state
    const state = store.getState();
    // You can now render things, dispatch actions etc.

Resource templates:

[todo add link to resource template model]

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.