From ec50a958cc468495bfa4ab7813f42dfec10ecf55 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 30 Mar 2022 15:18:19 +0200 Subject: [PATCH] wait #5199 @1.5 --- app/Jobs/ProcessFluidbook.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/app/Jobs/ProcessFluidbook.php b/app/Jobs/ProcessFluidbook.php index 7acc03f..910bfdb 100644 --- a/app/Jobs/ProcessFluidbook.php +++ b/app/Jobs/ProcessFluidbook.php @@ -145,6 +145,8 @@ class ProcessFluidbook extends Compiler $e = explode(':', $link['to']); $ee = Text::multiExplode('/-', $e[0]); + $link['display_area'] = false; + if ($ee[0] == 'anim') { $base = [['type' => '', 'ease' => 'Power2.easeOut', 'duration' => 1.5, 'transformOrigin' => 'center', 'delay' => 1], []]; switch ($ee[1]) { @@ -209,7 +211,7 @@ class ProcessFluidbook extends Compiler $link['type'] = $ee[0] === 'video' ? 4 : 17; $link['inline'] = $ee[1] === 'inline'; $link['to'] = $this->_getAssetFile($e[1]); - $link['display_area'] = false; + if ($link['inline']) { $link['video_auto_start'] = false; $link['video_controls'] = true; @@ -229,11 +231,23 @@ class ProcessFluidbook extends Compiler } else { $link['type'] = 30; } + } else if ($e[0] === 'tooltip') { + $link['to'] = $e[1]; + $link['type'] = 18; + $link['inline'] = true; } $res[$k] = $link; } return $res; } + protected function compileChapters() + { + $this->config->chaptersPagesNumber = 'physical'; + $this->config->chapters = []; +// foreach ($this->sources as $source) { +// $this->config->chapters += $source->getDocument()->getChapters(); +// } + } } -- 2.39.5