From: Vincent Vanwaelscappel Date: Thu, 19 Jun 2025 14:24:40 +0000 (+0200) Subject: wait #7602 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3d5355494c46d3293d9149c1ead43fded1c59a38;p=fluidbook_tools.git wait #7602 @1 --- diff --git a/.idea/deployment.xml b/.idea/deployment.xml index 1fdb47f..7b80a14 100644 --- a/.idea/deployment.xml +++ b/.idea/deployment.xml @@ -17,14 +17,25 @@ - + - + + + + + + + + + + + + + + + - - - @@ -97,6 +108,20 @@ + + + + + + + + + + + + + + @@ -135,6 +160,13 @@ + + + + + + + @@ -232,6 +264,20 @@ + + + + + + + + + + + + + + @@ -246,6 +292,13 @@ + + + + + + + @@ -270,6 +323,27 @@ + + + + + + + + + + + + + + + + + + + + + @@ -291,28 +365,35 @@ - + - + - + + + + + + + + - + diff --git a/src/Links/Link.php b/src/Links/Link.php index 861950b..05045ed 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -126,6 +126,7 @@ class Link public $borderColor = '#ffffff'; public $maxWidth = 0; public $initialOrder = 0; + public $order = 0; public $gamifyCoins = 0; public $tooltipColor = null; public $tooltipBackgroundColor = null; @@ -142,6 +143,10 @@ class Link /** @var float */ public $delay = 0; + /** + * @var float + */ + public $duration = 0; protected $_init; @@ -712,8 +717,12 @@ class Link $res .= 'data-tooltip-color="' . $this->tooltipColor . '" '; } $delay = $this->getDelay(); - if ($delay) { - $res .= 'data-delay="' . $delay . '" '; + $duration = $this->getDuration(); + if ($delay > 0 || $duration > 0) { + if (!$duration) { + $duration = 0.4; + } + $res .= 'data-delay="' . $delay . '" data-reveal-duration="' . $duration . '"'; } if ($this->polygon) { $res .= 'data-polygon="' . e($this->polygon) . '" '; @@ -737,6 +746,15 @@ class Link return max(0, (float)$this->delay); } + /** + * @return float + */ + public function getDuration(): float + { + return max(0, (float)$this->duration); + } + + public function getClasses() { @@ -965,6 +983,16 @@ class Link return $res; } + public function getOrder() + { + return $this->order; + } + + public function setOrder($order) + { + $this->order = $order; + } + public static function _getLinkKey() { if (self::$_linksKey === null) {