pdf.js/src/display
Jonas Jenwald 19c2dfbb96 Move rotation normalization from PDFViewerApplication and into BaseViewer
The rotation handling that's currently living in `PDFViewerApplication` is *very* old, and pre-dates the introduction of the viewer components by years.
As can be seen in the `BaseViewer.pagesRotation` setter, we're not actually normalizing the rotation as intended and instead rely on the caller to handle that correctly. This is first of all inconsistent, given how other setters are implemented, and secondly it could also lead to the rotation being set to a value outside of the `[0, 360)`-range.

Finally, for improved consistency the rotation handling in `PageViewport` is updated similarly. Please note that this case, it's *not* changing the pre-existing logic.
2021-03-28 14:19:58 +02:00
..
annotation_layer.js JS - reset correctly radio buttons 2021-03-07 11:04:40 +01:00
annotation_storage.js Simplify the data lookup in the AnnotationStorage.getValue method 2021-03-11 16:37:38 +01: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 Merge pull request #13105 from Snuffleupagus/BasePdfManager-parseDocBaseUrl 2021-03-19 23:03:20 +01:00
canvas.js Use Math.hypot, instead of Math.sqrt with manual squaring (#12973) 2021-02-10 12:28:49 +01:00
content_disposition.js Update Prettier to version 2.0 2020-04-14 12:28:14 +02:00
display_utils.js Move rotation normalization from PDFViewerApplication and into BaseViewer 2021-03-28 14:19:58 +02:00
fetch_stream.js Replace some ternary operators with optional chaining, and nullish coalescing, in the src/display/-folder 2021-01-19 17:20:02 +01:00
font_loader.js Access this._onUnsupportedFeature directly in FontFaceObject.getPathGenerator 2021-01-29 16:48:55 +01:00
metadata.js Replace the objectFromEntries helper function with an objectFromMap one instead 2021-03-11 16:37:34 +01:00
network_utils.js [api-minor] Support the Content-Disposition filename in the Firefox PDF Viewer (bug 1694556, PR 9379 follow-up) 2021-02-26 10:50:29 +01:00
network.js Enable the ESLint no-var rule in the src/display/ folder 2020-10-02 16:16:23 +02:00
node_stream.js Replace some ternary operators with optional chaining, and nullish coalescing, in the src/display/-folder 2021-01-19 17:20:02 +01:00
node_utils.js Enable the ESLint no-var rule in the src/display/ folder 2020-10-02 16:16:23 +02:00
optional_content_config.js Replace the objectFromEntries helper function with an objectFromMap one instead 2021-03-11 16:37:34 +01:00
pattern_helper.js Improve the Pattern-detection in CanvasGraphics.stroke 2020-11-06 11:46:35 +01:00
svg.js Use Math.hypot, instead of Math.sqrt with manual squaring (#12973) 2021-02-10 12:28:49 +01:00
text_layer.js Modifiy the way to compute baseline to have a better match between canvas and text layer 2021-02-12 11:28:02 +01:00
transport_stream.js [api-minor] Support the Content-Disposition filename in the Firefox PDF Viewer (bug 1694556, PR 9379 follow-up) 2021-02-26 10:50:29 +01:00
webgl.js Convert files in the src/display/-folder to use optional chaining where possible 2020-11-07 13:22:06 +01:00
worker_options.js Use typedef to define the type of GlobalWorkerOptions. 2020-08-03 19:06:28 +09:00
xfa_layer.js XFA - Convert some template properties into CSS ones (#13082) 2021-03-25 13:02:39 +01:00