mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 15:48:06 +02:00
Merge pull request #7206 from Snuffleupagus/viewer-expose-non-classes-on-PDFViewerApplication
Expose a few non-classes on `PDFViewerApplication`
This commit is contained in:
commit
7f90f5bfed
1 changed files with 6 additions and 0 deletions
|
@ -194,6 +194,7 @@ var PDFViewerApplication = {
|
|||
pdfRenderingQueue.setThumbnailViewer(this.pdfThumbnailViewer);
|
||||
|
||||
Preferences.initialize();
|
||||
this.preferences = Preferences;
|
||||
|
||||
this.pdfHistory = new PDFHistory({
|
||||
linkService: pdfLinkService
|
||||
|
@ -222,10 +223,13 @@ var PDFViewerApplication = {
|
|||
|
||||
this.findController.setFindBar(this.findBar);
|
||||
|
||||
this.overlayManager = OverlayManager;
|
||||
|
||||
HandTool.initialize({
|
||||
container: container,
|
||||
toggleHandTool: document.getElementById('toggleHandTool')
|
||||
});
|
||||
this.handTool = HandTool;
|
||||
|
||||
this.pdfDocumentProperties = new PDFDocumentProperties({
|
||||
overlayName: 'documentPropertiesOverlay',
|
||||
|
@ -261,6 +265,7 @@ var PDFViewerApplication = {
|
|||
pageRotateCcw: document.getElementById('pageRotateCcw'),
|
||||
documentPropertiesButton: document.getElementById('documentProperties')
|
||||
});
|
||||
this.secondaryToolbar = SecondaryToolbar;
|
||||
|
||||
if (this.supportsFullscreen) {
|
||||
var toolbar = SecondaryToolbar;
|
||||
|
@ -288,6 +293,7 @@ var PDFViewerApplication = {
|
|||
passwordSubmit: document.getElementById('passwordSubmit'),
|
||||
passwordCancel: document.getElementById('passwordCancel')
|
||||
});
|
||||
this.passwordPrompt = PasswordPrompt;
|
||||
|
||||
this.pdfOutlineViewer = new PDFOutlineViewer({
|
||||
container: document.getElementById('outlineView'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue