pdf.js/web
Jonas Jenwald 32d16ab5f6 [PDFSidebarResizer] Re-factor the resize event listener to improve readability
I've absolutely no idea why I wrote the code that way originally, since the nested `if`s are not really helping readability one bit.
Hence this patch which changes things to use early `return`s instead, to help readability.
2019-10-03 12:24:19 +02:00
..
images Add spread modes to web viewer 2018-05-14 23:10:32 -04:00
.eslintrc Enable eslint-plugin-import to prevent unresolved paths 2018-11-23 13:50:28 +01:00
.gitignore Remove obselete file from .gitignore 2015-01-26 16:44:45 +01:00
annotation_layer_builder.css Implement creation/modification date for annotations 2019-05-05 14:51:03 +02:00
annotation_layer_builder.js Move the imageResourcesPath option to a BaseViewer/PDFPageView/AnnotationLayerBuilder option 2018-02-13 14:28:38 +01:00
app_options.js [api-minor] Remove the postMessageTransfers parameter, and thus the ability to manually disable transferring of data, from the API 2019-09-05 13:09:54 +02:00
app.js Replace our URL polyfill with the one from core-js 2019-09-19 14:09:51 +02:00
base_viewer.js Refactor the onBeforeDraw/onAfterDraw functionality used in BaseViewer and PDFPageView 2019-07-19 12:57:14 +02:00
chrome-i18n-allow-access-to-file-urls.json Add translations of "Allow access to file URLs" 2015-08-14 18:59:55 +02:00
chromecom.js Replace our URL polyfill with the one from core-js 2019-09-19 14:09:51 +02:00
compressed.tracemonkey-pldi-09.pdf Add Makefile. Move some files around to make building the website easier. 2011-07-05 10:53:57 -07:00
debugger.js [Regression] Fix the FontInspector in the PDFBug debugging tools 2019-01-22 13:22:36 +01:00
download_manager.js Replace our URL polyfill with the one from core-js 2019-09-19 14:09:51 +02:00
firefox_print_service.js Remove the data-pdfjsprinting attribute on the <body> when destroying FirefoxPrintService/PDFPrintService instances (issue 10948) 2019-07-10 16:49:31 +02:00
firefoxcom.js Replace our URL polyfill with the one from core-js 2019-09-19 14:09:51 +02:00
genericcom.js Refactor the Preferences classes to utilize async methods rather than manually returning Promises 2018-09-03 09:52:36 +02:00
genericl10n.js Refactor the IL10n implementations to utilize async methods rather than manually returning Promises 2018-09-03 09:52:36 +02:00
grab_to_pan.js Enable the consistent-return ESLint rule 2019-05-11 14:27:21 +02:00
interfaces.js Add a way to disable external links. 2019-08-21 11:20:41 -07:00
overlay_manager.js Refactor the OverlayManager to utilize async methods rather than manually returning Promises 2018-09-03 09:52:36 +02:00
password_prompt.js Enable the consistent-return ESLint rule 2019-05-11 14:27:21 +02:00
pdf_attachment_viewer.js Move the disableCreateObjectURL option from the global PDFJS object and into getDocument instead 2018-03-01 18:11:17 +01:00
pdf_cursor_tools.js Simplify resetting of the SecondaryToolbar Scroll/Spread mode buttons, and add a missing comment in PDFCursorTools 2018-07-08 10:55:56 +02:00
pdf_document_properties.js Enable the consistent-return ESLint rule 2019-05-11 14:27:21 +02:00
pdf_find_bar.js Tweak the DOMTokenList.toggle polyfill (issue 10460) 2019-01-16 20:15:44 +01:00
pdf_find_controller.js Remove a superfluous linkService.isPageVisible check from PDFFindController (PR 10217 follow-up) 2019-06-10 21:04:47 +02:00
pdf_find_utils.js Add initial support for "Whole words" searching in the viewer 2018-09-10 11:59:29 +02:00
pdf_history.js Avoid setting incorrect document URLs, in IE 11, when the browser history is updated (PR 10423 follow-up) 2019-01-16 19:26:44 +01:00
pdf_link_service.js Add a way to disable external links. 2019-08-21 11:20:41 -07:00
pdf_outline_viewer.js Add a way to disable external links. 2019-08-21 11:20:41 -07:00
pdf_page_view.js Refactor the onBeforeDraw/onAfterDraw functionality used in BaseViewer and PDFPageView 2019-07-19 12:57:14 +02:00
pdf_presentation_mode.js Add source parameters to all remaining EventBus.dispatch calls that are currently missing those 2018-08-30 10:39:32 +02:00
pdf_print_service.js Enable a couple of return related ESLint rules 2019-09-20 14:30:03 +02:00
pdf_rendering_queue.js Use Promise.prototype.finally in the PDFRenderingQueue.renderView method 2019-02-25 12:20:51 +01:00
pdf_sidebar_resizer.js [PDFSidebarResizer] Re-factor the resize event listener to improve readability 2019-10-03 12:24:19 +02:00
pdf_sidebar.js Move the sidebar toggleButton event listener into PDFSidebar 2019-08-10 15:38:33 +02:00
pdf_single_page_viewer.js Try to simplify the PDFSinglePageViewer._scrollIntoView method slightly, by unconditionally ensuring that rendering always occurs 2019-01-24 12:01:07 +01:00
pdf_thumbnail_view.js Fix {PDFPageView, PDFThumbnailView}.cancelRendering to avoid visual artifacts when called directly 2019-02-16 11:11:07 +01:00
pdf_thumbnail_viewer.js [api-minor] Change the getViewport method, on PDFPageProxy, to take a parameter object rather than a bunch of (randomly) ordered parameters 2018-12-21 11:55:20 +01:00
pdf_viewer.component.js Remove the attachDOMEventsToEventBus functionality, since EventBus instances are able to re-dispatch events to the DOM (PR 10019, bug 1492849 follow-up) 2018-10-31 23:32:39 +01:00
pdf_viewer.css Add spread modes to web viewer 2018-05-14 23:10:32 -04:00
pdf_viewer.js Move additional code/methods into BaseViewer and have the extending classes override/extend methods as necessary 2019-01-24 10:31:06 +01:00
pdfjs.js Use ES6 notation, and replace var with let, in web/pdf_viewer.component.js and web/pdfjs.js 2017-11-05 16:53:47 +01:00
preferences.js Add type validation to the default_preferences generation (PR 10548 follow-up) 2019-03-03 12:51:57 +01:00
secondary_toolbar.js Convert more code to use classList.toggle with the force parameter 2019-02-06 17:18:45 +01:00
text_layer_builder.css Use span instead of div in the text layer 2018-11-18 15:54:08 +01:00
text_layer_builder.js Simplify the updatetextlayermatches event handling in TextLayerBuilder 2019-02-16 11:11:04 +01:00
toolbar.js Ensure that the loading indicator, in the pageNumber input, is hidden when the viewer is closed 2019-08-01 16:30:33 +02:00
ui_utils.js [PDFSidebarResizer] Refactor the clamping in _updateWidth 2019-10-03 12:03:45 +02:00
view_history.js Refactor the ViewHistory to utilize async methods rather than manually returning Promises 2018-09-03 09:52:36 +02:00
viewer_compatibility.js Remove the disableFullscreen hack for embedded IE 11 (issue 9585) 2018-06-14 12:25:28 +02:00
viewer-snippet-chrome-extension.html Wraps mozL10n to async calls; splits firefox and generic l10n libs. 2017-05-31 09:22:25 -05:00
viewer-snippet-chrome-overlays.html [CRX] Add file chooser as fallback (fixes #9411) 2018-03-21 18:21:46 +01:00
viewer-snippet-firefox-extension.html Stop bundling the ReadableStream polyfill in MOZCENTRAL builds (PR 10470 follow-up) 2019-01-23 20:33:20 +01:00
viewer-snippet-minified.html Remove XHTML leftovers from the viewer HTML files 2016-02-14 13:23:34 +01:00
viewer-snippet.html Wraps mozL10n to async calls; splits firefox and generic l10n libs. 2017-05-31 09:22:25 -05:00
viewer.css Fix small visual quirk in thumbnail viewer 2018-12-18 22:48:26 +01:00
viewer.html Add initial support for "Whole words" searching in the viewer 2018-09-10 11:59:29 +02:00
viewer.js In GENERIC builds, dispatch a "webviewerloaded" event (from the webViewerLoad function) before initializing the viewer 2018-11-30 10:04:30 +01:00