efgiese / ngx-barcode6

An angular component for Angular 6 for creating 1-D barcodes based on Lindell's JsBarcode
MIT License
29 stars 10 forks source link

Missing barcode type "ITF" #23

Closed LouisXhaferi closed 2 years ago

LouisXhaferi commented 2 years ago

While supported in the original JsBarcode, your wrapper seems to be missing the definition of the barcode type of "ITF" without a fixed length requirement.

Link to lindell/JsBarcode and it's folder structure

Definition in this library in projects/ngx-barcode6/src/lib/ngx-barcode6.component.ts

@Input('bc-format') format: '' | 'CODE128' | 'CODE128A' | 'CODE128B' | 'CODE128C' | 'EAN13' | 'UPC' | 'EAN8' | 'EAN5' |
    'EAN2' | 'CODE39' | 'ITF14' | 'MSI' | 'MSI10' | 'MSI11' | 'MSI1010' | 'MSI1110' | 'pharmacode' | 'codabar' = 'CODE128';

Just adding it to the union would probably fix this. :)

efgiese commented 2 years ago

The new version is online...