aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/PDFBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-03-09 19:47:45 -0400
committerGitHub <noreply@github.com>2020-03-09 19:47:45 -0400
commit7fa0783cdc37a70dc8d967188a27d50f269042cc (patch)
treebaa864643547ba264e85a09ad878818ab3cf7111 /src/client/views/nodes/PDFBox.tsx
parentcabb2cf9065d85112f1bd89e31b41dafdbc4ba54 (diff)
parent08aa3b6fc47cb7719c5690c176d05db36e724382 (diff)
Merge pull request #345 from browngraphicslab/audio_refactor
Audio refactor
Diffstat (limited to 'src/client/views/nodes/PDFBox.tsx')
-rw-r--r--src/client/views/nodes/PDFBox.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx
index f47620c24..4076128b2 100644
--- a/src/client/views/nodes/PDFBox.tsx
+++ b/src/client/views/nodes/PDFBox.tsx
@@ -94,11 +94,11 @@ export class PDFBox extends DocAnnotatableComponent<FieldViewProps, PdfDocument>
!this.Document._fitWidth && (this.Document._height = this.Document[WidthSym]() * (nh / nw));
}
- public search = (string: string, fwd: boolean) => { this._pdfViewer?.search(string, fwd); }
- public prevAnnotation = () => { this._pdfViewer?.prevAnnotation(); }
- public nextAnnotation = () => { this._pdfViewer?.nextAnnotation(); }
- public backPage = () => { this._pdfViewer!.gotoPage((this.Document.curPage || 1) - 1); }
- public forwardPage = () => { this._pdfViewer!.gotoPage((this.Document.curPage || 1) + 1); }
+ public search = (string: string, fwd: boolean) => { this._pdfViewer?.search(string, fwd); };
+ public prevAnnotation = () => { this._pdfViewer?.prevAnnotation(); };
+ public nextAnnotation = () => { this._pdfViewer?.nextAnnotation(); };
+ public backPage = () => { this._pdfViewer!.gotoPage((this.Document.curPage || 1) - 1); };
+ public forwardPage = () => { this._pdfViewer!.gotoPage((this.Document.curPage || 1) + 1); };
public gotoPage = (p: number) => { this._pdfViewer!.gotoPage(p); };
@undoBatch