From: Vincent Vanwaelscappel Date: Wed, 15 Oct 2025 09:29:04 +0000 (+0200) Subject: wait #6866 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7f6e22b3bec8ac404c2609a255e3092e58497d7d;p=fluidbook_tools.git wait #6866 @1.5 --- 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']);