Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 23 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,13 @@
</label>
<select id="label-type"
class="w-full border-gray-900 py-2 pl-3 pr-10 focus:border-green-600 focus:outline-none focus:ring-green-600 focus:ring-2">
<optgroup label="dhl">
<option value="dhl-privat">
dhl_privat | 62x145mm
</option>
<option value="dhl-privat-international">
dhl_privat_international_eu | 62x195mm
</option>
<option value="dhl-privat-international-native">
dhl_privat_international_eu_native | 62x165mm
</option>
<option value="dhl-retoure">
dhl_retoure | 62x145mm
</option>
<option value="dhl-return-connect">
dhl_return_connect | 62x160mm
</option>
</optgroup>
<optgroup label="deutsche_post">
<option value="dp-briefmarke-ebay-ohne-ebay-logo">
briefmarke_ebay_ohne_logo | 62x110mm
</option>
<option value="dp-briefmarke-ebay">
briefmarke_ebay | 62x120mm
</option>
<option value="dp-briefmarke">
briefmarke | 62x40mm
</option>
Expand All @@ -90,6 +79,23 @@
briefmarke_bogen_short | 62x25mm
</option>
</optgroup>
<optgroup label="dhl">
<option value="dhl-privat">
dhl_privat | 62x145mm
</option>
<option value="dhl-privat-international">
dhl_privat_international_eu | 62x195mm
</option>
<option value="dhl-privat-international-native">
dhl_privat_international_eu_native | 62x165mm
</option>
<option value="dhl-retoure">
dhl_retoure | 62x145mm
</option>
<option value="dhl-return-connect">
dhl_return_connect | 62x160mm
</option>
</optgroup>
<optgroup label="hermes">
<option value="hermes-privat-v112">
hermes_privat [v1.1.2] | 62x145mm
Expand Down
13 changes: 12 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"autoprefixer": "^10.4.12",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8",
"vite": "^7.1.2",
"vite": "^7.2.4",
"vite-plugin-singlefile": "^0.13.2"
}
}
34 changes: 34 additions & 0 deletions src/js/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export default function (labelType) {
case 'dp-briefmarke-adresse': return dpBriefmarkeAdresse;
case 'dp-briefmarke-bogen': return dpBriefmarkeBogen;
case 'dp-briefmarke-bogen-short': return dpBriefmarkeBogenShort;
case 'dp-briefmarke-ebay': return dpBriefmarkeEbay;
case 'dp-briefmarke-ebay-ohne-ebay-logo': return dpBriefmarkeEbayOhneLogo;
case 'hermes-privat-v112': return hermesPrivatV112;
case 'hermes-vinted-qr': return hermesVintedQR;
case 'hermes-vinted-eu': return hermesVintedEU;
Expand Down Expand Up @@ -355,6 +357,38 @@ const dpBriefmarkeBogen = {
}
};

const dpBriefmarkeEbay = {
file: {
type: 'pdf',
page: 1,
rotation: 0
},
scale: 4.1666,
width: 900,
crop(outputCanvas, ctx, image) {
ctx.drawImage(image,
150, 240, 1350, 680, 0, 0, 1350, 680
);
}

};

const dpBriefmarkeEbayOhneLogo = {
file: {
type: 'pdf',
page: 1,
rotation: 0
},
scale: 4.1666,
width: 830,
crop(outputCanvas, ctx, image) {
ctx.drawImage(image,
150, 240, 820, 680, 0, 0, 820, 680
);
}

};

const dpBriefmarkeBogenShort = {
file: {
type: 'pdf',
Expand Down