1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00
pdf.js/src/shared
Jonas Jenwald b85f0903ca Add new bounding-box helpers in Util to reduce code duplication
Currently we have a `Util`-helper for computing the bounding-box of a Bézier curve, however for simple points and rectangles we repeat virtually identical code in many spots throughout the code-base.

 - Introduce new `Util.pointBoundingBox` and `Util.rectBoundingBox` helpers.

 - Remove the "fallback" from `Util.bezierBoundingBox` and only support passing in a `minMax`-array, since there's only a single call-site using the other format and it could be easily updated.
2025-03-23 19:20:02 +01:00
..
image_utils.js Rescale the image data when they're really too large 2024-11-23 22:42:30 +01:00
message_handler.js [api-major] Replace MissingPDFException and UnexpectedResponseException with one exception 2025-01-16 22:51:05 +01:00
murmurhash3.js Remove the isArrayBuffer helper function 2024-01-19 14:10:52 +01:00
scripting_utils.js Add the color changes in the annotation storage 2023-07-30 14:03:27 +02:00
util.js Add new bounding-box helpers in Util to reduce code duplication 2025-03-23 19:20:02 +01:00