pdf.js/src/display
Emilio Cobos Álvarez bf8b1adf73 canvas: Properly restore all the remaining items in stateStack in endDrawing.
We were correctly finishing the SMask group but not restoring all the extra
transformations applied in stateStack, so if somebody ends up drawing to the
same context after canceling mid-draw we'd get artifacts.

This re-lands #12363 and fixes Mozilla bug 1664178[1].

[1]: https://bugzilla.mozilla.org/show_bug.cgi?id=1664178
2020-09-12 16:37:54 +02:00
..
annotation_layer.js Reset cursor position when focus is out of text field 2020-09-10 10:37:13 +02:00
annotation_storage.js Mark the setModified method, on AnnotationStorage, as "private" (PR 12241 follow-up) 2020-08-22 20:04:25 +02: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 Include the /Order array, if available, when parsing the Optional Content configuration 2020-08-30 16:28:40 +02:00
canvas.js canvas: Properly restore all the remaining items in stateStack in endDrawing. 2020-09-12 16:37:54 +02:00
content_disposition.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
display_utils.js Run gulp lint --fix, to account for changes in Prettier version 2.1.x 2020-09-06 12:23:59 +02:00
fetch_stream.js Ignore fetch() errors, in PDFFetchStreamRangeReader, once the request has been aborted 2020-07-28 17:18:49 +02:00
font_loader.js Allow loading pdf fonts into another document. 2020-08-08 02:52:32 +00:00
metadata.js Save form data in XFA datasets when pdf is a mix of acroforms and xfa (#12344) 2020-09-08 15:13:52 -07:00
network_utils.js Enable the unicorn/prefer-starts-ends-with ESLint plugin rule 2020-02-16 12:41:53 +01:00
network.js Remove unused methods from NetworkManager, in src/display/network.js 2020-06-07 16:03:32 +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 [api-minor] Use the NodeCanvasFactory/NodeCMapReaderFactory classes as defaults in Node.js environments (issue 11900) 2020-07-02 04:44:23 +02:00
optional_content_config.js [api-minor] Add support for toggling of Optional Content in the viewer (issue 12096) 2020-08-30 16:28:40 +02:00
pattern_helper.js Add typescript definitions 2020-07-30 11:10:37 +02:00
svg.js Fix the type of SVGGraphics. 2020-08-03 09:58:19 +09:00
text_layer.js Allow loading pdf fonts into another document. 2020-08-08 02:52:32 +00:00
transport_stream.js Use the ESLint no-restricted-syntax rule to ensure that assert is always called with two arguments 2020-05-05 13:40:05 +02:00
webgl.js Ensure that all import and require statements, in the entire code-base, have a .js file extension 2020-01-04 13:01:43 +01:00
worker_options.js Use typedef to define the type of GlobalWorkerOptions. 2020-08-03 19:06:28 +09:00