mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 20:17:17 +00:00
:octocat: remove QROptionsTrait::$svgViewBoxSize (#222)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user