@aurigma/design-atoms-interfaces
Version:
36 lines (35 loc) • 1.04 kB
TypeScript
/**
* A structure defining the barcode options.
* @example
* ```json
* {
* "defaultItemsConfig": {
* "barcode": {
* "barcodeOptions": {
* "margin": 0
* }
* }
* }
* }
* ```
* @public
*/
export interface IBarcodeOptions {
/** Specifies a margin, in pixels. This margin differs for barcode formats, for example, it controls the space before and after the barcode horizontally for linear formats. */
margin?: number;
/** If `true`, the image is a pure monochrome image of a barcode. */
pureBarcode?: boolean;
errorCorrection?: string;
/** Specifies what character encoding to use when decoding. */
characterSet?: string;
pdf417Compact?: boolean;
pdf417Compaction?: string;
pdf417Dimensions?: {};
disableEci?: boolean;
code128ForceCodesetB?: boolean;
aztecLayers?: number;
/** The version of QR code to be encoded, in the range [1, 40]. */
qrVersion?: number;
xDimension?: number;
databarExpandedSegments?: number;
}