pdf.js/src/core
Jonas Jenwald ebe3ee4f25 Modernize the Shadings structure, in src/core/pattern.js, to use standard classes
This patch replaces the old structure with a abstract base-class, which the new RadialAxial/Mesh-shading classes then inherit from.[1]
The old `MeshClosure` can now be removed, since it's not necessary any more, and most of the functions inside of it are now instead methods on the new `MeshShading` class. This is particularly nice, in my opinion, since we previously were *manually* passing around a reference to the current `Mesh`-instance.

---
[1] If we want/need to, in the future, split e.g. the Mesh-handling into multiple classes that should now be easy to do.
2021-05-14 21:44:41 +02:00
..
xfa XFA -- Display text content 2021-04-12 14:13:49 +02:00
.eslintrc Enable the ESLint no-var rule globally 2021-03-13 16:12:53 +01:00
annotation.js JS -- add support for page property in field 2021-05-03 15:46:29 +02:00
arithmetic_decoder.js Re-factor how the ESLint no-var rule is enabled in the src/ folder 2020-10-03 20:15:29 +02:00
ascii_85_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
ascii_hex_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
base_stream.js Add a new BaseStream.getString(...) method to replace manual bytesToString(BaseStream.getBytes(...)) calls 2021-05-01 19:20:36 +02:00
bidi.js Re-factor how the ESLint no-var rule is enabled in the src/ folder 2020-10-03 20:15:29 +02:00
catalog.js JS -- add support for page property in field 2021-05-03 15:46:29 +02:00
ccitt_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
ccitt.js Convert src/core/ccitt.js to use standard classes 2021-04-27 13:29:09 +02:00
cff_font.js Convert src/core/cff_font.js to use standard classes 2021-05-02 21:00:29 +02:00
cff_parser.js Set CFF header to 4 when writing it because it contains 4 elements (#13149) 2021-03-26 18:23:18 +01:00
charsets.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
chunked_stream.js Let ChunkedStream extend Stream, rather than BaseStream directly 2021-04-28 14:05:25 +02:00
cmap.js Enable the no-var linting rule in src/core/cmap.js 2021-04-25 17:40:00 +02:00
colorspace.js Use Math.hypot, instead of Math.sqrt with manual squaring (#12973) 2021-02-10 12:28:49 +01:00
core_utils.js Add a new BaseStream.getString(...) method to replace manual bytesToString(BaseStream.getBytes(...)) calls 2021-05-01 19:20:36 +02:00
crypto.js Fix no-var linting rule violations in src/core/crypto.js that couldn't be changed automatically by ESLint 2021-05-02 13:32:34 +02:00
decode_stream.js Improve the handling getBaseStreams, on the various Stream implementations 2021-04-28 13:44:47 +02:00
decrypt_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
default_appearance.js [api-minor] Change the format of the fontName-property, in defaultAppearanceData, on Annotation-instances (PR 12831 follow-up) 2021-04-01 16:47:30 +02:00
document.js Add a new BaseStream.getString(...) method to replace manual bytesToString(BaseStream.getBytes(...)) calls 2021-05-01 19:20:36 +02:00
encodings.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
evaluator.js Revert "Fix the remaining no-var failures, which couldn't be handled automatically, in the src/core/evaluator.js file" (PR 13344 follow-up) 2021-05-13 11:19:46 +02:00
file_spec.js Enable the no-var rule in the src/core/file_spec.js file 2021-04-13 21:00:30 +02:00
flate_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
font_renderer.js Remove unnecessary closure in the src/core/font_renderer.js file 2021-05-05 22:35:52 +02:00
fonts_utils.js Enable the no-var rule in the src/core/fonts_utils.js file 2021-05-02 21:00:29 +02:00
fonts.js Convert src/core/fonts.js to use standard classes 2021-05-03 13:57:25 +02:00
function.js Enable the no-var linting rule in src/core/function.js 2021-05-01 20:04:58 +02:00
glyphlist.js Enable the no-var linting rule in src/core/glyphlist.js 2021-02-27 12:46:57 +01:00
image_utils.js Ignore globally cached images in PartialEvaluator.getTextContent (PR 11930 follow-up) 2021-01-28 10:19:26 +01:00
image.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
jbig2_stream.js Stop special-casing the dict parameter in the Jbig2Stream/JpegStream/JpxStream constructors 2021-04-28 13:44:47 +02:00
jbig2.js Convert src/core/jbig2.js to use standard classes 2021-05-05 14:02:21 +02:00
jpeg_stream.js Stop special-casing the dict parameter in the Jbig2Stream/JpegStream/JpxStream constructors 2021-04-28 13:44:47 +02:00
jpg.js Convert src/core/jpg.js to use standard classes 2021-05-05 14:02:21 +02:00
jpx_stream.js Stop special-casing the dict parameter in the Jbig2Stream/JpegStream/JpxStream constructors 2021-04-28 13:44:47 +02:00
jpx.js Convert src/core/jpx.js to use standard classes 2021-05-05 14:02:21 +02:00
lzw_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
metadata_parser.js Move the XML-parser to the src/core/-folder 2021-02-17 13:12:01 +01:00
metrics.js Enable the no-var linting rule in src/core/metrics.js 2021-02-27 12:44:45 +01:00
murmurhash3.js Ensure that MurmurHash3_64.update handles ArrayBuffer input correctly, to avoid hash-collisions (issue 12533) 2020-10-26 16:27:33 +01:00
name_number_tree.js Change NameOrNumberTree.getAll to return a Map rather than an Object 2021-04-22 13:15:50 +02:00
object_loader.js Improve the handling getBaseStreams, on the various Stream implementations 2021-04-28 13:44:47 +02:00
opentype_file_builder.js Convert src/core/opentype_file_builder.js to use standard classes 2021-05-02 21:00:28 +02:00
operator_list.js Enable the no-var linting rule for src/core/operator_list.js 2021-03-14 11:49:31 +01:00
parser.js Stop special-casing the dict parameter in the Jbig2Stream/JpegStream/JpxStream constructors 2021-04-28 13:44:47 +02:00
pattern.js Modernize the Shadings structure, in src/core/pattern.js, to use standard classes 2021-05-14 21:44:41 +02:00
pdf_manager.js XFA -- Load fonts permanently from the pdf 2021-04-15 17:57:42 +02:00
predictor_stream.js [Regression] Move the super-call in the PredictorStream-constructor to prevent errors (PR 13303) 2021-05-05 13:24:12 +02:00
primitives.js Convert the remaining functions in src/core/primitives.js to use standard classes 2021-05-12 09:36:28 +02:00
ps_parser.js Re-factor how the ESLint no-var rule is enabled in the src/ folder 2020-10-03 20:15:29 +02:00
run_length_stream.js Move the DecodeStream and StreamsSequenceStream from src/core/stream.js and into its own file 2021-04-28 10:16:51 +02:00
standard_fonts.js Use ESLint to ensure that exports are sorted alphabetically 2021-01-09 20:37:51 +01:00
stream.js Add an abstract base-class, which all the various Stream implementations inherit from 2021-04-28 13:44:45 +02:00
struct_tree.js Move NameTree/NumberTree from src/core/obj.js and into its own file 2021-04-13 21:00:30 +02:00
to_unicode_map.js Convert src/core/to_unicode_map.js to use standard classes 2021-05-02 21:00:29 +02:00
type1_font.js Remove unnecessary MissingDataException check from getHeaderBlock 2021-05-03 13:57:30 +02:00
type1_parser.js Convert code in src/core/type1_parser.js to use "standard" classes 2021-03-12 12:16:50 +01:00
unicode.js Use a buffer instead of string concatenation in reverseIfRtl in src/core/unicode.js 2021-02-27 13:20:09 +01:00
worker_stream.js Replace a bunch of Array.prototype.forEach() cases with for...of loops instead 2021-04-24 13:00:19 +02:00
worker.js Enable the no-var linting rule in src/core/worker.js 2021-04-25 17:40:00 +02:00
writer.js Add a new BaseStream.getString(...) method to replace manual bytesToString(BaseStream.getBytes(...)) calls 2021-05-01 19:20:36 +02:00
xml_parser.js Move the encodeToXmlString helper function to src/core/core_utils.js 2021-02-17 13:12:01 +01:00
xref.js Enable the no-var rule in the src/core/xref.js file 2021-04-13 21:00:30 +02:00