From 57448af264a4bc0aca85a9ce61769aa6240b9481 Mon Sep 17 00:00:00 2001 From: smiley Date: Tue, 24 Oct 2023 22:35:49 +0200 Subject: [PATCH] :octocat: remove QROptionsTrait::$svgViewBoxSize (#222) --- src/Output/QRMarkupSVG.php | 2 +- src/QROptionsTrait.php | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/Output/QRMarkupSVG.php b/src/Output/QRMarkupSVG.php index 43f6bd560..c5dcba4f9 100644 --- a/src/Output/QRMarkupSVG.php +++ b/src/Output/QRMarkupSVG.php @@ -84,7 +84,7 @@ protected function createMarkup(bool $saveToFile):string{ protected function getViewBox():string{ [$width, $height] = $this->getOutputDimensions(); - return sprintf('0 0 %s %s', ($this->options->svgViewBoxSize ?? $width), ($this->options->svgViewBoxSize ?? $height)); + return sprintf('0 0 %s %s', $width, $height); } /** diff --git a/src/QROptionsTrait.php b/src/QROptionsTrait.php index de05c98a0..b2279d91c 100644 --- a/src/QROptionsTrait.php +++ b/src/QROptionsTrait.php @@ -380,19 +380,6 @@ trait QROptionsTrait{ */ protected string $svgDefs = ''; - /** - * SVG viewBox size. A single integer number which defines width/height of the viewBox attribute. - * - * viewBox="0 0 x x" - * - * @deprecated 5.0.0 use QRMarkupSVG::getViewBox() instead - * @see \chillerlan\QRCode\Output\QRMarkupSVG::getViewBox() - * - * @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox - * @see https://css-tricks.com/scale-svg/#article-header-id-3 - */ - protected ?int $svgViewBoxSize = null; - /** * Sets the value for the "preserveAspectRatio" on the `` element *