aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/Annotation.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/Annotation.tsx')
-rw-r--r--src/client/views/nodes/Annotation.tsx22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/client/views/nodes/Annotation.tsx b/src/client/views/nodes/Annotation.tsx
index e4f17940c..3e4ed6bf1 100644
--- a/src/client/views/nodes/Annotation.tsx
+++ b/src/client/views/nodes/Annotation.tsx
@@ -1,8 +1,8 @@
import "./ImageBox.scss";
-import React = require("react")
-import { observer } from "mobx-react"
+import React = require("react");
+import { observer } from "mobx-react";
import { observable, action } from 'mobx';
-import 'react-pdf/dist/Page/AnnotationLayer.css'
+import 'react-pdf/dist/Page/AnnotationLayer.css';
interface IProps {
Span: HTMLSpanElement;
@@ -29,13 +29,13 @@ export class Annotation extends React.Component<IProps> {
*/
onColorChange = (e: React.PointerEvent) => {
if (e.currentTarget.innerHTML === "r") {
- this.props.Span.style.backgroundColor = "rgba(255,0,0, 0.3)"
+ this.props.Span.style.backgroundColor = "rgba(255,0,0, 0.3)";
} else if (e.currentTarget.innerHTML === "b") {
- this.props.Span.style.backgroundColor = "rgba(0,255, 255, 0.3)"
+ this.props.Span.style.backgroundColor = "rgba(0,255, 255, 0.3)";
} else if (e.currentTarget.innerHTML === "y") {
- this.props.Span.style.backgroundColor = "rgba(255,255,0, 0.3)"
+ this.props.Span.style.backgroundColor = "rgba(255,255,0, 0.3)";
} else if (e.currentTarget.innerHTML === "g") {
- this.props.Span.style.backgroundColor = "rgba(76, 175, 80, 0.3)"
+ this.props.Span.style.backgroundColor = "rgba(76, 175, 80, 0.3)";
}
}
@@ -54,11 +54,11 @@ export class Annotation extends React.Component<IProps> {
this.props.Highlights.splice(index, 1);
}
}
- })
+ });
//removing from CurrAnno and Annotation array
this.props.Annotations.splice(index, 1);
- this.props.CurrAnno.pop()
+ this.props.CurrAnno.pop();
//removing span from div
if (this.props.Span.parentElement) {
@@ -70,11 +70,11 @@ export class Annotation extends React.Component<IProps> {
if (item === e) {
item.remove();
}
- })
+ });
e.remove();
}
}
- })
+ });
}