diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-08-07 23:27:21 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-08-07 23:27:21 -0400 |
commit | ebddce0975fa7e224e022cc075eee71abeacbe1d (patch) | |
tree | a629963e9c12870aac72514ccf3aea55e1a94b22 /src/client/views/pdf/PDFViewer.tsx | |
parent | 941c50617a0cbaef054f2be856de013bd69ea81f (diff) |
changed pdfs to render regions as collections. changed libraryBrush implementation.
Diffstat (limited to 'src/client/views/pdf/PDFViewer.tsx')
-rw-r--r-- | src/client/views/pdf/PDFViewer.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/pdf/PDFViewer.tsx b/src/client/views/pdf/PDFViewer.tsx index 95df10c58..7cd62f4e0 100644 --- a/src/client/views/pdf/PDFViewer.tsx +++ b/src/client/views/pdf/PDFViewer.tsx @@ -184,7 +184,7 @@ export class PDFViewer extends React.Component<IViewerProps> { annoDoc.color = color; annoDoc.type = AnnotationTypes.Region; annoDocs.push(annoDoc); - annoDoc.isBackground = true; + annoDoc.isButton = true; anno.remove(); this.props.addDocument && this.props.addDocument(annoDoc, false); mainAnnoDoc = annoDoc; @@ -208,7 +208,6 @@ export class PDFViewer extends React.Component<IViewerProps> { mainAnnoDocProto.y = Math.max(minY, 0); mainAnnoDocProto.annotations = new List<Doc>(annoDocs); } - mainAnnoDocProto.pdfDoc = this.props.Document; mainAnnoDocProto.title = "Annotation on " + StrCast(this.props.Document.title); mainAnnoDocProto.annotationOn = this.props.Document; if (sourceDoc && createLink) { |