Merge pull request #16504 from wojtekmaj/fix-canvasMaxAreaInBytes

Fix canvasMaxAreaInBytes type
This commit is contained in:
Jonas Jenwald 2023-06-01 17:28:24 +02:00 committed by GitHub
commit 32964db6ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,7 @@ if (typeof PDFJSDev === "undefined") {
* `OffscreenCanvas` in the worker. Primarily used to improve performance of * `OffscreenCanvas` in the worker. Primarily used to improve performance of
* image conversion/rendering. * image conversion/rendering.
* The default value is `true` in web environments and `false` in Node.js. * The default value is `true` in web environments and `false` in Node.js.
* @property {boolean} [canvasMaxAreaInBytes] - The integer value is used to * @property {number} [canvasMaxAreaInBytes] - The integer value is used to
* know when an image must be resized (uses `OffscreenCanvas` in the worker). * know when an image must be resized (uses `OffscreenCanvas` in the worker).
* If it's -1 then a possibly slow algorithm is used to guess the max value. * If it's -1 then a possibly slow algorithm is used to guess the max value.
* @property {boolean} [disableFontFace] - By default fonts are converted to * @property {boolean} [disableFontFace] - By default fonts are converted to