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();
}
{
$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;
}
class ZoomProductLink extends ZoomLink
{
- protected $maxzoom_default = 2.5;
-
public function __construct($id, $init, &$compiler)
{
$init['group'] = $init['to'];