diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-06-06 18:26:57 -0400 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-06-06 18:26:57 -0400 |
commit | 0a14ecf9b9fa5e15bc3e5373c8f042f9cd876c8a (patch) | |
tree | 688c5073f97a9d3cb8113ad1698c101651a9c699 /src/client/views/pdf/PDFAnnotationLayer.tsx | |
parent | a37629f55ef279167a5ef2fec88dc548f36f4938 (diff) |
region annotation basics
Diffstat (limited to 'src/client/views/pdf/PDFAnnotationLayer.tsx')
-rw-r--r-- | src/client/views/pdf/PDFAnnotationLayer.tsx | 24 |
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..e92dcacbf --- /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 |