pdf.js/src/display
Jonas Jenwald 5adee0cdd1 [api-minor] Let PDFPageProxy.getStructTree return null, rather than an empty structTree, for documents without any accessibility data (PR 13171 follow-up)
This is first of all consistent with existing API-methods, where we return `null` when the data in question doesn't exist. Secondly, it should also be (slightly) more efficient since there's less dummy-data that we need to transfer between threads.
Finally, this prevents us from adding an empty/unnecessary span to *every* single page even in documents without any structure tree data.
2021-04-11 12:35:33 +02:00
..
annotation_layer.js JS - Handle correctly hierarchy of fields (#13133) 2021-03-30 08:50:35 -07:00
annotation_storage.js Remove the deprecated AnnotationStorage.getOrCreateValue-method (PR 12759 follow-up) 2021-04-06 13:22:06 +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 [api-minor] Let PDFPageProxy.getStructTree return null, rather than an empty structTree, for documents without any accessibility data (PR 13171 follow-up) 2021-04-11 12:35:33 +02:00
canvas.js Fix typo in canvas.js 2021-04-08 23:45:24 +09: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 Add support for basic structure tree for accessibility. 2021-04-09 09:56:28 -07: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