Skip to content

Commit 57448af

Browse files
committed
:octocat: remove QROptionsTrait::$svgViewBoxSize (#222)
1 parent 8c0da25 commit 57448af

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/Output/QRMarkupSVG.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function createMarkup(bool $saveToFile):string{
8484
protected function getViewBox():string{
8585
[$width, $height] = $this->getOutputDimensions();
8686

87-
return sprintf('0 0 %s %s', ($this->options->svgViewBoxSize ?? $width), ($this->options->svgViewBoxSize ?? $height));
87+
return sprintf('0 0 %s %s', $width, $height);
8888
}
8989

9090
/**

src/QROptionsTrait.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -380,19 +380,6 @@ trait QROptionsTrait{
380380
*/
381381
protected string $svgDefs = '';
382382

383-
/**
384-
* SVG viewBox size. A single integer number which defines width/height of the viewBox attribute.
385-
*
386-
* viewBox="0 0 x x"
387-
*
388-
* @deprecated 5.0.0 use QRMarkupSVG::getViewBox() instead
389-
* @see \chillerlan\QRCode\Output\QRMarkupSVG::getViewBox()
390-
*
391-
* @see https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/viewBox
392-
* @see https://css-tricks.com/scale-svg/#article-header-id-3
393-
*/
394-
protected ?int $svgViewBoxSize = null;
395-
396383
/**
397384
* Sets the value for the "preserveAspectRatio" on the `<svg>` element
398385
*

0 commit comments

Comments
 (0)