:octocat: removed QROptionsTrait::$markupDark and QROptionsTrait::$markupLight, added QROptionsTrait::$svgUseFillAttributes

This commit is contained in:
smiley
2023-10-14 23:45:14 +02:00
parent 07eb6e38ff
commit dfb7728d37
10 changed files with 82 additions and 89 deletions
+9 -12
View File
@@ -18,21 +18,19 @@ require_once __DIR__.'/../vendor/autoload.php';
$options = new QROptions;
$options->version = 7;
$options->outputType = QROutputInterface::MARKUP_SVG;
$options->outputBase64 = false;
$options->version = 7;
$options->outputType = QROutputInterface::MARKUP_SVG;
$options->outputBase64 = false;
// if set to false, the light modules won't be rendered
$options->drawLightModules = true;
// empty the default value to remove the fill* and opacity* attributes from the <path> elements
$options->markupDark = '';
$options->markupLight = '';
$options->drawLightModules = true;
$options->svgUseFillAttributes = false;
// draw the modules as circles isntead of squares
$options->drawCircularModules = true;
$options->circleRadius = 0.4;
$options->drawCircularModules = true;
$options->circleRadius = 0.4;
// connect paths
$options->connectPaths = true;
$options->connectPaths = true;
// keep modules of these types as square
$options->keepAsSquare = [
$options->keepAsSquare = [
QRMatrix::M_FINDER_DARK,
QRMatrix::M_FINDER_DOT,
QRMatrix::M_ALIGNMENT_DARK,
@@ -58,7 +56,6 @@ try{
}
catch(Throwable $e){
// handle the exception in whatever way you need
exit($e->getMessage());
}