From: Vincent Vanwaelscappel Date: Mon, 3 Feb 2025 16:37:30 +0000 (+0100) Subject: wip #7301 @2 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8b20227a59a6eabb717e450bb375711223562c24;p=fluidbook_tools.git wip #7301 @2 --- diff --git a/src/Links/Link.php b/src/Links/Link.php index 2919567..b5358a6 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -86,6 +86,7 @@ class Link public $type; public $to; public $image; + public $numerotation; public $target; public $interactive; @@ -127,6 +128,7 @@ class Link public $gamifyCoins = 0; public $tooltipColor = null; public $tooltipBackgroundColor = null; + public $transformOrigin; public $transition; public $polygon = ''; public $cursor = ''; @@ -785,13 +787,16 @@ class Link { $css = ''; if ($this->rot) { - $css .= CSS::writeCSSUA('transform', 'rotate(' . $this->rot . 'deg)'); + $css .= 'transform: rotate(' . $this->rot . 'deg);'; } if (isset($this->skewX)) { - $css .= CSS::writeCSSUA('transform', 'skewX(' . $this->skewX . 'deg)'); + $css .= 'transform: skewX(' . $this->skewX . 'deg);'; } if (isset($this->skew)) { - $css .= CSS::writeCSSUA('transform', 'skew(' . $this->skew . ')'); + $css .= 'transform: skew(' . $this->skew . 'deg);'; + } + if (isset($this->transformOrigin)) { + $css .= 'transform-origin: ' . $this->transformOrigin . ';'; } return $css; }