A free open source IT asset/license management system
add Config getter for labelwriter_11354
Godfrey M5cb4d690c559
diff --git a/app/Models/Labels/Tapes/Dymo/LabelWriter_11354.php b/app/Models/Labels/Tapes/Dymo/LabelWriter_11354.phpindex a01706095b..bc9a8ff706 100644--- a/app/Models/Labels/Tapes/Dymo/LabelWriter_11354.php+++ b/app/Models/Labels/Tapes/Dymo/LabelWriter_11354.php@@ -69,6 +69,78 @@ class LabelWriter_11354 extends LabelWriterreturn true;}+ public function getBarcodeSize(): float+ {+ return self::BARCODE1D_HEIGHT;+ }++ public function getBarcodeMargin(): float+ {+ return self::BARCODE_MARGIN;+ }++ public function getTagSize(): float+ {+ return self::TAG_SIZE;+ }++ public function getTitleSize(): float+ {+ return self::TITLE_SIZE;+ }++ public function getTitleMargin(): float+ {+ return self::TITLE_MARGIN;+ }++ public function getLabelSize(): float+ {+ return self::LABEL_SIZE;+ }++ public function getLabelMargin(): float+ {+ return self::LABEL_MARGIN;+ }++ public function getFieldSize(): float+ {+ return self::FIELD_SIZE;+ }++ public function getFieldMargin(): float+ {+ return self::FIELD_MARGIN;+ }++ protected function getContentEditorConfig(): array+ {+ return [+ 'barcode_size' => $this->getBarcodeSize(),+ 'barcode_margin' => $this->getBarcodeMargin(),+ 'barcode1D_v_align' => 'T',++ 'barcode_2d_size' => 20.0,+ 'barcode2D_h_align' => 'L',+ 'barcode2D_v_align' => 'T',++ 'tag_font_size' => $this->getTagSize(),+ 'tag_alignment' => 'C',+ 'tag_position_mode' => 'under_barcode',++ 'title_font_size' => $this->getTitleSize(),+ 'title_margin' => $this->getTitleMargin(),++ 'field_label_font_size' => $this->getLabelSize(),+ 'field_label_margin' => $this->getLabelMargin(),++ 'field_value_font_size' => $this->getFieldSize(),+ 'field_value_margin' => $this->getFieldMargin(),++ 'text_render_mode' => 'block',+ ];+ }public function preparePDF($pdf) {}public function write($pdf, $record)