mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
[api-minor] Change the pageIndex, on PDFPageProxy
instances, to a private property
This property has never been documented and/or *intentionally* exposed through the API, instead the `PDFPageProxy.pageNumber` property is the documented/intended API to use here. Hence pageIndex is changed to a "private" property on `PDFPageProxy` instances, and internal API functionality is also updated to *consistently* use `this._pageIndex` rather than a mix of formats.
This commit is contained in:
parent
c3f4690bde
commit
ae2900e510
3 changed files with 18 additions and 16 deletions
|
@ -678,7 +678,7 @@ class PDFPageView {
|
|||
const ensureNotCancelled = () => {
|
||||
if (cancelled) {
|
||||
throw new RenderingCancelledException(
|
||||
"Rendering cancelled, page " + this.id,
|
||||
`Rendering cancelled, page ${this.id}`,
|
||||
"svg"
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue