UNPKG

red-agate-barcode

Version:

red-agate barcode tag library.

29 lines (28 loc) 998 B
import { BarcodeBaseProps, BarcodeBasePropsNoUndefined, BarcodeBase } from './BarcodeBase'; export interface Code128Props extends BarcodeBaseProps { elementWidth?: number; useLatin1?: boolean; raw?: boolean; } export interface Code128PropsNoUndefined extends BarcodeBasePropsNoUndefined { elementWidth: number; useLatin1: boolean; raw: boolean; } export declare const code128PropsDefault: Code128PropsNoUndefined; export declare class Code128 extends BarcodeBase<Code128Props> { constructor(props: Code128Props); protected calcSymbolSize(data: string, startChar: string, stopChar: string, cdChar: string): { tw: number; th: number; }; protected calcMod103Checksum(data: string): number; protected encodeData(data: string): { data: string; heightData?: string; labelText?: string; startChar: string; stopChar: string; }; protected getBarSpaceWidth(): number[]; }