UNPKG

red-agate-barcode

Version:

red-agate barcode tag library.

35 lines (34 loc) 1.13 kB
import { BarcodeBaseProps, BarcodeBasePropsNoUndefined, BarcodeBase } from './BarcodeBase'; export interface Nw7Props extends BarcodeBaseProps { addCheckDigit?: boolean; narrowWidth?: number; wideWidth?: number; charGapWidth?: number; startChar?: string; stopChar?: string; } export interface Nw7PropsNoUndefined extends BarcodeBasePropsNoUndefined { addCheckDigit: boolean; narrowWidth: number; wideWidth: number; charGapWidth?: number; startChar: string; stopChar: string; } export declare const nw7PropsDefault: Nw7PropsNoUndefined; export declare class Nw7 extends BarcodeBase<Nw7Props> { constructor(props: Nw7Props); protected calcSymbolSize(data: string, startChar: string, stopChar: string, cdChar: string): { tw: number; th: number; }; protected calcCheckDigit(data: string): string; protected encodeData(data: string): { data: string; heightData?: string; labelText?: string; startChar: string; stopChar: string; }; protected getBarSpaceWidth(): number[]; }