1.0.0-rc.11 • Published 6 years ago

digirati-annotation-plugin-core v1.0.0-rc.11

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Annotation Studio - Core plugin

This is the state behind the other components.

Usage

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

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

Then in your code (ES6 in this example)

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

const core = CorePlugin(
  document.getElementById('myContainer'),
  {
    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

1.0.0-rc.11

6 years ago

1.0.0-rc.10

6 years ago

1.0.0-rc.9

6 years ago

1.0.0-rc.8

6 years ago

1.0.0-rc.4

6 years ago

1.0.0-rc.1

6 years ago

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.1

7 years ago

0.9.0

7 years ago

0.8.16

7 years ago

0.8.14

7 years ago

0.8.13

7 years ago

0.8.12

7 years ago

0.8.11

7 years ago

0.8.9

7 years ago

0.8.8

7 years ago

0.8.6

7 years ago

0.8.5

7 years ago

0.8.2

7 years ago

0.8.0

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.1

7 years ago