aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/pdf/PDFAnnotationLayer.tsx
diff options
context:
space:
mode:
authorSam Wilkins <samuel_wilkins@brown.edu>2019-06-26 12:48:40 -0400
committerSam Wilkins <samuel_wilkins@brown.edu>2019-06-26 12:48:40 -0400
commit444f970365a4280376e929e78c16090f6ae92739 (patch)
tree8b8a1412e9cad8f508234dcf71043a7cedbc2fc4 /src/client/views/pdf/PDFAnnotationLayer.tsx
parent64ffa0accfc872c81035079527952aabaf56c6f6 (diff)
parent219cabb3fe42ab199550efc3423b7aaed4e1ee93 (diff)
merged with master
Diffstat (limited to 'src/client/views/pdf/PDFAnnotationLayer.tsx')
-rw-r--r--src/client/views/pdf/PDFAnnotationLayer.tsx24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/client/views/pdf/PDFAnnotationLayer.tsx b/src/client/views/pdf/PDFAnnotationLayer.tsx
new file mode 100644
index 000000000..1f49e0d2f
--- /dev/null
+++ b/src/client/views/pdf/PDFAnnotationLayer.tsx
@@ -0,0 +1,24 @@
+import React = require("react");
+import { observer } from "mobx-react";
+
+interface IAnnotationProps {
+
+}
+
+@observer
+export class PDFAnnotationLayer extends React.Component {
+ onPointerDown = (e: React.PointerEvent) => {
+ if (e.ctrlKey) {
+ console.log("annotating");
+ e.stopPropagation();
+ }
+ }
+
+ render() {
+ return (
+ <div className="pdfAnnotationLayer-cont" style={{ width: "100%", height: "100%", position: "relative", top: "-200%" }} onPointerDown={this.onPointerDown}>
+
+ </div>
+ );
+ }
+} \ No newline at end of file