1.0.0-rc.33 • Published 2 years ago

@annotation-studio/plugin-core v1.0.0-rc.33

Weekly downloads
7
License
MIT
Repository
-
Last release
2 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 @annotation-studio/plugin-core --save-dev

Then in your code (ES6 in this example)

import CorePlugin from '@annotation-studio/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.33

2 years ago

1.0.0-rc.32

2 years ago

1.0.0-rc.27

3 years ago

1.0.0-rc.25

4 years ago

1.0.0-rc.24

4 years ago

1.0.0-rc.23

4 years ago

1.0.0-rc.22

4 years ago

1.0.0-rc.21

4 years ago

1.0.0-rc.20

4 years ago

1.0.0-rc.19

4 years ago

1.0.0-rc.18

4 years ago

1.0.0-rc.17

4 years ago

1.0.0-rc.15

5 years ago

1.0.0-rc.14

5 years ago

1.0.0-rc.13

5 years ago

1.0.0-rc.12

5 years ago