-
Notifications
You must be signed in to change notification settings - Fork 406
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5fd1162
commit 8fdf289
Showing
52 changed files
with
308 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace Picqer\Barcode\Renderers; | ||
|
||
use Picqer\Barcode\Barcode; | ||
|
||
interface RendererInterface | ||
{ | ||
public function render(Barcode $barcode, float $width = 200, float $height = 30): string; | ||
|
||
public function setForegroundColor(array $color): self; | ||
|
||
public function setBackgroundColor(?array $color): self; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 29 additions & 29 deletions
58
tests/verified-files/081231723897-code128-red-background.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
<div style="font-size:0;position:relative;width:202px;height:30px;background-color:red;"> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:0px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:6px;top:0"> </div> | ||
<div style="background-color:black;width:6px;height:30px;position:absolute;left:12px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:22px;top:0"> </div> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:30px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:38px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:44px;top:0"> </div> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:48px;top:0"> </div> | ||
<div style="background-color:black;width:6px;height:30px;position:absolute;left:56px;top:0"> </div> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:66px;top:0"> </div> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:72px;top:0"> </div> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:82px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:88px;top:0"> </div> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:94px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:106px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:110px;top:0"> </div> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:118px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:128px;top:0"> </div> | ||
<div style="background-color:black;width:8px;height:30px;position:absolute;left:132px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:142px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:146px;top:0"> </div> | ||
<div style="background-color:black;width:6px;height:30px;position:absolute;left:154px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:162px;top:0"> </div> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:166px;top:0"> </div> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:176px;top:0"> </div> | ||
<div style="background-color:black;width:6px;height:30px;position:absolute;left:186px;top:0"> </div> | ||
<div style="background-color:black;width:2px;height:30px;position:absolute;left:194px;top:0"> </div> | ||
<div style="background-color:black;width:4px;height:30px;position:absolute;left:198px;top:0"> </div> | ||
<div style="font-size:0;position:relative;width:202px;height:30px;background-color:rgb(255,0,0);"> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:0px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:6px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:6px;height:30px;position:absolute;left:12px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:22px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:30px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:38px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:44px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:48px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:6px;height:30px;position:absolute;left:56px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:66px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:72px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:82px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:88px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:94px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:106px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:110px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:118px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:128px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:8px;height:30px;position:absolute;left:132px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:142px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:146px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:6px;height:30px;position:absolute;left:154px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:162px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:166px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:176px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:6px;height:30px;position:absolute;left:186px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:2px;height:30px;position:absolute;left:194px;top:0"> </div> | ||
<div style="background-color:rgb(0,0,0);width:4px;height:30px;position:absolute;left:198px;top:0"> </div> | ||
</div> |
Oops, something went wrong.