2 Commits (56c14e27e648d87375e89c9c4ee895c93630f3fe)

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 30b7a0f093 Replace `value === (value | 0)` checks with `Number.isInteger(value)` in the `web/` folder 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 c523948cc7 Remove handling of fallback arguments from `PDFViewer.scrollPageIntoView` 8 years ago
Yury Delendik d0e93721ae More robust getPage() error handling. 8 years ago
Jonas Jenwald e1536251d5 Convert `PDFViewer` to an ES6 class 8 years ago
Jonas Jenwald 49333ddd44 Move the `hasEqualPageSizes` getter from `PDFViewerApplication` and into `PDFViewer` instead 8 years ago
Jonas Jenwald 735b58c3d5 Don't allow setting various properties, such as `currentPageNumber`/`currentScale`/`currentScaleValue`/`pagesRotation`, before `{PDFViewer, PDFThumbnailViewer}.setDocument` has been called 8 years ago
Jonas Jenwald 70d6550002 Remove `PDFPageView.updatePosition` since it's not actually necessary 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
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
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 79e0745a12 Import `getGlobalEventBus` correctly from `web/dom_events.js` in various `/web` files, to un-break e.g. the viewer components (PR 8203 follow-up) 8 years ago
Jonas Jenwald fce2cfddcf Check if `pageView.pdfPage` exists in `PDFViewer._ensurePdfPageLoaded`, to avoid potentially calling `PDFPageView.setPdfPage` multiple times for the same page 8 years ago
Jonas Jenwald b0a4f6de8f Use `createPromiseCapability` in `/web` files 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
Rob Wu ece44d36e8 Allow automatic print rotation via enablePrintAutoRotate 8 years ago
Rob Wu 775441b7c6 Refactor: configurable page rotation in print job 8 years ago
Jonas Jenwald 4046d67fde Enable the `no-else-return` ESLint rule 8 years ago
Yury Delendik f7d6f3a739 Adds SVG rendering capabilities to the PDFViewer. 9 years ago
Jonas Jenwald efb9619e53 Add PageLabels to `PDFPageView` and `PDFThumbnailView` 9 years ago
Jonas Jenwald f461fd64aa Add support for PageLabels in the viewer 9 years ago
Jonas Jenwald 2ce9da9b7a Fix a couple of JSDoc `@typedef`s to use `@property` (instead of `@param`) to fix some missing documentation when running `gulp jsdoc` 9 years ago
Yury Delendik 0576c9c6c6 Replaces all preprocessor directives with PDFJSDev calls. 9 years ago
Jonas Jenwald a824c6c4f6 Ensure that any pending rendering operations in `PDFViewer`/`PDFThumbnailViewer` are cancelled when the viewer is closed 9 years ago
Yury Delendik 24a7a58da7 Moves mozPrintCallback specific code to firefox_printservice.js 9 years ago
Tim van der Meij 2da2c45889 Interactive forms: remove global PDFJS usage 9 years ago
Jeremy Press 6faa84abdb Continuing fairexpand #6663 9 years ago
Jonas Jenwald 31cd23a6df Remove an obsolete comment for `onAfterDraw` in pdf_viewer.js 9 years ago
Jonas Jenwald 076e25f1ca Prevent destinations with bad left/top values from scrolling the wrong page into view (bug 874482) 9 years ago
Xiliang Chen 6cb77d6580 fix outline may jump to previous page issue 9 years ago
Jonas Jenwald 7706cfa9fe Log an error when the value passed to `set currentPageNumber` is out of bounds (PR 7502 followup) 9 years ago
Jonas Jenwald 50aeb00adf Add validation of the `rotation` argument passed to `set pagesRotation` in `PDFViewer` 9 years ago
Jonas Jenwald b7cb44af88 Remove the `previousPageNumber` parameter from the `pagechanging`/pagechange` events, and stop dispatching the events if the input is out of bounds 9 years ago
Jonas Jenwald f297e4d17c [api-minor] Add a parameter to `PDFPageProxy_getTextContent` that controls whether `PartialEvaluator_getTextContent` will attempt to combine same line text items 9 years ago
Jonas Jenwald 9f34700e0d Ensure that we don't reset the current page view if the user inputs an invalid page number (PR 7289 follow-up) 9 years ago
Jonas Jenwald dd0fe10a52 Consolidate updating of various Toolbar state (e.g. page and scale) in one method in `PDFViewerApplication` 9 years ago
Jonas Jenwald b354682dd6 [api-minor] Let `LinkAnnotation`/`PDFLinkService_getDestinationHash` return a stringified version of the destination array for explicit destinations 9 years ago
Yury Delendik 9f68e3f1bc Disable pagechange event if page is not changing. 9 years ago
Yury Delendik 4a2c76a34f Adds pre and post UI control change events. 9 years ago
Yury Delendik 7fd3db9977 Adds EventBus. 9 years ago
Yury Delendik 4165cedc9f Replace pdfjsLib with module that represents pdf.js. 9 years ago
Yury Delendik 006e8fb59d Introduces UMD headers to the web/ folder. 9 years ago
Yury Delendik 1e3e14e6b2 Exposes all functional members via lib exports and use them in viewer. 9 years ago