mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
parent
4dee3b83d5
commit
d18b9ee472
3 changed files with 30 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue