From 7f6e22b3bec8ac404c2609a255e3092e58497d7d Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 15 Oct 2025 11:29:04 +0200 Subject: [PATCH] wait #6866 @1.5 --- src/Links/ZoomLink.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Links/ZoomLink.php b/src/Links/ZoomLink.php index 0f1851f..83da356 100644 --- a/src/Links/ZoomLink.php +++ b/src/Links/ZoomLink.php @@ -83,7 +83,7 @@ class ZoomLink extends NormalLink public function getZoomAttributes() { - return [ + $res = [ 'id' => $this->uid, 'page' => $this->page, 'maxzoom' => empty($this->to) ? $this->maxzoom_default : $this->to, @@ -96,6 +96,11 @@ class ZoomLink extends NormalLink 'border' => $this->border, 'borderColor' => $this->borderColor, ]; + + if (!$this->compiler->getSetting('zoomAreaShowTexts', true)) { + $res['layer'] = 'image'; + } + return $res; } /** @@ -126,6 +131,9 @@ class ZoomLink extends NormalLink if (isset($attributes['quality'])) { $extractOptions['quality'] = $attributes['quality']; } + if (!isset($attributes['texts'])) { + $attributes['texts'] = ''; + } if (isset($attributes['layer']) && !in_array($attributes['layer'], ['image', 'text', 'onlytext', 'bothsvg', 'textmask'])) { unset($attributes['layer']); -- 2.39.5