Pass in a PDFViewer
instance to PDFPresentationMode
and use it to eliminate all references to PDFViewerApplication
This patch is the the first step towards to addressing issue 6158, which will be done by refactoring the code for setting/getting the current scale in `viewer.js`.
This commit is contained in:
parent
7a6a3f10ad
commit
6b2810f1f0
2 changed files with 14 additions and 12 deletions
|
@ -220,6 +220,7 @@ var PDFViewerApplication = {
|
|||
this.pdfPresentationMode = new PDFPresentationMode({
|
||||
container: container,
|
||||
viewer: viewer,
|
||||
pdfViewer: this.pdfViewer,
|
||||
pdfThumbnailViewer: this.pdfThumbnailViewer,
|
||||
contextMenuItems: [
|
||||
{ element: document.getElementById('contextFirstPage'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue