diff --git a/src/AnnotationCreation.js b/src/AnnotationCreation.js index 193924bc928adbec6e3e0ebe468a477f7a3b040a..8460aebdbf56880c633e31e4b511ee5cfb410325 100644 --- a/src/AnnotationCreation.js +++ b/src/AnnotationCreation.js @@ -107,7 +107,6 @@ class AnnotationCreation extends Component { annoState.xywh = geomFromAnnoTarget(props.annotation.target); [annoState.tstart, annoState.tend] = timeFromAnnoTarget(props.annotation.target); } - console.log(annoState) } const toolState = { @@ -346,8 +345,6 @@ class AnnotationCreation extends Component { svg, tags, }).toJson(); - console.log(this.state.annotation); - console.log(anno); if (annotation) { storageAdapter.update(anno) .then((annoPage) => { diff --git a/src/WebAnnotation.js b/src/WebAnnotation.js index 8c9dfd95c5160d2c70fa018bfbb8849b3a263122..b9a3d7f1561ed3b39181bb4b6e0a303d6b258f0c 100644 --- a/src/WebAnnotation.js +++ b/src/WebAnnotation.js @@ -30,9 +30,7 @@ export default class WebAnnotation { /** */ createBody() { let bodies = []; - console.log('CREATEBODY') if (this.body && this.body.value !== '') { - console.log('TEXT BODY', this.body.value) const textBody = { type: 'TextualBody', value: this.body.value, @@ -41,7 +39,6 @@ export default class WebAnnotation { } if (this.image) { - console.log('IMAGE', this.image.id) const imgBody = { id: this.image.id, @@ -51,7 +48,6 @@ export default class WebAnnotation { } if(this.title){ - console.log('TITLE', this.title) const title={ type: 'AnnotationTitle', value: this.title, @@ -60,8 +56,6 @@ export default class WebAnnotation { } if (this.tags) { - console.log('TAG', this.tags) - bodies = bodies.concat(this.tags.map((tag) => ({ purpose: 'tagging', type: 'TextualBody', @@ -69,10 +63,8 @@ export default class WebAnnotation { }))); } if (bodies.length === 1) { - console.log('bodies',bodies) return bodies[0]; } - console.log('bodies',bodies) return bodies; }