1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

[api-minor] Remove the TextLayer timeout parameter (PR 15742 follow-up)

The deprecation is included in the current release, i.e. version `3.1.81`, and given the edge-case nature of this option I really don't think that we need to keep it deprecated for multiple releases.
This commit is contained in:
Jonas Jenwald 2022-11-29 19:57:38 +01:00
parent 1f082d3e1d
commit 7c25b1b455
2 changed files with 4 additions and 32 deletions

View file

@ -79,11 +79,8 @@ class TextLayerBuilder {
/**
* Renders the text layer.
*
* @param {number} [timeout] - Wait for a specified amount of milliseconds
* before rendering.
*/
render(timeout = 0) {
render() {
if (!(this.textContent || this.textContentStream) || this.renderingDone) {
return;
}
@ -101,7 +98,6 @@ class TextLayerBuilder {
viewport: this.viewport,
textDivs: this.textDivs,
textContentItemsStr: this.textContentItemsStr,
timeout,
});
this.textLayerRenderTask.promise.then(
() => {