@mescius/wijmo.barcode.specialized 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 +773 -0
- package/index.js +14 -0
- package/package.json +45 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,773 @@
|
|
|
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.specialized}
|
|
15
|
+
* Implements controls for drawing specialized barcode types.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare var ___keepComment: any;
|
|
21
|
+
import { TwoDimensionalBarcode, OneDimensionalBarcode, BarcodeBase, LabelPosition, NarrowToWideRatio, IVariableWidthBarcode } from '@grapecity/wijmo.barcode';
|
|
22
|
+
import * as selfModule from '@grapecity/wijmo.barcode.specialized';
|
|
23
|
+
export declare class CodeMap {
|
|
24
|
+
static Datas: CodeMap[];
|
|
25
|
+
Maps: any;
|
|
26
|
+
constructor(b1: any, b2: any, b3: any);
|
|
27
|
+
}
|
|
28
|
+
export declare const ND = 255;
|
|
29
|
+
export declare const CODE_CC4 = 14;
|
|
30
|
+
export declare class CharMap {
|
|
31
|
+
static Datas: CharMap[];
|
|
32
|
+
Char: any;
|
|
33
|
+
Val1: any;
|
|
34
|
+
Val2: any;
|
|
35
|
+
constructor(ch: any, val1: any, val2: any);
|
|
36
|
+
}
|
|
37
|
+
export declare class JapanesePost4StateCustomerCode extends OneDimensionalBarcode {
|
|
38
|
+
constructor(option: any);
|
|
39
|
+
validate(): void;
|
|
40
|
+
checksum(n: any, tmp: any): number;
|
|
41
|
+
calculateData(): any[];
|
|
42
|
+
_fillSymbol(data: any, symbolArea: any): void;
|
|
43
|
+
convertToShape(data: any, forMeasure: any): void;
|
|
44
|
+
}
|
|
45
|
+
export declare class ITFBase extends OneDimensionalBarcode {
|
|
46
|
+
static StartPattern: string;
|
|
47
|
+
static StopPattern: string;
|
|
48
|
+
static DefaultConfig: {
|
|
49
|
+
quietZone: {
|
|
50
|
+
right: number;
|
|
51
|
+
left: number;
|
|
52
|
+
};
|
|
53
|
+
nwRatio: number;
|
|
54
|
+
bearerBar: boolean;
|
|
55
|
+
};
|
|
56
|
+
static Table: string[];
|
|
57
|
+
static Weight: number[];
|
|
58
|
+
static BearerBarWidth: number;
|
|
59
|
+
private ratio;
|
|
60
|
+
private bearerBar;
|
|
61
|
+
constructor(option: any);
|
|
62
|
+
checksum(text: any): number;
|
|
63
|
+
_toPairs(): any[];
|
|
64
|
+
_toPattern(str: any): string;
|
|
65
|
+
_toZeroOnePattern(pattern: any): string;
|
|
66
|
+
calculateData(): string;
|
|
67
|
+
afterApplyDesiredSize(): void;
|
|
68
|
+
convertToShape(data: any, forMeasure: any): void;
|
|
69
|
+
}
|
|
70
|
+
export declare class Interleaved2of5Encoder extends ITFBase {
|
|
71
|
+
static DefaultConfig: any;
|
|
72
|
+
constructor(option: any);
|
|
73
|
+
validate(): void;
|
|
74
|
+
}
|
|
75
|
+
export declare class ITF_14_Encoder extends ITFBase {
|
|
76
|
+
constructor(option: any);
|
|
77
|
+
validate(): void;
|
|
78
|
+
}
|
|
79
|
+
export declare class EncodeTable_Code93 {
|
|
80
|
+
static TABLE_CH: string[];
|
|
81
|
+
static TABLE_CODE: string[];
|
|
82
|
+
static TABLE_FULL_ASCII: string[];
|
|
83
|
+
static getCode93Code(char: any): string;
|
|
84
|
+
static getCode93Value(char: any): number;
|
|
85
|
+
static getCharByValue(index: any): string;
|
|
86
|
+
static getFullASCIIChar(text: any): string;
|
|
87
|
+
}
|
|
88
|
+
export declare class Code93Encoder extends OneDimensionalBarcode {
|
|
89
|
+
static DefaultConfig: {
|
|
90
|
+
checkDigit: boolean;
|
|
91
|
+
fullASCII: boolean;
|
|
92
|
+
quietZone: {
|
|
93
|
+
right: number;
|
|
94
|
+
left: number;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
static START_STOP_CHARACTERS: string;
|
|
98
|
+
static TERMINATION: string;
|
|
99
|
+
constructor(option: any);
|
|
100
|
+
validate(): void;
|
|
101
|
+
encode(str: any): string;
|
|
102
|
+
calculateData(): string;
|
|
103
|
+
checksum(str: any): string;
|
|
104
|
+
}
|
|
105
|
+
export declare function isNumericOnly(text: any): boolean;
|
|
106
|
+
export declare function getCharValue_Code49(char: any): any;
|
|
107
|
+
export declare function getWeight(row: any, col: any): {
|
|
108
|
+
x: number;
|
|
109
|
+
y: number;
|
|
110
|
+
z: number;
|
|
111
|
+
};
|
|
112
|
+
export declare function getParityPattern(value: any, row: any, col: any, rowCount: any): any;
|
|
113
|
+
export declare function getGroupInfo(groupNo: any, groupCount: any): any;
|
|
114
|
+
export declare function getTextGroup(text: any): any[];
|
|
115
|
+
export declare class Code49Encoder extends TwoDimensionalBarcode {
|
|
116
|
+
static DefaultConfig: {
|
|
117
|
+
showLabel: boolean;
|
|
118
|
+
grouping: boolean;
|
|
119
|
+
groupNo: number;
|
|
120
|
+
labelPosition: string;
|
|
121
|
+
height: number;
|
|
122
|
+
quietZone: {
|
|
123
|
+
right: number;
|
|
124
|
+
left: number;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
static CODE_NS: number;
|
|
128
|
+
static START_PATTERN: string;
|
|
129
|
+
static STOP_PATTERN: string;
|
|
130
|
+
private text;
|
|
131
|
+
private label;
|
|
132
|
+
private mode;
|
|
133
|
+
private groupCount;
|
|
134
|
+
private modes;
|
|
135
|
+
constructor(option: any);
|
|
136
|
+
validate(): void;
|
|
137
|
+
getModes(): void;
|
|
138
|
+
encodeNumeric(text: any): any;
|
|
139
|
+
encodeAlpha(text: any): any;
|
|
140
|
+
calculateData(): any[];
|
|
141
|
+
convertToShape(matrix: any, forMeasure: any): void;
|
|
142
|
+
adjustDesiredSize(): void;
|
|
143
|
+
}
|
|
144
|
+
export declare class BitwiseIterator {
|
|
145
|
+
private _data;
|
|
146
|
+
offset: any;
|
|
147
|
+
constructor(data: any, offset?: any);
|
|
148
|
+
readonly bitLength: number;
|
|
149
|
+
readonly currentBit: boolean;
|
|
150
|
+
fetchBit(): boolean;
|
|
151
|
+
getBit(offset: any): boolean;
|
|
152
|
+
setBit(offset: any, bit: any): void;
|
|
153
|
+
putBit(bit: any): void;
|
|
154
|
+
putBitsMSF(data: any, bits: any, offset?: any): void;
|
|
155
|
+
putBitsLSF(data: any, bits: any, offset?: any): void;
|
|
156
|
+
}
|
|
157
|
+
export declare function chooseEncodationScheme(data: any): number;
|
|
158
|
+
export declare function getCodeWord(scheme: any, value: any): any;
|
|
159
|
+
export declare function setBit(value: any, bitLS: any, bitValue: any): any;
|
|
160
|
+
export declare const Constants_140: {
|
|
161
|
+
BaseValues: number[];
|
|
162
|
+
GroupLengths: number[];
|
|
163
|
+
HeaderBits: number[];
|
|
164
|
+
BitLengths: number[][];
|
|
165
|
+
SymbolCapacities: any[];
|
|
166
|
+
getFormatID: (scheme: any) => any;
|
|
167
|
+
ECCInfos: {
|
|
168
|
+
inputBits: number;
|
|
169
|
+
registerBits: number[];
|
|
170
|
+
outputBits: number;
|
|
171
|
+
outputMasks: any[][];
|
|
172
|
+
}[];
|
|
173
|
+
RandomizeBytes: number[];
|
|
174
|
+
ModuleMapping: number[][];
|
|
175
|
+
};
|
|
176
|
+
export declare function getECC(mode: any): {
|
|
177
|
+
eccInfo: {
|
|
178
|
+
inputBits: number;
|
|
179
|
+
registerBits: number[];
|
|
180
|
+
outputBits: number;
|
|
181
|
+
outputMasks: any[][];
|
|
182
|
+
};
|
|
183
|
+
headerBits: number;
|
|
184
|
+
};
|
|
185
|
+
export declare function getSymbolSizeInfo(key: any): any;
|
|
186
|
+
export declare function getSymbolSizeValue(key: any): number;
|
|
187
|
+
export declare function getProperSymbolSize(symbolSize: any, bitLength: any): any;
|
|
188
|
+
export declare function getModuleMapping(key: any): number[];
|
|
189
|
+
export declare function setFinder_140(matrix: any, symbolRows: any): void;
|
|
190
|
+
export declare function setRegionData_140(matrix: any, symbolRows: any, it: any): void;
|
|
191
|
+
export declare function generateErrorCorrectionCode(message: any, m_start: any, m_len: any, e_len: any): any;
|
|
192
|
+
export declare const CONSTANTS: {
|
|
193
|
+
FNC1Input: number;
|
|
194
|
+
Macro05Input: number;
|
|
195
|
+
Macro06Input: number;
|
|
196
|
+
StructuredAppand: number;
|
|
197
|
+
FileIdentifierMax: number;
|
|
198
|
+
ASCIIPad: number;
|
|
199
|
+
ASCIIUpperShift: number;
|
|
200
|
+
ASCIIFNC1: number;
|
|
201
|
+
Macro05: number;
|
|
202
|
+
Macro06: number;
|
|
203
|
+
TripletUppershift: number;
|
|
204
|
+
TripletFNC1: number;
|
|
205
|
+
TripletPad: number;
|
|
206
|
+
InvalidTripletValue: number;
|
|
207
|
+
LatchToC40: number;
|
|
208
|
+
LatchToBase256: number;
|
|
209
|
+
LatchToX12: number;
|
|
210
|
+
LatchToText: number;
|
|
211
|
+
LatchToEDIFACT: number;
|
|
212
|
+
TripletUnlatch: number;
|
|
213
|
+
EDIFACTUnlatch: number;
|
|
214
|
+
PseudoRandomSeed: number;
|
|
215
|
+
PadRandomBase: number;
|
|
216
|
+
Base256RandomBase: number;
|
|
217
|
+
Base256SmallBlockSize: number;
|
|
218
|
+
EDIFACTMask: number;
|
|
219
|
+
Unvisited: number;
|
|
220
|
+
TripletShifts: number[];
|
|
221
|
+
MaxCodeWrods: number;
|
|
222
|
+
MaxStructures: number;
|
|
223
|
+
MaxLookAheadOffset: number;
|
|
224
|
+
};
|
|
225
|
+
export declare function getSymbolInfo(type: any): {
|
|
226
|
+
symbolRows: number;
|
|
227
|
+
symbolColumns: number;
|
|
228
|
+
symbolDataCapacity: number;
|
|
229
|
+
eccLength: number;
|
|
230
|
+
interleavedBlocks: number;
|
|
231
|
+
regions: number;
|
|
232
|
+
regionRows: number;
|
|
233
|
+
regionColumns: number;
|
|
234
|
+
};
|
|
235
|
+
export declare function getSuitableSymbolSize(prefered: any, codeLength: any): {
|
|
236
|
+
symbolRows: number;
|
|
237
|
+
symbolColumns: number;
|
|
238
|
+
symbolDataCapacity: number;
|
|
239
|
+
eccLength: number;
|
|
240
|
+
interleavedBlocks: number;
|
|
241
|
+
regions: number;
|
|
242
|
+
regionRows: number;
|
|
243
|
+
regionColumns: number;
|
|
244
|
+
};
|
|
245
|
+
export declare function getInfoOfRegions(size: any): {
|
|
246
|
+
rowOfRegion: any;
|
|
247
|
+
colOfRegion: any;
|
|
248
|
+
};
|
|
249
|
+
export declare function createModules(row: any, col?: any): any[];
|
|
250
|
+
export declare const TripletUppershift = 158;
|
|
251
|
+
export declare const TripletFNC1 = 155;
|
|
252
|
+
export declare const ASCIIMax = 127;
|
|
253
|
+
export declare const ExtendedASCIIMin = 128;
|
|
254
|
+
export declare const Space = 32;
|
|
255
|
+
export declare const NumericMin = 48;
|
|
256
|
+
export declare const NumericMax = 57;
|
|
257
|
+
export declare const LowerCasedLetterMin = 97;
|
|
258
|
+
export declare const LowerCasedLetterMax = 122;
|
|
259
|
+
export declare const UpperCasedLetterMin = 65;
|
|
260
|
+
export declare const UpperCasedLetterMax = 90;
|
|
261
|
+
export declare function getCharType(value: any): "Numeric" | "FNC1" | "ExtendedASCII" | "LowerCasedLetter" | "UpperCasedLetter" | "ASCIIOther";
|
|
262
|
+
export declare function getX12Value(value: any): number;
|
|
263
|
+
export declare function getTripletCharValue(charSet: any, value: any): any;
|
|
264
|
+
export declare function isDigit(value: any): boolean;
|
|
265
|
+
export declare function getTripletCharSetChannel(charSet: any, value: any): 1 | 0 | 3 | 2;
|
|
266
|
+
export declare function getTripletEncodeValues(charSet: any, symbol: any): any[];
|
|
267
|
+
export declare function getEDIFACTValue(value: any): number;
|
|
268
|
+
export declare function getRandomizedValue(value: any, position: any, baseValue: any): any;
|
|
269
|
+
export declare function mergeUnits(units: any): any[];
|
|
270
|
+
export declare function setFinder(matrix: any, info: any, rowOffset: any, colOffset: any): void;
|
|
271
|
+
export declare function setRegionData(matrix: any, info: any, r: any, c: any, data: any): void;
|
|
272
|
+
export declare class ECC000_140 {
|
|
273
|
+
private text;
|
|
274
|
+
private m_symbol;
|
|
275
|
+
private symbolSize;
|
|
276
|
+
private eccMode;
|
|
277
|
+
private m_code;
|
|
278
|
+
private m_module;
|
|
279
|
+
private _symbolSize;
|
|
280
|
+
constructor(text: any, config: any);
|
|
281
|
+
getMatrix(): any[];
|
|
282
|
+
eccProcess(symbolIterator: any, dataIterator: any, dataBits: any): void;
|
|
283
|
+
randomizeBits(): void;
|
|
284
|
+
crcProcess(scheme: any): number;
|
|
285
|
+
calculateDataBits(scheme: any): number;
|
|
286
|
+
calculateTotalBits(scheme: any, headerBits: any, dataBits: any): any;
|
|
287
|
+
encode(scheme: any, bf: any): void;
|
|
288
|
+
placeModule(): any[];
|
|
289
|
+
}
|
|
290
|
+
export declare class SymbolCharacterPlacement {
|
|
291
|
+
private nrow;
|
|
292
|
+
private ncol;
|
|
293
|
+
private data;
|
|
294
|
+
private matrix;
|
|
295
|
+
constructor(data: any, nrow: any, ncol: any);
|
|
296
|
+
ECC200(): any;
|
|
297
|
+
module(row: any, col: any, chr: any, bit: any): void;
|
|
298
|
+
utah(row: any, col: any, chr: any): void;
|
|
299
|
+
corner1(chr: any): void;
|
|
300
|
+
corner2(chr: any): void;
|
|
301
|
+
corner3(chr: any): void;
|
|
302
|
+
corner4(chr: any): void;
|
|
303
|
+
}
|
|
304
|
+
export declare class ECC200 {
|
|
305
|
+
private text;
|
|
306
|
+
private m_symbol;
|
|
307
|
+
private symbolSize;
|
|
308
|
+
private encodingMode;
|
|
309
|
+
private structuredAppend;
|
|
310
|
+
private structureNumber;
|
|
311
|
+
private fileIdentifier;
|
|
312
|
+
private symbolInfo;
|
|
313
|
+
private m_code;
|
|
314
|
+
constructor(text: any, config: any);
|
|
315
|
+
preEncode(c_pos: any, s_pos: any): {
|
|
316
|
+
c_pos: any;
|
|
317
|
+
s_pos: any;
|
|
318
|
+
};
|
|
319
|
+
checkValue(start: any): boolean;
|
|
320
|
+
getEncodingLength(charSet: any, codeWords: any, start: any, length: any): number;
|
|
321
|
+
getMaxProperLength(start: any, maxLength: any): number;
|
|
322
|
+
getCodeWordLength(charSet: any, start: any, length: any): number;
|
|
323
|
+
getCodeLength(unit: any): number;
|
|
324
|
+
getEncodingUnitsInfomative(start: any, maxLength: any, s_taken: any): {
|
|
325
|
+
s_taken: any;
|
|
326
|
+
units: any[];
|
|
327
|
+
};
|
|
328
|
+
getEncodingUnits(s_pos: any, maxLength: any): {
|
|
329
|
+
c_length: number;
|
|
330
|
+
s_taken: number;
|
|
331
|
+
units: any;
|
|
332
|
+
};
|
|
333
|
+
encodeStructureHeader(c_pos: any, structureCount: any, fileInfo: any): any;
|
|
334
|
+
generateFileIdentifier(structureCount: any, fileInfo: any): number;
|
|
335
|
+
encode(unit: any, c_pos: any): any;
|
|
336
|
+
encodeASCII(start: any, length: any, c_pos: any): any;
|
|
337
|
+
encodeTriplet(charSet: any, start: any, length: any, c_pos: any): any;
|
|
338
|
+
encodeC40(start: any, length: any, c_pos: any): any;
|
|
339
|
+
encodeText(start: any, length: any, c_pos: any): any;
|
|
340
|
+
encodeX12(start: any, length: any, c_pos: any): any;
|
|
341
|
+
encodeEDIFACT(start: any, length: any, c_pos: any): any;
|
|
342
|
+
encodeBase256(start: any, length: any, c_pos: any): any;
|
|
343
|
+
padRight(c_pos: any): void;
|
|
344
|
+
lookAhead(current: any, offset: any, codeLength: any, d_len: any): string | {
|
|
345
|
+
d_len: any;
|
|
346
|
+
newCharset: string;
|
|
347
|
+
};
|
|
348
|
+
getMatrix(): any[];
|
|
349
|
+
eccProcess(): any;
|
|
350
|
+
placeModules(data: any): any[];
|
|
351
|
+
}
|
|
352
|
+
export declare class DataMatrixEncoder extends TwoDimensionalBarcode {
|
|
353
|
+
static DefaultConfig: {
|
|
354
|
+
eccMode: string;
|
|
355
|
+
ecc200SymbolSize: string;
|
|
356
|
+
ecc200EncodingMode: string;
|
|
357
|
+
ecc000_140SymbolSize: string;
|
|
358
|
+
structuredAppend: boolean;
|
|
359
|
+
structureNumber: number;
|
|
360
|
+
fileIdentifier: number;
|
|
361
|
+
quietZone: {
|
|
362
|
+
top: number;
|
|
363
|
+
left: number;
|
|
364
|
+
right: number;
|
|
365
|
+
bottom: number;
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
private innerEncoder;
|
|
369
|
+
constructor(option: any);
|
|
370
|
+
calculateData(): any;
|
|
371
|
+
validate(): void;
|
|
372
|
+
}
|
|
373
|
+
/** Indicates the symbol size in modules (excluding the quiet zone).*/
|
|
374
|
+
export declare enum DataMatrixVersion {
|
|
375
|
+
Ecc000 = 0,
|
|
376
|
+
Ecc050 = 1,
|
|
377
|
+
Ecc080 = 2,
|
|
378
|
+
Ecc100 = 3,
|
|
379
|
+
Ecc140 = 4
|
|
380
|
+
}
|
|
381
|
+
export declare enum Ecc200EncodingMode {
|
|
382
|
+
Auto = 0,
|
|
383
|
+
Ascii = 1,
|
|
384
|
+
C40 = 2,
|
|
385
|
+
Text = 3,
|
|
386
|
+
X12 = 4,
|
|
387
|
+
Edifact = 5,
|
|
388
|
+
Base256 = 6
|
|
389
|
+
}
|
|
390
|
+
export declare enum Ecc200SymbolSize {
|
|
391
|
+
SquareAuto = 0,
|
|
392
|
+
RectangularAuto = 1,
|
|
393
|
+
Square10 = 2,
|
|
394
|
+
Square12 = 3,
|
|
395
|
+
Square14 = 4,
|
|
396
|
+
Square16 = 5,
|
|
397
|
+
Square18 = 6,
|
|
398
|
+
Square20 = 7,
|
|
399
|
+
Square22 = 8,
|
|
400
|
+
Square24 = 9,
|
|
401
|
+
Square26 = 10,
|
|
402
|
+
Square32 = 11,
|
|
403
|
+
Square36 = 12,
|
|
404
|
+
Square40 = 13,
|
|
405
|
+
Square44 = 14,
|
|
406
|
+
Square48 = 15,
|
|
407
|
+
Square52 = 16,
|
|
408
|
+
Square64 = 17,
|
|
409
|
+
Square72 = 18,
|
|
410
|
+
Square80 = 19,
|
|
411
|
+
Square88 = 20,
|
|
412
|
+
Square96 = 21,
|
|
413
|
+
Square104 = 22,
|
|
414
|
+
Square120 = 23,
|
|
415
|
+
Square132 = 24,
|
|
416
|
+
Square144 = 25,
|
|
417
|
+
Rectangular8x18 = 26,
|
|
418
|
+
Rectangular8x32 = 27,
|
|
419
|
+
Rectangular12x26 = 28,
|
|
420
|
+
Rectangular12x36 = 29,
|
|
421
|
+
Rectangular16x36 = 30,
|
|
422
|
+
Rectangular16x48 = 31
|
|
423
|
+
}
|
|
424
|
+
export declare enum Ecc000_140SymbolSize {
|
|
425
|
+
Auto = 0,
|
|
426
|
+
Square9 = 1,
|
|
427
|
+
Square11 = 2,
|
|
428
|
+
Square13 = 3,
|
|
429
|
+
Square15 = 4,
|
|
430
|
+
Square17 = 5,
|
|
431
|
+
Square19 = 6,
|
|
432
|
+
Square21 = 7,
|
|
433
|
+
Square23 = 8,
|
|
434
|
+
Square25 = 9,
|
|
435
|
+
Square27 = 10,
|
|
436
|
+
Square29 = 11,
|
|
437
|
+
Square31 = 12,
|
|
438
|
+
Square33 = 13,
|
|
439
|
+
Square35 = 14,
|
|
440
|
+
Square37 = 15,
|
|
441
|
+
Square39 = 16,
|
|
442
|
+
Square41 = 17,
|
|
443
|
+
Square43 = 18,
|
|
444
|
+
Square45 = 19,
|
|
445
|
+
Square47 = 20,
|
|
446
|
+
Square49 = 21
|
|
447
|
+
}
|
|
448
|
+
export declare class _DataMatrixVersionConvertor {
|
|
449
|
+
static stringToEnum(value: any): number;
|
|
450
|
+
static enumToString(value: any): string;
|
|
451
|
+
}
|
|
452
|
+
export declare class _Ecc200EncodingModeConvertor {
|
|
453
|
+
static stringToEnum(value: any): number;
|
|
454
|
+
static enumToString(value: any): string;
|
|
455
|
+
}
|
|
456
|
+
export declare function _SymbolSizeConvertor(enumStr: string): string;
|
|
457
|
+
/**
|
|
458
|
+
* Base abstract class for all DataMatrix barcode classes.
|
|
459
|
+
*/
|
|
460
|
+
export declare abstract class DataMatrixBase extends BarcodeBase {
|
|
461
|
+
static readonly type: string;
|
|
462
|
+
/**
|
|
463
|
+
* Abstract class constructor, never call.
|
|
464
|
+
*/
|
|
465
|
+
constructor(element: any, option?: any);
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Represents a control for drawing an old version of <a href="https://en.wikipedia.org/wiki/Data_Matrix" target="_blank">DataMatrix</a>
|
|
469
|
+
* barcode by using ECC000 - ECC140.
|
|
470
|
+
*/
|
|
471
|
+
export declare class DataMatrixEcc000 extends DataMatrixBase {
|
|
472
|
+
private static _symbolSizeDictionary;
|
|
473
|
+
/**
|
|
474
|
+
* Initializes a new instance of the {@link DataMatrixEcc000} class.
|
|
475
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
476
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
477
|
+
*/
|
|
478
|
+
constructor(element: any, option?: any);
|
|
479
|
+
private static _getEnumDictionary;
|
|
480
|
+
protected static _getClassDefaults(): any;
|
|
481
|
+
/**
|
|
482
|
+
* Gets or sets the ECC version of DataMatrix to render the barcode.
|
|
483
|
+
*
|
|
484
|
+
* The default value for this property is {@link DataMatrixVersion.Ecc000}.
|
|
485
|
+
*/
|
|
486
|
+
version: DataMatrixVersion;
|
|
487
|
+
/**
|
|
488
|
+
* Gets or sets the size of symbol.
|
|
489
|
+
*
|
|
490
|
+
* The default value for this property is {@link Ecc000_140SymbolSize.Auto}.
|
|
491
|
+
*/
|
|
492
|
+
symbolSize: Ecc000_140SymbolSize;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/Data_Matrix" target="_blank">DataMatrix</a>
|
|
496
|
+
* barcode by using <a href="https://en.wikipedia.org/wiki/Reed%E2%80%93Solomon_error_correction" target="_blank">Reed-Solomon</a> codes of ECC200.
|
|
497
|
+
*/
|
|
498
|
+
export declare class DataMatrixEcc200 extends DataMatrixBase {
|
|
499
|
+
private static _symbolSizeDictionary;
|
|
500
|
+
/**
|
|
501
|
+
* Initializes a new instance of the {@link DataMatrixEcc200} class.
|
|
502
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
503
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
504
|
+
*/
|
|
505
|
+
constructor(element: any, option?: any);
|
|
506
|
+
private static _getEnumDictionary;
|
|
507
|
+
protected static _getClassDefaults(): any;
|
|
508
|
+
/**
|
|
509
|
+
* Gets or sets the size of symbol.
|
|
510
|
+
*
|
|
511
|
+
* The default value for this property is {@link Ecc200SymbolSize.SquareAuto}.
|
|
512
|
+
*/
|
|
513
|
+
symbolSize: Ecc200SymbolSize;
|
|
514
|
+
/**
|
|
515
|
+
* Gets or sets the encoding mode.
|
|
516
|
+
*
|
|
517
|
+
* The default value for this property is {@link Ecc200EncodingMode.Auto}.
|
|
518
|
+
*/
|
|
519
|
+
encodingMode: Ecc200EncodingMode;
|
|
520
|
+
/**
|
|
521
|
+
* Indicates whether the symbol is part of a structured append message.
|
|
522
|
+
*
|
|
523
|
+
* The default value for this property is <b>false</b>.
|
|
524
|
+
*/
|
|
525
|
+
structuredAppend: boolean;
|
|
526
|
+
/**
|
|
527
|
+
* Gets or sets the block in which the symbol is in the structured append message.
|
|
528
|
+
*
|
|
529
|
+
* The possible property values are 0 - 15.
|
|
530
|
+
* The default value for this property is <b>0</b>.
|
|
531
|
+
*/
|
|
532
|
+
structureNumber: number;
|
|
533
|
+
/**
|
|
534
|
+
* Gets or sets the file identification of this control.
|
|
535
|
+
*
|
|
536
|
+
* The possible property values are 1 - 254.
|
|
537
|
+
* The default value for this property is <b>0</b>.
|
|
538
|
+
*/
|
|
539
|
+
fileIdentifier: number;
|
|
540
|
+
}
|
|
541
|
+
/**
|
|
542
|
+
* Represents a control for drawing <a href="https://de.wikipedia.org/wiki/Code_49" target="_blank">Code49</a>
|
|
543
|
+
* barcode type.
|
|
544
|
+
*/
|
|
545
|
+
export declare class Code49 extends BarcodeBase {
|
|
546
|
+
static readonly type: string;
|
|
547
|
+
/**
|
|
548
|
+
* Initializes a new instance of the {@link Code49} class.
|
|
549
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
550
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
551
|
+
*/
|
|
552
|
+
constructor(element: any, option?: any);
|
|
553
|
+
/**
|
|
554
|
+
* Indicates whether the value is rendered under the symbol.
|
|
555
|
+
*
|
|
556
|
+
* The default value for this property is <b>true</b>.
|
|
557
|
+
*/
|
|
558
|
+
showLabel: boolean;
|
|
559
|
+
/**
|
|
560
|
+
* Indicates whether the symbol mode is Group Alphanumeric Mode.
|
|
561
|
+
*
|
|
562
|
+
* The default value for this property is <b>false</b>.
|
|
563
|
+
*/
|
|
564
|
+
grouping: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* Gets or sets the index of the symbol in group.
|
|
567
|
+
*
|
|
568
|
+
* The default value for this property is <b>0</b>.
|
|
569
|
+
*/
|
|
570
|
+
groupIndex: number;
|
|
571
|
+
/**
|
|
572
|
+
* Gets or sets the position to render the value of the control.
|
|
573
|
+
*
|
|
574
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
575
|
+
*/
|
|
576
|
+
labelPosition: LabelPosition;
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/Code_93" target="_blank">Code93</a>
|
|
580
|
+
* barcode type.
|
|
581
|
+
*
|
|
582
|
+
* This is a variable-width barcode, the width of which automatically changes
|
|
583
|
+
* along with the length of the {@link value}. The {@link autoWidthZoom} property
|
|
584
|
+
* can be used to zoom the automatically calculated width. The {@link autoWidth}
|
|
585
|
+
* property can be used to disable this behavior.
|
|
586
|
+
*/
|
|
587
|
+
export declare class Code93 extends BarcodeBase implements IVariableWidthBarcode {
|
|
588
|
+
static readonly type: string;
|
|
589
|
+
/**
|
|
590
|
+
* Initializes a new instance of the {@link code93} class.
|
|
591
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
592
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
593
|
+
*/
|
|
594
|
+
constructor(element: any, option?: any);
|
|
595
|
+
/**
|
|
596
|
+
* Gets or sets a value indicating whether the control width should automatically
|
|
597
|
+
* change along with the {@link value} length.
|
|
598
|
+
*
|
|
599
|
+
* If you set this property value to false, you should ensure that the control has some
|
|
600
|
+
* reasonable *CSS width*.
|
|
601
|
+
*
|
|
602
|
+
* The default value for this property is **true**.
|
|
603
|
+
*/
|
|
604
|
+
autoWidth: boolean;
|
|
605
|
+
/**
|
|
606
|
+
* Gets or sets a zoom factor applied to the automatically calculated control width.
|
|
607
|
+
*
|
|
608
|
+
* This property makes effect only if the {@link autoWidth} property is set to true.
|
|
609
|
+
* It can take any numeric value equal or greater than 1.
|
|
610
|
+
*
|
|
611
|
+
* The default value for this property is **1**.
|
|
612
|
+
*/
|
|
613
|
+
autoWidthZoom: number;
|
|
614
|
+
/**
|
|
615
|
+
* Gets or sets whether the value is rendered under the symbol.
|
|
616
|
+
*
|
|
617
|
+
* The default value for this property is <b>true</b>.
|
|
618
|
+
*/
|
|
619
|
+
showLabel: boolean;
|
|
620
|
+
/**
|
|
621
|
+
* Indicates whether the symbol needs the check digit with the Luhn algorithm.
|
|
622
|
+
*
|
|
623
|
+
* The default value for this property is <b>false</b>.
|
|
624
|
+
*/
|
|
625
|
+
checkDigit: boolean;
|
|
626
|
+
/**
|
|
627
|
+
* Indicates whether the symbol enables encoding of all 93 ASCII characters.
|
|
628
|
+
*
|
|
629
|
+
* The default value for this property is <b>false</b>.
|
|
630
|
+
*/
|
|
631
|
+
fullAscii: boolean;
|
|
632
|
+
/**
|
|
633
|
+
* Gets or sets the position to render the value of the control.
|
|
634
|
+
*
|
|
635
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
636
|
+
*/
|
|
637
|
+
labelPosition: LabelPosition;
|
|
638
|
+
}
|
|
639
|
+
/**
|
|
640
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/ITF-14" target="_blank">ITF-14</a>
|
|
641
|
+
* barcode type.
|
|
642
|
+
*/
|
|
643
|
+
export declare class Itf14 extends BarcodeBase {
|
|
644
|
+
static readonly type: string;
|
|
645
|
+
/**
|
|
646
|
+
* Initializes a new instance of the {@link Itf14} class.
|
|
647
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
648
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
649
|
+
*/
|
|
650
|
+
constructor(element: any, option?: any);
|
|
651
|
+
/**
|
|
652
|
+
* Indicates whether the value is rendered under the symbol.
|
|
653
|
+
*
|
|
654
|
+
* The default value for this property is <b>true</b>.
|
|
655
|
+
*/
|
|
656
|
+
showLabel: boolean;
|
|
657
|
+
/**
|
|
658
|
+
* Gets or sets the narrow and wide bar ratio of the control.
|
|
659
|
+
*
|
|
660
|
+
* The possible property values are 1:2 or 1:3.
|
|
661
|
+
* The default value for this property is {@link NarrowWideRatio.OneToThree}.
|
|
662
|
+
*/
|
|
663
|
+
nwRatio: NarrowToWideRatio;
|
|
664
|
+
/**
|
|
665
|
+
* Indicates whether to enable bearer bar (thick black border) around the symbol.
|
|
666
|
+
*
|
|
667
|
+
*
|
|
668
|
+
* The default value for this property is <b>false</b>.
|
|
669
|
+
*/
|
|
670
|
+
bearerBar: boolean;
|
|
671
|
+
/**
|
|
672
|
+
* Gets or sets where to render the value of the control.
|
|
673
|
+
*
|
|
674
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
675
|
+
*/
|
|
676
|
+
labelPosition: LabelPosition;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/Interleaved_2_of_5" target="_blank">Interleaved2of5</a>
|
|
680
|
+
* barcode type.
|
|
681
|
+
*
|
|
682
|
+
* This is a variable-width barcode, the width of which automatically changes
|
|
683
|
+
* along with the length of the {@link value}. The {@link autoWidthZoom} property
|
|
684
|
+
* can be used to zoom the automatically calculated width. The {@link autoWidth}
|
|
685
|
+
* property can be used to disable this behavior.
|
|
686
|
+
*/
|
|
687
|
+
export declare class Interleaved2of5 extends BarcodeBase implements IVariableWidthBarcode {
|
|
688
|
+
static readonly type: string;
|
|
689
|
+
/**
|
|
690
|
+
* Initializes a new instance of the {@link Interleaved2of5} class.
|
|
691
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
692
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
693
|
+
*/
|
|
694
|
+
constructor(element: any, option?: any);
|
|
695
|
+
/**
|
|
696
|
+
* Gets or sets a value indicating whether the control width should automatically
|
|
697
|
+
* change along with the {@link value} length.
|
|
698
|
+
*
|
|
699
|
+
* If you set this property value to false, you should ensure that the control has some
|
|
700
|
+
* reasonable *CSS width*.
|
|
701
|
+
*
|
|
702
|
+
* The default value for this property is **true**.
|
|
703
|
+
*/
|
|
704
|
+
autoWidth: boolean;
|
|
705
|
+
/**
|
|
706
|
+
* Gets or sets a zoom factor applied to the automatically calculated control width.
|
|
707
|
+
*
|
|
708
|
+
* This property makes effect only if the {@link autoWidth} property is set to true.
|
|
709
|
+
* It can take any numeric value equal or greater than 1.
|
|
710
|
+
*
|
|
711
|
+
* The default value for this property is **1**.
|
|
712
|
+
*/
|
|
713
|
+
autoWidthZoom: number;
|
|
714
|
+
/**
|
|
715
|
+
* Indicates whether to render the value under the symbol.
|
|
716
|
+
*
|
|
717
|
+
* The default value for this property is <b>true</b>.
|
|
718
|
+
*/
|
|
719
|
+
showLabel: boolean;
|
|
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 enable bearer bar (the thick black border) around the symbol.
|
|
729
|
+
*
|
|
730
|
+
*
|
|
731
|
+
* The default value for this property is <b>false</b>.
|
|
732
|
+
*/
|
|
733
|
+
bearerBar: boolean;
|
|
734
|
+
/**
|
|
735
|
+
* Gets or sets where to render the value of the control.
|
|
736
|
+
*
|
|
737
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
738
|
+
*/
|
|
739
|
+
labelPosition: LabelPosition;
|
|
740
|
+
/**
|
|
741
|
+
* Indicates whether to enable the check character.
|
|
742
|
+
* Since Interleaved2of5 requires an even number of digits to “interleave”
|
|
743
|
+
* numbers, the data encoded must be an odd number of digits when using a check
|
|
744
|
+
* character, thus resulting in the required even number of digits.
|
|
745
|
+
*
|
|
746
|
+
* The default value for this property is <b>false</b>.
|
|
747
|
+
*/
|
|
748
|
+
checkCharacter: boolean;
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* Represents the Japanese Postal barcode type and any particular settings of this type.
|
|
752
|
+
*/
|
|
753
|
+
export declare class JapanesePostal extends BarcodeBase {
|
|
754
|
+
static readonly type: string;
|
|
755
|
+
/**
|
|
756
|
+
* Initializes a new instance of the {@link JapanesePostal} class.
|
|
757
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
758
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
759
|
+
*/
|
|
760
|
+
constructor(element: any, option?: any);
|
|
761
|
+
/**
|
|
762
|
+
* Indicates whether to render the value under the symbol.
|
|
763
|
+
*
|
|
764
|
+
* The default value for this property is <b>true</b>.
|
|
765
|
+
*/
|
|
766
|
+
showLabel: boolean;
|
|
767
|
+
/**
|
|
768
|
+
* Gets or sets the position to render the value of the control.
|
|
769
|
+
*
|
|
770
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
771
|
+
*/
|
|
772
|
+
labelPosition: LabelPosition;
|
|
773
|
+
}
|