Update type documentations for #16307 and #16359

This commit is contained in:
Sebastien Corbin 2023-04-27 17:03:03 +02:00
parent 4dee3b83d5
commit d18b9ee472
3 changed files with 30 additions and 2 deletions

View file

@ -517,6 +517,18 @@ class PDFFindController {
});
}
/**
* @typedef {Object} PDFFindControllerScrollMatchIntoViewParams
* @property {HTMLElement} element
* @property {number} selectedLeft
* @property {number} pageIndex
* @property {number} matchIndex
*/
/**
* Scroll the current match into view.
* @param {PDFFindControllerScrollMatchIntoViewParams}
*/
scrollMatchIntoView({
element = null,
selectedLeft = 0,