mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-29 21:14:29 +02:00
Added basic label generation dialog.
This commit is contained in:
parent
ea0d72bfbb
commit
a4e1a17b4a
12 changed files with 230 additions and 5 deletions
|
@ -24,14 +24,16 @@ namespace App\Services\LabelSystem;
|
|||
use App\Entity\Contracts\NamedElementInterface;
|
||||
use App\Entity\LabelSystem\LabelOptions;
|
||||
use App\Entity\Parts\Part;
|
||||
use App\Entity\Parts\PartLot;
|
||||
use App\Services\ElementTypeNameGenerator;
|
||||
use Dompdf\Dompdf;
|
||||
use Twig\Environment;
|
||||
|
||||
class LabelGenerator
|
||||
{
|
||||
protected const CLASS_SUPPORT_MAPPING = [
|
||||
public const CLASS_SUPPORT_MAPPING = [
|
||||
'part' => Part::class,
|
||||
'part_lot' => PartLot::class,
|
||||
];
|
||||
|
||||
public const MM_TO_POINTS_FACTOR = 2.83465;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue