pdf.js/test
Jonas Jenwald fc055dbd80 [api-minor] Extend general transfer function support to browsers without OffscreenCanvas
This patch extends PR 16115 to work in all browsers, regardless of their `OffscreenCanvas` support, such that transfer functions will be applied to general rendering (and not just image data).
In order to do this we introduce the `BaseFilterFactory` that is then extended in browsers/Node.js environments, similar to all the other factories used in the API, such that we always have the necessary factory available in `src/display/canvas.js`.

These changes help simplify the existing `putBinaryImageData` function, and the new method can easily be stubbed-out in the Firefox PDF Viewer.

*Please note:* This patch removes the old *partial* transfer function support, which only applied to image data, from Node.js environments since the `node-canvas` package currently doesn't support filters. However, this should hopefully be fine given that:
 - Transfer functions are not very commonly used in PDF documents.
 - Browsers in general, and Firefox in particular, are the *primary* development target for the PDF.js library.
 - The FAQ only lists Node.js as *mostly* supported, see https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-support
2023-03-14 13:09:08 +01:00
..
chromium Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
font Enable the ESLint prefer-spread rule 2022-08-06 10:17:00 +02:00
integration [JS] Send a Validate action on change on Choice widget 2023-02-19 16:33:05 +01:00
pdfs Merge pull request #16096 from bungeman/fix_trig_functions 2023-03-11 14:32:23 +01:00
resources Enable the unicorn/prefer-regexp-test ESLint plugin rule 2022-09-19 16:34:01 +02:00
stats Use more for...of loops in the code-base 2022-07-17 16:18:54 +02:00
ttx Update ttx from version 2.5 to version 3.19.0 2022-07-10 21:18:36 +02:00
types Add support for modern ECMAScript class features 2021-10-22 22:01:17 +02:00
unit Merge pull request #16096 from bungeman/fix_trig_functions 2023-03-11 14:32:23 +01:00
.eslintrc Enable ESLint rules that no longer need to be disabled on a directory/file-basis 2021-01-22 17:47:03 +01:00
.gitignore Ignore test snapshots directory. 2013-03-15 11:24:08 -07:00
add_test.js Enable the ESLint no-var rule in test/add_test.js 2021-03-14 10:25:51 +01:00
annotation_layer_builder_overrides.css [Annotation] Don't rotate an annotation when it has the NoRotate flag 2023-03-06 17:27:11 +01:00
downloadutils.js Make verifyManifestFiles fail for non-linked test-cases with a "link": true-entry 2021-09-10 09:51:34 +02:00
driver.js [api-minor] Extend general transfer function support to browsers without OffscreenCanvas 2023-03-14 13:09:08 +01:00
integration-boot.js [Annotations] Add some aria-owns in the text layer to link to annotations (bug 1780375) 2022-08-12 14:35:26 +02:00
test_manifest.json [api-minor] Extend general transfer function support to browsers without OffscreenCanvas 2023-03-14 13:09:08 +01:00
test_slave.html Tighten the vars-argument for the ESLint no-unused-vars rule 2022-12-04 16:15:50 +01:00
test.js Revert "Update rimraf to version 4" 2023-03-06 19:57:00 +01:00
testutils.js Revert "Update rimraf to version 4" 2023-03-06 19:57:00 +01:00
text_layer_test.css Refactor the text layer code in order to avoid to recompute it on each draw 2022-12-01 18:42:43 +01:00
webserver.js Remove the LGTM configuration and inline disable comments (issue 13829) 2021-08-03 11:14:49 +02:00
xfa_layer_builder_overrides.css XFA - Fix xfaLink class to make links work (bug 1735738) 2021-10-29 11:39:33 -04:00