|
|
|
@ -21,7 +21,7 @@ import {
@@ -21,7 +21,7 @@ import {
|
|
|
|
|
} from './ui_utils'; |
|
|
|
|
import { PDFRenderingQueue, RenderingStates } from './pdf_rendering_queue'; |
|
|
|
|
import { AnnotationLayerBuilder } from './annotation_layer_builder'; |
|
|
|
|
import { domEvents } from './dom_events'; |
|
|
|
|
import { getGlobalEventBus } from './dom_events'; |
|
|
|
|
import { PDFPageView } from './pdf_page_view'; |
|
|
|
|
import { SimpleLinkService } from './pdf_link_service'; |
|
|
|
|
import { TextLayerBuilder } from './text_layer_builder'; |
|
|
|
@ -106,7 +106,7 @@ var PDFViewer = (function pdfViewer() {
@@ -106,7 +106,7 @@ var PDFViewer = (function pdfViewer() {
|
|
|
|
|
function PDFViewer(options) { |
|
|
|
|
this.container = options.container; |
|
|
|
|
this.viewer = options.viewer || options.container.firstElementChild; |
|
|
|
|
this.eventBus = options.eventBus || domEvents.getGlobalEventBus(); |
|
|
|
|
this.eventBus = options.eventBus || getGlobalEventBus(); |
|
|
|
|
this.linkService = options.linkService || new SimpleLinkService(); |
|
|
|
|
this.downloadManager = options.downloadManager || null; |
|
|
|
|
this.removePageBorders = options.removePageBorders || false; |
|
|
|
|