pdf.js/src/display
Jonas Jenwald 67303b16f1 [api-minor] Let Babel handle the necessary core-js polyfills automatically
In the last couple of years we've been quicker to remove support for older browsers/environments, which means that at this point in time we don't bundle that many polyfills. (The polyfills are also generally simpler nowadays, ever since we removed support for e.g. Internet Explorer.)
Rather than having to *manually* handle the polyfills, we can actually let Babel take care of bundling the necessary polyfills for us; please refer to https://babeljs.io/docs/babel-preset-env

The only exception here is the Node.js-specific compatibility-code, which is moved into the `src/display/node_utils.js` file. This ought to be fine since workers are not available/used in Node.js-environments.

*Please note:* For the `legacy`-builds this will increase the size of the *built* files, however that seems like a very small price to pay in order to simplify maintenance of the general PDF.js library.
2023-07-17 16:42:08 +02:00
..
editor [Editor] Use 2 decimals for editor positions and dimensions 2023-07-17 15:08:09 +02:00
annotation_layer.js [Editor] Try to make the position of an edited FreeText the more accurated as possible 2023-07-12 19:53:57 +02:00
annotation_storage.js [Editor] Support svg images in the stamp annotation 2023-07-07 15:59:13 +02:00
api.js [api-minor] Stop "supporting" binary data provided as Buffer in Node.js environments (PR 16055 follow-up) 2023-07-01 10:34:18 +02:00
base_factory.js Improve highlightments and popups in HCM (bug 1830850) 2023-06-26 14:45:03 +02:00
canvas.js Use the Util.getAxialAlignedBoundingBox helper function more 2023-05-31 09:32:19 +02:00
content_disposition.js Enable the unicorn/prefer-optional-catch-binding ESLint plugin rule 2023-06-12 11:46:11 +02:00
display_utils.js Improve highlightments and popups in HCM (bug 1830850) 2023-06-26 14:45:03 +02:00
fetch_stream.js Change the createPromiseCapability helper function into a PromiseCapability class 2023-04-29 13:43:24 +02:00
font_loader.js Warn when pdf.js can't load an OS font 2023-05-16 14:58:38 +02:00
metadata.js Convert Metadata to use private class fields 2021-10-22 22:01:19 +02:00
network_utils.js Enable the unicorn/prefer-optional-catch-binding ESLint plugin rule 2023-06-12 11:46:11 +02:00
network.js Change the createPromiseCapability helper function into a PromiseCapability class 2023-04-29 13:43:24 +02:00
node_stream.js Change the createPromiseCapability helper function into a PromiseCapability class 2023-04-29 13:43:24 +02:00
node_utils.js [api-minor] Let Babel handle the necessary core-js polyfills automatically 2023-07-17 16:42:08 +02:00
optional_content_config.js [api-minor] Add basic support for the SetOCGState action (issue 15372) 2022-09-01 17:34:24 +02:00
pattern_helper.js Simplify initialization of static class properties in the worker-thread 2023-04-29 13:49:38 +02:00
svg.js Actually limit SVGGraphics to GENERIC builds (PR 16226 follow-up) 2023-06-14 21:38:10 +02:00
text_layer.js Change the createPromiseCapability helper function into a PromiseCapability class 2023-04-29 13:43:24 +02:00
transport_stream.js Change the createPromiseCapability helper function into a PromiseCapability class 2023-04-29 13:43:24 +02:00
worker_options.js Simplify setting the GlobalWorkerOptions default values (PR 9480 follow-up) 2023-01-26 14:16:01 +01:00
xfa_layer.js Replace element ids with custom attributes in the xfaLayer 2022-07-10 15:44:54 +02:00
xfa_text.js XFA - Support text search in XFA documents. 2021-08-23 08:44:20 -07:00