Merge pull request #21380 from Snuffleupagus/AnnotationLayerBuilder-rm-#externalHide

Remove the `#externalHide` field from the `AnnotationLayerBuilder` class
This commit is contained in:
Tim van der Meij 2026-06-04 20:35:14 +02:00 committed by GitHub
commit d619ff3207
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {