:octocat: remove QROptionsTrait::$svgViewBoxSize (#222)

This commit is contained in:
smiley
2023-10-24 22:35:49 +02:00
parent 8c0da25c72
commit 57448af264
2 changed files with 1 additions and 14 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ class QRMarkupSVG extends QRMarkup{
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);
}
/**
-13
View File
@@ -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 `<svg>` element
*