|
@@ -67,7 +67,7 @@ discard block |
|
|
block discarded – undo |
|
67
|
67
|
|
|
68
|
68
|
// svg header |
|
69
|
69
|
$svg = '<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'.$length.'" height="'.$length.'" viewBox="0 0 '.$length.' '.$length.'">'.$this->options->eol. |
|
70
|
|
- '<defs><style>rect{shape-rendering:crispEdges}</style></defs>'.$this->options->eol; |
|
|
70
|
+ '<defs><style>rect{shape-rendering:crispEdges}</style></defs>'.$this->options->eol; |
|
71
|
71
|
|
|
72
|
72
|
// @todo: optimize -> see https://github.com/alexeyten/qr-image/blob/master/lib/vector.js |
|
73
|
73
|
foreach($this->options->moduleValues as $key => $value){ |
|
@@ -88,7 +88,7 @@ discard block |
|
|
block discarded – undo |
|
88
|
88
|
} |
|
89
|
89
|
elseif($from >= 0){ |
|
90
|
90
|
$svg .= '<rect x="'.($from * $this->options->scale).'" y="'.($y * $this->options->scale) |
|
91
|
|
- .'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" class="'.$this->options->cssClass.'" fill="'.$value.'"/>'.$this->options->eol; |
|
|
91
|
+ .'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" class="'.$this->options->cssClass.'" fill="'.$value.'"/>'.$this->options->eol; |
|
92
|
92
|
|
|
93
|
93
|
// reset count |
|
94
|
94
|
$from = -1; |
|
@@ -99,7 +99,7 @@ discard block |
|
|
block discarded – undo |
|
99
|
99
|
// close off the row, if applicable |
|
100
|
100
|
if($from >= 0){ |
|
101
|
101
|
$svg .= '<rect x="'.($from * $this->options->scale).'" y="'.($y * $this->options->scale) |
|
102
|
|
- .'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" class="'.$this->options->cssClass.'" fill="'.$value.'" />'.$this->options->eol; |
|
|
102
|
+ .'" width="'.($this->options->scale * $count).'" height="'.$this->options->scale.'" class="'.$this->options->cssClass.'" fill="'.$value.'" />'.$this->options->eol; |
|
103
|
103
|
} |
|
104
|
104
|
} |
|
105
|
105
|
} |
Please login to merge, or discard this patch.