Added Environment container

This commit is contained in:
Rainer Simon 2020-05-15 14:38:17 +02:00
parent 207f6e82b0
commit 213c53fa4e
2 changed files with 18 additions and 0 deletions

17
src/Environment.js Normal file
View File

@ -0,0 +1,17 @@
export default {
/**
* A generic container for RecogitoJS/Annotorious
* to store globally available environment info. The
* most important piece of information is user auth
* info. Example:
*
* user: { id, displayName, email, avatarURL }
*
* id ........... the host application user ID (should be a URI, but could be username) REQUIRED
* displayName .. screen display or nickname OPTIONAL (id is used when empty)
* email ........ OPTIONAL
* avatarURL .... OPTIONAL + not supported at the moment
*/
}

View File

@ -1,3 +1,4 @@
export { default as Environment } from './Environment';
export { default as TextAnnotator } from './TextAnnotator';
export { default as WebAnnotation } from './WebAnnotation';