From: Vincent Vanwaelscappel Date: Wed, 5 Jul 2023 16:40:22 +0000 (+0200) Subject: wip #6094 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f0ee96c8fdd338fd0fd5e4476326f0f8286933ea;p=fluidbook_tools.git wip #6094 @0.5 --- diff --git a/src/Links/LayerLink.php b/src/Links/LayerLink.php index 8084a64..73e86a4 100644 --- a/src/Links/LayerLink.php +++ b/src/Links/LayerLink.php @@ -12,6 +12,13 @@ class LayerLink extends ImageLink { return parent::ignore() || $this->isOutsidePage(); } + public function __construct($id, $init, &$compiler) { + if ($init['to'] === 'text' || $init['to'] === 'onlytext') { + $this->defaultZIndex++; + } + parent::__construct($id, $init, $compiler); + } + /** * @throws \Exception */ @@ -44,6 +51,10 @@ 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 [