@syncfusion/ej2
Version:
A modern JavaScript UI toolkit that has been built from the ground up to be lightweight, responsive, modular and touch friendly. It is written in TypeScript and has no external dependencies.
1,893 lines (1,892 loc) • 5.87 MB
Plain Text
declare namespace ej {
export namespace barcodeGenerator {
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/barcode-base.d.ts
/**
* defines the common methods for the barcode
*/
export abstract class BarcodeBase {
abstract validateInput(char: string, characters: string): boolean | string;
abstract drawImage(canvas: HTMLCanvasElement, options: BaseAttributes[], labelPosition: number, barcodeSize: Rect, endValue: number, textRender: string): void;
abstract getDrawableSize(margin: MarginModel, widthValue: number, height: number): void;
height: string | number;
width: string | number;
margin: MarginModel;
displayText: DisplayTextModel;
value: string;
foreColor: string;
type: BarcodeType;
isSvgMode: boolean;
alignment: Alignment;
enableCheckSum: boolean;
encodingValue: DataMatrixEncoding;
size: DataMatrixSize;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/barcode-model.d.ts
/**
* Interface for a class BarcodeGenerator
*/
export interface BarcodeGeneratorModel extends base.ComponentModel{
/**
* Defines the width of the barcode model.
* ```html
* <div id='barcode'/>
* ```
* ```typescript
* let barcode: Barcode = new Barcode({
* width:'1000px', height:'500px' });
* barcode.appendTo('#barcode');
* ```
* @default '100%'
*/
width?: string | number;
/**
* Defines the height of the barcode model.
* ```html
* <div id='barcode'/>
* ```
* ```typescript
* let barcode: Barcode = new Barcode({
* height:'1000px', height:'500px' });
* barcode.appendTo('#barcode');
* ```
* @default '100'
*/
height?: string | number;
/**
* Defines the barcode rendering mode.
* * SVG - Renders the bar-code objects as SVG elements
* * Canvas - Renders the bar-code in a canvas
* @default 'SVG'
*/
mode?: RenderingMode;
/**
* Defines the type of barcode to be rendered.
* @default 'Code128'
*/
type?: BarcodeType;
/**
* Defines the value of the barcode to be rendered.
* @default undefined
*/
value?: string;
/**
* Defines the checksum for the barcode.
* @default 'true'
*/
enableCheckSum?: boolean;
/**
* Defines the text properties for the barcode.
* @default ''
*/
displayText?: DisplayTextModel;
/**
* Defines the margin properties for the barcode.
* @default ''
*/
margin?: MarginModel;
/**
* Defines the background color of the barcode.
* @default 'white'
*/
backgroundColor?: string;
/**
* Defines the forecolor of the barcode.
* @default 'black'
*/
foreColor?: string;
/**
* Triggers if you enter any invalid character.
* @event
*/
invalid?: base.EmitType<Object>;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/barcode.d.ts
/**
* Represents the Barcode control
* ```html
* <div id='barcode'/>
* ```
* ```typescript
* let barcode$: Barcode = new Barcode({
* width:'1000px', height:'500px' });
* barcode.appendTo('#barcode');
* ```
*/
export class BarcodeGenerator extends base.Component<HTMLElement> implements base.INotifyPropertyChanged {
/**
* Defines the width of the barcode model.
* ```html
* <div id='barcode'/>
* ```
* ```typescript
* let barcode$: Barcode = new Barcode({
* width:'1000px', height:'500px' });
* barcode.appendTo('#barcode');
* ```
* @default '100%'
*/
width: string | number;
/**
* Defines the height of the barcode model.
* ```html
* <div id='barcode'/>
* ```
* ```typescript
* let barcode$: Barcode = new Barcode({
* height:'1000px', height:'500px' });
* barcode.appendTo('#barcode');
* ```
* @default '100'
*/
height: string | number;
/**
* Defines the barcode rendering mode.
* * SVG - Renders the bar-code objects as SVG elements
* * Canvas - Renders the bar-code in a canvas
* @default 'SVG'
*/
mode: RenderingMode;
/**
* Defines the type of barcode to be rendered.
* @default 'Code128'
*/
type: BarcodeType;
/**
* Defines the value of the barcode to be rendered.
* @default undefined
*/
value: string;
/**
* Defines the checksum for the barcode.
* @default 'true'
*/
enableCheckSum: boolean;
/**
* Defines the text properties for the barcode.
* @default ''
*/
displayText: DisplayTextModel;
/**
* Defines the margin properties for the barcode.
* @default ''
*/
margin: MarginModel;
/**
* Defines the background color of the barcode.
* @default 'white'
*/
backgroundColor: string;
/**
* Defines the forecolor of the barcode.
* @default 'black'
*/
foreColor: string;
/**
* Triggers if you enter any invalid character.
* @event
*/
invalid: base.EmitType<Object>;
/** @private */
localeObj: base.L10n;
/** @private */
private defaultLocale;
private barcodeCanvas;
private barcodeRenderer;
/**
* Constructor for creating the widget
*/
constructor(options?: BarcodeGeneratorModel, element?: HTMLElement | string);
private triggerEvent;
onPropertyChanged(newProp: BarcodeGeneratorModel, oldProp: BarcodeGeneratorModel): void;
private initialize;
private renderElements;
private refreshCanvasBarcode;
private clearCanvas;
/**
* Get the properties to be maintained in the persisted state.
* @return {string}
*/
getPersistData(): string;
/**
* @private
* @param real
*/
private getElementSize;
protected preRender(): void;
private initializePrivateVariables;
/**
* Method to set culture for chart
*/
private setCulture;
/**
* Renders the barcode control with nodes and connectors
*/
render(): void;
/**
* Returns the module name of the barcode
*/
getModuleName(): string;
/**
* To provide the array of modules needed for control rendering
* @return {base.ModuleDeclaration[]}
* @private
*/
requiredModules(): base.ModuleDeclaration[];
/**
* Destroys the barcode control
*/
destroy(): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/enum/enum.d.ts
/**
* Enum
*/
/**
* Defines the rendering mode of the barcode. They are
* * SVG
* * Canvas
*/
export type RenderingMode =
/** SVG - Renders the barcode objects as SVG elements */
'SVG' |
/** Canvas - Renders the barcode in a canvas */
'Canvas';
/**
* Defines the event of the barcode
* * BarcodeEvent - Throws when an invalid input was given.
*/
export enum BarcodeEvent {
'invalid' = 0
}
/**
* Defines the text alignment for the text to be rendered in the barcode. The text alignment types are
* * Left
* * Right
* * Center
*/
export type Alignment =
/** Left - Align the text to the left side of the barcode element. */
'Left' |
/** Left - Align the text to the right side of the barcode element. */
'Right' |
/** Left - Align the text to the center side of the barcode element. */
'Center';
/**
* Defines the text position for the text to be rendered in the barcode. The text positions are
* * Bottom
* * Top
*/
export type TextPosition =
/** Bottom - Text will be rendered in the bottom of the barcode element. */
'Bottom' |
/** Top - Text will be rendered in the top of the barcode element. */
'Top';
/**
* Defines the quite zone for the Qr Code.
*/
/** @private */
export enum QuietZone {
All = 2
}
/**
* Defines the encoding type for the datamatrix code. They are
* * Auto
* * ASCII
* * ASCIINumeric
* * Base256
*/
export type DataMatrixEncoding =
/** Auto - Encoding type will be automatically assigned for the given input. */
'Auto' |
/** ASCII - Accept only the ASCII values. */
'ASCII' |
/** ASCIINumeric - Accept only the ASCII numeric values. */
'ASCIINumeric' |
/** Base256 -Accept the base256 values */
'Base256';
/**
* Defines the size for the datamatrix code. The defined size are
* * Auto
* * Size10x10
* * Size12x12
* * Size14x14
* * Size16x16
* * Size18x18
* * Size20x20
* * Size22x22
* * Size24x24
* * Size26x26
* * Size32x32
* * Size36x36
* * Size40x40
* * Size44x44
* * Size48x48
* * Size52x52
* * Size64x64
* * Size72x72
* * Size80x80
* * Size88x88
* * Size96x96
* * Size104x104
* * Size120x120
* * Size132x132
* * Size144x144
* * Size8x18
* * Size8x32
* * Size12x26
* * Size12x36
* * Size16x36
* * Size16x48
* @aspNumberEnum
* @blazorNumberEnum
* @IgnoreSingular
*/
export enum DataMatrixSize {
/**
* modules will be generated automatically.
*/
Auto = 0,
/**
* will generate 10*10 modules.
*/
Size10x10 = 1,
/**
* will generate 12*12 modules.
*/
Size12x12 = 2,
/**
* will generate 14*14 modules.
*/
Size14x14 = 3,
/**
* will generate 16*16 modules.
*/
Size16x16 = 4,
/**
* will generate 18*18 modules.
*/
Size18x18 = 5,
/**
* will generate 20*20 modules.
*/
Size20x20 = 6,
/**
* will generate 22*22 modules.
*/
Size22x22 = 7,
/**
* will generate 24*24 modules.
*/
Size24x24 = 8,
/**
* will generate 26*26 modules.
*/
Size26x26 = 9,
/**
* will generate 32*32 modules.
*/
Size32x32 = 10,
/**
* will generate 32*32 modules.
*/
Size36x36 = 11,
/**
* will generate 40*40 modules.
*/
Size40x40 = 12,
/**
* will generate 44*44 modules.
*/
Size44x44 = 13,
/**
* will generate 48*48 modules.
*/
Size48x48 = 14,
/**
* will generate 52*52 modules.
*/
Size52x52 = 15,
/**
* will generate 64*64 modules.
*/
Size64x64 = 16,
/**
* will generate 72*72 modules.
*/
Size72x72 = 17,
/**
* will generate 80*80 modules.
*/
Size80x80 = 18,
/**
* will generate 88*88 modules.
*/
Size88x88 = 19,
/**
* will generate 96*96 modules.
*/
Size96x96 = 20,
/**
* will generate 104*104 modules.
*/
Size104x104 = 21,
/**
* will generate 120*120 modules.
*/
Size120x120 = 22,
/**
* will generate 132*132 modules.
*/
Size132x132 = 23,
/**
* will generate 144*144 modules.
*/
Size144x144 = 24,
/**
* will generate 8*18 modules.
*/
Size8x18 = 25,
/**
* will generate 8*32 modules.
*/
Size8x32 = 26,
/**
* will generate 12*26 modules.
*/
Size12x26 = 27,
/**
* will generate 12*36 modules.
*/
Size12x36 = 28,
/**
* will generate 16*36 modules.
*/
Size16x36 = 29,
/**
* will generate 16*48 modules.
*/
Size16x48 = 30
}
/**
* Defines the type of the barcode to be generated. The barcode types are
* * Code39
* * Code128
* * Code128A
* * Code128B
* * Code128C
* * Codabar
* * Ean8
* * Ean13
* * UpcA
* * UpcE
* * Code11
* * Code93
* * Code93Extension
* * Code39Extension
* * Code32
*/
export type BarcodeType =
/** code39 - render the code39 barcode */
'Code39' |
/** code128 - render the code128 barcode */
'Code128' |
/** code128A - render the code128A barcode */
'Code128A' |
/** code128B - render the code128B barcode */
'Code128B' |
/** code128C - render the code128C barcode */
'Code128C' |
/** Codabar - render the codabar barcode */
'Codabar' |
/** Ean8 - render the Ean8 barcode */
'Ean8' |
/** Ean8 - render the Ean8 barcode */
'Ean13' |
/** UpcA - render the UpcA barcode */
'UpcA' |
/** UpcE - render the UpcE barcode */
'UpcE' |
/** Code11 - render the code11 barcode */
'Code11' |
/** Code93 - render the code93 barcode */
'Code93' |
/** Code93Extension - render the Code93Extension barcode */
'Code93Extension' |
/** Code39EXTD - render the code39EXTD barcode */
'Code39Extension' |
/** Code32 - render the Code32 barcode */
'Code32';
/**
* Defines the Qrcode input mode. The QR input modes are
* * NumericMode
* * BinaryMode
* * AlphaNumericMode
*/
export type QRInputMode =
/** NumericMode - Changes its mode to numericMode when the given input is numeric. */
'NumericMode' |
/** BinaryMode - Changes its mode to BinaryMode when the given input is numeric or smaller case or both. */
'BinaryMode' |
/** AlphaNumericMode - Changes its mode to AlphaNumericMode when the given is numeric or upper case or both. */
'AlphaNumericMode';
/**
* Defines the Qrcode QRCodeVersion. They are
* * Auto
* * Version01
* * Version02
* * Version03
* * Version04
* * Version05
* * Version06
* * Version07
* * Version08
* * Version09
* * Version10
* * Version11
* * Version12
* * Version13
* * Version14
* * Version15
* * Version16
* * Version17
* * Version18
* * Version19
* * Version20
* * Version21
* * Version22
* * Version23
* * Version24
* * Version25
* * Version26
* * Version27
* * Version28
* * Version29
* * Version30
* * Version31
* * Version32
* * Version33
* * Version34
* * Version35
* * Version36
* * Version37
* * Version38
* * Version39
* * Version40
* @aspNumberEnum
* @blazorNumberEnum
* @IgnoreSingular
*/
export enum QRCodeVersion {
/**
* Specifies the default version.
*/
Auto = 0,
/**
* Specifies version 1 (21 x 21 modules).
*/
Version01 = 1,
/**
* Specifies version 2 (25 x 25 modules).
*/
Version02 = 2,
/**
* Specifies version 3 (29 x 29 modules).
*/
Version03 = 3,
/**
* Specifies version 4 (33 x 33 modules).
*/
Version04 = 4,
/**
* Specifies version 5 (37 x 37 modules).
*/
Version05 = 5,
/**
* Specifies version 6 (41 x 41 modules).
*/
Version06 = 6,
/**
* Specifies version 7 (45 x 45 modules).
*/
Version07 = 7,
/**
* Specifies version 8 (49 x 49 modules).
*/
Version08 = 8,
/**
* Specifies version 9 (53 x 53 modules).
*/
Version09 = 9,
/**
* Specifies version 10 (57 x 57 modules).
*/
Version10 = 10,
/**
* Specifies version 11 (61 x 61 modules).
*/
Version11 = 11,
/**
* Specifies version 12 (65 x 65 modules).
*/
Version12 = 12,
/**
* Specifies version 13 (69 x 69 modules).
*/
Version13 = 13,
/**
* Specifies version 14 (73 x 73 modules).
*/
Version14 = 14,
/**
* Specifies version 15 (77 x 77 modules).
*/
Version15 = 15,
/**
* Specifies version 17 (85 x 85 modules).
*/
Version16 = 16,
/**
* Specifies version 17 (85 x 85 modules).
*/
Version17 = 17,
/**
* Specifies version 18 (89 x 89 modules).
*/
Version18 = 18,
/**
* Specifies version 19 (93 x 93 modules).
*/
Version19 = 19,
/**
* Specifies version 20 (97 x 97 modules).
*/
Version20 = 20,
/**
* Specifies version 21 (101 x 101 modules).
*/
Version21 = 21,
/**
* Specifies version 22 (105 x 105 modules).
*/
Version22 = 22,
/**
* Specifies version 23 (109 x 109 modules).
*/
Version23 = 23,
/**
* Specifies version 24 (113 x 113 modules).
*/
Version24 = 24,
/**
* Specifies version 25 (117 x 117 modules).
*/
Version25 = 25,
/**
* Specifies version 26 (121 x 121 modules).
*/
Version26 = 26,
/**
* Specifies version 27 (125 x 125 modules).
*/
Version27 = 27,
/**
* Specifies version 28 (129 x 129 modules).
*/
Version28 = 28,
/**
* Specifies version 29 (133 x 133 modules).
*/
Version29 = 29,
/**
* Specifies version 30 (137 x 137 modules).
*/
Version30 = 30,
/**
* Specifies version 31 (141 x 141 modules).
*/
Version31 = 31,
/**
* Specifies version 32 (145 x 145 modules).
*/
Version32 = 32,
/**
* Specifies version 33 (149 x 149 modules).
*/
Version33 = 33,
/**
* Specifies version 34 (153 x 153 modules).
*/
Version34 = 34,
/**
* Specifies version 35 (157 x 157 modules).
*/
Version35 = 35,
/**
* Specifies version 36 (161 x 161 modules).
*/
Version36 = 36,
/**
* Specifies version 37 (165 x 165 modules).
*/
Version37 = 37,
/**
* Specifies version 38 (169 x 169 modules).
*/
Version38 = 38,
/**
* Specifies version 39 (173 x 173 modules).
*/
Version39 = 39,
/**
* Specifies version 40 (177 x 177 modules).
*/
Version40 = 40
}
/**
* Indicated the recovery capacity of the qrcode. The default capacity levels are
* * Low
* * Medium
* * Quartile
* * High
* @aspNumberEnum
* @blazorNumberEnum
* @IgnoreSingular
*/
export enum ErrorCorrectionLevel {
/**
* The Recovery capacity is 7%(approx.)
*/
Low = 7,
/**
* The Recovery capacity is 15%(approx.)
*/
Medium = 15,
/**
* The Recovery capacity is 25%(approx.)
*/
Quartile = 25,
/**
* The Recovery capacity is 30%(approx.)
*/
High = 30
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/index.d.ts
/**
* Barcode component exported items
*/
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension.d.ts
/**
* onedimension class is used to render all type of one dimensional shapes
*/
export abstract class OneDimension extends BarcodeBase {
private getInstance;
/** @private */
getDrawableSize(margin: MarginModel, w: number, h: number): Rect;
private getBaseAttributes;
private getBarLineRatio;
private multipleWidth;
private barCodeType;
private checkStartValueCondition;
private checkEndValueCondition;
private getDisplayText;
private checkExtraHeight;
private getWidthValue;
/** @private */
calculateBarCodeAttributes(code: number[] | string[], canvas: HTMLElement, isUpcE?: string): void;
private canIncrementCheck;
private verticalTextMargin;
private getAlignmentPosition;
/** @private */
drawImage(canvas: HTMLCanvasElement, options: BaseAttributes[]): void;
private updateDisplayTextSize;
private alignDisplayText;
private updateOverlappedTextPosition;
private drawText;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/codabar.d.ts
/**
* codabar used to calculate the barcode of type codabar
*/
export class CodaBar extends OneDimension {
/** @private */
validateInput(char: string): string;
private getCodeValue;
private appendStartStopCharacters;
private getPatternCollection;
/** @private */
draw(canvas: HTMLElement): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/code11.d.ts
/**
* code39 used to calculate the barcode of type 39
*/
export class Code11 extends OneDimension {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(value: string): string;
/**
* get the code value to check
*/
private getCodeValue;
private getPatternCollection;
/** @private */
draw(canvas: HTMLElement): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/code128.d.ts
/**
* code128 used to calculate the barcode of type 128
*/
export class Code128 extends OneDimension {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(char: string): string;
private getCodeValue;
private getBytes;
private appendStartStopCharacters;
private check128C;
private check128A;
private check128B;
private clipAB;
private code128Clip;
private clipC;
/** @private */
draw(canvas: HTMLElement): void;
/** @private */
code128(canvas: HTMLElement): void;
private encodeData;
private swap;
private encode;
private correctIndex;
private getCodes;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/code128A.d.ts
/**
* code128A used to calculate the barcode of type 1228A
*/
export class Code128A extends Code128 {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(char: string): string;
/** @private */
draw(canvas: HTMLElement): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/code128B.d.ts
/**
* code128B used to calculate the barcode of type 128
*/
export class Code128B extends Code128 {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(char: string): string;
/** @private */
draw(canvas: HTMLElement): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/code128C.d.ts
/**
* code128C used to calculate the barcode of type 128C barcode
*/
export class Code128C extends Code128 {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(char: string): string;
/** @private */
draw(canvas: HTMLElement): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/code32.d.ts
/**
* code39 used to calculate the barcode of type 39
*/
export class Code32 extends OneDimension {
/** @private */
validateInput(char: string): string;
/**
* get the code value to check
*/
private getCodeValue;
private getPatternCollection;
/** @private */
draw(canvas: HTMLElement): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/code39.d.ts
/**
* code39 used to calculate the barcode of type 39
*/
export class Code39 extends OneDimension {
/**
* get the code value to check
*/
private getCodeValue;
/**
* get the characters to check
*/
private getCharacter;
/**
* Check sum method for the code 39 bar code
*/
private checkSum;
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(char: string): string;
private getPatternCollection;
private appendStartStopCharacters;
/** @private */
drawCode39Extension(canvas: HTMLElement, encodedCharacter: string): void;
/** @private */
draw(canvas: HTMLElement, encodedCharacter?: string): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/code39Extension.d.ts
/**
* code39 used to calculate the barcode of type 39
*/
export class Code39Extension extends Code39 {
private code39ExtensionValues;
/**
* Validate the given input to check whether the input is valid one or not
*
*/
/** @private */
validateInput(char: string): string;
private checkText;
private code39Extension;
/** @private */
drawCode39(canvas: HTMLElement): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/code93.d.ts
/**
* code39 used to calculate the barcode of type 39
*/
export class Code93 extends OneDimension {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(value: string): string;
private getCharacterWeight;
/**
* get the code value to check
*/
private getCodeValue;
private getPatternCollection;
private calculateCheckSum;
/** @private */
draw(canvas: HTMLElement): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/code93Extension.d.ts
/**
* code39 used to calculate the barcode of type 39
*/
export class Code93Extension extends Code93 {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(text: string): string;
private getValue;
private barcodeSymbols;
private getBars;
private GetExtendedText;
/** @private */
drawCode93(canvas: HTMLElement): void;
private extendedText;
private GetCheckSumSymbols;
private CalculateCheckDigit;
private getArrayValue;
private encoding;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/ean13.d.ts
/**
* EAN13 class is used to calculate the barcode of type EAN13 barcode
*/
export class Ean13 extends OneDimension {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(value: string): string;
private checkSumData;
private getStructure;
private getBinaries;
/** @private */
draw(canvas: HTMLElement): void;
private leftValue;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/ean8.d.ts
/**
* EAN8 class is used to calculate the barcode of type EAN8 barcode
*/
export class Ean8 extends OneDimension {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(value: string): string;
private getCodeValueRight;
private checkSumData;
/** @private */
draw(canvas: HTMLElement): void;
private leftValue;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/upcA.d.ts
/**
* This class is used to calculate the barcode of type Universal Product Code barcode
*/
export class UpcA extends OneDimension {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(value: string): string;
private checkSumData;
private getBinaries;
/** @private */
draw(canvas: HTMLElement): void;
private leftValue;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/one-dimension/upcE.d.ts
/**
* This class is used to calculate the barcode of type Universal Product Code barcode
*/
export class UpcE extends OneDimension {
/**
* Validate the given input to check whether the input is valid one or not
*/
/** @private */
validateInput(value: string): string;
private checkSum;
private getStructure;
private getValue;
private getExpansion;
private getUpcValue;
private getBinaries;
private encoding;
/** @private */
draw(canvas: HTMLElement): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/primitives/displaytext-model.d.ts
/**
* Interface for a class DisplayText
*/
export interface DisplayTextModel {
/**
* Sets the textual description of the barcode.
* @default ''
*/
text?: string;
/**
* Defines the visibility of the text.
* @default true
*/
visibility?: boolean;
/**
* Defines the font style of the text
* @default 'monospace'
*/
font?: string;
/**
* Defines the size of the text.
* @default 20
*/
size?: number;
/**
* Sets the space to be left between the text and its barcode.
* @default ''
*/
margin?: MarginModel;
/**
* Defines the horizontal alignment of the text.
* * Left - Aligns the text at the left
* * Right - Aligns the text at the Right
* * Center - Aligns the text at the Center
* @default 'Center'
*/
alignment?: Alignment;
/**
* Defines the position of the text.
* * Bottom - Position the text at the Bottom
* * Top - Position the text at the Top
* @default 'Bottom'
*/
position?: TextPosition;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/primitives/displaytext.d.ts
/**
* Defines the space to be left between an object and its immediate parent
*/
export class DisplayText extends base.ChildProperty<DisplayText> {
/**
* Sets the textual description of the barcode.
* @default ''
*/
text: string;
/**
* Defines the visibility of the text.
* @default true
*/
visibility: boolean;
/**
* Defines the font style of the text
* @default 'monospace'
*/
font: string;
/**
* Defines the size of the text.
* @default 20
*/
size: number;
/**
* Sets the space to be left between the text and its barcode.
* @default ''
*/
margin: MarginModel;
/**
* Defines the horizontal alignment of the text.
* * Left - Aligns the text at the left
* * Right - Aligns the text at the Right
* * Center - Aligns the text at the Center
* @default 'Center'
*/
alignment: Alignment;
/**
* Defines the position of the text.
* * Bottom - Position the text at the Bottom
* * Top - Position the text at the Top
* @default 'Bottom'
*/
position: TextPosition;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/primitives/margin-model.d.ts
/**
* Interface for a class Margin
*/
export interface MarginModel {
/**
* Sets the space to be left from the left side of the immediate parent of an element
* @default 10
*/
left?: number;
/**
* Sets the space to be left from the right side of the immediate parent of an element
* @default 10
*/
right?: number;
/**
* Sets the space to be left from the top side of the immediate parent of an element
* @default 10
*/
top?: number;
/**
* Sets the space to be left from the bottom side of the immediate parent of an element
* @default 10
*/
bottom?: number;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/primitives/margin.d.ts
/**
* Defines the space to be left between an object and its immediate parent
*/
export class Margin extends base.ChildProperty<Margin> {
/**
* Sets the space to be left from the left side of the immediate parent of an element
* @default 10
*/
left: number;
/**
* Sets the space to be left from the right side of the immediate parent of an element
* @default 10
*/
right: number;
/**
* Sets the space to be left from the top side of the immediate parent of an element
* @default 10
*/
top: number;
/**
* Sets the space to be left from the bottom side of the immediate parent of an element
* @default 10
*/
bottom: number;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/primitives/point-model.d.ts
/**
* Interface for a class Point
*/
export interface PointModel {
/**
* Sets the x-coordinate of a position
* @default 0
*/
x?: number;
/**
* Sets the y-coordinate of a position
* @default 0
*/
y?: number;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/primitives/point.d.ts
/**
* Defines and processes coordinates
*/
export class Point extends base.ChildProperty<Point> {
/**
* Sets the x-coordinate of a position
* @default 0
*/
x: number;
/**
* Sets the y-coordinate of a position
* @default 0
*/
y: number;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/primitives/rect.d.ts
/**
* Rect defines and processes rectangular regions
*/
export class Rect {
/**
* Sets the x-coordinate of the starting point of a rectangular region
* @default 0
*/
x: number;
/**
* Sets the y-coordinate of the starting point of a rectangular region
* @default 0
*/
y: number;
/**
* Sets the width of a rectangular region
* @default 0
*/
width: number;
/**
* Sets the height of a rectangular region
* @default 0
*/
height: number;
constructor(x?: number, y?: number, width?: number, height?: number);
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/primitives/size.d.ts
/**
* Size defines and processes the size(width/height) of the objects
*/
export class Size {
/**
* Sets the height of an object
* @default 0
*/
height: number;
/**
* Sets the width of an object
* @default 0
*/
width: number;
constructor(width?: number, height?: number);
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/rendering/canvas-interface.d.ts
/** @private */
export interface BaseAttributes {
x: number;
y: number;
width: number;
height: number;
color: string;
string?: string;
stringSize?: number;
visibility?: boolean;
fontStyle?: string;
id?: string;
strokeColor?: string;
}
/** @private */
export interface EncodingResult {
checksum: number;
result: string;
}
/** @private */
export interface PdfDataMatrixSymbolAttribute {
SymbolRow: number;
SymbolColumn: number;
HorizontalDataRegion: number;
VerticalDataRegion: number;
DataCodewords: number;
CorrectionCodewords: number;
InterleavedBlock: number;
InterleavedDataBlock: number;
}
/** @private */
export interface Code93ExtendedValues {
value: string;
checkDigit: number;
bars: string;
}
/** @private */
export interface Code93ExtendedArrayAttribute {
character: string;
keyword?: string;
value?: string;
}
/** @private */
export interface ValidateEvent {
message: string;
}
/** @private */
export class BarcodeSVGRenderer implements IBarcodeRenderer {
/** @private */
renderRootElement(attribute: Object): HTMLElement;
/** @private */
renderRect(canvas: Object, attribute: Object): HTMLElement;
/** @private */
renderLine(canvas: Object, attribute: Object): HTMLElement;
/** @private */
renderText(canvas: Object, attribute: Object): HTMLElement;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/rendering/canvas-renderer.d.ts
/**
* canvas renderer
*/
/** @private */
export class BarcodeCanvasRenderer implements IBarcodeRenderer {
/** @private */
static getContext(canvas: HTMLCanvasElement): CanvasRenderingContext2D;
/** @private */
renderRootElement(attribute: Object, backGroundColor: string, width: number, height: number): HTMLElement;
/** @private */
renderRect(canvas: HTMLCanvasElement, attribute: BaseAttributes): HTMLElement;
renderText(canvas: HTMLCanvasElement, attribute: BaseAttributes): HTMLElement;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/rendering/IRenderer.d.ts
/**
* IRenderer interface
*/
/** @private */
export interface IBarcodeRenderer {
renderRootElement(attribute: Object, backGroundColor: string, width: number, height: number): HTMLElement;
renderRect(canvas: HTMLCanvasElement, attribute: Object, isText?: boolean): HTMLElement;
renderText(canvas: HTMLCanvasElement, attribute: Object): HTMLElement;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/rendering/renderer.d.ts
/**
* Renderer
*/
/**
* Renderer module is used to render basic barcode elements
*/
/** @private */
export class BarcodeRenderer {
/** @private */
renderer: IBarcodeRenderer;
isSvgMode: Boolean;
constructor(name: string, isSvgMode: Boolean);
/** @private */
renderRootElement(attribute: Object, backGroundColor: string, width: number, height: number): HTMLElement;
/** @private */
renderRectElement(canvas: HTMLCanvasElement, attribute: Object): HTMLElement;
/** @private */
renderTextElement(canvas: HTMLCanvasElement, attribute: Object): HTMLElement;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/rendering/svg-renderer.d.ts
/**
* svg renderer
*/
/** @private */
export class BarcodeSVGRenderering implements IBarcodeRenderer {
/** @private */
renderRootElement(attribute: Object, backGroundColor: string): HTMLElement;
/** @private */
renderRect(svg: HTMLElement, attribute: BaseAttributes): HTMLElement;
/** @private */
renderText(svg: HTMLElement, attribute: BaseAttributes): HTMLElement;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/utility/barcode-util.d.ts
/**
* Barcode util
*/
/** @private */
export function removeChildElements(newProp: QRCodeGeneratorModel | DataMatrixGeneratorModel, barcodeCanvas: HTMLElement, mode: RenderingMode, id: string): BarcodeRenderer;
/** @private */
export function getBaseAttributes(width: number, height: number, offSetX: number, offsetY: number, color: string, strokeColor?: string): BaseAttributes;
/** @private */
export function clearCanvas(view: QRCodeGenerator | DataMatrixGenerator, barcodeCanvas: HTMLCanvasElement): void;
/** @private */
export function refreshCanvasBarcode(qrCodeGenerator: QRCodeGenerator | DataMatrixGenerator, barcodeCanvas: HTMLCanvasElement): void;
//node_modules/@syncfusion/ej2-barcode-generator/src/barcode/utility/dom-util.d.ts
/**
* DOM util
*/
/** @private */
export function createHtmlElement(elementType: string, attribute?: Object): HTMLElement;
export function getChildNode(node: SVGElement): SVGElement[] | HTMLCollection;
export function measureText(textContent: BaseAttributes): Size;
/** @private */
export function setAttribute(element: HTMLElement | SVGElement, attributes: Object): void;
/** @private */
export function createSvgElement(elementType: string, attribute: Object): HTMLElement | SVGElement;
/** @private */
export function createMeasureElements(): void;
//node_modules/@syncfusion/ej2-barcode-generator/src/datamatrix/datamatrix-model.d.ts
/**
* Interface for a class DataMatrixGenerator
*/
export interface DataMatrixGeneratorModel extends base.ComponentModel{
/**
* Defines encoding type of the DataMatrix.
* @default 'Auto'
*/
encoding?: DataMatrixEncoding;
/**
* Defines encoding type of the DataMatrix.
* @default 'Auto'
*/
size?: DataMatrixSize;
/**
* Defines the DataMatrix rendering mode.
* * SVG - Renders the bar-code objects as SVG elements
* * Canvas - Renders the bar-code in a canvas
* @default 'SVG'
*/
mode?: RenderingMode;
/**
* Defines the value of the DataMatrix to be rendered.
* @default undefined
*/
value?: string;
/**
* Defines the height of the DataMatrix.
* @default '100%'
*/
height?: string | number;
/**
* Defines the width of the DataMatrix.
* @default '100%'
*/
width?: string | number;
/**
* Defines the text properties for the DataMatrix.
* @default ''
*/
displayText?: DisplayTextModel;
/**
* Defines the margin properties for the DataMatrix.
* @default ''
*/
margin?: MarginModel;
/**
* Defines the background color of the DataMatrix.
* @default 'white'
*/
backgroundColor?: string;
/**
* Triggers if we entered any invalid character
* @event
*/
invalid?: base.EmitType<Object>;
/**
* Defines the forecolor of the DataMatrix.
* @default 'black'
*/
foreColor?: string;
/**
* Defines the xDimension of the DataMatrix.
*/
xDimension?: number;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/datamatrix/datamatrix-util.d.ts
/**
* DataMatrix used to calculate the DataMatrix barcode
*/
export class DataMatrix {
/** @private */
encodingValue: DataMatrixEncoding;
/** @private */
height: string | number;
/** @private */
width: string | number;
/** @private */
margin: MarginModel;
/** @private */
displayText: DisplayTextModel;
/** @private */
foreColor: string;
/** @private */
isSvgMode: boolean;
/** @private */
value: string;
private barcodeRenderer;
/** @private */
size: DataMatrixSize;
private mXDimension;
private mDataMatrixArray;
private actualColumns;
private actualRows;
/** @private */
XDimension: number;
private encodedCodeword;
private mSymbolAttribute;
private GetData;
private fillZero;
private DataMatrixNumericEncoder;
private ComputeBase256Codeword;
private DataMatrixBaseEncoder;
private copy;
private DataMatrixEncoder;
private PrepareDataCodeword;
private PdfDataMatrixSymbolAttribute;
private getmSymbolAttributes;
private PadCodewords;
private EccProduct;
/**
* Validate the given input to check whether the input is valid one or not
*/
private validateInput;
private ComputeErrorCorrection;
private CreateLogArrays;
private EccSum;
private EccDoublify;
private CreateRSPolynomial;
private PrepareCodeword;
private copyArray;
private ecc200placementbit;
private ecc200placementblock;
private ecc200placementcornerD;
private ecc200placementcornerA;
private ecc200placementcornerB;
private ecc200placementcornerC;
private ecc200placement;
private getActualRows;
private getActualColumns;
private AddQuiteZone;
private drawImage;
private CreateMatrix;
private create1DMatrixArray;
private create2DMartixArray;
/** @private */
BuildDataMatrix(): number[] | string;
private drawText;
private getInstance;
private drawDisplayText;
private getDrawableSize;
/** @private */
draw(canvas: HTMLElement): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/datamatrix/datamatrix.d.ts
/**
* Represents the Datamatrix control
* ```
*/
export class DataMatrixGenerator extends base.Component<HTMLElement> implements base.INotifyPropertyChanged {
/**
* Defines encoding type of the DataMatrix.
* @default 'Auto'
*/
encoding: DataMatrixEncoding;
/**
* Defines encoding type of the DataMatrix.
* @default 'Auto'
*/
size: DataMatrixSize;
/**
* Defines the DataMatrix rendering mode.
* * SVG - Renders the bar-code objects as SVG elements
* * Canvas - Renders the bar-code in a canvas
* @default 'SVG'
*/
mode: RenderingMode;
/**
* Defines the value of the DataMatrix to be rendered.
* @default undefined
*/
value: string;
/**
* Defines the height of the DataMatrix.
* @default '100%'
*/
height: string | number;
/**
* Defines the width of the DataMatrix.
* @default '100%'
*/
width: string | number;
/**
* Defines the text properties for the DataMatrix.
* @default ''
*/
displayText: DisplayTextModel;
/**
* Defines the margin properties for the DataMatrix.
* @default ''
*/
margin: MarginModel;
/**
* Defines the background color of the DataMatrix.
* @default 'white'
*/
backgroundColor: string;
/**
* Triggers if we entered any invalid character
* @event
*/
invalid: base.EmitType<Object>;
/**
* Defines the forecolor of the DataMatrix.
* @default 'black'
*/
foreColor: string;
/**
* Defines the xDimension of the DataMatrix.
*/
xDimension: number;
/** @private */
private barcodeRenderer;
private barcodeCanvas;
/** @private */
localeObj: base.L10n;
/** @private */
private defaultLocale;
/**
* Destroys the the data matrix generator
*/
destroy(): void;
private initializePrivateVariables;
/**
* Constructor for creating the widget
*/
constructor(options?: DataMatrixGeneratorModel, element?: HTMLElement | string);
/**
* Get the properties to be maintained in the persisted state.
* @return {string}
*/
getPersistData(): string;
/**
* Returns the module name of the the data matrix generator
*/
getModuleName(): string;
private setCulture;
private getElementSize;
private initialize;
private triggerEvent;
protected preRender(): void;
onPropertyChanged(newProp: DataMatrixGeneratorModel, oldProp: DataMatrixGeneratorModel): void;
private checkdata;
private renderElements;
/**
* Renders the barcode control with nodes and connectors
*/
render(): void;
}
//node_modules/@syncfusion/ej2-barcode-generator/src/datamatrix/index.d.ts
/**
* Datamatrix component exported items
*/
//node_modules/@syncfusion/ej2-barcode-generator/src/index.d.ts
/**
* Barcode component exported items
*/
//node_modules/@syncfusion/ej2-barcode-generator/src/qrcode/index.d.ts
/**
* Qrcode component exported items
*/
//node_modules/@syncfusion/ej2-barcode-generator/src/qrcode/qr-barcode-values.d.ts
/**
* Qrcode used to calculate the Qrcode control
*/
export class PdfQRBarcodeValues {
/**
* Holds the Version Information.
*/
private mVersion;
/**
* Holds the Error Correction Level.
*/
private mErrorCorrectionLevel;
/**
* Holds the Number of Data code word.
*/
private mNumberOfDataCodeWord;
/**
* Holds the Number of Error correcting code words.
*/
private mNumberOfErrorCorrectingCodeWords;
/**
* Holds the Number of Error correction Blocks.
*/
private mNumberOfErrorCorrectionBlocks;
/**
* Holds the End value of the version.
*/
private mEnd;
/**
* Holds the Data copacity of the version.
*/
private mDataCapacity;
/**
* Holds the Format Information.
*/
private mFormatInformation;
/**
* Holds the Version Information.
*/
private mVersionInformation;
/**
* Holds all the values of Error correcting code words.
*/
private numberOfErrorCorrectingCodeWords;
/**
* Hexadecimal values of CP437 characters
*/
private cp437CharSet;
/**
* Hexadecimal values of ISO8859_2 characters
*/
private iso88592CharSet;
/**
* Hexadecimal values of ISO8859_3 characters
*/
private iso88593CharSet;
/**
* Hexadecimal values of ISO8859_4 characters
*/
private iso88594CharSet;
/**
* Hexadecimal values of Windows1250 characters
*/
private windows1250CharSet;
/**
* Hexadecimal values of Windows1251 characters
*/
private windows1251CharSet;
/**
* Hexadecimal values of Windows1252 characters
*/
private windows1252CharSet;
/**
* Hexadecimal values of Windows1256 characters
*/
private windows1256CharSet;
/**
* Equivalent values of CP437 characters
*/
private cp437ReplaceNumber;
/**
* Equivalent values of ISO8859_2 characters
*/
private iso88592ReplaceNumber;
/**
* Equivalent values of ISO8859_3 characters
*/
private iso88593ReplaceNumber;
/**
* Equivalent values of ISO8859_4 characters
*/
private iso88594ReplaceNumber;
/**
* Equivalent values of Windows1250 characters
*/
private windows1250ReplaceNumber;
/**
* Equivalent values of Windows1251 characters
*/
private windows1251ReplaceNumber;
/**
* Equivalent values of Windows1252 characters
*/
private windows1252ReplaceNumber;
/**
* Equivalent values of Windows1256 characters
*/
private windows1256ReplaceNumber;
/**
* Holds all the end values.
*/
/** @private */
endValues: number[];
/**
* Holds all the Data capacity values.
*/
/** @private */
dataCapacityValues: number[];
/**
* Holds all the Numeric Data capacity of the Error correction level Low.
*/
/** @private */
numericDataCapacityLow: number[];
/**
* Holds all the Numeric Data capacity of the Error correction level Medium.
*/
/** @private */
numericDataCapacityMedium: number[];
/**
* Holds all the Numeric Data capacity of the Error correction level Quartile.
*/
/** @private */
numericDataCapacityQuartile: number[];
/**
* Holds all the Numeric Data capacity of the Error correction level High.
*/
/** @private */
numericDataCapacityHigh: number[];
/**
* Holds all the Alpha numeric Data capacity of the Error correction level Low.
*/
/** @private */
alphanumericDataCapacityLow: number[];
/**
* Holds all the Alpha numeric Data capacity of the Error correction level Medium.
*/
/** @private */
alphanumericDataCapacityMedium: number[];
/**
* Holds all the Alpha numeric Data capacity of the Error correction level Quartile.
*/
/** @private */
alphanumericDataCapacityQuartile: number[];
/**
* Holds all the Alpha numeric Data capacity of the Error correction level High.
*/
/** @private */
alphanumericDataCapacityHigh: number[];
/**
* Holds all the Binary Data capacity of the Error correction level Low.
*/
/** @private */
binaryDataCapacityLow: number[];
/**
* Holds all the Binary Data capacity of the Error correction level Medium.
*/
/** @private */
binaryDataCapacityMedium: number[];
/**
* Holds all the Binary Data capacity of the Error correction level Quartile.
*/
/** @private */
binaryDataCapacityQuartile: number[];
/**
* Holds all the Binary Data capacity of the Error correction level High.
*/
/** @private */
binaryDataCapacityHigh: number[];
/**
* Holds all the Mixed Data capacity of the Error correction level Low.
*/
private mixedDataCapacityLow;
/**
* Holds all the Mixed Data capacity of the Error correction level Medium.
*/
private mixedDataCapacityMedium;
/**
* Holds all the Mixed Data capacity of the Error correction level Quartile.
*/
private mixedDataCapacityQuartile;
/**
* Holds all the Mixed Data capacity of the Err