1.0.0-rc.11 • Published 7 years ago

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

Weekly downloads
-
License
MIT
Repository
-
Last release
7 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

7 years ago

1.0.0-rc.10

7 years ago

1.0.0-rc.9

7 years ago

1.0.0-rc.8

7 years ago

1.0.0-rc.4

8 years ago

1.0.0-rc.1

8 years ago

0.9.5

8 years ago

0.9.4

8 years ago

0.9.3

8 years ago

0.9.1

8 years ago

0.9.0

8 years ago

0.8.16

8 years ago

0.8.14

8 years ago

0.8.13

8 years ago

0.8.12

8 years ago

0.8.11

8 years ago

0.8.9

8 years ago

0.8.8

8 years ago

0.8.6

8 years ago

0.8.5

8 years ago

0.8.2

8 years ago

0.8.0

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago

0.6.1

8 years ago

0.6.0

8 years ago

0.5.1

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.4

8 years ago

0.3.3

8 years ago

0.3.1

8 years ago