Added readOnly config opt for WebAnnotation
This commit is contained in:
parent
ef3e467963
commit
c512ed32da
|
@ -2,8 +2,9 @@ import uuid from 'uuid/v1';
|
||||||
|
|
||||||
export default class WebAnnotation {
|
export default class WebAnnotation {
|
||||||
|
|
||||||
constructor(annotation) {
|
constructor(annotation, opts) {
|
||||||
this.underlying = annotation;
|
this.underlying = annotation;
|
||||||
|
this.readOnly = opts?.readOnly;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** For convenience - creates an empty web annotation **/
|
/** For convenience - creates an empty web annotation **/
|
||||||
|
|
Loading…
Reference in New Issue