mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-05 09:41:01 +02:00
Merge pull request #21380 from Snuffleupagus/AnnotationLayerBuilder-rm-#externalHide
Remove the `#externalHide` field from the `AnnotationLayerBuilder` class
This commit is contained in:
commit
d619ff3207
@ -72,8 +72,6 @@ class AnnotationLayerBuilder {
|
||||
|
||||
#commentManager = null;
|
||||
|
||||
#externalHide = false;
|
||||
|
||||
#onAppend = null;
|
||||
|
||||
#eventAC = null;
|
||||
@ -226,8 +224,7 @@ class AnnotationLayerBuilder {
|
||||
this.#eventAC = null;
|
||||
}
|
||||
|
||||
hide(internal = false) {
|
||||
this.#externalHide = !internal;
|
||||
hide() {
|
||||
if (!this.div) {
|
||||
return;
|
||||
}
|
||||
@ -263,10 +260,6 @@ class AnnotationLayerBuilder {
|
||||
}
|
||||
|
||||
await this.annotationLayer.addLinkAnnotations(newLinks);
|
||||
// Don't show the annotation layer if it was explicitly hidden previously.
|
||||
if (!this.#externalHide) {
|
||||
this.div.hidden = false;
|
||||
}
|
||||
}
|
||||
|
||||
#updatePresentationModeState(state) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user