]> _ Git - fluidbook_tools.git/commitdiff
wip #7301 @2
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 3 Feb 2025 16:37:30 +0000 (17:37 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 3 Feb 2025 16:37:30 +0000 (17:37 +0100)
src/Links/Link.php

index 2919567791bc52c80eae484ba7a4a596fee2759c..b5358a6cf74de04f675a3b2357f220dda15cce49 100644 (file)
@@ -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;
     }