1.0.0-rc.33 • Published 3 years ago

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

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

3 years ago

1.0.0-rc.32

4 years ago

1.0.0-rc.27

5 years ago

1.0.0-rc.25

5 years ago

1.0.0-rc.24

5 years ago

1.0.0-rc.23

6 years ago

1.0.0-rc.22

6 years ago

1.0.0-rc.21

6 years ago

1.0.0-rc.20

6 years ago

1.0.0-rc.19

6 years ago

1.0.0-rc.18

6 years ago

1.0.0-rc.17

6 years ago

1.0.0-rc.15

6 years ago

1.0.0-rc.14

6 years ago

1.0.0-rc.13

6 years ago

1.0.0-rc.12

6 years ago