@mescius/wijmo.barcode.composite 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 +989 -0
- package/index.js +14 -0
- package/package.json +45 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,989 @@
|
|
|
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.composite}
|
|
15
|
+
* Implements controls for drawing popular composite barcode types.
|
|
16
|
+
*
|
|
17
|
+
* This module incorporates modified version of the
|
|
18
|
+
* <a href="https://www.npmjs.com/package/big-number" target="_blank">bignumber.js</a>
|
|
19
|
+
* library.
|
|
20
|
+
*/
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare var ___keepComment: any;
|
|
25
|
+
import { TwoDimensionalBarcode, OneDimensionalBarcode, BarcodeBase, LabelPosition, IVariableWidthBarcode } from '@grapecity/wijmo.barcode';
|
|
26
|
+
import * as selfModule from '@grapecity/wijmo.barcode.composite';
|
|
27
|
+
/**
|
|
28
|
+
* Structured append optional fields. Currently only supports segmentCount.
|
|
29
|
+
*/
|
|
30
|
+
export interface IOptionalFields {
|
|
31
|
+
/**
|
|
32
|
+
* Indicates whether the segment count field is used.
|
|
33
|
+
* The segment count field (identifying the total number of Structured Append symbols
|
|
34
|
+
* in the distributed file) can contain values from 1 to 99 999 and shall be encoded as two codewords. If the optional
|
|
35
|
+
* segment count field is used, that field shall appear in every segment.
|
|
36
|
+
*
|
|
37
|
+
* The default value for this property is <b>true</b>.
|
|
38
|
+
*/
|
|
39
|
+
segmentCount?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare class ISO646Encoder {
|
|
42
|
+
static Table: {
|
|
43
|
+
'!': string;
|
|
44
|
+
'"': string;
|
|
45
|
+
'%': string;
|
|
46
|
+
'&': string;
|
|
47
|
+
'\'': string;
|
|
48
|
+
'(': string;
|
|
49
|
+
')': string;
|
|
50
|
+
'*': string;
|
|
51
|
+
'+': string;
|
|
52
|
+
',': string;
|
|
53
|
+
'-': string;
|
|
54
|
+
'.': string;
|
|
55
|
+
'/': string;
|
|
56
|
+
':': string;
|
|
57
|
+
';': string;
|
|
58
|
+
'<': string;
|
|
59
|
+
'=': string;
|
|
60
|
+
'>': string;
|
|
61
|
+
'?': string;
|
|
62
|
+
'_': string;
|
|
63
|
+
' ': string;
|
|
64
|
+
'FNC1NumericLatch': string;
|
|
65
|
+
'NumericLatch': string;
|
|
66
|
+
'AlphanumericLatch': string;
|
|
67
|
+
};
|
|
68
|
+
static ISO646: string;
|
|
69
|
+
static isISO646Only(str: any): boolean;
|
|
70
|
+
protected bitBuffer: any;
|
|
71
|
+
constructor(bitBuffer: any);
|
|
72
|
+
encode(char: any): void;
|
|
73
|
+
FNC1NumericLatch(): void;
|
|
74
|
+
NumericLatch(): void;
|
|
75
|
+
AlphanumericLatch(): void;
|
|
76
|
+
}
|
|
77
|
+
export declare class AlphanumericEncoder {
|
|
78
|
+
static Table: {
|
|
79
|
+
'*': string;
|
|
80
|
+
',': string;
|
|
81
|
+
'-': string;
|
|
82
|
+
'.': string;
|
|
83
|
+
'/': string;
|
|
84
|
+
'FNC1NumericLatch': string;
|
|
85
|
+
'NumericLatch': string;
|
|
86
|
+
'ISO646Latch': string;
|
|
87
|
+
};
|
|
88
|
+
static isUpperCase(char: any): boolean;
|
|
89
|
+
static isLowerCase(char: any): boolean;
|
|
90
|
+
private bitBuffer;
|
|
91
|
+
constructor(bitBuffer: any);
|
|
92
|
+
encode(char: any): void;
|
|
93
|
+
FNC1NumericLatch(): void;
|
|
94
|
+
NumericLatch(): void;
|
|
95
|
+
ISO646Latch(): void;
|
|
96
|
+
}
|
|
97
|
+
export declare class NumericEncoder {
|
|
98
|
+
static isNumericOrFNC1(char: any): boolean;
|
|
99
|
+
static isNumeric(char: any): boolean;
|
|
100
|
+
protected bitBuffer: any;
|
|
101
|
+
constructor(bitBuffer: any);
|
|
102
|
+
encode(char1: any, char2: any): void;
|
|
103
|
+
encodeOne(char: any): void;
|
|
104
|
+
AlphanumericLatch(): void;
|
|
105
|
+
}
|
|
106
|
+
export declare class GS1GeneralPurposeDataEncodation {
|
|
107
|
+
static EncodeMod: {
|
|
108
|
+
Numeric: string;
|
|
109
|
+
Alphanumeric: string;
|
|
110
|
+
ISO646: string;
|
|
111
|
+
};
|
|
112
|
+
private text;
|
|
113
|
+
protected mode: any;
|
|
114
|
+
protected bitBuffer: any;
|
|
115
|
+
private needExtraPadding;
|
|
116
|
+
constructor(bitBuffer: any, needExtraPadding?: boolean);
|
|
117
|
+
encodeGeneralData(str: any): void;
|
|
118
|
+
padTo(size: any): void;
|
|
119
|
+
_pad(remain: any): void;
|
|
120
|
+
encode(text?: string): void;
|
|
121
|
+
}
|
|
122
|
+
export declare function encode928(bitString: any, codeWords: any, bitLng: any): any;
|
|
123
|
+
export declare function findVersionTable_CCA(table: any, func: any): any;
|
|
124
|
+
export declare function getVersionVariant_CCA(col: any, bits: any): any;
|
|
125
|
+
export declare function getSupportedUppercaseAlphabetic(letter: any): any;
|
|
126
|
+
export declare class GeneralPurposeDataEncodation extends GS1GeneralPurposeDataEncodation {
|
|
127
|
+
encodeGeneralData(str: any, columns?: any): void;
|
|
128
|
+
}
|
|
129
|
+
export declare function generateECC(codewords: any, ecl: any): any;
|
|
130
|
+
export declare function generateECCForMicro(codewords: any, eccCount: any): any;
|
|
131
|
+
export declare const SymbolVersion: {
|
|
132
|
+
ColumnPriorAuto: string;
|
|
133
|
+
RowPriorAuto: string;
|
|
134
|
+
V1X11: string;
|
|
135
|
+
V1X14: string;
|
|
136
|
+
V1X17: string;
|
|
137
|
+
V1X20: string;
|
|
138
|
+
V1X24: string;
|
|
139
|
+
V1X28: string;
|
|
140
|
+
V2X8: string;
|
|
141
|
+
V2X11: string;
|
|
142
|
+
V2X14: string;
|
|
143
|
+
V2X17: string;
|
|
144
|
+
V2X20: string;
|
|
145
|
+
V2X23: string;
|
|
146
|
+
V2X26: string;
|
|
147
|
+
V3X6: string;
|
|
148
|
+
V3X8: string;
|
|
149
|
+
V3X10: string;
|
|
150
|
+
V3X12: string;
|
|
151
|
+
V3X15: string;
|
|
152
|
+
V3X20: string;
|
|
153
|
+
V3X26: string;
|
|
154
|
+
V3X32: string;
|
|
155
|
+
V3X38: string;
|
|
156
|
+
V3X44: string;
|
|
157
|
+
V4X4: string;
|
|
158
|
+
V4X6: string;
|
|
159
|
+
V4X8: string;
|
|
160
|
+
V4X10: string;
|
|
161
|
+
V4X12: string;
|
|
162
|
+
V4X15: string;
|
|
163
|
+
V4X20: string;
|
|
164
|
+
V4X26: string;
|
|
165
|
+
V4X32: string;
|
|
166
|
+
V4X38: string;
|
|
167
|
+
V4X44: string;
|
|
168
|
+
};
|
|
169
|
+
export declare const CompactionMode: {
|
|
170
|
+
Auto: string;
|
|
171
|
+
Text: string;
|
|
172
|
+
Byte: string;
|
|
173
|
+
Numeric: string;
|
|
174
|
+
};
|
|
175
|
+
export declare const CLUSTERS: number[][];
|
|
176
|
+
export declare const subModeMap: {
|
|
177
|
+
ll: string;
|
|
178
|
+
ps: string;
|
|
179
|
+
ml: string;
|
|
180
|
+
al: string;
|
|
181
|
+
pl: string;
|
|
182
|
+
as: string;
|
|
183
|
+
};
|
|
184
|
+
export declare const MODE_TC = 900, MODE_BC = 901, MODE_NC = 902, MODE_BC6 = 924, MODE_BC_SHIFT = 913;
|
|
185
|
+
export declare function compaction(text: any, mode?: string): any[];
|
|
186
|
+
export declare function getIndicator(rowIndex: any, rowCount: any, ecl: any, col: any, isRight?: any): any;
|
|
187
|
+
export declare function getPattern_PDF417(row: any, value: any): number;
|
|
188
|
+
export declare function getTCValue(char: any, mode: any): any;
|
|
189
|
+
export declare function getTCSubModeValue(targetMode: any, lastMode: any): any;
|
|
190
|
+
export declare function createModules(row: any, col: any): any[];
|
|
191
|
+
export declare function getAutoECL(cws: any): 4 | 3 | 2 | 5;
|
|
192
|
+
export declare function getAutoRowAndCol(length: any): {
|
|
193
|
+
col: number;
|
|
194
|
+
row: any;
|
|
195
|
+
};
|
|
196
|
+
export declare function findVersionTable(table: any, func: any): any;
|
|
197
|
+
export declare function getVersionVariantColPrior(n: any): any;
|
|
198
|
+
export declare function getVersionVariantRowPrior(n: any): any;
|
|
199
|
+
export declare function getVersionVariant(row: any, col: any): any;
|
|
200
|
+
export declare function getVersionVariantByCol(col: any, n: any): any;
|
|
201
|
+
export declare function getECCBVersionVariantByCol(col: any, n: any): any;
|
|
202
|
+
export declare function getRowAddressPatterns(rowAssignment: any, type: any, i: any): any;
|
|
203
|
+
export declare function getPattern(n: any, value: any): number;
|
|
204
|
+
export declare class BigNumber {
|
|
205
|
+
private number;
|
|
206
|
+
private sign;
|
|
207
|
+
private rest;
|
|
208
|
+
constructor(initialNumber: any);
|
|
209
|
+
addDigit(digit: any): false | this;
|
|
210
|
+
isEven(): boolean;
|
|
211
|
+
private _compare;
|
|
212
|
+
gt(number: any): boolean;
|
|
213
|
+
gte(number: any): boolean;
|
|
214
|
+
equals(number: any): boolean;
|
|
215
|
+
lte(number: any): boolean;
|
|
216
|
+
lt(number: any): boolean;
|
|
217
|
+
add(number: any): any;
|
|
218
|
+
minus(number: any): this;
|
|
219
|
+
private static _add;
|
|
220
|
+
private static _subtract;
|
|
221
|
+
multiply(number: any): BigNumber;
|
|
222
|
+
divide(number: any): this;
|
|
223
|
+
mod(number: any): any;
|
|
224
|
+
power(number: any): BigNumber;
|
|
225
|
+
abs(): this;
|
|
226
|
+
isZero(): boolean;
|
|
227
|
+
toString(): string;
|
|
228
|
+
}
|
|
229
|
+
export declare abstract class PDF417Base extends TwoDimensionalBarcode {
|
|
230
|
+
static PAD: number;
|
|
231
|
+
protected text: any;
|
|
232
|
+
protected versionMeta: any;
|
|
233
|
+
protected columns: any;
|
|
234
|
+
protected data: any;
|
|
235
|
+
protected ecc: any;
|
|
236
|
+
protected rows: any;
|
|
237
|
+
private mainArea;
|
|
238
|
+
validate(): void;
|
|
239
|
+
encodeNC(group: any): any[];
|
|
240
|
+
encodeBC(group: any): any[];
|
|
241
|
+
encodeTC(group: any): number[];
|
|
242
|
+
encode(modes: any): any[];
|
|
243
|
+
convertToShape(matrix: any, forMeasure: any): void;
|
|
244
|
+
adjustDesiredSize(): void;
|
|
245
|
+
getMainArea(): any;
|
|
246
|
+
}
|
|
247
|
+
export declare class PDF417Encoder extends PDF417Base {
|
|
248
|
+
static DefaultConfig: {
|
|
249
|
+
errorCorrectionLevel: string;
|
|
250
|
+
columns: string;
|
|
251
|
+
rows: string;
|
|
252
|
+
compact: boolean;
|
|
253
|
+
height: number;
|
|
254
|
+
quietZone: {
|
|
255
|
+
top: number;
|
|
256
|
+
left: number;
|
|
257
|
+
right: number;
|
|
258
|
+
bottom: number;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
static START: string;
|
|
262
|
+
static END: string;
|
|
263
|
+
static COMPACT_END: string;
|
|
264
|
+
static MAX_DATA_NUM: number;
|
|
265
|
+
private ecl;
|
|
266
|
+
private compact;
|
|
267
|
+
constructor(option: any);
|
|
268
|
+
validate(): void;
|
|
269
|
+
genEcc(): void;
|
|
270
|
+
calculateData(): any[];
|
|
271
|
+
}
|
|
272
|
+
export declare class MicroPDF417Encoder extends PDF417Base {
|
|
273
|
+
static DefaultConfig: {
|
|
274
|
+
symbolVersion: string;
|
|
275
|
+
compactionMode: string;
|
|
276
|
+
structuredAppend: boolean;
|
|
277
|
+
segmentIndex: number;
|
|
278
|
+
fileID: number;
|
|
279
|
+
height: number;
|
|
280
|
+
quietZone: {
|
|
281
|
+
top: number;
|
|
282
|
+
left: number;
|
|
283
|
+
right: number;
|
|
284
|
+
bottom: number;
|
|
285
|
+
};
|
|
286
|
+
optionalFields: {
|
|
287
|
+
segmentCount: boolean;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
static StopBar: string;
|
|
291
|
+
static StructuredAppendMarker: number;
|
|
292
|
+
static StructuredAppendOptionalFieldsMarker: number;
|
|
293
|
+
static StructuredAppendTerminator: number;
|
|
294
|
+
static StructuredAppendOptionalFieldTags: {
|
|
295
|
+
SegmentCount: number;
|
|
296
|
+
};
|
|
297
|
+
private symbolVersion;
|
|
298
|
+
private compactionMode;
|
|
299
|
+
private structuredAppendEnabled;
|
|
300
|
+
private segmentIndex;
|
|
301
|
+
private fileID;
|
|
302
|
+
private optionalFields;
|
|
303
|
+
private segmentCount;
|
|
304
|
+
private structuredAppendCws;
|
|
305
|
+
constructor(option: any);
|
|
306
|
+
validate(): void;
|
|
307
|
+
_buildRow(row: any, rowIndex: any): any[];
|
|
308
|
+
_buildStructAppend(): number[];
|
|
309
|
+
_splitStruct(data: any): any;
|
|
310
|
+
genEcc(): void;
|
|
311
|
+
calculateData(): any[];
|
|
312
|
+
}
|
|
313
|
+
export declare class CCA extends PDF417Base {
|
|
314
|
+
protected bitBuffer: any;
|
|
315
|
+
private aiGroup;
|
|
316
|
+
private method;
|
|
317
|
+
private _gpdEncodation;
|
|
318
|
+
private autoHeight;
|
|
319
|
+
constructor(linkageText: any, columns: number, unitSize: number, height: any);
|
|
320
|
+
_buildRow(row: any, rowIndex: any): any[];
|
|
321
|
+
_encode_10Date(str: any): void;
|
|
322
|
+
_getMethod_11Mode(str: any): "Numeric" | "Alphanumeric" | "Alpha";
|
|
323
|
+
_encode_11(): string;
|
|
324
|
+
_encode_10(): string;
|
|
325
|
+
_encode_0(): any;
|
|
326
|
+
_encodeMethod(): void;
|
|
327
|
+
getVersionVariant(): void;
|
|
328
|
+
_encode(): void;
|
|
329
|
+
genEcc(): void;
|
|
330
|
+
calculateData(): any[];
|
|
331
|
+
}
|
|
332
|
+
export declare class CCB extends MicroPDF417Encoder {
|
|
333
|
+
private bytes;
|
|
334
|
+
private autoHeight;
|
|
335
|
+
constructor(linkageText: any, columns: number, unitSize: number, height: any);
|
|
336
|
+
genEcc(): void;
|
|
337
|
+
encode(): any[];
|
|
338
|
+
calculateData(): any[];
|
|
339
|
+
}
|
|
340
|
+
export declare abstract class GS1DataBarBase extends OneDimensionalBarcode {
|
|
341
|
+
static DefaultConfig: {
|
|
342
|
+
linkage: string;
|
|
343
|
+
linkageVersion: string;
|
|
344
|
+
hideLinkageText: boolean;
|
|
345
|
+
hideAIText: boolean;
|
|
346
|
+
};
|
|
347
|
+
static LinkageVersion: {
|
|
348
|
+
CCA: string;
|
|
349
|
+
CCB: string;
|
|
350
|
+
};
|
|
351
|
+
static combins(n: any, r: any): any;
|
|
352
|
+
static getRSSwidths(val: any, n: any, elements: any, maxWidth: any, noNarrow: any): any[];
|
|
353
|
+
static getRSSvalue(widths: any, elements: any, maxWidth: any, noNarrow: any): number;
|
|
354
|
+
static getGroup(collection: any, value: any): {
|
|
355
|
+
range: {
|
|
356
|
+
from: any;
|
|
357
|
+
to: any;
|
|
358
|
+
};
|
|
359
|
+
preTotal: any;
|
|
360
|
+
oddModules: any;
|
|
361
|
+
evenModules: any;
|
|
362
|
+
oddElements: any;
|
|
363
|
+
evenElements: any;
|
|
364
|
+
oddTotal: any;
|
|
365
|
+
evenTotal: any;
|
|
366
|
+
};
|
|
367
|
+
static getChecksum(width: any, weights: any): any;
|
|
368
|
+
static makeComplementPattern(str: any): string;
|
|
369
|
+
static makeAlternatePattern(length: any, spaceFirst?: any): string;
|
|
370
|
+
static makeComplexPattern(str: any): string;
|
|
371
|
+
protected linkageText: any;
|
|
372
|
+
protected linkage: any;
|
|
373
|
+
protected hideLinkageText: any;
|
|
374
|
+
protected hideAIText: any;
|
|
375
|
+
protected linkageColumnCnt: any;
|
|
376
|
+
constructor(option: any);
|
|
377
|
+
convertToShape(data: any, forMeasure: any): void;
|
|
378
|
+
getLinkageOffset(data: any, linkageWidth: any): void;
|
|
379
|
+
getLinkageSepPattern(data?: any): void;
|
|
380
|
+
_convertToShapeForLinkage(data: any, forMeasure: any): void;
|
|
381
|
+
}
|
|
382
|
+
export declare class Expanded extends GS1DataBarBase {
|
|
383
|
+
static Guard: number[];
|
|
384
|
+
static Group: number[][];
|
|
385
|
+
static FinderPattern: {
|
|
386
|
+
A1: number[];
|
|
387
|
+
B1: number[];
|
|
388
|
+
C1: number[];
|
|
389
|
+
D1: number[];
|
|
390
|
+
E1: number[];
|
|
391
|
+
F1: number[];
|
|
392
|
+
A2: number[];
|
|
393
|
+
B2: number[];
|
|
394
|
+
C2: number[];
|
|
395
|
+
D2: number[];
|
|
396
|
+
E2: number[];
|
|
397
|
+
F2: number[];
|
|
398
|
+
};
|
|
399
|
+
static ChecksumWeight: {
|
|
400
|
+
A1: {
|
|
401
|
+
right: number[];
|
|
402
|
+
};
|
|
403
|
+
A2: {
|
|
404
|
+
left: number[];
|
|
405
|
+
right: number[];
|
|
406
|
+
};
|
|
407
|
+
B1: {
|
|
408
|
+
left: number[];
|
|
409
|
+
right: number[];
|
|
410
|
+
};
|
|
411
|
+
B2: {
|
|
412
|
+
left: number[];
|
|
413
|
+
right: number[];
|
|
414
|
+
};
|
|
415
|
+
C1: {
|
|
416
|
+
left: number[];
|
|
417
|
+
right: number[];
|
|
418
|
+
};
|
|
419
|
+
C2: {
|
|
420
|
+
left: number[];
|
|
421
|
+
right: number[];
|
|
422
|
+
};
|
|
423
|
+
D1: {
|
|
424
|
+
left: number[];
|
|
425
|
+
right: number[];
|
|
426
|
+
};
|
|
427
|
+
D2: {
|
|
428
|
+
left: number[];
|
|
429
|
+
right: number[];
|
|
430
|
+
};
|
|
431
|
+
E1: {
|
|
432
|
+
left: number[];
|
|
433
|
+
right: number[];
|
|
434
|
+
};
|
|
435
|
+
E2: {
|
|
436
|
+
left: number[];
|
|
437
|
+
right: number[];
|
|
438
|
+
};
|
|
439
|
+
F1: {
|
|
440
|
+
left: number[];
|
|
441
|
+
right: number[];
|
|
442
|
+
};
|
|
443
|
+
F2: {
|
|
444
|
+
left: number[];
|
|
445
|
+
right: number[];
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
static FinderPatternSeq: string[][];
|
|
449
|
+
static getFinderPatternSeq(symbolCnt: any): string[];
|
|
450
|
+
static isVersion1Finder(n: any): boolean;
|
|
451
|
+
static MethodReg_0100: RegExp;
|
|
452
|
+
static MethodReg_0101: RegExp;
|
|
453
|
+
static MethodReg_0111000_0111111: RegExp;
|
|
454
|
+
static MethodReg_01100: RegExp;
|
|
455
|
+
static MethodReg_01101: RegExp;
|
|
456
|
+
static MethodReg_1: RegExp;
|
|
457
|
+
protected _bitBuffer: any;
|
|
458
|
+
protected _gpdEncodation: any;
|
|
459
|
+
protected finderPatternSeq: any;
|
|
460
|
+
protected symbolContentSize: any;
|
|
461
|
+
constructor(option: any);
|
|
462
|
+
_getSubsetWidth(number: any, orderLeftToRight?: boolean): any[];
|
|
463
|
+
_getChecksum(widths: any): number;
|
|
464
|
+
_getContent(dataWidths: any): any[];
|
|
465
|
+
_addLength(methodLength: any): void;
|
|
466
|
+
_encode(): void;
|
|
467
|
+
_encode_1(): void;
|
|
468
|
+
_encode_0100(): void;
|
|
469
|
+
_encode_0101(): void;
|
|
470
|
+
_encode_0111000_0111111(): void;
|
|
471
|
+
_encode_01100(): void;
|
|
472
|
+
_encode_01101(): void;
|
|
473
|
+
_encode_00(): void;
|
|
474
|
+
makeDataWidth(): any[];
|
|
475
|
+
calculateData(): any;
|
|
476
|
+
getLinkageSepPattern(data: any): string;
|
|
477
|
+
getLinkageOffset(data: any): {
|
|
478
|
+
linkageOffset: number;
|
|
479
|
+
symbolOffset: number;
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
export declare class GS1DataBarFirstType extends GS1DataBarBase {
|
|
483
|
+
static LeftGuard: string;
|
|
484
|
+
static RightGuard: string;
|
|
485
|
+
static Group: {
|
|
486
|
+
OutSide: number[][];
|
|
487
|
+
InSide: number[][];
|
|
488
|
+
};
|
|
489
|
+
static ChecksumWeight: number[][];
|
|
490
|
+
static FinderPattern: number[][];
|
|
491
|
+
protected linkageColumnCnt: any;
|
|
492
|
+
constructor(option: any);
|
|
493
|
+
validate(): void;
|
|
494
|
+
_getCheckDigit(text: any): number;
|
|
495
|
+
_getSubsetWidth(data: any, isInside: any): any[];
|
|
496
|
+
_getFinderPatternWidth(value: any): any;
|
|
497
|
+
_getChecksum({ width1, width2, width3, width4 }: {
|
|
498
|
+
width1: any;
|
|
499
|
+
width2: any;
|
|
500
|
+
width3: any;
|
|
501
|
+
width4: any;
|
|
502
|
+
}): number;
|
|
503
|
+
_getSymbolCharacterWidth(symbolValue: any): {
|
|
504
|
+
width1: any[];
|
|
505
|
+
width2: any[];
|
|
506
|
+
width3: any[];
|
|
507
|
+
width4: any[];
|
|
508
|
+
};
|
|
509
|
+
getSymbolStructure(): {
|
|
510
|
+
width1: any[];
|
|
511
|
+
width2: any[];
|
|
512
|
+
width3: any[];
|
|
513
|
+
width4: any[];
|
|
514
|
+
leftFinderPattern: any;
|
|
515
|
+
rightFinderPattern: any;
|
|
516
|
+
};
|
|
517
|
+
getLinkageSepPattern(str: any): string;
|
|
518
|
+
calculateData(): string;
|
|
519
|
+
}
|
|
520
|
+
export declare class Limited extends GS1DataBarFirstType {
|
|
521
|
+
static LeftGuard: string;
|
|
522
|
+
static RightGuard: string;
|
|
523
|
+
static Group: any;
|
|
524
|
+
static ChecksumWeight: number[][];
|
|
525
|
+
static ChecksumWidth: number[][];
|
|
526
|
+
linkageColumnCnt: number;
|
|
527
|
+
_getSubsetWidth(number: any): any[];
|
|
528
|
+
_getChecksum({ leftWidth, rightWidth }: any): number;
|
|
529
|
+
_getSymbolCharacterWidth(number: any): any;
|
|
530
|
+
getLinkageSepPattern(str: any): string;
|
|
531
|
+
getSymbolStructure(): any;
|
|
532
|
+
getLinkageOffset(data: any, linkageWidth: any): {
|
|
533
|
+
linkageOffset: number;
|
|
534
|
+
symbolOffset: number;
|
|
535
|
+
};
|
|
536
|
+
calculateData(): string;
|
|
537
|
+
}
|
|
538
|
+
export declare abstract class StackedBase extends GS1DataBarFirstType {
|
|
539
|
+
static DefaultConfig: any;
|
|
540
|
+
constructor(option: any);
|
|
541
|
+
static RightGuard: string;
|
|
542
|
+
static LeftGuard: string;
|
|
543
|
+
calculateData(): any;
|
|
544
|
+
abstract getSeparator(topRow: any, bottomRow: any): any;
|
|
545
|
+
getLinkageSepPattern(str: any): string;
|
|
546
|
+
convertToShape(data: any, forMeasure: any): void;
|
|
547
|
+
getLinkageOffset(data: any): {
|
|
548
|
+
linkageOffset: number;
|
|
549
|
+
symbolOffset: number;
|
|
550
|
+
};
|
|
551
|
+
_convertToShapeForLinkage(data: any, forMeasure: any): void;
|
|
552
|
+
_convertToShape(data: any, forMeasure: any): void;
|
|
553
|
+
}
|
|
554
|
+
export declare class ExpandedStacked extends Expanded {
|
|
555
|
+
static DefaultConfig: any;
|
|
556
|
+
static SegmentWidth: number;
|
|
557
|
+
static SegmentSize: number;
|
|
558
|
+
private _hasExtraPadding;
|
|
559
|
+
protected rowCount: any;
|
|
560
|
+
protected rowSegmentCount: any;
|
|
561
|
+
constructor(option: any);
|
|
562
|
+
_makeStacked(content: any): any;
|
|
563
|
+
_isVersion1Finder(prevFinderCnt: any, i: any): boolean;
|
|
564
|
+
_makeSepPattern(str: any, prevFinderCnt: any): string;
|
|
565
|
+
_getSeparators(topRow: any, bottomRow: any, index: any): {
|
|
566
|
+
pattern: string;
|
|
567
|
+
}[];
|
|
568
|
+
calculateData(): any;
|
|
569
|
+
getLinkageOffset(data: any): {
|
|
570
|
+
linkageOffset: number;
|
|
571
|
+
symbolOffset: number;
|
|
572
|
+
};
|
|
573
|
+
convertToShape(data: any, forMeasure: any): void;
|
|
574
|
+
_convertToShapeForLinkage(data: any, forMeasure: any): void;
|
|
575
|
+
_convertToShape(data: any, forMeasure: any): void;
|
|
576
|
+
}
|
|
577
|
+
export declare class StackedOmnidirectional extends StackedBase {
|
|
578
|
+
getSeparator(topRow: any, bottomRow: any): any[];
|
|
579
|
+
}
|
|
580
|
+
export declare class Stacked extends StackedBase {
|
|
581
|
+
static DefaultConfig: any;
|
|
582
|
+
constructor(option: any);
|
|
583
|
+
getSeparator(topRow: any, bottomRow: any): string[];
|
|
584
|
+
}
|
|
585
|
+
export declare class Omnidirectional extends GS1DataBarFirstType {
|
|
586
|
+
getLinkageOffset(data: any, linkageWidth: any): {
|
|
587
|
+
linkageOffset: number;
|
|
588
|
+
symbolOffset: number;
|
|
589
|
+
};
|
|
590
|
+
}
|
|
591
|
+
export declare class Truncated extends Omnidirectional {
|
|
592
|
+
static DefaultConfig: any;
|
|
593
|
+
constructor(option: any);
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Defines the composite barcode component symbology that can be used in linkage.
|
|
597
|
+
*/
|
|
598
|
+
export declare enum Gs1DataBarLinkageVersion {
|
|
599
|
+
/** CCA components have two ,three ,or four data columns, and range in size from three to twelve rows high.*/
|
|
600
|
+
Cca = 0,
|
|
601
|
+
/** CCB is multi-row symbology component which can encode up to 338 digits.
|
|
602
|
+
* CCB components have two, three, or four data columns, and range in size from 4 to 44 rows high.
|
|
603
|
+
*/
|
|
604
|
+
Ccb = 1
|
|
605
|
+
}
|
|
606
|
+
/** Defines symbology of MicroPDF encoding method*/
|
|
607
|
+
export declare enum MicroPdfCompactionMode {
|
|
608
|
+
/** */
|
|
609
|
+
Auto = 0,
|
|
610
|
+
/** Include all printable ASCII characters and three ASCII control characters. */
|
|
611
|
+
Text = 1,
|
|
612
|
+
/** 8-bit bytes*/
|
|
613
|
+
Numeric = 2,
|
|
614
|
+
/** Long strings of consecutive numeric digits*/
|
|
615
|
+
Byte = 3
|
|
616
|
+
}
|
|
617
|
+
/** Defines the symbol row and column count*/
|
|
618
|
+
export declare enum MicroPdfDimensions {
|
|
619
|
+
ColumnPriority = 0,
|
|
620
|
+
RowPriority = 1,
|
|
621
|
+
Dim1x11 = 2,
|
|
622
|
+
Dim1x14 = 3,
|
|
623
|
+
Dim1x17 = 4,
|
|
624
|
+
Dim1x20 = 5,
|
|
625
|
+
Dim1x24 = 6,
|
|
626
|
+
Dim1x28 = 7,
|
|
627
|
+
Dim2x8 = 8,
|
|
628
|
+
Dim2x11 = 9,
|
|
629
|
+
Dim2x14 = 10,
|
|
630
|
+
Dim2x17 = 11,
|
|
631
|
+
Dim2x20 = 12,
|
|
632
|
+
Dim2x23 = 13,
|
|
633
|
+
Dim2x26 = 14,
|
|
634
|
+
Dim3x6 = 15,
|
|
635
|
+
Dim3x8 = 16,
|
|
636
|
+
Dim3x10 = 17,
|
|
637
|
+
Dim3x12 = 18,
|
|
638
|
+
Dim3x15 = 19,
|
|
639
|
+
Dim3x20 = 20,
|
|
640
|
+
Dim3x26 = 21,
|
|
641
|
+
Dim3x32 = 22,
|
|
642
|
+
Dim3x38 = 23,
|
|
643
|
+
Dim3x44 = 24,
|
|
644
|
+
Dim4x4 = 25,
|
|
645
|
+
Dim4x6 = 26,
|
|
646
|
+
Dim4x8 = 27,
|
|
647
|
+
Dim4x10 = 28,
|
|
648
|
+
Dim4x12 = 29,
|
|
649
|
+
Dim4x15 = 30,
|
|
650
|
+
Dim4x20 = 31,
|
|
651
|
+
Dim4x26 = 32,
|
|
652
|
+
Dim4x32 = 33,
|
|
653
|
+
Dim4x38 = 34,
|
|
654
|
+
Dim4x44 = 35
|
|
655
|
+
}
|
|
656
|
+
export declare class _LinkageVersionConvertor {
|
|
657
|
+
static stringToEnum(value: any): number;
|
|
658
|
+
static enumToString(value: any): string;
|
|
659
|
+
}
|
|
660
|
+
export declare class _CompactionModeConvertor {
|
|
661
|
+
static stringToEnum(value: any): number;
|
|
662
|
+
static enumToString(value: any): string;
|
|
663
|
+
}
|
|
664
|
+
export declare function _MicroPdfDimensionsConvertor(enumStr: string): string;
|
|
665
|
+
/**
|
|
666
|
+
* Base abstract class for all GS1 DataBar control classes.
|
|
667
|
+
*/
|
|
668
|
+
export declare abstract class Gs1DataBarBase extends BarcodeBase {
|
|
669
|
+
/**
|
|
670
|
+
* Abstract class constructor; never called.
|
|
671
|
+
*/
|
|
672
|
+
constructor(element: any, option?: any);
|
|
673
|
+
protected static _getClassDefaults(): any;
|
|
674
|
+
/**
|
|
675
|
+
* Indicates whether the value is rendered under the symbol.
|
|
676
|
+
*
|
|
677
|
+
* The default value for this property is <b>true</b>.
|
|
678
|
+
*/
|
|
679
|
+
showLabel: boolean;
|
|
680
|
+
/**
|
|
681
|
+
* Gets or sets where to render the value of the control.
|
|
682
|
+
*
|
|
683
|
+
* The default value for this property is {@link LabelPosition.Bottom}.
|
|
684
|
+
*/
|
|
685
|
+
labelPosition: LabelPosition;
|
|
686
|
+
/**
|
|
687
|
+
* Gets or sets a 2D Composite Component and its separator pattern are printed
|
|
688
|
+
* above the GS1 DataBar symbol with the separator pattern aligned
|
|
689
|
+
* and contiguous to the GS1 DataBar symbol.
|
|
690
|
+
*/
|
|
691
|
+
linkage: string;
|
|
692
|
+
/**
|
|
693
|
+
* Gets or sets the composite barcode component that can be used in linkage.
|
|
694
|
+
*
|
|
695
|
+
* The default value for this property is {@link Gs1DataBarLinkageVersion.Cca}.
|
|
696
|
+
*/
|
|
697
|
+
linkageVersion: Gs1DataBarLinkageVersion;
|
|
698
|
+
/**Gets or sets the linkage symbol height. */
|
|
699
|
+
linkageHeight: string | number;
|
|
700
|
+
/**
|
|
701
|
+
* Indicates whether to show the linkage in the label text.
|
|
702
|
+
*
|
|
703
|
+
* The default value for this property is <b>false</b>.
|
|
704
|
+
*/
|
|
705
|
+
hideLinkageText: boolean;
|
|
706
|
+
/**
|
|
707
|
+
* Indicates whether to show the Application Identifier in the label text.
|
|
708
|
+
*
|
|
709
|
+
* The default value for this property is <b>false</b>.
|
|
710
|
+
*/
|
|
711
|
+
hideAiText: boolean;
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/GS1_DataBar" target="_blank">GS1 DataBar</a>
|
|
715
|
+
* barcode type.
|
|
716
|
+
*/
|
|
717
|
+
export declare class Gs1DataBarOmnidirectional extends Gs1DataBarBase {
|
|
718
|
+
static readonly type: string;
|
|
719
|
+
/**
|
|
720
|
+
* Initializes a new instance of the {@link Gs1DataBarOmnidirectional} class.
|
|
721
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
722
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
723
|
+
*/
|
|
724
|
+
constructor(element: any, option?: any);
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/GS1_DataBar" target="_blank">GS1 DataBar</a>
|
|
728
|
+
* barcode type.
|
|
729
|
+
*/
|
|
730
|
+
export declare class Gs1DataBarTruncated extends Gs1DataBarBase {
|
|
731
|
+
static readonly type: string;
|
|
732
|
+
/**
|
|
733
|
+
* Initializes a new instance of the {@link Gs1DataBarTruncated} class.
|
|
734
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
735
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
736
|
+
*/
|
|
737
|
+
constructor(element: any, option?: any);
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/GS1_DataBar" target="_blank">GS1 DataBar</a>
|
|
741
|
+
* barcode type.
|
|
742
|
+
*/
|
|
743
|
+
export declare class Gs1DataBarStacked extends Gs1DataBarBase {
|
|
744
|
+
static readonly type: string;
|
|
745
|
+
/**
|
|
746
|
+
* Initializes a new instance of the {@link Gs1DataBarStacked} 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 the height of symbol top row ratio; supports any number.
|
|
753
|
+
*
|
|
754
|
+
* The default value for this property is <b>0.4</b>.
|
|
755
|
+
*/
|
|
756
|
+
ratio: number;
|
|
757
|
+
}
|
|
758
|
+
/**
|
|
759
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/GS1_DataBar" target="_blank">GS1 DataBar</a>
|
|
760
|
+
* barcode type.
|
|
761
|
+
*/
|
|
762
|
+
export declare class Gs1DataBarStackedOmnidirectional extends Gs1DataBarBase {
|
|
763
|
+
static readonly type: string;
|
|
764
|
+
/**
|
|
765
|
+
* Initializes a new instance of the {@link Gs1DataBarStackedOmnidirectional} class.
|
|
766
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
767
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
768
|
+
*/
|
|
769
|
+
constructor(element: any, option?: any);
|
|
770
|
+
/**
|
|
771
|
+
* Gets or sets the height of symbol top row ratio; supports any number.
|
|
772
|
+
*
|
|
773
|
+
* The default value for this property is <b>0.4</b>.
|
|
774
|
+
*/
|
|
775
|
+
ratio: number;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/GS1_DataBar" target="_blank">GS1 DataBar</a>
|
|
779
|
+
* barcode type.
|
|
780
|
+
*/
|
|
781
|
+
export declare class Gs1DataBarLimited extends Gs1DataBarBase {
|
|
782
|
+
static readonly type: string;
|
|
783
|
+
/**
|
|
784
|
+
* Initializes a new instance of the {@link Gs1DataBarLimited} class.
|
|
785
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
786
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
787
|
+
*/
|
|
788
|
+
constructor(element: any, option?: any);
|
|
789
|
+
}
|
|
790
|
+
/**
|
|
791
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/GS1_DataBar" target="_blank">GS1 DataBar</a>
|
|
792
|
+
* barcode type.
|
|
793
|
+
*
|
|
794
|
+
* This is a variable width barcode, the width of which automatically changes
|
|
795
|
+
* along with the length of the {@link value}. The {@link autoWidthZoom} property
|
|
796
|
+
* can be used to zoom the automatically calculated width. The {@link autoWidth}
|
|
797
|
+
* property can be used to disable this behavior.
|
|
798
|
+
*/
|
|
799
|
+
export declare class Gs1DataBarExpanded extends Gs1DataBarBase implements IVariableWidthBarcode {
|
|
800
|
+
static readonly type: string;
|
|
801
|
+
/**
|
|
802
|
+
* Initializes a new instance of the {@link Gs1DataBarExpanded} class.
|
|
803
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
804
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
805
|
+
*/
|
|
806
|
+
constructor(element: any, option?: any);
|
|
807
|
+
/**
|
|
808
|
+
* Gets or sets a value indicating whether the control width should automatically
|
|
809
|
+
* change along with the {@link value} length.
|
|
810
|
+
*
|
|
811
|
+
* If you set this property value to false, you should ensure that the control has some
|
|
812
|
+
* reasonable *CSS width*.
|
|
813
|
+
*
|
|
814
|
+
* The default value for this property is **true**.
|
|
815
|
+
*/
|
|
816
|
+
autoWidth: boolean;
|
|
817
|
+
/**
|
|
818
|
+
* Gets or sets a zoom factor applied to the automatically calculated control width.
|
|
819
|
+
*
|
|
820
|
+
* This property makes effect only if the {@link autoWidth} property is set to true.
|
|
821
|
+
* It can take any numeric value equal or greater than 1.
|
|
822
|
+
*
|
|
823
|
+
* The default value for this property is **1**.
|
|
824
|
+
*/
|
|
825
|
+
autoWidthZoom: number;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/GS1_DataBar" target="_blank">GS1 DataBar</a>
|
|
829
|
+
* barcode type.
|
|
830
|
+
*
|
|
831
|
+
* This is a variable-width barcode, the width of which automatically changes
|
|
832
|
+
* along with the length of the {@link value}. The {@link autoWidthZoom} property
|
|
833
|
+
* can be used to zoom the automatically calculated width. The {@link autoWidth}
|
|
834
|
+
* property can be used to disable this behavior.
|
|
835
|
+
*/
|
|
836
|
+
export declare class Gs1DataBarExpandedStacked extends Gs1DataBarBase implements IVariableWidthBarcode {
|
|
837
|
+
static readonly type: string;
|
|
838
|
+
/**
|
|
839
|
+
* Initializes a new instance of the {@link Gs1DataBarExpandedStacked} class.
|
|
840
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
841
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
842
|
+
*/
|
|
843
|
+
constructor(element: any, option?: any);
|
|
844
|
+
/**
|
|
845
|
+
* Gets or sets a value indicating whether the control width should automatically
|
|
846
|
+
* change along with the {@link value} length.
|
|
847
|
+
*
|
|
848
|
+
* If you set this property value to false, you should ensure that the control has some
|
|
849
|
+
* reasonable *CSS width*.
|
|
850
|
+
*
|
|
851
|
+
* The default value for this property is **true**.
|
|
852
|
+
*/
|
|
853
|
+
autoWidth: boolean;
|
|
854
|
+
/**
|
|
855
|
+
* Gets or sets a zoom factor applied to the automatically calculated control width.
|
|
856
|
+
*
|
|
857
|
+
* This property makes effect only if the {@link autoWidth} property is set to true.
|
|
858
|
+
* It can take any numeric value equal or greater than 1.
|
|
859
|
+
*
|
|
860
|
+
* The default value for this property is **1**.
|
|
861
|
+
*/
|
|
862
|
+
autoWidthZoom: number;
|
|
863
|
+
/**
|
|
864
|
+
* Gets or sets how many row count of the RSS Expanded will be stacked in.
|
|
865
|
+
*
|
|
866
|
+
* The default value for this property is <b>null</b> or <b>undefined</b>.
|
|
867
|
+
*/
|
|
868
|
+
rowCount: number;
|
|
869
|
+
}
|
|
870
|
+
/**
|
|
871
|
+
* Represents a control for drawing <a href="https://en.wikipedia.org/wiki/PDF417" target="_blank">PDF417</a>
|
|
872
|
+
* barcode type.
|
|
873
|
+
*
|
|
874
|
+
* This is a variable-width barcode, the width of which automatically changes
|
|
875
|
+
* along with the length of the {@link value}. The {@link autoWidthZoom} property
|
|
876
|
+
* can be used to zoom the automatically calculated width. The {@link autoWidth}
|
|
877
|
+
* property can be used to disable this behavior.
|
|
878
|
+
*/
|
|
879
|
+
export declare class Pdf417 extends BarcodeBase implements IVariableWidthBarcode {
|
|
880
|
+
static readonly type: string;
|
|
881
|
+
/**
|
|
882
|
+
* Initializes a new instance of the {@link Pdf417} class.
|
|
883
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
884
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
885
|
+
*/
|
|
886
|
+
constructor(element: any, option?: any);
|
|
887
|
+
/**
|
|
888
|
+
* Gets or sets a value indicating whether the control width should automatically
|
|
889
|
+
* change along with the {@link value} length.
|
|
890
|
+
*
|
|
891
|
+
* If you set this property value to false, you should ensure that the control has some
|
|
892
|
+
* reasonable *CSS width*.
|
|
893
|
+
*
|
|
894
|
+
* The default value for this property is **true**.
|
|
895
|
+
*/
|
|
896
|
+
autoWidth: boolean;
|
|
897
|
+
/**
|
|
898
|
+
* Gets or sets a zoom factor applied to the automatically calculated control width.
|
|
899
|
+
*
|
|
900
|
+
* This property makes effect only if the {@link autoWidth} property is set to true.
|
|
901
|
+
* It can take any numeric value equal or greater than 1.
|
|
902
|
+
*
|
|
903
|
+
* The default value for this property is **1**.
|
|
904
|
+
*/
|
|
905
|
+
autoWidthZoom: number;
|
|
906
|
+
/**
|
|
907
|
+
* Gets or sets the error correction level of this control.
|
|
908
|
+
* PDF417 symbology supports 9 levels of error correction,
|
|
909
|
+
* with 0 being the least thorough and 8 being the most thorough.
|
|
910
|
+
* When the correction level is set to 0, very little redundant information is encoded and the scanner
|
|
911
|
+
* can perform little more than correct for the very simplest of errors.
|
|
912
|
+
* When set to 8, significant scanning problems can be corrected.
|
|
913
|
+
* The default error correction for PDF417 is "auto." This automatically specifies a
|
|
914
|
+
* correction level based on the amount of information encoded into each PDF417 symbol.
|
|
915
|
+
*
|
|
916
|
+
* The possible property values are null | undefined | 0 - 8.
|
|
917
|
+
* The default value for this property is <b>null</b> or <b>undefined</b>.
|
|
918
|
+
*/
|
|
919
|
+
errorCorrectionLevel: number;
|
|
920
|
+
/**
|
|
921
|
+
* Gets or sets the number of columns in the symbol.
|
|
922
|
+
*
|
|
923
|
+
* The possible property values are null | undefined | 0 - 30.
|
|
924
|
+
* The default value for this property is <b>null</b> or <b>undefined</b>.
|
|
925
|
+
*/
|
|
926
|
+
columns: number;
|
|
927
|
+
/**
|
|
928
|
+
* Gets or sets the number of rows in the symbol.
|
|
929
|
+
*
|
|
930
|
+
* The possible property values are null | undefined | 3 - 90.
|
|
931
|
+
* The default value for this property is <b>null</b> or <b>undefined</b>.
|
|
932
|
+
*/
|
|
933
|
+
rows: number;
|
|
934
|
+
/**
|
|
935
|
+
* Indicates whether it is a compact PDF417 symbol.
|
|
936
|
+
*
|
|
937
|
+
* The default value for this property is <b>false</b>.
|
|
938
|
+
*/
|
|
939
|
+
compact: boolean;
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* Represents a control for drawing <a href="https://www.iso.org/standard/38838.html" target="_blank">MicroPDF417</a>
|
|
943
|
+
* barcode type.
|
|
944
|
+
*/
|
|
945
|
+
export declare class MicroPdf417 extends BarcodeBase {
|
|
946
|
+
static readonly type: string;
|
|
947
|
+
private static _dimensionsDictionary;
|
|
948
|
+
/**
|
|
949
|
+
* Initializes a new instance of the {@link MicroPdf417} class.
|
|
950
|
+
* @param element The DOM element that hosts the control, or a selector for the host element (e.g. '#theCtrl').
|
|
951
|
+
* @param option The JavaScript object containing initialization data for the control.
|
|
952
|
+
*/
|
|
953
|
+
constructor(element: any, option?: any);
|
|
954
|
+
private static _getEnumDictionary;
|
|
955
|
+
/**
|
|
956
|
+
* Gets or sets the symbol row and column count.
|
|
957
|
+
*
|
|
958
|
+
* The default value for this property is {@link MicroPdfDimensions.ColumnPriority}.
|
|
959
|
+
*/
|
|
960
|
+
dimensions: MicroPdfDimensions;
|
|
961
|
+
/**
|
|
962
|
+
* Gets or sets the symbol encode method.
|
|
963
|
+
*
|
|
964
|
+
* The default value for this property is {@link MicroPdfCompactionMode.Auto}.
|
|
965
|
+
*/
|
|
966
|
+
compactionMode: MicroPdfCompactionMode;
|
|
967
|
+
/**
|
|
968
|
+
* Indicates whether the structure append is enabled.
|
|
969
|
+
*
|
|
970
|
+
* The default value for this property is <b>false</b>.
|
|
971
|
+
*/
|
|
972
|
+
structuredAppend: boolean;
|
|
973
|
+
/**
|
|
974
|
+
* Gets or sets the structure append index.
|
|
975
|
+
*
|
|
976
|
+
* The default value for this property is <b>0</b>.
|
|
977
|
+
*/
|
|
978
|
+
segmentIndex: number;
|
|
979
|
+
/**
|
|
980
|
+
* Gets or sets the structure file ID.
|
|
981
|
+
*
|
|
982
|
+
* The default value for this property is <b>0</b>.
|
|
983
|
+
*/
|
|
984
|
+
fileId: number;
|
|
985
|
+
/**
|
|
986
|
+
* Gets or sets structured append optional fields. Only supports segmentCount for now.
|
|
987
|
+
*/
|
|
988
|
+
optionalFields: IOptionalFields;
|
|
989
|
+
}
|