From 8b20227a59a6eabb717e450bb375711223562c24 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 3 Feb 2025 17:37:30 +0100 Subject: [PATCH] wip #7301 @2 --- src/Links/Link.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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; } -- 2.39.5