diff options
author | bob <bcz@cs.brown.edu> | 2019-06-17 14:41:57 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-17 14:41:57 -0400 |
commit | a408a4d791fa19f19bd9fab791c2bea2c0d178ab (patch) | |
tree | 8b83423138dd980149d387505421811da01824d7 /src/client/views/pdf/PDFAnnotationLayer.tsx | |
parent | f74e512e500252ad76d77935e7aacbf72cb0dd9c (diff) | |
parent | 62e7e21d6db96a9c62710c2bc6842705b79f5665 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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 |