Added readOnly config opt for WebAnnotation

This commit is contained in:
Rainer Simon 2020-06-01 20:20:36 +02:00
parent ef3e467963
commit c512ed32da
1 changed files with 2 additions and 1 deletions

View File

@ -2,8 +2,9 @@ import uuid from 'uuid/v1';
export default class WebAnnotation {
constructor(annotation) {
constructor(annotation, opts) {
this.underlying = annotation;
this.readOnly = opts?.readOnly;
}
/** For convenience - creates an empty web annotation **/