parent
4dee3b83d5
commit
d18b9ee472
@ -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({
|
scrollMatchIntoView({
|
||||||
element = null,
|
element = null,
|
||||||
selectedLeft = 0,
|
selectedLeft = 0,
|
||||||
|
@ -513,6 +513,20 @@ class PDFPageView {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @typedef {Object} PDFPageViewUpdateParameters
|
||||||
|
* @property {number} [scale] The new scale, if specified.
|
||||||
|
* @property {number} [rotation] The new rotation, if specified.
|
||||||
|
* @property {Promise<OptionalContentConfig>} [optionalContentConfigPromise]
|
||||||
|
* A promise that is resolved with an {@link OptionalContentConfig}
|
||||||
|
* instance. The default value is `null`.
|
||||||
|
* @property {number} [drawingDelay]
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update e.g. the scale and/or rotation of the page.
|
||||||
|
* @param {PDFPageViewUpdateParameters}
|
||||||
|
*/
|
||||||
update({
|
update({
|
||||||
scale = 0,
|
scale = 0,
|
||||||
rotation = null,
|
rotation = null,
|
||||||
|
@ -104,9 +104,11 @@ class OutputScale {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Scrolls specified element into view of its parent.
|
* Scrolls specified element into view of its parent.
|
||||||
* @param {Object} element - The element to be visible.
|
* @param {HTMLElement} element - The element to be visible.
|
||||||
* @param {Object} spot - An object with optional top and left properties,
|
* @param {Object} [spot] - An object with optional top and left properties,
|
||||||
* specifying the offset from the top left edge.
|
* specifying the offset from the top left edge.
|
||||||
|
* @param {number} [spot.left]
|
||||||
|
* @param {number} [spot.top]
|
||||||
* @param {boolean} [scrollMatches] - When scrolling search results into view,
|
* @param {boolean} [scrollMatches] - When scrolling search results into view,
|
||||||
* ignore elements that either: Contains marked content identifiers,
|
* ignore elements that either: Contains marked content identifiers,
|
||||||
* or have the CSS-rule `overflow: hidden;` set. The default value is `false`.
|
* or have the CSS-rule `overflow: hidden;` set. The default value is `false`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user