public function getZoomAttributes()
{
- return [
+ $res = [
'id' => $this->uid,
'page' => $this->page,
'maxzoom' => empty($this->to) ? $this->maxzoom_default : $this->to,
'border' => $this->border,
'borderColor' => $this->borderColor,
];
+
+ if (!$this->compiler->getSetting('zoomAreaShowTexts', true)) {
+ $res['layer'] = 'image';
+ }
+ return $res;
}
/**
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']);