pdf.js/src/scripting_api
Jonas Jenwald 155c17c99a [Regression] Prevent the *built* pdf.scripting.js/pdf.sandbox.js files from accidentally including most of the main-thread code (PR 12631 follow-up)
*This is a recent regression, which I stumbled upon while working on cleaning-up the gulpfile related to `pdf.sandbox.js` building.*

By placing the `ColorConverters` functionality in the `src/display/display_utils.js` file, you end up including a *significant* chunk of the `pdf.js` file in the built `pdf.scripting.js`/`pdf.sandbox.js` files.
Given that I cannot imagine that this was actually intended, since it inflates the built files with unnecessary/unused code, this moves `ColorConverters` to a new file instead (thus breaking the dependencies).

To hopefully reduce the risk future bugs, along these lines, a big comment is also placed at the top of the new file.
Finally, the `ColorConverters` is converted to a class with static methods, since this felt slightly cleaner overall.
2020-12-04 14:17:26 +01:00
..
aform.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
app.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
color.js [Regression] Prevent the *built* pdf.scripting.js/pdf.sandbox.js files from accidentally including most of the main-thread code (PR 12631 follow-up) 2020-12-04 14:17:26 +01:00
console.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
constants.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
doc.js JS -- Fix events dispatchment and add tests 2020-11-10 17:26:29 +01:00
error.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
event.js JS -- Fix events dispatchment and add tests 2020-11-10 17:26:29 +01:00
field.js Fix issue #12684: replace bitwise ORs by ORs 2020-12-02 23:02:11 +01:00
fullscreen.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
initialization.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
pdf_object.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
print_params.js JS -- Implement doc object 2020-11-10 16:16:42 +01:00
proxy.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
quickjs-sandbox.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
thermometer.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
util.js Run gulp lint --fix, to account for changes in Prettier version 2.2.1 2020-11-29 10:01:46 +01:00