✨ better SVG output

This commit is contained in:
smiley
2017-12-29 06:17:21 +01:00
parent 0929aa01b4
commit 465351ca86
3 changed files with 81 additions and 42 deletions
+18
View File
@@ -32,6 +32,8 @@ use chillerlan\Traits\Container;
* @property int $scale
*
* @property string $cssClass
* @property string $svgOpacity
* @property string $svgDefs
*
* @property string $textDark
* @property string $textLight
@@ -154,6 +156,22 @@ class QROptions{
*/
protected $cssClass;
/**
* SVG opacity
*
* @var float
*/
protected $svgOpacity = 1.0;
/**
* anything between <defs>
*
* @see https://developer.mozilla.org/docs/Web/SVG/Element/defs
*
* @var string
*/
protected $svgDefs = '<style>rect{shape-rendering:crispEdges}</style>';
/**
* string substitute for dark
*