mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 10:15:37 +02:00
Mark some internal PDFDocumentProxy
-properties as "private"
These two properties were *never* intended to be anything but "private", hence it really cannot hurt to actually indicate that they're *not* part of any official API.
This commit is contained in:
parent
ca7f546828
commit
48ff20493f
1 changed files with 6 additions and 6 deletions
|
@ -1180,14 +1180,14 @@ class PDFPageProxy {
|
||||||
* {Array} of the annotation objects.
|
* {Array} of the annotation objects.
|
||||||
*/
|
*/
|
||||||
getAnnotations({ intent = null } = {}) {
|
getAnnotations({ intent = null } = {}) {
|
||||||
if (!this.annotationsPromise || this.annotationsIntent !== intent) {
|
if (!this._annotationsPromise || this._annotationsIntent !== intent) {
|
||||||
this.annotationsPromise = this._transport.getAnnotations(
|
this._annotationsPromise = this._transport.getAnnotations(
|
||||||
this._pageIndex,
|
this._pageIndex,
|
||||||
intent
|
intent
|
||||||
);
|
);
|
||||||
this.annotationsIntent = intent;
|
this._annotationsIntent = intent;
|
||||||
}
|
}
|
||||||
return this.annotationsPromise;
|
return this._annotationsPromise;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1490,7 +1490,7 @@ class PDFPageProxy {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.objs.clear();
|
this.objs.clear();
|
||||||
this.annotationsPromise = null;
|
this._annotationsPromise = null;
|
||||||
this._jsActionsPromise = null;
|
this._jsActionsPromise = null;
|
||||||
this._xfaPromise = null;
|
this._xfaPromise = null;
|
||||||
this.pendingCleanup = false;
|
this.pendingCleanup = false;
|
||||||
|
@ -1525,7 +1525,7 @@ class PDFPageProxy {
|
||||||
|
|
||||||
this._intentStates.clear();
|
this._intentStates.clear();
|
||||||
this.objs.clear();
|
this.objs.clear();
|
||||||
this.annotationsPromise = null;
|
this._annotationsPromise = null;
|
||||||
this._jsActionsPromise = null;
|
this._jsActionsPromise = null;
|
||||||
this._xfaPromise = null;
|
this._xfaPromise = null;
|
||||||
if (resetStats && this._stats) {
|
if (resetStats && this._stats) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue