]> _ Git - cubeextranet.git/commitdiff
wip #4710 @0.25
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 27 Sep 2021 17:14:14 +0000 (17:14 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Mon, 27 Sep 2021 17:14:14 +0000 (17:14 +0000)
inc/ws/Util/html5/svgtocanvas/class.ws.html5.compiler.php

index d5af646f757bc441c4493707b11e9edcd783f3b9..74d72502f861d05b1342ec6821daaea20cb7b202 100644 (file)
@@ -193,7 +193,6 @@ class wsHTML5Compiler
     public $cssOneHeight;
     public $cssScale;
     public $linkScale;
-    public $cssSVGScale;
     public $optimalWidth = 567;
     public $optimalHeight = 709;
     public $additionalConfig = array();
@@ -324,8 +323,6 @@ class wsHTML5Compiler
         $this->cssOneWidth = $this->width * $this->cssOneScale;
         $this->cssOneHeight = $this->height * $this->cssOneScale;
 
-        $this->cssSVGScale = 1;
-
         $this->scale = 1;
 
         $this->numerotation = explode(',', $this->book->numerotation);
@@ -2435,17 +2432,9 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
 
         $corrText = $this->isMobileFirst() ? 0 : 4;
         $this->log('CSS 3');
-        if ($this->cssSVGScale != 1) {
-            $texts = '.texts{' . wsHTML5::writeCSSUA('transform-origin', 'top left') . ';';
-            $texts .= wsHTML5::writeCSSUA('transform', 'scale(' . round((1 / $this->multiply) * $cssScale * $this->cssSVGScale, 3) . ')') . ';';
-            $texts .= 'width:' . ($wm / $this->cssSVGScale) . 'px; max-width:' . ($wm / $this->cssSVGScale) . 'px;';
-            $texts .= 'height:' . ($hm / $this->cssSVGScale) . 'px; max-height:' . ($hm / $this->cssSVGScale) . 'px;';
-            $texts .= '}';
-        } else {
-            $texts = '.texts{width:' . floor(floatval($w) + $corrText) . 'px;height:' . floor(floatval($h) + $corrText) . 'px;}';
-        }
-
-        $res[] = $texts;
+//        $texts = '.texts{width:' . floor(floatval($w) + $corrText) . 'px;height:' . floor(floatval($h) + $corrText) . 'px;}';
+//
+//        $res[] = $texts;
 
         // Theme
         $shade = '.page .shade{';