From: Vincent Vanwaelscappel Date: Thu, 3 Nov 2022 14:13:36 +0000 (+0100) Subject: wait #5563 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=af0ea5caf21fa78776448e3b0f5c26de5c27585c;p=fluidbook_tools.git wait #5563 @1 --- diff --git a/src/Links/ZoomLink.php b/src/Links/ZoomLink.php index 70bcbdb..6822f5c 100644 --- a/src/Links/ZoomLink.php +++ b/src/Links/ZoomLink.php @@ -33,6 +33,7 @@ class ZoomLink extends NormalLink public function init() { $this->compiler->addJsLib('fluidbook-zoom', 'js/libs/fluidbook/links/fluidbook.links.zoom.js'); + $this->maxzoom_default = $this->compiler->getSetting('zoomAreaDefaultZoomLevel', 2); parent::init(); } @@ -105,7 +106,7 @@ class ZoomLink extends NormalLink { $maxzoom = $attributes['maxzoom']; // Max zoom level might not always be set in the link editor - $maxzoom = max(2, min($maxzoom, 4.166666667)); + $maxzoom = max(2, min($maxzoom, 20)); if (!$maxzoom) { $maxzoom = 2; } diff --git a/src/Links/ZoomProductLink.php b/src/Links/ZoomProductLink.php index 334552b..9e80f57 100644 --- a/src/Links/ZoomProductLink.php +++ b/src/Links/ZoomProductLink.php @@ -4,8 +4,6 @@ namespace Fluidbook\Tools\Links; class ZoomProductLink extends ZoomLink { - protected $maxzoom_default = 2.5; - public function __construct($id, $init, &$compiler) { $init['group'] = $init['to'];