mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-10-09 05:15:49 +00:00
✨ better SVG output
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user