From: vincent@cubedesigners.com Date: Mon, 27 Sep 2021 17:14:14 +0000 (+0000) Subject: wip #4710 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=18adcbcc696098818cbf19638affa4effd2c1a86;p=cubeextranet.git wip #4710 @0.25 --- diff --git a/inc/ws/Util/html5/svgtocanvas/class.ws.html5.compiler.php b/inc/ws/Util/html5/svgtocanvas/class.ws.html5.compiler.php index d5af646f7..74d72502f 100644 --- a/inc/ws/Util/html5/svgtocanvas/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/svgtocanvas/class.ws.html5.compiler.php @@ -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"> $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{';