125 Commits (5fa9cca8dd1d213b6dd0be9ee6ea911deb80b98a)

Author SHA1 Message Date
Jonas Jenwald 5fa9cca8dd Refactor `PDFViewer` to extend an abstract `BaseViewer` class 8 years ago
Jonas Jenwald d7198d3e17 Rename `web/pdf_viewer.js` to `web/base_viewer.js` 8 years ago
Jonas Jenwald 6c3856c841 Ignore 'change' events that didn't originate in the viewer (issue 8915) 8 years ago
Jonas Jenwald e135c03123 Store the rotation in the `PDFHistory` 8 years ago
Jonas Jenwald 44d5138d0f Store the rotation in the `ViewHistory` (issue 5927) 8 years ago
Jonas Jenwald 5565a6f8bf Slightly refactor the pages rotation handling code in the viewer 8 years ago
Jonas Jenwald 39a77c76ad Assign a dummy value to the `docBaseUrl` API parameter in non-`PRODUCTION` mode 8 years ago
Jonas Jenwald 133d06e9a4 Re-write `PDFHistory` from scratch 8 years ago
Jonas Jenwald 28ce3b6185 Rip out the current implementation of `PDFHistory` 8 years ago
Jonas Jenwald 028d7c0950 Ensure that `PDFViewerApplication.error` outputs proper messages in FIREFOX/MOZCENTRAL builds 8 years ago
Jonas Jenwald 870a8f6c35 Remove the ability to pass a `scale` parameter in the (optional) `args` object parameter of `PDFViewerApplication.open(file, args)` 8 years ago
Jonas Jenwald fce31c3f83 Ensure that the loadingBar isn't displayed again when the entire file has already been fetched 8 years ago
Jonas Jenwald 20d6286cce Add support for, the API property, PageMode in the viewer (issue 8657) 8 years ago
Jonas Jenwald f7c4ed4bc3 Refactor reading from the `ViewHistory` in `PDFViewerApplication.load` 8 years ago
Jonas Jenwald 49333ddd44 Move the `hasEqualPageSizes` getter from `PDFViewerApplication` and into `PDFViewer` instead 8 years ago
Christian Myksvoll 95093a5276 Check for undefined url (#8640) 8 years ago
Jonas Jenwald c253ee9ab8 Ensure that the document is rendered on load, no matter what happens, by always calling `PDFViewer.update` *after* the initial position has been set 8 years ago
Jonas Jenwald 8391aacb89 Remove the scale-not-initialized hack from `webViewerResize` (in app.js) 8 years ago
Jonas Jenwald d64ac95a91 ES6-ify the code in `web/app.js` and `web/viewer.js` 8 years ago
Jonas Jenwald f6369fc87c ES6-ify the code in `web/ui_utils.js` 8 years ago
Jonas Jenwald 83673a12d7 Stop tracking the rotation in `PDFViewerApplication` and directly use `PDFViewer.pagesRotation` instead 8 years ago
Jonas Jenwald 4aab3cef4a Remove a redundant `PDFViewer.currentScale` call from `PDFViewerApplication.load` 8 years ago
Jonas Jenwald e4d032c5c7 Reset `pageRotation` and `downloadComplete` in `PDFViewerApplication.close` 8 years ago
curiosity26 8326304271 Allow for unbinding of events in web application 8 years ago
Jonas Jenwald 223c429357 Fix inconsistent spacing and trailing commas in objects in `web/` files, so we can enable the `comma-dangle` and `object-curly-spacing` ESLint rules later on 8 years ago
Jonas Jenwald 1d4e96b0b5 Add a stub `createL10n` to `DefaultExternalServices` in app.js 8 years ago
Yury Delendik 5438ce9b98 Wraps mozL10n to async calls; splits firefox and generic l10n libs. 8 years ago
Yury Delendik 66c8893815 Removes last UMDs from the modules. 8 years ago
Tim van der Meij e7a04fc82d
Convert the overlay manager to ES6 syntax 8 years ago
Jonas Jenwald 36c2791296 Unify handling of various cursor tools, e.g. the current Hand Tool and a possible future Zoom Tool, in a new `PDFCursorTools` module 8 years ago
Jonas Jenwald 240a3926f4 Replace unnecessary `var self = this` statements with arrow functions in `web/app.js` 8 years ago
Jonas Jenwald 7780fd5b98 Re-factor `PDFDocumentProperties` such that it's properly reset when a new PDF file is opened (issue 8371) 8 years ago
Jonas Jenwald f27b5013e2 Replace unnecessary `bind(this)` statements with arrow functions in `web/` files 8 years ago
Jonas Jenwald 2a0207ccaf Enable the `object-shorthand` ESLint rule in `web` 8 years ago
Jonas Jenwald 09edfb3dc0 Re-factor `ViewHistory` to make it properly asynchronous 8 years ago
Jonas Jenwald c5f9193777 Convert the `Preferences` to an ES6 class 8 years ago
Yury Delendik 8e681ce3e2 Change amd to cjs path in ES6 modules 8 years ago
Jonas Jenwald b2c3f8f081 Convert a number of `import * as pdfjsLib from 'pdfjs-web/pdfjs';` cases to only specify the necessary imports 8 years ago
Jonas Jenwald 3b35c15d42 Convert the files in the `/web` folder to ES6 modules 8 years ago
Jonas Jenwald 313060aff5 Refactor the `DownloadManager` initialization in `GENERIC`/`CHROME` builds, to avoid issues when converting the code to ES6 modules 8 years ago
Jonas Jenwald 6d672c4ba6 [api-minor] Add a `pdfjsNext` parameter, and `PDFJS_NEXT` build flag, to allow backwards incompatible API changes 8 years ago
Yury Delendik eb4c88cd44 Replacing custom bundling with webpack2. 8 years ago
Rob Wu ece44d36e8 Allow automatic print rotation via enablePrintAutoRotate 8 years ago
Rob Wu c67edabcb3 Set title using logic similar as download name 8 years ago
Rob Wu 228d253f30 Detect download filename based on full URL 8 years ago
Jonas Jenwald a96b0f80dd Convert the only remaining consumer (in `hand_tool.js`) of the 'localized' event to use the `localized` Promise instead, and only re-dispatch the 'localized' event on the `eventBus` for `GENERIC` builds 8 years ago
Jonas Jenwald 648024f5d0 Don't call `bindEvents()` until `PDFViewerApplication` has been initialized, and move binding of `window` event listeners to a helper method, to prevent errors if an event manages to arrive too soon 8 years ago
Jonas Jenwald 849f5dde9d Move the `Preferences` initialization/fetching code to the top of `PDFViewerApplication.initialize`, to enable using them when initializing e.g. the viewer components 8 years ago
Jonas Jenwald 2c1436f6cb Refactor `PDFViewerApplication.initialize` into two methods, one that reads the Preferences and one that initializes the various viewer components 8 years ago
Jonas Jenwald 48696a8d06 Make the keyboard shortcuts `Ctrl + Up/Down` behave as `Home/End` (issue 7852) 9 years ago