From: Vincent Vanwaelscappel Date: Wed, 19 Jul 2023 17:24:54 +0000 (+0200) Subject: try #6148 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=574ac6bdc3b0227ee193e30dd3b6a2323ddad925;p=fluidbook_tools.git try #6148 @0.75 --- diff --git a/src/Links/ContentLink.php b/src/Links/ContentLink.php index 9eb313e..de9b6a1 100644 --- a/src/Links/ContentLink.php +++ b/src/Links/ContentLink.php @@ -17,6 +17,9 @@ class ContentLink extends Link { if ($this->allowsAnimation) { $animations = self::parseAnimations($this->image_rollover ?? 'none'); foreach ($animations as $animation) { + if (isset($animation['quality']) && property_exists($this, 'maxzoom_default')) { + $this->maxzoom_default = $animation['quality']; + } if (isset($animation['blendmode'])) { $this->blendmode = $animation['blendmode']; unset($animation['blendmode']); diff --git a/src/Links/LayerLink.php b/src/Links/LayerLink.php index 73e86a4..68a5ea6 100644 --- a/src/Links/LayerLink.php +++ b/src/Links/LayerLink.php @@ -51,10 +51,6 @@ class LayerLink extends ImageLink { return $this->to ?: 'both'; } - public function getDepth() { - return parent::getDepth(); // TODO: Change the autogenerated stub - } - public function getZoomAttributes() { $layer = $this->_getLayer(); return [ diff --git a/src/Links/ZoomLink.php b/src/Links/ZoomLink.php index caff860..a2bd4eb 100644 --- a/src/Links/ZoomLink.php +++ b/src/Links/ZoomLink.php @@ -99,7 +99,7 @@ class ZoomLink extends NormalLink { public static function generateImage($attributes, $compiler, $cachedir, $save, $trim = false) { $maxzoom = $attributes['maxzoom']; // Max zoom level might not always be set in the link editor - $maxzoom = max(2, min($maxzoom, 20)); + $maxzoom = max(0, min($maxzoom, 20)); if (!$maxzoom) { $maxzoom = 2; }