pdf.js/src/display
Jonas Jenwald 1dad255784 Convert files in the src/display/-folder to use optional chaining where possible
By using optional chaining, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining, it's possible to reduce unnecessary code-repetition in many cases.
Note that these changes also reduce the size of the *built* `pdf.js` file, when `SKIP_BABEL == true` is set, and for the `MOZCENTRAL` build-target that result in a `0.1%` filesize reduction from a simple and mostly mechanical code change.
2020-11-07 13:22:06 +01:00
..
annotation_layer.js Make sure that Popup is rendered next to trigger for textAnnotation 2020-11-05 06:45:17 +01:00
annotation_storage.js Update all Object.fromEntries call-sites to ensure that a null prototype is used 2020-10-28 14:43:44 +01:00
api_compatibility.js [api-minor] Remove the disableCreateObjectURL option from the getDocument parameters, since it's now unused in the API 2020-05-22 00:22:48 +02:00
api.js Convert files in the src/display/-folder to use optional chaining where possible 2020-11-07 13:22:06 +01:00
canvas.js Convert files in the src/display/-folder to use optional chaining where possible 2020-11-07 13:22:06 +01:00
content_disposition.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
display_utils.js Enable the ESLint no-var rule in the src/display/ folder 2020-10-02 16:16:23 +02:00
fetch_stream.js Convert files in the src/display/-folder to use optional chaining where possible 2020-11-07 13:22:06 +01:00
font_loader.js Convert files in the src/display/-folder to use optional chaining where possible 2020-11-07 13:22:06 +01:00
metadata.js Update all Object.fromEntries call-sites to ensure that a null prototype is used 2020-10-28 14:43:44 +01:00
network_utils.js Enable the unicorn/prefer-starts-ends-with ESLint plugin rule 2020-02-16 12:41:53 +01:00
network.js Enable the ESLint no-var rule in the src/display/ folder 2020-10-02 16:16:23 +02:00
node_stream.js Re-factor setPDFNetworkStreamFactory, in src/display/api.js, to also accept an asynchronous function 2020-05-20 13:18:18 +02:00
node_utils.js Enable the ESLint no-var rule in the src/display/ folder 2020-10-02 16:16:23 +02:00
optional_content_config.js Update all Object.fromEntries call-sites to ensure that a null prototype is used 2020-10-28 14:43:44 +01:00
pattern_helper.js Improve the Pattern-detection in CanvasGraphics.stroke 2020-11-06 11:46:35 +01:00
svg.js Convert files in the src/display/-folder to use optional chaining where possible 2020-11-07 13:22:06 +01:00
text_layer.js Convert files in the src/display/-folder to use optional chaining where possible 2020-11-07 13:22:06 +01:00
transport_stream.js Convert files in the src/display/-folder to use optional chaining where possible 2020-11-07 13:22:06 +01:00
webgl.js Convert files in the src/display/-folder to use optional chaining where possible 2020-11-07 13:22:06 +01:00
worker_options.js Use typedef to define the type of GlobalWorkerOptions. 2020-08-03 19:06:28 +09:00