From 9c6770748c9a4898bd4a54b4724ae5b12a48b071 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Wed, 31 Mar 2021 16:21:22 +0200 Subject: [PATCH] Move the `PDFDocumentStats` typedef closer to its usage Currently this typedef appears slightly out-of-place, in the middle of the arguably much more important `getDocument` JSDocs. --- src/display/api.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/display/api.js b/src/display/api.js index 1236cdc44..cbf4e9a36 100644 --- a/src/display/api.js +++ b/src/display/api.js @@ -185,16 +185,6 @@ function setPDFNetworkStreamFactory(pdfNetworkStreamFactory) { * (see `web/debugger.js`). The default value is `false`. */ -/** - * @typedef {Object} PDFDocumentStats - * @property {Object} streamTypes - Used stream types in the - * document (an item is set to true if specific stream ID was used in the - * document). - * @property {Object} fontTypes - Used font types in the - * document (an item is set to true if specific font ID was used in the - * document). - */ - /** * This is the main entry point for loading a PDF and interacting with it. * @@ -891,6 +881,16 @@ class PDFDocumentProxy { return this._transport.downloadInfoCapability.promise; } + /** + * @typedef {Object} PDFDocumentStats + * @property {Object} streamTypes - Used stream types in the + * document (an item is set to true if specific stream ID was used in the + * document). + * @property {Object} fontTypes - Used font types in the + * document (an item is set to true if specific font ID was used in the + * document). + */ + /** * @returns {Promise} A promise this is resolved with * current statistics about document structures (see