pdf.js/src/display
Jonas Jenwald 05edd91bdb Remove the isNum helper function
The call-sites are replaced by direct `typeof`-checks instead, which removes unnecessary function calls. Note that in the `src/`-folder we already had more `typeof`-cases than `isNum`-calls.

These changes were *mostly* done using regular expression search-and-replace, with two exceptions:
 - In `Font._charToGlyph` we no longer unconditionally update the `width`, since that seems completely unnecessary.
 - In `PDFDocument.documentInfo`, when parsing custom entries, we now do the `typeof`-check once.
2022-02-22 11:55:34 +01:00
..
annotation_layer.js [JS] Use beforeinput event to trigger a keystroke event in the sandbox 2022-01-23 19:53:01 +01:00
annotation_storage.js Annotations - Avoid empty value in text field when storage contains something for it (bug 1719148) 2021-09-18 15:08:22 +02:00
api.js Improve the JSDocs for the PDFObjects class 2022-02-20 13:02:14 +01:00
base_factory.js Re-factor the DOMSVGFactory to extend an abstract base class 2021-06-11 17:15:49 +02:00
canvas.js Remove the isNum helper function 2022-02-22 11:55:34 +01:00
content_disposition.js Remove the UTF-8 fallback, when TextDecoder is missing, from the Content-Disposition parser 2022-02-12 10:30:25 +01:00
display_utils.js Change PixelsPerInch to a class with static properties (issue 14579) 2022-02-19 09:05:40 +01:00
fetch_stream.js Fix handling of fetch errors 2021-08-30 12:43:28 +01:00
font_loader.js Replace the remaining Node.removeChild() instances with Element.remove() 2021-11-16 17:52:50 +01:00
metadata.js Convert Metadata to use private class fields 2021-10-22 22:01:19 +02: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 Implement PDFNetworkStreamRangeRequestReader._onError, to handle range request errors with XMLHttpRequest (issue 9883) 2021-08-31 10:23:57 +02:00
node_stream.js Account for formatting changes in Prettier version 2.3.0 2021-05-16 11:44:05 +02:00
node_utils.js Move most functionality in the create methods into the BaseCanvasFactory 2021-06-11 17:15:47 +02:00
optional_content_config.js Treat all content as visible when no optional content groups are defined (issue 13971) 2021-09-04 08:13:37 +02:00
pattern_helper.js Fix canvas state getting out of sync from smasks. (bug 1755507) 2022-02-17 17:38:32 -08:00
svg.js Remove the isNum helper function 2022-02-22 11:55:34 +01:00
text_layer.js Fix issues in text selection 2021-10-17 16:27:05 +02:00
transport_stream.js Clear some Arrays, rather than re-initialize them, in src/display/-code 2021-04-24 13:00:53 +02:00
worker_options.js Use typedef to define the type of GlobalWorkerOptions. 2020-08-03 19:06:28 +09:00
xfa_layer.js Fix broken/missing JSDocs and typedefs, to allow updating TypeScript to the latest version (issue 14342) 2021-12-15 23:14:25 +01:00
xfa_text.js XFA - Support text search in XFA documents. 2021-08-23 08:44:20 -07:00