@mescius/wijmo.barcode.common 5.20232.939
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMMERCIAL-LICENSE.html +485 -0
- package/README.md +363 -0
- package/es2015-commonjs.js +14 -0
- package/es2015-esm.js +14 -0
- package/es5-esm.js +14 -0
- package/index.d.ts +982 -0
- package/index.js +14 -0
- package/package.json +45 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,982 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* Wijmo Library 5.20232.939
|
|
4
|
+
* https://developer.mescius.com/wijmo
|
|
5
|
+
*
|
|
6
|
+
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
|
|
9
|
+
* us.sales@mescius.com
|
|
10
|
+
* https://developer.mescius.com/wijmo/licensing
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* {@module wijmo.barcode.common}
|
|
15
|
+
* Implements controls for drawing the most common barcode types.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare var ___keepComment: any;
|
|
21
|
+
import { OneDimensionalBarcode, BitBuffer, TwoDimensionalBarcode, BarcodeBase, IQuietZoneWithAddOn, LabelPosition, NarrowToWideRatio, IVariableWidthBarcode } from '@grapecity/wijmo.barcode';
|
|
22
|
+
export declare function generateErrorCorrectionCode(codewords: any, ecCount: any, dataCount: any): any;
|
|
23
|
+
export declare function getBCH15(data: any, model: any): number;
|
|
24
|
+
export declare function getBCH18(data: any): number;
|
|
25
|
+
export declare const MODE_INDICATOR: {
|
|
26
|
+
ECI: number;
|
|
27
|
+
Numeric: number;
|
|
28
|
+
Alphanumeric: number;
|
|
29
|
+
'8BitByte': number;
|
|
30
|
+
Kanji: number;
|
|
31
|
+
StructuredAppend: number;
|
|
32
|
+
FNC1First: number;
|
|
33
|
+
FNC2Second: number;
|
|
34
|
+
Terminator: number;
|
|
35
|
+
};
|
|
36
|
+
export declare const EC_INDICATOR: {
|
|
37
|
+
L: number;
|
|
38
|
+
M: number;
|
|
39
|
+
Q: number;
|
|
40
|
+
H: number;
|
|
41
|
+
};
|
|
42
|
+
export declare function isMode(mode: any, charcode: any): any;
|
|
43
|
+
export declare function getCharMode(code: any, charset?: string): "Numeric" | "Alphanumeric" | "Kanji" | "8BitByte";
|
|
44
|
+
export declare const getSizeByVersion: (version: any) => number;
|
|
45
|
+
export declare function getCharacterCountIndicatorbitsNumber(version: any): {
|
|
46
|
+
Numeric: number;
|
|
47
|
+
Alphanumeric: number;
|
|
48
|
+
'8BitByte': number;
|
|
49
|
+
Kanji: number;
|
|
50
|
+
};
|
|
51
|
+
export declare function getAlphanumericCharValue(cc: any): any;
|
|
52
|
+
export declare function createModules(size: any): any[];
|
|
53
|
+
export declare function getAlignmentPattersPos(version: any): number[];
|
|
54
|
+
export declare const padCodewords0 = 236;
|
|
55
|
+
export declare const padCodewords1 = 17;
|
|
56
|
+
export declare const maskFuncs: ((i: any, j: any) => boolean)[];
|
|
57
|
+
export declare function getErrorCorrectionCharacteristics(version: any, ecLevel: any, model?: number): any[];
|
|
58
|
+
export declare function getMaskFunc(type: any): (i: any, j: any) => boolean;
|
|
59
|
+
export declare function getMaskScore(modules: any): number;
|
|
60
|
+
export declare function addFormatInformation(originModules: any, maskPattern: any, ec: any, model: any): any;
|
|
61
|
+
export declare function getEstimatedVersion(ec: any, charCode: any, model: any): number;
|
|
62
|
+
export declare function getModeCheckInfo(mode: any, version: any): any;
|
|
63
|
+
export declare function utf8Encode(charCode: any): any[];
|
|
64
|
+
export declare function getParityData(charCode: any): any;
|
|
65
|
+
export declare function getCharCode(text: any): any[];
|
|
66
|
+
export declare class ModeKanji {
|
|
67
|
+
private mode;
|
|
68
|
+
private data;
|
|
69
|
+
constructor(data: any);
|
|
70
|
+
getMode(): number;
|
|
71
|
+
getLength(): any;
|
|
72
|
+
write(buffer: any): void;
|
|
73
|
+
}
|
|
74
|
+
export declare class ModeAlphanumeric {
|
|
75
|
+
private mode;
|
|
76
|
+
private data;
|
|
77
|
+
constructor(data: any);
|
|
78
|
+
getMode(): number;
|
|
79
|
+
getLength(): any;
|
|
80
|
+
write(buffer: any): void;
|
|
81
|
+
}
|
|
82
|
+
export declare class ModeNumeric {
|
|
83
|
+
private mode;
|
|
84
|
+
private data;
|
|
85
|
+
constructor(data: any);
|
|
86
|
+
getMode(): number;
|
|
87
|
+
getLength(): any;
|
|
88
|
+
write(buffer: any): void;
|
|
89
|
+
}
|
|
90
|
+
export declare class Mode8BitByte {
|
|
91
|
+
private mode;
|
|
92
|
+
private data;
|
|
93
|
+
private bytes;
|
|
94
|
+
constructor(data: any);
|
|
95
|
+
getMode(): number;
|
|
96
|
+
getLength(): any;
|
|
97
|
+
write(buffer: any): void;
|
|
98
|
+
}
|
|
99
|
+
export declare abstract class QRCodeBase {
|
|
100
|
+
protected charCode: any;
|
|
101
|
+
protected config: any;
|
|
102
|
+
protected errorCorrectionLevel: any;
|
|
103
|
+
protected model: any;
|
|
104
|
+
protected version: any;
|
|
105
|
+
protected modulesCount: any;
|
|
106
|
+
protected charCountIndicatorBitsNumber: any;
|
|
107
|
+
protected modules: any;
|
|
108
|
+
protected maskPattern: any;
|
|
109
|
+
private errorCorrectionCharacteristics;
|
|
110
|
+
private totalDataCount;
|
|
111
|
+
private totalDataBits;
|
|
112
|
+
constructor(text: any, config: any);
|
|
113
|
+
getConnections(): any[];
|
|
114
|
+
processConnection(buffer: any): any;
|
|
115
|
+
padBuffer(buffer: any): void;
|
|
116
|
+
getAutoVersion(): number;
|
|
117
|
+
analysisData(charCode: any): {
|
|
118
|
+
mode: string;
|
|
119
|
+
code: any[];
|
|
120
|
+
}[];
|
|
121
|
+
abstract encodeData(data?: any, info?: any): any;
|
|
122
|
+
generateErrorCorrectionCode(buffer: any): any[];
|
|
123
|
+
abstract getFinalMessage(): any;
|
|
124
|
+
abstract setModules(): any;
|
|
125
|
+
abstract maskModules(): any;
|
|
126
|
+
abstract autoMask(): any;
|
|
127
|
+
addRectModule(x: any, y: any, w: any, h: any, flag?: boolean): void;
|
|
128
|
+
addPositionDetectionPattern(): void;
|
|
129
|
+
addTimingPattern(): void;
|
|
130
|
+
addPattern(x: any, y: any, s: any): void;
|
|
131
|
+
abstract getMatrix(): any;
|
|
132
|
+
}
|
|
133
|
+
export declare class QRCodeModel2 extends QRCodeBase {
|
|
134
|
+
encodeData(sets?: any, connectionInfo?: any): BitBuffer;
|
|
135
|
+
getFinalMessage(blocks?: any): any[];
|
|
136
|
+
setModules(data?: any): void;
|
|
137
|
+
maskModules(data?: any): void;
|
|
138
|
+
autoMask(data?: any): void;
|
|
139
|
+
addAlignmentPattern(): void;
|
|
140
|
+
addVersionInformation(): void;
|
|
141
|
+
fillDataModules(modules: any, data: any, maskFunc: any): any;
|
|
142
|
+
getMatrix(): any;
|
|
143
|
+
}
|
|
144
|
+
export declare class QRCodeModel1 extends QRCodeBase {
|
|
145
|
+
encodeData(sets?: any, connectionInfo?: any): BitBuffer;
|
|
146
|
+
getFinalMessage(blocks?: any): any[];
|
|
147
|
+
setModules(data?: any): void;
|
|
148
|
+
maskModules(data?: any): void;
|
|
149
|
+
autoMask(data?: any): void;
|
|
150
|
+
addExtensionPattern(): void;
|
|
151
|
+
addBaseExtension(x: any): void;
|
|
152
|
+
addRightExtension(x: any): void;
|
|
153
|
+
fillDataModules(modules: any, data: any, maskFunc: any): any;
|
|
154
|
+
getMatrix(): any;
|
|
155
|
+
}
|
|
156
|
+
export declare class QRCodeEncoder extends TwoDimensionalBarcode {
|
|
157
|
+
static DefaultConfig: {
|
|
158
|
+
version: string;
|
|
159
|
+
errorCorrectionLevel: string;
|
|
160
|
+
model: number;
|
|
161
|
+
mask: string;
|
|
162
|
+
connection: boolean;
|
|
163
|
+
connectionNo: number;
|
|
164
|
+
charCode: any;
|
|
165
|
+
charset: string;
|
|
166
|
+
quietZone: {
|
|
167
|
+
top: number;
|
|
168
|
+
left: number;
|
|
169
|
+
right: number;
|
|
170
|
+
bottom: number;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
private innerQRCode;
|
|
174
|
+
constructor(option: any);
|
|
175
|
+
calculateData(): any;
|
|
176
|
+
validate(): void;
|
|
177
|
+
}
|
|
178
|
+
export declare const stopPattern = "2331112";
|
|
179
|
+
export declare const Code128Sym: {
|
|
180
|
+
CodeC: number;
|
|
181
|
+
CodeB: number;
|
|
182
|
+
CodeA: number;
|
|
183
|
+
FNC1: number;
|
|
184
|
+
FNC2: number;
|
|
185
|
+
FNC3: number;
|
|
186
|
+
StartA: number;
|
|
187
|
+
StartB: number;
|
|
188
|
+
StartC: number;
|
|
189
|
+
};
|
|
190
|
+
export declare const Code128Char: {
|
|
191
|
+
CodeC: string;
|
|
192
|
+
CodeB: string;
|
|
193
|
+
CodeA: string;
|
|
194
|
+
FNC1: string;
|
|
195
|
+
FNC2: string;
|
|
196
|
+
FNC3: string;
|
|
197
|
+
StartA: string;
|
|
198
|
+
StartB: string;
|
|
199
|
+
StartC: string;
|
|
200
|
+
};
|
|
201
|
+
export declare function getCharValue(str: any, table: any): any;
|
|
202
|
+
export declare function getCharPattern(str: any, table: any): string;
|
|
203
|
+
export declare function getPatternByIndex(index: any): string;
|
|
204
|
+
export declare function encode(str: any): string;
|
|
205
|
+
export declare class Code128Auto {
|
|
206
|
+
private text;
|
|
207
|
+
private isUccEan128;
|
|
208
|
+
constructor(text: any, isUccEan128?: boolean);
|
|
209
|
+
validate(): void;
|
|
210
|
+
calculateGroup(): any[];
|
|
211
|
+
getData(): string;
|
|
212
|
+
checksum(groups: any): number;
|
|
213
|
+
}
|
|
214
|
+
export declare class Code128C {
|
|
215
|
+
private text;
|
|
216
|
+
constructor(text: any);
|
|
217
|
+
validate(): void;
|
|
218
|
+
getData(): string;
|
|
219
|
+
checksum(): number;
|
|
220
|
+
}
|
|
221
|
+
export declare class Code128B {
|
|
222
|
+
private text;
|
|
223
|
+
constructor(text: any);
|
|
224
|
+
validate(): void;
|
|
225
|
+
getData(): string;
|
|
226
|
+
checksum(): number;
|
|
227
|
+
}
|
|
228
|
+
export declare class Code128A {
|
|
229
|
+
private text;
|
|
230
|
+
constructor(text: any);
|
|
231
|
+
validate(): void;
|
|
232
|
+
getData(): string;
|
|
233
|
+
checksum(): number;
|
|
234
|
+
}
|
|
235
|
+
export declare class Code128Encoder extends OneDimensionalBarcode {
|
|
236
|
+
static DefaultConfig: {
|
|
237
|
+
codeSet: string;
|
|
238
|
+
quietZone: {
|
|
239
|
+
right: number;
|
|
240
|
+
left: number;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
private isUccEan128;
|
|
244
|
+
constructor(option: any, isUccEan128?: boolean);
|
|
245
|
+
validate(): void;
|
|
246
|
+
calculateData(): any;
|
|
247
|
+
}
|
|
248
|
+
export declare class GS1_128Encoder extends Code128Encoder {
|
|
249
|
+
constructor(option: any);
|
|
250
|
+
}
|
|
251
|
+
export declare class EncodeTable_Code39 {
|
|
252
|
+
static TABLE: {
|
|
253
|
+
'0': string;
|
|
254
|
+
'1': string;
|
|
255
|
+
'2': string;
|
|
256
|
+
'3': string;
|
|
257
|
+
'4': string;
|
|
258
|
+
'5': string;
|
|
259
|
+
'6': string;
|
|
260
|
+
'7': string;
|
|
261
|
+
'8': string;
|
|
262
|
+
'9': string;
|
|
263
|
+
'A': string;
|
|
264
|
+
'B': string;
|
|
265
|
+
'C': string;
|
|
266
|
+
'D': string;
|
|
267
|
+
'E': string;
|
|
268
|
+
'F': string;
|
|
269
|
+
'G': string;
|
|
270
|
+
'H': string;
|
|
271
|
+
'I': string;
|
|
272
|
+
'J': string;
|
|
273
|
+
'K': string;
|
|
274
|
+
'L': string;
|
|
275
|
+
'M': string;
|
|
276
|
+
'N': string;
|
|
277
|
+
'O': string;
|
|
278
|
+
'P': string;
|
|
279
|
+
'Q': string;
|
|
280
|
+
'R': string;
|
|
281
|
+
'S': string;
|
|
282
|
+
'T': string;
|
|
283
|
+
'U': string;
|
|
284
|
+
'V': string;
|
|
285
|
+
'W': string;
|
|
286
|
+
'X': string;
|
|
287
|
+
'Y': string;
|
|
288
|
+
'Z': string;
|
|
289
|
+
'-': string;
|
|
290
|
+
'.': string;
|
|
291
|
+
' ': string;
|
|
292
|
+
'$': string;
|
|
293
|
+
'/': string;
|
|
294
|
+
'+': string;
|
|
295
|
+
'%': string;
|
|
296
|
+
'*': string;
|
|
297
|
+
};
|
|
298
|
+
static MODULO_43_CHECK_TABLE: any;
|
|
299
|
+
static FULL_ASCII_TABLE: string[];
|
|
300
|
+
static getMod43Val(text: any): any;
|
|
301
|
+
static getFullASCIIChar(text: any): string;
|
|
302
|
+
}
|
|
303
|
+
export declare class Code39Encoder extends OneDimensionalBarcode {
|
|
304
|
+
static DefaultConfig: {
|
|
305
|
+
checkDigit: boolean;
|
|
306
|
+
fullASCII: boolean;
|
|
307
|
+
nwRatio: number;
|
|
308
|
+
labelWithStartAndStopCharacter: boolean;
|
|
309
|
+
quietZone: {
|
|
310
|
+
right: number;
|
|
311
|
+
left: number;
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
static START_STOP_CHARACTERS: string;
|
|
315
|
+
private nwRatio;
|
|
316
|
+
constructor(option: any);
|
|
317
|
+
validate(): void;
|
|
318
|
+
encode(str: any): string;
|
|
319
|
+
calculateData(): string;
|
|
320
|
+
}
|
|
321
|
+
export declare class EncodeTable {
|
|
322
|
+
static TABLE: {
|
|
323
|
+
A: string[];
|
|
324
|
+
B: string[];
|
|
325
|
+
C: string[];
|
|
326
|
+
};
|
|
327
|
+
static encodeCharByTable(char: any, tableName: any): any;
|
|
328
|
+
static encodeByStructure(text: any, structure: any): any;
|
|
329
|
+
static encodeByTable(text: any, tableName: any): any;
|
|
330
|
+
}
|
|
331
|
+
export declare class AddOnSymbol {
|
|
332
|
+
private addOn;
|
|
333
|
+
private isTextGroup;
|
|
334
|
+
private addOnHeight;
|
|
335
|
+
static fiveDigitAddOnStructure: string[];
|
|
336
|
+
static ADD_ON_GUARD: string;
|
|
337
|
+
static ADD_ON_DELINEATOR: string;
|
|
338
|
+
static get2DigitAddOnTable(num: any): {
|
|
339
|
+
leftStructure: string;
|
|
340
|
+
rightStructure: string;
|
|
341
|
+
};
|
|
342
|
+
static get5DigitAddOnTable(num: any): string;
|
|
343
|
+
constructor(addOn: any, addOnHeight: any, isTextGroup: any, unitValue: any);
|
|
344
|
+
validate(): void;
|
|
345
|
+
_encode2DigitAddOn(): any[];
|
|
346
|
+
_encode5DigitAddOn(): any[];
|
|
347
|
+
calculateData(): any[];
|
|
348
|
+
}
|
|
349
|
+
export declare abstract class EANBase extends OneDimensionalBarcode {
|
|
350
|
+
static NORMAL_GUARD: string;
|
|
351
|
+
static CENTRE_GUARD: string;
|
|
352
|
+
static DefaultConfig: any;
|
|
353
|
+
protected isTextGroup: boolean;
|
|
354
|
+
private isAddOnLabelBottom;
|
|
355
|
+
protected addOn: AddOnSymbol;
|
|
356
|
+
private addOnHeight;
|
|
357
|
+
constructor(option: any);
|
|
358
|
+
_setAddOn(addOn: any, addOnHeight: any, unitValue: any): void;
|
|
359
|
+
checksum(number: any, evenMultiply3?: boolean): number;
|
|
360
|
+
convertToShape(data: any): void;
|
|
361
|
+
afterApplyDesiredSize(): void;
|
|
362
|
+
}
|
|
363
|
+
export declare class UPC_E extends EANBase {
|
|
364
|
+
static DefaultConfig: {
|
|
365
|
+
addOnHeight: string;
|
|
366
|
+
addOnLabelPosition: string;
|
|
367
|
+
quietZone: {
|
|
368
|
+
left: number;
|
|
369
|
+
addOn: number;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
static SPECIAL_GUARD: string;
|
|
373
|
+
private prefix;
|
|
374
|
+
private tableStructure;
|
|
375
|
+
constructor(option: any, prefix: any, tableStructure: any);
|
|
376
|
+
validate(): void;
|
|
377
|
+
checksum(text: any): number;
|
|
378
|
+
calculateData(): any[];
|
|
379
|
+
}
|
|
380
|
+
export declare class UPC_E1_Encoder extends UPC_E {
|
|
381
|
+
static structure: string[];
|
|
382
|
+
constructor(option: any);
|
|
383
|
+
}
|
|
384
|
+
export declare class UPC_E0_Encoder extends UPC_E {
|
|
385
|
+
static structure: string[];
|
|
386
|
+
constructor(option: any);
|
|
387
|
+
}
|
|
388
|
+
export declare class UPC_A_Encoder extends EANBase {
|
|
389
|
+
static DefaultConfig: {
|
|
390
|
+
addOnHeight: string;
|
|
391
|
+
addOnLabelPosition: string;
|
|
392
|
+
quietZone: {
|
|
393
|
+
right: number;
|
|
394
|
+
left: number;
|
|
395
|
+
addOn: number;
|
|
396
|
+
};
|
|
397
|
+
};
|
|
398
|
+
constructor(option: any);
|
|
399
|
+
validate(): void;
|
|
400
|
+
calculateData(): any[];
|
|
401
|
+
}
|
|
402
|
+
export declare class EAN13Encoder extends EANBase {
|
|
403
|
+
static leftStructure: string[];
|
|
404
|
+
static DefaultConfig: any;
|
|
405
|
+
constructor(option: any);
|
|
406
|
+
validate(): void;
|
|
407
|
+
calculateData(): any[];
|
|
408
|
+
}
|
|
409
|
+
export declare class EAN8Encoder extends EANBase {
|
|
410
|
+
static DefaultConfig: {
|
|
411
|
+
quietZone: {
|
|
412
|
+
left: number;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
constructor(option: any);
|
|
416
|
+
validate(): void;
|
|
417
|
+
calculateData(): any[];
|
|
418
|
+
}
|
|
419
|
+
export declare class CodabarEncoder extends OneDimensionalBarcode {
|
|
420
|
+
static DefaultConfig: {
|
|
421
|
+
checkDigit: boolean;
|
|
422
|
+
quietZone: {
|
|
423
|
+
right: number;
|
|
424
|
+
left: number;
|
|
425
|
+
};
|
|
426
|
+
nwRatio: number;
|
|
427
|
+
};
|
|
428
|
+
static TABLE: {
|
|
429
|
+
'0': string;
|
|
430
|
+
'1': string;
|
|
431
|
+
'2': string;
|
|
432
|
+
'3': string;
|
|
433
|
+
'4': string;
|
|
434
|
+
'5': string;
|
|
435
|
+
'6': string;
|
|
436
|
+
'7': string;
|
|
437
|
+
'8': string;
|
|
438
|
+
'9': string;
|
|
439
|
+
'-': string;
|
|
440
|
+
'$': string;
|
|
441
|
+
':': string;
|
|
442
|
+
'/': string;
|
|
443
|
+
'.': string;
|
|
444
|
+
'+': string;
|
|
445
|
+
'A': string;
|
|
446
|
+
'B': string;
|
|
447
|
+
'C': string;
|
|
448
|
+
'D': string;
|
|
449
|
+
};
|
|
450
|
+
private nwRatio;
|
|
451
|
+
constructor(option: any);
|
|
452
|
+
validate(): void;
|
|
453
|
+
getTextEntity(text: any): {
|
|
454
|
+
originStartPattern: string;
|
|
455
|
+
startPattern: string;
|
|
456
|
+
content: string;
|
|
457
|
+
originStopPattern: string;
|
|
458
|
+
stopPattern: string;
|
|
459
|
+
};
|
|
460
|
+
encode(str: any): string;
|
|
461
|
+
calculateData(): string;
|
|
462
|
+
checksum(text: any): number;
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Defines encoding charset type for barcode.
|
|
466
|
+
*/
|
|
467
|
+
export declare enum QrCodeCharset {
|
|
468
|
+
/** Uses UTF-8 charset for encoding */
|
|
469
|
+
Utf8 = 0,
|
|
470
|
+
/** Uses Shift_JIS charset for encoding */
|
|
471
|
+
ShiftJis = 1
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Defines QRCode Error Correction level to restore data if the code is dirty or damaged.
|
|
475
|
+
* Please refer to the details about <a href="https://www.qrcode.com/en/about/error_correction.html" target="_blank">ErrorCorrectionLevel</a>
|
|
476
|
+
*/
|
|
477
|
+
export declare enum QrCodeCorrectionLevel {
|
|
478
|
+
/** It corrects code approx 7% */
|
|
479
|
+
Low = 0,
|
|
480
|
+
/** It corrects code approx 15% */
|
|
481
|
+
Medium = 1,
|
|
482
|
+
/** It corrects code approx 25% */
|
|
483
|
+
Quartile = 2,
|
|
484
|
+
/** It corrects code approx 30% */
|
|
485
|
+
High = 3
|
|
486
|
+
}
|
|
487
|
+
/** Indicates the model style of QRCode used. */
|
|
488
|
+
export declare enum QrCodeModel {
|
|
489
|
+
/** QRCode model1:Original model. Model1 is the prototype of Model2 and
|
|
490
|
+
* Micro QR.1 to 14 versions are registered to the AIMI standard.
|
|
491
|
+
*/
|
|
492
|
+
Model1 = 0,
|
|
493
|
+
/** QRCode model2:Extended model. Model2 has an alignment pattern for better
|
|
494
|
+
* position adjustment and contains larger data than Model 1.
|
|
495
|
+
* 1 to 40 version are registered to the AIMI standard.
|
|
496
|
+
*/
|
|
497
|
+
Model2 = 1
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* Defines which code set is used to create Code128.
|
|
501
|
+
* Please refer to the details about <a href="https://www.qrcode.com/en/about/error_correction.html" target="_blank">CodeSet</a>
|
|
502
|
+
*/
|
|
503
|
+
export declare enum Code128CodeSet {
|
|
504
|
+
/** */
|
|
505
|
+
Auto = 0,
|
|
506
|
+
/** 128A (Code Set A) – Uses ASCII characters 00 to 95 (0–9, A–Z and control codes), special characters, and FNC 1–4 */
|
|
507
|
+
A = 1,
|
|
508
|
+
/** 128B (Code Set B) – Uses ASCII characters 32 to 127 (0–9, A–Z, a–z), special characters, and FNC 1–4 */
|
|
509
|
+
B = 2,
|
|
510
|
+
/** 128C (Code Set C) – Uses 00–99 (encodes two digits with a single code point) and FNC1 */
|
|
511
|
+
C = 3
|
|
512
|
+
}
|
|
513
|
+
export declare class _QrCodeModelConvertor {
|
|
514
|
+
static stringToEnum(value: number): number;
|
|
515
|
+
static enumToString(value: any): string;
|
|
516
|
+
}
|
|
517
|
+
export declare class _CharsetTypeConvertor {
|
|
518
|
+
static stringToEnum(value: any): number;
|
|
519
|
+
static enumToString(value: any): string;
|
|
520
|
+
}
|
|
521
|
+
export declare class _CorrectionLevelConvertor {
|
|
522
|
+
static stringToEnum(value: any): number;
|
|
523
|
+
static enumToString(value: any): string;
|
|
524
|
+
}
|
|
525
|
+
export declare class _CodeSetTypeConvertor {
|
|
526
|
+
static stringToEnum(value: any): number;
|
|
527
|
+
static enumToString(value: any): string;
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/Codabar" target="_blank">Codabar</a>
|
|
531
|
+
* barcode type.
|
|
532
|
+
*
|
|
533
|
+
* This is a variable-width barcode, the width of which automatically changes
|
|
534
|
+
* along with the length of the {@link value}. The {@link autoWidthZoom} property
|
|
535
|
+
* can be used to zoom the automatically calculated width. The {@link autoWidth}
|
|
536
|
+
* property can be used to disable this behavior.
|
|
537
|
+
*/
|
|
538
|
+
export declare class Codabar extends BarcodeBase implements IVariableWidthBarcode {
|
|
539
|
+
static readonly type: string;
|
|
540
|
+
/**
|
|
541
|
+
* Initializes a new instance of the {@link Codabar} class.
|
|
542
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
543
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
544
|
+
*/
|
|
545
|
+
constructor(element: any, option?: any);
|
|
546
|
+
/**
|
|
547
|
+
* Gets or sets a value indicating whether the control width should automatically
|
|
548
|
+
* change along with the {@link value} length.
|
|
549
|
+
*
|
|
550
|
+
* If you set this property value to false, you should ensure that the control has some
|
|
551
|
+
* reasonable *CSS width*.
|
|
552
|
+
*
|
|
553
|
+
* The default value for this property is **true**.
|
|
554
|
+
*/
|
|
555
|
+
autoWidth: boolean;
|
|
556
|
+
/**
|
|
557
|
+
* Gets or sets a zoom factor applied to the automatically calculated control width.
|
|
558
|
+
*
|
|
559
|
+
* This property makes effect only if the {@link autoWidth} property is set to true.
|
|
560
|
+
* It can take any numeric value equal or greater than 1.
|
|
561
|
+
*
|
|
562
|
+
* The default value for this property is **1**.
|
|
563
|
+
*/
|
|
564
|
+
autoWidthZoom: number;
|
|
565
|
+
/**
|
|
566
|
+
* Indicates whether the value is rendered under the symbol.
|
|
567
|
+
*
|
|
568
|
+
* The default value for this property is <b>true</b>.
|
|
569
|
+
*/
|
|
570
|
+
showLabel: boolean;
|
|
571
|
+
/**
|
|
572
|
+
* Indicates whether the symbol needs a check digit with the Luhn algorithm.
|
|
573
|
+
*
|
|
574
|
+
* The default value for this property is <b>false</b>.
|
|
575
|
+
*/
|
|
576
|
+
checkDigit: boolean;
|
|
577
|
+
/**
|
|
578
|
+
* Gets or sets where to render the value of the control.
|
|
579
|
+
*
|
|
580
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
581
|
+
*/
|
|
582
|
+
labelPosition: LabelPosition;
|
|
583
|
+
/**
|
|
584
|
+
* Gets or sets the narrow and wide bar ratio of the control.
|
|
585
|
+
*
|
|
586
|
+
* The possible property values are 1:2 or 1:3.
|
|
587
|
+
* The default value for this property is {@link NarrowWideRatio.OneToThree}.
|
|
588
|
+
*/
|
|
589
|
+
nwRatio: NarrowToWideRatio;
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Base abstract class for Ean8 and Ean13 control classes.
|
|
593
|
+
*/
|
|
594
|
+
export declare abstract class EanBase extends BarcodeBase {
|
|
595
|
+
/**
|
|
596
|
+
* Abstract class constructor, never called.
|
|
597
|
+
*/
|
|
598
|
+
constructor(element: any, option?: any);
|
|
599
|
+
/**
|
|
600
|
+
* Indicates whether the value is rendered under the symbol.
|
|
601
|
+
*
|
|
602
|
+
* The default value for this property is <b>true</b>.
|
|
603
|
+
*/
|
|
604
|
+
showLabel: boolean;
|
|
605
|
+
/**
|
|
606
|
+
* Gets or sets where to render the value of the control.
|
|
607
|
+
*
|
|
608
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
609
|
+
*/
|
|
610
|
+
labelPosition: LabelPosition;
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/EAN-8" target="_blank">EAN-8</a>
|
|
614
|
+
* barcode type.
|
|
615
|
+
*/
|
|
616
|
+
export declare class Ean8 extends EanBase {
|
|
617
|
+
static readonly type: string;
|
|
618
|
+
/**
|
|
619
|
+
* Initializes a new instance of the {@link Ean8} class.
|
|
620
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
621
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
622
|
+
*/
|
|
623
|
+
constructor(element: any, option?: any);
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/International_Article_Number" target="_blank">EAN-13</a>
|
|
627
|
+
* barcode type.
|
|
628
|
+
*/
|
|
629
|
+
export declare class Ean13 extends EanBase {
|
|
630
|
+
static readonly type = "EAN13";
|
|
631
|
+
/**
|
|
632
|
+
* Initializes a new instance of the {@link Ean13} class.
|
|
633
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
634
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
635
|
+
*/
|
|
636
|
+
constructor(element: any, options?: any);
|
|
637
|
+
/**
|
|
638
|
+
* Gets or sets the addOn value of the control.
|
|
639
|
+
*
|
|
640
|
+
* The possible length of this property should be 2 or 5.
|
|
641
|
+
*/
|
|
642
|
+
addOn: string | number;
|
|
643
|
+
/**
|
|
644
|
+
* Gets or sets the height of addOn symbol of the control.
|
|
645
|
+
*
|
|
646
|
+
* The default value for this property is <b>auto</b>.
|
|
647
|
+
*/
|
|
648
|
+
addOnHeight: string | number;
|
|
649
|
+
/**
|
|
650
|
+
* Gets or sets where to render the addOn value of the control.
|
|
651
|
+
*
|
|
652
|
+
* The default value for this property is {@link LabelPosition.Top}.
|
|
653
|
+
*/
|
|
654
|
+
addOnLabelPosition: LabelPosition;
|
|
655
|
+
/**
|
|
656
|
+
* Gets or sets the size of quiet zone (the blank margin) around the barcode symbol.
|
|
657
|
+
*/
|
|
658
|
+
quietZone: IQuietZoneWithAddOn;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/Code_39" target="_blank">Code39</a>
|
|
662
|
+
* barcode type.
|
|
663
|
+
*
|
|
664
|
+
* This is a variable-width barcode, the width of which automatically changes
|
|
665
|
+
* along with the length of the {@link value}. The {@link autoWidthZoom} property
|
|
666
|
+
* can be used to zoom the automatically calculated width. The {@link autoWidth}
|
|
667
|
+
* property can be used to disable this behavior.
|
|
668
|
+
*/
|
|
669
|
+
export declare class Code39 extends BarcodeBase implements IVariableWidthBarcode {
|
|
670
|
+
static readonly type: string;
|
|
671
|
+
/**
|
|
672
|
+
* Initializes a new instance of the {@link Code39} class.
|
|
673
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
674
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
675
|
+
*/
|
|
676
|
+
constructor(element: any, option?: any);
|
|
677
|
+
/**
|
|
678
|
+
* Gets or sets a value indicating whether the control width should automatically
|
|
679
|
+
* change along with the {@link value} length.
|
|
680
|
+
*
|
|
681
|
+
* If you set this property to false, you should ensure that the control has some
|
|
682
|
+
* reasonable *CSS width*.
|
|
683
|
+
*
|
|
684
|
+
* The default value for this property is **true**.
|
|
685
|
+
*/
|
|
686
|
+
autoWidth: boolean;
|
|
687
|
+
/**
|
|
688
|
+
* Gets or sets a zoom factor applied to the automatically calculated control width.
|
|
689
|
+
*
|
|
690
|
+
* This property takes effect only if the {@link autoWidth} property is set to true.
|
|
691
|
+
* It can take any numeric value equal to or greater than 1.
|
|
692
|
+
*
|
|
693
|
+
* The default value for this property is **1**.
|
|
694
|
+
*/
|
|
695
|
+
autoWidthZoom: number;
|
|
696
|
+
/**
|
|
697
|
+
* Indicates whether the value is rendered under the symbol.
|
|
698
|
+
*
|
|
699
|
+
* The default value for this property is <b>true</b>.
|
|
700
|
+
*/
|
|
701
|
+
showLabel: boolean;
|
|
702
|
+
/**
|
|
703
|
+
* Indicates whether the symbol needs a <a href="https://en.wikipedia.org/wiki/Modulo_operation" target="_blank">modulo</a> 43 <a href="https://en.wikipedia.org/wiki/Checksum" target="_blank">check digit</a>.
|
|
704
|
+
*
|
|
705
|
+
* The default value for this property is <b>false</b>.
|
|
706
|
+
*/
|
|
707
|
+
checkDigit: boolean;
|
|
708
|
+
/**
|
|
709
|
+
* Indicates whether the symbol enables encoding of all 128 ASCII characters.
|
|
710
|
+
*
|
|
711
|
+
* The default value for this property is <b>false</b>.
|
|
712
|
+
*/
|
|
713
|
+
fullAscii: boolean;
|
|
714
|
+
/**
|
|
715
|
+
* Gets or sets where to render the value of the control.
|
|
716
|
+
*
|
|
717
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
718
|
+
*/
|
|
719
|
+
labelPosition: LabelPosition;
|
|
720
|
+
/**
|
|
721
|
+
* Gets or sets the narrow and wide bar ratio of the control.
|
|
722
|
+
*
|
|
723
|
+
* The possible property values are 1:2 or 1:3.
|
|
724
|
+
* The default value for this property is {@link NarrowWideRatio.OneToThree}.
|
|
725
|
+
*/
|
|
726
|
+
nwRatio: NarrowToWideRatio;
|
|
727
|
+
/**
|
|
728
|
+
* Indicates whether to show the start and stop character in the label.
|
|
729
|
+
*
|
|
730
|
+
* The default value for this property is <b>false</b>.
|
|
731
|
+
*/
|
|
732
|
+
labelWithStartAndStopCharacter: boolean;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/Code_128" target="_blank">Code128</a>
|
|
736
|
+
* barcode type.
|
|
737
|
+
*
|
|
738
|
+
* This is a variable-width barcode, the width of which automatically changes
|
|
739
|
+
* along with the length of the {@link value}. The {@link autoWidthZoom} property
|
|
740
|
+
* can be used to zoom the automatically calculated width. The {@link autoWidth}
|
|
741
|
+
* property can be used to disable this behavior.
|
|
742
|
+
*/
|
|
743
|
+
export declare class Code128 extends BarcodeBase implements IVariableWidthBarcode {
|
|
744
|
+
static readonly type: string;
|
|
745
|
+
/**
|
|
746
|
+
* Initializes a new instance of the {@link Code128} class.
|
|
747
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
748
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
749
|
+
*/
|
|
750
|
+
constructor(element: any, option?: any);
|
|
751
|
+
/**
|
|
752
|
+
* Gets or sets a value indicating whether the control width should automatically
|
|
753
|
+
* change along with the {@link value} length.
|
|
754
|
+
*
|
|
755
|
+
* If you set this property value to false, you should ensure that the control has some
|
|
756
|
+
* reasonable *CSS width*.
|
|
757
|
+
*
|
|
758
|
+
* The default value for this property is **true**.
|
|
759
|
+
*/
|
|
760
|
+
autoWidth: boolean;
|
|
761
|
+
/**
|
|
762
|
+
* Gets or sets a zoom factor applied to the automatically calculated control width.
|
|
763
|
+
*
|
|
764
|
+
* This property makes effect only if the {@link autoWidth} property is set to true.
|
|
765
|
+
* It can take any numeric value equal to or greater than 1.
|
|
766
|
+
*
|
|
767
|
+
* The default value for this property is **1**.
|
|
768
|
+
*/
|
|
769
|
+
autoWidthZoom: number;
|
|
770
|
+
/**
|
|
771
|
+
* Indicates whether the value is rendered under the symbol.
|
|
772
|
+
*
|
|
773
|
+
* The default value for this property is <b>true</b>.
|
|
774
|
+
*/
|
|
775
|
+
showLabel: boolean;
|
|
776
|
+
/**
|
|
777
|
+
* Gets or sets which kind of code set is used in this control.
|
|
778
|
+
*
|
|
779
|
+
* The default value for this property is {@link Code128CodeSet.Auto}.
|
|
780
|
+
*/
|
|
781
|
+
codeSet: Code128CodeSet;
|
|
782
|
+
/**
|
|
783
|
+
* Gets or sets where to render the value of the control.
|
|
784
|
+
*
|
|
785
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
786
|
+
*/
|
|
787
|
+
labelPosition: LabelPosition;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/GS1-128" target="_blank">GS1_128</a>
|
|
791
|
+
* barcode type.
|
|
792
|
+
*
|
|
793
|
+
* This is a variable-width barcode, the width of which automatically changes
|
|
794
|
+
* along with the length of the {@link value}. The {@link autoWidthZoom} property
|
|
795
|
+
* can be used to zoom the automatically calculated width. The {@link autoWidth}
|
|
796
|
+
* property can be used to disable this behavior.
|
|
797
|
+
*/
|
|
798
|
+
export declare class Gs1_128 extends BarcodeBase implements IVariableWidthBarcode {
|
|
799
|
+
static readonly type: string;
|
|
800
|
+
/**
|
|
801
|
+
* Initializes a new instance of the {@link Gs1_128} class.
|
|
802
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
803
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
804
|
+
*/
|
|
805
|
+
constructor(element: any, option?: any);
|
|
806
|
+
/**
|
|
807
|
+
* Gets or sets a value indicating whether the control width should automatically
|
|
808
|
+
* change along with the {@link value} length.
|
|
809
|
+
*
|
|
810
|
+
* If you set this property value to false, you should ensure that the control has some
|
|
811
|
+
* reasonable *CSS width*.
|
|
812
|
+
*
|
|
813
|
+
* The default value for this property is **true**.
|
|
814
|
+
*/
|
|
815
|
+
autoWidth: boolean;
|
|
816
|
+
/**
|
|
817
|
+
* Gets or sets a zoom factor applied to the automatically calculated control width.
|
|
818
|
+
*
|
|
819
|
+
* This property makes effect only if the {@link autoWidth} property is set to true.
|
|
820
|
+
* It can take any numeric value equal to or greater than 1.
|
|
821
|
+
*
|
|
822
|
+
* The default value for this property is **1**.
|
|
823
|
+
*/
|
|
824
|
+
autoWidthZoom: number;
|
|
825
|
+
/**
|
|
826
|
+
* Indicates whether the value is rendered under the symbol.
|
|
827
|
+
*
|
|
828
|
+
* The default value for this property is <b>true</b>.
|
|
829
|
+
*/
|
|
830
|
+
showLabel: boolean;
|
|
831
|
+
/**
|
|
832
|
+
* Gets or sets where to render the value of the control.
|
|
833
|
+
*
|
|
834
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
835
|
+
*/
|
|
836
|
+
labelPosition: LabelPosition;
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Base abstract class for all UPC barcode control classes.
|
|
840
|
+
*/
|
|
841
|
+
export declare class UpcBase extends BarcodeBase {
|
|
842
|
+
/**
|
|
843
|
+
* Abstract class constructor, never call.
|
|
844
|
+
*/
|
|
845
|
+
constructor(element: any, option?: any);
|
|
846
|
+
/**
|
|
847
|
+
* Indicates whether the value is rendered under the symbol.
|
|
848
|
+
*
|
|
849
|
+
* The default value for this property is <b>true</b>.
|
|
850
|
+
*/
|
|
851
|
+
showLabel: boolean;
|
|
852
|
+
/**
|
|
853
|
+
* Gets or sets the addOn value of the control.
|
|
854
|
+
*
|
|
855
|
+
* The possible length of this property should be 2 or 5.
|
|
856
|
+
*/
|
|
857
|
+
addOn: string | number;
|
|
858
|
+
/**
|
|
859
|
+
* Gets or sets where to render the value of the control.
|
|
860
|
+
*
|
|
861
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
862
|
+
*/
|
|
863
|
+
labelPosition: LabelPosition;
|
|
864
|
+
/**
|
|
865
|
+
* Gets or sets the height of addOn symbol of the control.
|
|
866
|
+
*
|
|
867
|
+
* The default value for this property is <b>auto</b>.
|
|
868
|
+
*/
|
|
869
|
+
addOnHeight: string | number;
|
|
870
|
+
/**
|
|
871
|
+
* Gets or sets where to render the addOn value of the control.
|
|
872
|
+
*
|
|
873
|
+
* The default value for this property is {@link LabelPosition.Top}.
|
|
874
|
+
*/
|
|
875
|
+
addOnLabelPosition: LabelPosition;
|
|
876
|
+
/**
|
|
877
|
+
* Gets or sets the size of quiet zone (the blank margin) around the barcode symbol.
|
|
878
|
+
*/
|
|
879
|
+
quietZone: IQuietZoneWithAddOn;
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/Universal_Product_Code" target="_blank">UPC-A</a>
|
|
883
|
+
* barcode type.
|
|
884
|
+
*/
|
|
885
|
+
export declare class UpcA extends UpcBase {
|
|
886
|
+
static readonly type: string;
|
|
887
|
+
/**
|
|
888
|
+
* Initializes a new instance of the {@link UpcA} class.
|
|
889
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
890
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
891
|
+
*/
|
|
892
|
+
constructor(element: any, option?: any);
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/Universal_Product_Code" target="_blank">UPC-E0</a>
|
|
896
|
+
* barcode type.
|
|
897
|
+
*/
|
|
898
|
+
export declare class UpcE0 extends UpcBase {
|
|
899
|
+
static readonly type: string;
|
|
900
|
+
/**
|
|
901
|
+
* Initializes a new instance of the {@link UpcE0} class.
|
|
902
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
903
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
904
|
+
*/
|
|
905
|
+
constructor(element: any, option?: any);
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/Universal_Product_Code" target="_blank">UPC-E1</a>
|
|
909
|
+
* barcode type.
|
|
910
|
+
*/
|
|
911
|
+
export declare class UpcE1 extends UpcBase {
|
|
912
|
+
static readonly type: string;
|
|
913
|
+
/**
|
|
914
|
+
* Initializes a new instance of the {@link UpcE1} class.
|
|
915
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
916
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
917
|
+
*/
|
|
918
|
+
constructor(element: any, option?: any);
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/QR_code" target="_blank">QRCode</a>
|
|
922
|
+
* barcode type.
|
|
923
|
+
*/
|
|
924
|
+
export declare class QrCode extends BarcodeBase {
|
|
925
|
+
static readonly type: string;
|
|
926
|
+
/**
|
|
927
|
+
* Initializes a new instance of the {@link QrCode} class.
|
|
928
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
929
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
930
|
+
*/
|
|
931
|
+
constructor(element: any, option?: any);
|
|
932
|
+
/**
|
|
933
|
+
* Gets or sets the collection of characters associated with the charset.
|
|
934
|
+
*/
|
|
935
|
+
charCode: number[];
|
|
936
|
+
/**
|
|
937
|
+
* Gets or sets which charset to encode this control.
|
|
938
|
+
*
|
|
939
|
+
* The default value for this property is {@link QrCodeCharset.Utf8}.
|
|
940
|
+
*/
|
|
941
|
+
charset: QrCodeCharset;
|
|
942
|
+
/**
|
|
943
|
+
* Gets or sets the model style of the control used.
|
|
944
|
+
*
|
|
945
|
+
* The default value for this property is {@link QrCodeModel.Model2}.
|
|
946
|
+
*/
|
|
947
|
+
model: QrCodeModel;
|
|
948
|
+
/**
|
|
949
|
+
* Gets or sets the different module configuration of the control.
|
|
950
|
+
* The versions of QRCode range from version 1 to version 40.
|
|
951
|
+
* Each version has a different module configuration or number of modules.
|
|
952
|
+
* (The module refers to the black and white dots that make up QRCode.)
|
|
953
|
+
*
|
|
954
|
+
* The default value for this property is <b>null</b> or <b>undefined</b>.
|
|
955
|
+
*/
|
|
956
|
+
version: number;
|
|
957
|
+
/**
|
|
958
|
+
* Gets or sets the restoration ability of QRCode.
|
|
959
|
+
*
|
|
960
|
+
* The default value for this property is {@link QrCodeCorrectionLevel.Low}.
|
|
961
|
+
*/
|
|
962
|
+
errorCorrectionLevel: QrCodeCorrectionLevel;
|
|
963
|
+
/**
|
|
964
|
+
* Gets or sets the patterns that are defined on a grid, which are repeated as necessary to cover the whole symbol.
|
|
965
|
+
*
|
|
966
|
+
* The default value for this property is <b>null</b> or <b>undefined</b>.
|
|
967
|
+
*/
|
|
968
|
+
mask: number;
|
|
969
|
+
/**
|
|
970
|
+
* Indicates whether the symbol is a part of a structured append message.
|
|
971
|
+
*
|
|
972
|
+
* The default value for this property is <b>false</b>.
|
|
973
|
+
*/
|
|
974
|
+
connection: boolean;
|
|
975
|
+
/**
|
|
976
|
+
* Gets or sets the index of the symbol block in the structured append message.
|
|
977
|
+
*
|
|
978
|
+
* The possible property values are 0 - 15.
|
|
979
|
+
* The default value for this property is <b>0</b>.
|
|
980
|
+
*/
|
|
981
|
+
connectionIndex: number;
|
|
982
|
+
}
|