aspose.barcode 24.6.0 → 24.7.0

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/lib/Generation.js CHANGED
@@ -94,12 +94,10 @@ class BarcodeGenerator extends joint.BaseJavaClass
94
94
  */
95
95
  generateBarCodeImage(format)
96
96
  {
97
- try
98
- {
97
+ try {
99
98
  let base64Image = this.getJavaClass().generateBarCodeImageSync(format);
100
99
  return (base64Image);
101
- } catch (e)
102
- {
100
+ } catch (e) {
103
101
  throw new joint.BarcodeException(e)
104
102
  }
105
103
  }
@@ -136,12 +134,10 @@ class BarcodeGenerator extends joint.BaseJavaClass
136
134
  */
137
135
  setCodeText(codeText, encoding)
138
136
  {
139
- if(Array.isArray(codeText))
140
- {
137
+ if (Array.isArray(codeText)) {
141
138
  this.getJavaClass().setCodeBytesSync(Buffer.from(codeText));
142
139
  }
143
- else
144
- {
140
+ else {
145
141
  this.getJavaClass().setCodeTextSync(codeText, encoding);
146
142
  }
147
143
  }
@@ -154,17 +150,14 @@ class BarcodeGenerator extends joint.BaseJavaClass
154
150
  */
155
151
  exportToXml(filePath)
156
152
  {
157
- try
158
- {
153
+ try {
159
154
  let xmlData = this.getJavaClass().exportToXmlSync();
160
155
  let isSaved = xmlData != null;
161
- if (isSaved)
162
- {
156
+ if (isSaved) {
163
157
  fs.writeFileSync(filePath, xmlData);
164
158
  }
165
159
  return isSaved;
166
- } catch (ex)
167
- {
160
+ } catch (ex) {
168
161
  throw new BarcodeException(ex.getMessage());
169
162
  }
170
163
  }
@@ -178,14 +171,12 @@ class BarcodeGenerator extends joint.BaseJavaClass
178
171
  */
179
172
  importFromXml(filePath)
180
173
  {
181
- try
182
- {
174
+ try {
183
175
  let xmlData = joint.convertResourceToBase64String(filePath);
184
176
  let offset = 6;
185
177
  xmlData = xmlData.substr(offset);
186
178
  return BarcodeGenerator.construct(java(BarcodeGenerator.javaClassName).importFromXmlSync(xmlData));
187
- } catch (ex)
188
- {
179
+ } catch (ex) {
189
180
  throw new BarcodeException(ex.getMessage());
190
181
  }
191
182
  }
@@ -307,8 +298,7 @@ class BarcodeParameters extends joint.BaseJavaClass
307
298
  {
308
299
  let intColor = this.getJavaClass().getBarColorSync();
309
300
  let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
310
- while (hexColor.length < 6)
311
- {
301
+ while (hexColor.length < 6) {
312
302
  hexColor = "0" + hexColor;
313
303
  }
314
304
  hexColor = "#" + hexColor;
@@ -738,8 +728,7 @@ class BaseGenerationParameters extends joint.BaseJavaClass
738
728
  {
739
729
  let intColor = this.getJavaClass().getBackColorSync();
740
730
  let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
741
- while (hexColor.length < 6)
742
- {
731
+ while (hexColor.length < 6) {
743
732
  hexColor = "0" + hexColor;
744
733
  }
745
734
  hexColor = "#" + hexColor;
@@ -753,8 +742,7 @@ class BaseGenerationParameters extends joint.BaseJavaClass
753
742
  setBackColor(colorValue)
754
743
  {
755
744
  let hexValue = colorValue.substring(1, colorValue.length)
756
- if(!(/^[0-9A-Fa-f]+$/.test(hexValue)))
757
- {
745
+ if (!(/^[0-9A-Fa-f]+$/.test(hexValue))) {
758
746
  throw new joint.BarcodeException("Illegal color value: " + hexValue);
759
747
  }
760
748
  this.getJavaClass().setBackColorSync((parseInt(hexValue, 16) << 8) / 256);
@@ -1033,8 +1021,7 @@ class BorderParameters extends joint.BaseJavaClass
1033
1021
  {
1034
1022
  let intColor = this.getJavaClass().getColorSync();
1035
1023
  let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
1036
- while (hexColor.length < 6)
1037
- {
1024
+ while (hexColor.length < 6) {
1038
1025
  hexColor = "0" + hexColor;
1039
1026
  }
1040
1027
  hexColor = "#" + hexColor;
@@ -1125,8 +1112,7 @@ class CaptionParameters extends joint.BaseJavaClass
1125
1112
  {
1126
1113
  let intColor = this.getJavaClass().getTextColorSync();
1127
1114
  let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
1128
- while (hexColor.length < 6)
1129
- {
1115
+ while (hexColor.length < 6) {
1130
1116
  hexColor = "0" + hexColor;
1131
1117
  }
1132
1118
  hexColor = "#" + hexColor;
@@ -1218,8 +1204,7 @@ class Unit extends joint.BaseJavaClass
1218
1204
 
1219
1205
  static initUnit(source)
1220
1206
  {
1221
- if (source instanceof Unit)
1222
- {
1207
+ if (source instanceof Unit) {
1223
1208
  return source.getJavaClass();
1224
1209
  }
1225
1210
  return source;
@@ -1561,8 +1546,7 @@ class CodetextParameters extends joint.BaseJavaClass
1561
1546
  {
1562
1547
  let intColor = this.getJavaClass().getColorSync();
1563
1548
  let hexColor = ((intColor) >>> 0).toString(16).slice(-6).toUpperCase()
1564
- while (hexColor.length < 6)
1565
- {
1549
+ while (hexColor.length < 6) {
1566
1550
  hexColor = "0" + hexColor;
1567
1551
  }
1568
1552
  hexColor = "#" + hexColor;
@@ -1997,6 +1981,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
1997
1981
  {
1998
1982
  return this.getJavaClass().getStructuredAppendBarcodeIdSync();
1999
1983
  }
1984
+
2000
1985
  /**
2001
1986
  * <p>
2002
1987
  * Barcode ID for Structured Append mode of Datamatrix barcode.
@@ -2018,6 +2003,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
2018
2003
  {
2019
2004
  return this.getJavaClass().getStructuredAppendBarcodesCountSync();
2020
2005
  }
2006
+
2021
2007
  /**
2022
2008
  * <p>
2023
2009
  * Barcodes count for Structured Append mode of Datamatrix barcode.
@@ -2039,6 +2025,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
2039
2025
  {
2040
2026
  return this.getJavaClass().getStructuredAppendFileIdSync();
2041
2027
  }
2028
+
2042
2029
  /**
2043
2030
  * <p>
2044
2031
  * File ID for Structured Append mode of Datamatrix barcode.
@@ -2061,6 +2048,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
2061
2048
  {
2062
2049
  return this.getJavaClass().isReaderProgrammingSync();
2063
2050
  }
2051
+
2064
2052
  /**
2065
2053
  * <p>
2066
2054
  * Used to instruct the reader to interpret the data contained within the symbol
@@ -2159,6 +2147,7 @@ class DataMatrixParameters extends joint.BaseJavaClass
2159
2147
  {
2160
2148
  return this.getJavaClass().getECIEncodingSync();
2161
2149
  }
2150
+
2162
2151
  /**
2163
2152
  * <p>
2164
2153
  * Sets ECI encoding. Used when DataMatrixEncodeMode is Auto.
@@ -2344,6 +2333,7 @@ class DotCodeParameters extends joint.BaseJavaClass
2344
2333
  {
2345
2334
  return this.getJavaClass().getDotCodeEncodeModeSync();
2346
2335
  }
2336
+
2347
2337
  /**
2348
2338
  * <p>
2349
2339
  * Identifies DotCode encode mode.
@@ -2362,7 +2352,10 @@ class DotCodeParameters extends joint.BaseJavaClass
2362
2352
  * Default value is false.
2363
2353
  */
2364
2354
  isReaderInitialization()
2365
- { return this.getJavaClass().isReaderInitializationSync(); }
2355
+ {
2356
+ return this.getJavaClass().isReaderInitializationSync();
2357
+ }
2358
+
2366
2359
  /**
2367
2360
  * <p>
2368
2361
  * Indicates whether code is used for instruct reader to interpret the following data as instructions for initialization or reprogramming of the bar code reader.
@@ -2370,7 +2363,9 @@ class DotCodeParameters extends joint.BaseJavaClass
2370
2363
  * Default value is false.
2371
2364
  */
2372
2365
  setReaderInitialization(value)
2373
- { this.getJavaClass().setReaderInitializationSync(value); }
2366
+ {
2367
+ this.getJavaClass().setReaderInitializationSync(value);
2368
+ }
2374
2369
 
2375
2370
  /**
2376
2371
  * <p>
@@ -2378,7 +2373,9 @@ class DotCodeParameters extends joint.BaseJavaClass
2378
2373
  * </p>
2379
2374
  */
2380
2375
  getDotCodeStructuredAppendModeBarcodeId()
2381
- { return this.getJavaClass().getDotCodeStructuredAppendModeBarcodeIdSync(); }
2376
+ {
2377
+ return this.getJavaClass().getDotCodeStructuredAppendModeBarcodeIdSync();
2378
+ }
2382
2379
 
2383
2380
  /**
2384
2381
  * <p>
@@ -2386,7 +2383,9 @@ class DotCodeParameters extends joint.BaseJavaClass
2386
2383
  * </p>
2387
2384
  */
2388
2385
  setDotCodeStructuredAppendModeBarcodeId(value)
2389
- { this.getJavaClass().setDotCodeStructuredAppendModeBarcodeIdSync(value); }
2386
+ {
2387
+ this.getJavaClass().setDotCodeStructuredAppendModeBarcodeIdSync(value);
2388
+ }
2390
2389
 
2391
2390
  /**
2392
2391
  * <p>
@@ -2394,14 +2393,19 @@ class DotCodeParameters extends joint.BaseJavaClass
2394
2393
  * </p>
2395
2394
  */
2396
2395
  getDotCodeStructuredAppendModeBarcodesCount()
2397
- { return this.getJavaClass().getDotCodeStructuredAppendModeBarcodesCountSync(); }
2396
+ {
2397
+ return this.getJavaClass().getDotCodeStructuredAppendModeBarcodesCountSync();
2398
+ }
2399
+
2398
2400
  /**
2399
2401
  * <p>
2400
2402
  * Identifies DotCode structured append mode barcodes count. Default value is -1. Count must be a value from 1 to 35.
2401
2403
  * </p>
2402
2404
  */
2403
2405
  setDotCodeStructuredAppendModeBarcodesCount(value)
2404
- { this.getJavaClass().setDotCodeStructuredAppendModeBarcodesCountSync(value); }
2406
+ {
2407
+ this.getJavaClass().setDotCodeStructuredAppendModeBarcodesCountSync(value);
2408
+ }
2405
2409
 
2406
2410
  /**
2407
2411
  * <p>
@@ -2410,7 +2414,10 @@ class DotCodeParameters extends joint.BaseJavaClass
2410
2414
  * Default value: ISO-8859-1
2411
2415
  */
2412
2416
  getECIEncoding()
2413
- { return this.getJavaClass().getECIEncodingSync(); }
2417
+ {
2418
+ return this.getJavaClass().getECIEncodingSync();
2419
+ }
2420
+
2414
2421
  /**
2415
2422
  * <p>
2416
2423
  * Identifies ECI encoding. Used when DotCodeEncodeMode is AUTO.<br>
@@ -2429,7 +2436,10 @@ class DotCodeParameters extends joint.BaseJavaClass
2429
2436
  * Default value: -1
2430
2437
  */
2431
2438
  getRows()
2432
- { return this.getJavaClass().getRowsSync(); }
2439
+ {
2440
+ return this.getJavaClass().getRowsSync();
2441
+ }
2442
+
2433
2443
  /**
2434
2444
  * <p>
2435
2445
  * Identifies rows count. Sum of the number of rows plus the number of columns of a DotCode symbol must be odd. Number of rows must be at least 5.
@@ -2448,7 +2458,10 @@ class DotCodeParameters extends joint.BaseJavaClass
2448
2458
  * Default value: -1
2449
2459
  */
2450
2460
  getColumns()
2451
- { return this.getJavaClass().getColumnsSync(); }
2461
+ {
2462
+ return this.getJavaClass().getColumnsSync();
2463
+ }
2464
+
2452
2465
  /**
2453
2466
  * <p>
2454
2467
  * Identifies columns count. Sum of the number of rows plus the number of columns of a DotCode symbol must be odd. Number of columns must be at least 5.
@@ -2542,6 +2555,7 @@ class GS1CompositeBarParameters extends joint.BaseJavaClass
2542
2555
  {
2543
2556
  return this.getJavaClass().isAllowOnlyGS1EncodingSync();
2544
2557
  }
2558
+
2545
2559
  /**
2546
2560
  * <p>
2547
2561
  * If this flag is set, it allows only GS1 encoding standard for GS1CompositeBar 2D Component
@@ -2789,6 +2803,7 @@ class QrParameters extends joint.BaseJavaClass
2789
2803
  {
2790
2804
  return this.getJavaClass().getMicroQRVersionSync();
2791
2805
  }
2806
+
2792
2807
  /**
2793
2808
  * <p>
2794
2809
  * Version of MicroQR Code. From version M1 to version M4.
@@ -2810,6 +2825,7 @@ class QrParameters extends joint.BaseJavaClass
2810
2825
  {
2811
2826
  return this.getJavaClass().getRectMicroQrVersionSync();
2812
2827
  }
2828
+
2813
2829
  /**
2814
2830
  * <p>
2815
2831
  * Version of RectMicroQR Code. From version R7x59 to version R17x139.
@@ -3250,7 +3266,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
3250
3266
  * reader.readBarCodes().forEach(function(result, i, results)
3251
3267
  * {
3252
3268
  * console.log( result.getCodeText());
3253
- * });
3269
+ * });
3254
3270
  *
3255
3271
  * @example
3256
3272
  * # Encodes MicroPdf417 with 06 Macro the string: "[)>\u001E06\u001Dabcde1234\u001E\u0004"
@@ -3264,7 +3280,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
3264
3280
  * </pre>
3265
3281
  * </pre></blockquote></hr></p>
3266
3282
  */
3267
- getMacroCharacters()
3283
+ getMacroCharacters()
3268
3284
  {
3269
3285
  return this.getJavaClass().getMacroCharactersSync();
3270
3286
  }
@@ -3300,7 +3316,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
3300
3316
  * </pre>
3301
3317
  * </pre></blockquote></hr></p>
3302
3318
  */
3303
- setMacroCharacters(value)
3319
+ setMacroCharacters(value)
3304
3320
  {
3305
3321
  this.getJavaClass().setMacroCharactersSync(value);
3306
3322
  }
@@ -3406,7 +3422,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
3406
3422
  * </pre>
3407
3423
  * </pre></blockquote></hr></p>
3408
3424
  */
3409
- isLinked()
3425
+ isLinked()
3410
3426
  {
3411
3427
  return this.getJavaClass().isLinkedSync();
3412
3428
  }
@@ -3513,7 +3529,7 @@ class Pdf417Parameters extends joint.BaseJavaClass
3513
3529
  * </pre>
3514
3530
  * </pre></blockquote></hr></p>
3515
3531
  */
3516
- setLinked(value)
3532
+ setLinked(value)
3517
3533
  {
3518
3534
  this.getJavaClass().setLinkedSync(value);
3519
3535
  }
@@ -3853,6 +3869,7 @@ class AztecParameters extends joint.BaseJavaClass
3853
3869
  {
3854
3870
  return this.getJavaClass().getECIEncodingSync();
3855
3871
  }
3872
+
3856
3873
  /**
3857
3874
  * <p>
3858
3875
  * Sets ECI encoding. Used when AztecEncodeMode is Auto.
@@ -3874,6 +3891,7 @@ class AztecParameters extends joint.BaseJavaClass
3874
3891
  {
3875
3892
  return this.getJavaClass().getStructuredAppendBarcodeIdSync();
3876
3893
  }
3894
+
3877
3895
  /**
3878
3896
  * <p>
3879
3897
  * Barcode ID for Structured Append mode of Aztec barcode. Barcode ID should be in range from 1 to barcodes count.
@@ -3895,6 +3913,7 @@ class AztecParameters extends joint.BaseJavaClass
3895
3913
  {
3896
3914
  return this.getJavaClass().getStructuredAppendBarcodesCountSync();
3897
3915
  }
3916
+
3898
3917
  /**
3899
3918
  * <p>
3900
3919
  * Barcodes count for Structured Append mode of Aztec barcode. Barcodes count should be in range from 1 to 26.
@@ -3916,6 +3935,7 @@ class AztecParameters extends joint.BaseJavaClass
3916
3935
  {
3917
3936
  return this.getJavaClass().getStructuredAppendFileIdSync();
3918
3937
  }
3938
+
3919
3939
  /**
3920
3940
  * <p>
3921
3941
  * File ID for Structured Append mode of Aztec barcode (optional field). File ID should not contain spaces.
@@ -3937,6 +3957,7 @@ class AztecParameters extends joint.BaseJavaClass
3937
3957
  {
3938
3958
  return this.getJavaClass().getAztecErrorLevelSync();
3939
3959
  }
3960
+
3940
3961
  /**
3941
3962
  * <p>
3942
3963
  * Level of error correction of Aztec types of barcode.
@@ -3958,6 +3979,7 @@ class AztecParameters extends joint.BaseJavaClass
3958
3979
  {
3959
3980
  return this.getJavaClass().getAztecSymbolModeSync();
3960
3981
  }
3982
+
3961
3983
  /**
3962
3984
  * <p>
3963
3985
  * Sets a Aztec Symbol mode.
@@ -3980,6 +4002,7 @@ class AztecParameters extends joint.BaseJavaClass
3980
4002
  {
3981
4003
  return this.getJavaClass().getLayersCountSync();
3982
4004
  }
4005
+
3983
4006
  /**
3984
4007
  * <p>
3985
4008
  * Sets layers count of Aztec symbol. Layers count should be in range from 1 to 3 for Compact mode and
@@ -4023,6 +4046,7 @@ class AztecParameters extends joint.BaseJavaClass
4023
4046
  {
4024
4047
  return this.getJavaClass().getAspectRatioSync();
4025
4048
  }
4049
+
4026
4050
  /**
4027
4051
  * <p>
4028
4052
  * Height/Width ratio of 2D BarCode module.
@@ -4204,8 +4228,7 @@ class FontUnit extends joint.BaseJavaClass
4204
4228
 
4205
4229
  static initFontUnit(source)
4206
4230
  {
4207
- if (source instanceof FontUnit)
4208
- {
4231
+ if (source instanceof FontUnit) {
4209
4232
  return source.getJavaClass();
4210
4233
  }
4211
4234
  return source;
@@ -4245,8 +4268,7 @@ class FontUnit extends joint.BaseJavaClass
4245
4268
  */
4246
4269
  setStyle(value)
4247
4270
  {
4248
- if (!("number" === typeof value))
4249
- {
4271
+ if (!("number" === typeof value)) {
4250
4272
  value = parseInt(value, 10);
4251
4273
  }
4252
4274
  this.getJavaClass().setStyleSync(value);
@@ -4515,13 +4537,10 @@ class MaxiCodeExtCodetextBuilder extends ExtCodetextBuilder
4515
4537
 
4516
4538
  constructor()
4517
4539
  {
4518
- try
4519
- {
4540
+ try {
4520
4541
  let java_class = java.import(MaxiCodeExtCodetextBuilder.JAVA_CLASS_NAME);
4521
4542
  super(new java_class());
4522
- }
4523
- catch (ex)
4524
- {
4543
+ } catch (ex) {
4525
4544
  throw new BarcodeException(ex.getMessage(), __FILE__, __LINE__);
4526
4545
  }
4527
4546
  }
@@ -4576,7 +4595,9 @@ class DotCodeExtCodetextBuilder extends ExtCodetextBuilder
4576
4595
  super(javaClass);
4577
4596
  }
4578
4597
 
4579
- init() {}
4598
+ init()
4599
+ {
4600
+ }
4580
4601
 
4581
4602
  /**
4582
4603
  * <p>
@@ -4658,6 +4679,7 @@ class Code128Parameters extends joint.BaseJavaClass
4658
4679
  {
4659
4680
  return this.getJavaClass().getCode128EncodeModeSync();
4660
4681
  }
4682
+
4661
4683
  /**
4662
4684
  * <p>
4663
4685
  * Sets a Code128 encode mode.
@@ -4730,6 +4752,7 @@ class HanXinParameters extends joint.BaseJavaClass
4730
4752
  {
4731
4753
  return this.getJavaClass().getHanXinErrorLevelSync();
4732
4754
  }
4755
+
4733
4756
  /**
4734
4757
  * <p>
4735
4758
  * Level of Reed-Solomon error correction for Han Xin barcode.
@@ -4751,6 +4774,7 @@ class HanXinParameters extends joint.BaseJavaClass
4751
4774
  {
4752
4775
  return this.getJavaClass().getHanXinEncodeModeSync();
4753
4776
  }
4777
+
4754
4778
  /**
4755
4779
  * <p>
4756
4780
  * HanXin encoding mode.
@@ -4773,6 +4797,7 @@ class HanXinParameters extends joint.BaseJavaClass
4773
4797
  {
4774
4798
  return this.getJavaClass().getHanXinECIEncodingSync();
4775
4799
  }
4800
+
4776
4801
  /**
4777
4802
  * <p>
4778
4803
  * Extended Channel Interpretation Identifiers. It is used to tell the barcode reader details
@@ -4841,6 +4866,7 @@ class DataMatrixExtCodetextBuilder extends ExtCodetextBuilder
4841
4866
  init()
4842
4867
  {
4843
4868
  }
4869
+
4844
4870
  /**
4845
4871
  * <p>
4846
4872
  * Adds codetext with Extended Channel Identifier with defined encode mode
@@ -5160,6 +5186,153 @@ class SvgParameters extends joint.BaseJavaClass
5160
5186
  {
5161
5187
  this.getJavaClass().setTextDrawnInTextElementSync(textDrawnInTextElement);
5162
5188
  }
5189
+
5190
+ /**
5191
+ * <p>
5192
+ * Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1.
5193
+ * RGBA, HSL, HSLA is allowed in SVG 2.0 standard.
5194
+ * Even in RGB opacity will be set through "fill-opacity" parameter
5195
+ * </p>
5196
+ */
5197
+ setSvgColorMode(svgColorMode)
5198
+ {
5199
+ this.getJavaClass().setSvgColorModeSync(svgColorMode);
5200
+ }
5201
+
5202
+
5203
+ /**
5204
+ * Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1.
5205
+ * RGBA, HSL, HSLA is allowed in SVG 2.0 standard.
5206
+ * Even in RGB opacity will be set through "fill-opacity" parameter
5207
+ */
5208
+ getSvgColorMode()
5209
+ {
5210
+ return this.getJavaClass().getSvgColorModeSync();
5211
+ }
5212
+ }
5213
+
5214
+ /**
5215
+ * <p>
5216
+ * Class for representing HSLA color (Hue, Saturation, Lightness, Alpha)
5217
+ * </p>
5218
+ */
5219
+ class HslaColor
5220
+ {
5221
+ /**
5222
+ * <p>
5223
+ * Hue [0, 360]
5224
+ * </p>
5225
+ */
5226
+ H;
5227
+
5228
+ /**
5229
+ * <p>
5230
+ * Saturation [0, 100]
5231
+ * </p>
5232
+ */
5233
+ S;
5234
+
5235
+ /**
5236
+ * <p>
5237
+ * Lightness [0, 100]
5238
+ * </p>
5239
+ */
5240
+ L;
5241
+
5242
+ /**
5243
+ * <p>
5244
+ * Alpha (opacity) [0.0f, 1.0f]
5245
+ * </p>
5246
+ */
5247
+ A = 0.0;
5248
+
5249
+
5250
+ /**
5251
+ * <p>
5252
+ * Constructor for HslaColor
5253
+ * </p>
5254
+ *
5255
+ * @param h Hue [0, 360]
5256
+ * @param s Saturation [0, 100]
5257
+ * @param l Lightness [0, 100]
5258
+ * @param a Alpha (opacity) [0.0f, 1.0f]
5259
+ */
5260
+ constructor(h, s, l, a)
5261
+ {
5262
+ HslaColor.checkHue(h);
5263
+ HslaColor.checkSatLight(s);
5264
+ HslaColor.checkSatLight(l);
5265
+ HslaColor.checkAlpha(a);
5266
+
5267
+ this.H = h;
5268
+ this.S = s;
5269
+ this.L = l;
5270
+ this.A = a;
5271
+ }
5272
+
5273
+ static checkHue(value)
5274
+ {
5275
+ if (value < 0 || value > 360) {
5276
+ throw new Exception("Wrong color value");
5277
+ }
5278
+ }
5279
+
5280
+ static checkSatLight(value)
5281
+ {
5282
+ if (value < 0 || value > 100) {
5283
+ throw new Exception("Wrong color value");
5284
+ }
5285
+ }
5286
+
5287
+ static checkAlpha(value)
5288
+ {
5289
+ if (value < 0.0 || value > 1.0) {
5290
+ throw new Exception("Wrong color value");
5291
+ }
5292
+ }
5293
+
5294
+ /**
5295
+ * <p>
5296
+ * Uses https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB
5297
+ * </p>
5298
+ *
5299
+ * @param hslaColor HSLA color to convert
5300
+ * @return string with RGBA values
5301
+ */
5302
+ static convertHslaToRgba(hslaColor) {
5303
+ let r = 0, g = 0, b = 0;
5304
+
5305
+ let hueF = hslaColor.hue / 360.0;
5306
+ let satF = hslaColor.saturation / 100.0;
5307
+ let lightF = hslaColor.lightness / 100.0;
5308
+
5309
+ if (satF === 0) {
5310
+ r = g = b = lightF;
5311
+ } else {
5312
+ let q = lightF < 0.5 ? lightF * (1 + satF) : lightF + satF - lightF * satF;
5313
+ let p = 2 * lightF - q;
5314
+
5315
+ r = HslaColor.hueToRgb(p, q, hueF + 1.0 / 3.0);
5316
+ g = HslaColor.hueToRgb(p, q, hueF);
5317
+ b = HslaColor.hueToRgb(p, q, hueF - 1.0 / 3.0);
5318
+ }
5319
+
5320
+ let rI = Math.round(r * 255);
5321
+ let gI = Math.round(g * 255);
5322
+ let bI = Math.round(b * 255);
5323
+ let aI = Math.round(hslaColor.alpha * 255);
5324
+
5325
+ return `#${aI.toString(16).padStart(2, '0')}${rI.toString(16).padStart(2, '0')}${gI.toString(16).padStart(2, '0')}${bI.toString(16).padStart(2, '0')}`.toUpperCase();
5326
+ }
5327
+
5328
+ static hueToRgb(p, q, t) {
5329
+ if (t < 0) t += 1;
5330
+ if (t > 1) t -= 1;
5331
+ if (t < 1 / 6) return p + (q - p) * 6 * t;
5332
+ if (t < 1 / 2) return q;
5333
+ if (t < 2 / 3) return p + (q - p) * (2 / 3 - t) * 6;
5334
+ return p;
5335
+ }
5163
5336
  }
5164
5337
 
5165
5338
  /**
@@ -6148,24 +6321,25 @@ EncodeTypes =
6148
6321
  CODE_11: 1,
6149
6322
 
6150
6323
  /**
6151
- * Specifies that the data should be encoded with Standard CODE 39 barcode specification
6152
- */
6153
- CODE_39_STANDARD: 2,
6154
-
6155
- /**
6156
- * Specifies that the data should be encoded with Extended CODE 39 barcode specification
6324
+ * <p>
6325
+ * Specifies that the data should be encoded with {@code <b>Code 39</b>} basic charset barcode specification: ISO/IEC 16388
6326
+ * </p>
6157
6327
  */
6158
- CODE_39_EXTENDED: 3,
6328
+ CODE_39: 2,
6159
6329
 
6160
6330
  /**
6161
- * Specifies that the data should be encoded with Standard CODE 93 barcode specification
6331
+ * <p>
6332
+ * Specifies that the data should be encoded with {@code <b>Code 39</b>} full ASCII charset barcode specification: ISO/IEC 16388
6333
+ * </p>
6162
6334
  */
6163
- CODE_93_STANDARD: 4,
6335
+ CODE_39_FULL_ASCII: 3,
6164
6336
 
6165
6337
  /**
6166
- * Specifies that the data should be encoded with Extended CODE 93 barcode specification
6338
+ * <p>
6339
+ * Specifies that the data should be encoded with {@code <b>CODE 93</b>} barcode specification
6340
+ * </p>
6167
6341
  */
6168
- CODE_93_EXTENDED: 5,
6342
+ CODE_93: 5,
6169
6343
 
6170
6344
  /**
6171
6345
  * Specifies that the data should be encoded with CODE 128 barcode specification
@@ -6323,7 +6497,7 @@ EncodeTypes =
6323
6497
  * Specifies that the data should be encoded with {@code <b>GS1 Aztec</b>} barcode specification. The codetext must contains parentheses for AI.
6324
6498
  * </p>
6325
6499
  */
6326
- GS_1_AZTEC:81,
6500
+ GS_1_AZTEC: 81,
6327
6501
 
6328
6502
 
6329
6503
  /**
@@ -6599,177 +6773,260 @@ EncodeTypes =
6599
6773
 
6600
6774
  parse(encodeTypeName)
6601
6775
  {
6602
- if(encodeTypeName == "CODABAR") return 0;
6603
-
6604
- else if(encodeTypeName == "CODE_11") return 1;
6605
-
6606
- else if(encodeTypeName == "CODE_39_STANDARD") return 2;
6607
-
6608
- else if(encodeTypeName == "CODE_39_EXTENDED") return 3;
6609
-
6610
- else if(encodeTypeName == "CODE_93_STANDARD") return 4;
6611
-
6612
- else if(encodeTypeName == "CODE_93_EXTENDED") return 5;
6613
-
6614
- else if(encodeTypeName == "CODE_128") return 6;
6615
-
6616
- else if(encodeTypeName == "GS_1_CODE_128") return 7;
6617
-
6618
- else if(encodeTypeName == "EAN_8") return 8;
6619
-
6620
- else if(encodeTypeName == "EAN_13") return 9;
6621
-
6622
- else if(encodeTypeName == "EAN_14") return 10;
6623
-
6624
- else if(encodeTypeName == "SCC_14") return 11;
6625
-
6626
- else if(encodeTypeName == "SSCC_18") return 12;
6627
-
6628
- else if(encodeTypeName == "UPCA") return 13;
6629
-
6630
- else if(encodeTypeName == "UPCE") return 14;
6631
-
6632
- else if(encodeTypeName == "ISBN") return 15;
6633
-
6634
- else if(encodeTypeName == "ISSN") return 16;
6635
-
6636
- else if(encodeTypeName == "ISMN") return 17;
6637
-
6638
- else if(encodeTypeName == "STANDARD_2_OF_5") return 18;
6639
-
6640
- else if(encodeTypeName == "INTERLEAVED_2_OF_5") return 19;
6641
-
6642
- else if(encodeTypeName == "MATRIX_2_OF_5") return 20;
6643
-
6644
- else if(encodeTypeName == "ITALIAN_POST_25") return 21;
6645
-
6646
- else if(encodeTypeName == "IATA_2_OF_5") return 22;
6647
-
6648
- else if(encodeTypeName == "ITF_14") return 23;
6649
-
6650
- else if(encodeTypeName == "ITF_6") return 24;
6651
-
6652
- else if(encodeTypeName == "MSI") return 25;
6653
-
6654
- else if(encodeTypeName == "VIN") return 26;
6655
-
6656
- else if(encodeTypeName == "DEUTSCHE_POST_IDENTCODE") return 27;
6657
-
6658
- else if(encodeTypeName == "DEUTSCHE_POST_LEITCODE") return 28;
6659
-
6660
- else if(encodeTypeName == "OPC") return 29;
6661
-
6662
- else if(encodeTypeName == "PZN") return 30;
6663
-
6664
- else if(encodeTypeName == "CODE_16_K") return 31;
6665
-
6666
- else if(encodeTypeName == "PHARMACODE") return 32;
6667
-
6668
- else if(encodeTypeName == "DATA_MATRIX") return 33;
6669
-
6670
- else if(encodeTypeName == "QR") return 34;
6671
-
6672
- else if(encodeTypeName == "AZTEC") return 35;
6673
-
6674
- else if(encodeTypeName == "GS_1_AZTEC") return 81;
6675
-
6676
- else if(encodeTypeName == "PDF_417") return 36;
6677
-
6678
- else if(encodeTypeName == "MACRO_PDF_417") return 37;
6679
-
6680
- else if(encodeTypeName == "GS_1_DATA_MATRIX") return 48;
6681
-
6682
- else if(encodeTypeName == "MICRO_PDF_417") return 55;
6683
-
6684
- else if(encodeTypeName == "GS_1_QR") return 56;
6685
-
6686
- else if(encodeTypeName == "MAXI_CODE") return 57;
6687
-
6688
- else if(encodeTypeName == "DOT_CODE") return 60;
6689
-
6690
- else if(encodeTypeName == "AUSTRALIA_POST") return 38;
6691
-
6692
- else if(encodeTypeName == "POSTNET") return 39;
6693
-
6694
- else if(encodeTypeName == "PLANET") return 40;
6695
-
6696
- else if(encodeTypeName == "ONE_CODE") return 41;
6697
-
6698
- else if(encodeTypeName == "RM_4_SCC") return 42;
6699
-
6700
- else if(encodeTypeName == "MAILMARK") return 66;
6701
-
6702
- else if(encodeTypeName == "DATABAR_OMNI_DIRECTIONAL") return 43;
6703
-
6704
- else if(encodeTypeName == "DATABAR_TRUNCATED") return 44;
6705
-
6706
- else if(encodeTypeName == "DATABAR_LIMITED") return 45;
6707
-
6708
- else if(encodeTypeName == "DATABAR_EXPANDED") return 46;
6709
-
6710
- else if(encodeTypeName == "DATABAR_EXPANDED_STACKED") return 52;
6711
-
6712
- else if(encodeTypeName == "DATABAR_STACKED") return 53;
6713
-
6714
- else if(encodeTypeName == "DATABAR_STACKED_OMNI_DIRECTIONAL") return 54;
6715
-
6716
- else if(encodeTypeName == "SINGAPORE_POST") return 47;
6717
-
6718
- else if(encodeTypeName == "AUSTRALIAN_POSTE_PARCEL") return 49;
6719
-
6720
- else if(encodeTypeName == "SWISS_POST_PARCEL") return 50;
6721
-
6722
- else if(encodeTypeName == "PATCH_CODE") return 51;
6723
-
6724
- else if(encodeTypeName == "CODE_32") return 58;
6725
-
6726
- else if(encodeTypeName == "DATA_LOGIC_2_OF_5") return 59;
6727
-
6728
- else if(encodeTypeName == "DUTCH_KIX") return 61;
6729
-
6730
- else if(encodeTypeName == "UPCA_GS_1_CODE_128_COUPON") return 62;
6731
-
6732
- else if(encodeTypeName == "UPCA_GS_1_DATABAR_COUPON") return 63;
6733
-
6734
- else if(encodeTypeName == "CODABLOCK_F") return 64;
6735
-
6736
- else if(encodeTypeName == "GS_1_CODABLOCK_F") return 65;
6737
-
6738
- else if(encodeTypeName == "GS_1_COMPOSITE_BAR") return 67;
6739
-
6740
- else if(encodeTypeName == "HIBC_CODE_39_LIC") return 68;
6741
-
6742
- else if(encodeTypeName == "HIBC_CODE_128_LIC") return 69;
6743
-
6744
- else if(encodeTypeName == "HIBC_AZTEC_LIC") return 70;
6745
-
6746
- else if(encodeTypeName == "HIBC_DATA_MATRIX_LIC") return 71;
6747
-
6748
- else if(encodeTypeName == "HIBCQRLIC") return 72;
6749
-
6750
- else if(encodeTypeName == "HIBC_CODE_39_PAS") return 73;
6751
-
6752
- else if(encodeTypeName == "HIBC_CODE_128_PAS") return 74;
6753
-
6754
- else if(encodeTypeName == "HIBC_AZTEC_PAS") return 75;
6755
-
6756
- else if(encodeTypeName == "HIBC_DATA_MATRIX_PAS") return 76;
6757
-
6758
- else if(encodeTypeName == "HIBCQRPAS") return 77;
6759
-
6760
- else if(encodeTypeName == "GS_1_DOT_CODE") return 78;
6761
-
6762
- else if(encodeTypeName == "HAN_XIN") return 79;
6763
-
6764
- else if(encodeTypeName == "GS_1_HAN_XIN") return 80;
6765
-
6766
- else if(encodeTypeName == "MICRO_QR") return 83;
6767
-
6768
- else if(encodeTypeName == "RECT_MICRO_QR") return 84;
6769
-
6770
- else return -1;
6771
- }
6772
- }
6776
+ if (encodeTypeName == "CODABAR") {
6777
+ return 0;
6778
+ }
6779
+ else if (encodeTypeName == "CODE_11") {
6780
+ return 1;
6781
+ }
6782
+ else if (encodeTypeName == "CODE_39") {
6783
+ return 2;
6784
+ }
6785
+ else if (encodeTypeName == "CODE_39_FULL_ASCII") {
6786
+ return 3;
6787
+ }
6788
+ else if (encodeTypeName == "CODE_93") {
6789
+ return 5;
6790
+ }
6791
+ else if (encodeTypeName == "CODE_128") {
6792
+ return 6;
6793
+ }
6794
+ else if (encodeTypeName == "GS_1_CODE_128") {
6795
+ return 7;
6796
+ }
6797
+ else if (encodeTypeName == "EAN_8") {
6798
+ return 8;
6799
+ }
6800
+ else if (encodeTypeName == "EAN_13") {
6801
+ return 9;
6802
+ }
6803
+ else if (encodeTypeName == "EAN_14") {
6804
+ return 10;
6805
+ }
6806
+ else if (encodeTypeName == "SCC_14") {
6807
+ return 11;
6808
+ }
6809
+ else if (encodeTypeName == "SSCC_18") {
6810
+ return 12;
6811
+ }
6812
+ else if (encodeTypeName == "UPCA") {
6813
+ return 13;
6814
+ }
6815
+ else if (encodeTypeName == "UPCE") {
6816
+ return 14;
6817
+ }
6818
+ else if (encodeTypeName == "ISBN") {
6819
+ return 15;
6820
+ }
6821
+ else if (encodeTypeName == "ISSN") {
6822
+ return 16;
6823
+ }
6824
+ else if (encodeTypeName == "ISMN") {
6825
+ return 17;
6826
+ }
6827
+ else if (encodeTypeName == "STANDARD_2_OF_5") {
6828
+ return 18;
6829
+ }
6830
+ else if (encodeTypeName == "INTERLEAVED_2_OF_5") {
6831
+ return 19;
6832
+ }
6833
+ else if (encodeTypeName == "MATRIX_2_OF_5") {
6834
+ return 20;
6835
+ }
6836
+ else if (encodeTypeName == "ITALIAN_POST_25") {
6837
+ return 21;
6838
+ }
6839
+ else if (encodeTypeName == "IATA_2_OF_5") {
6840
+ return 22;
6841
+ }
6842
+ else if (encodeTypeName == "ITF_14") {
6843
+ return 23;
6844
+ }
6845
+ else if (encodeTypeName == "ITF_6") {
6846
+ return 24;
6847
+ }
6848
+ else if (encodeTypeName == "MSI") {
6849
+ return 25;
6850
+ }
6851
+ else if (encodeTypeName == "VIN") {
6852
+ return 26;
6853
+ }
6854
+ else if (encodeTypeName == "DEUTSCHE_POST_IDENTCODE") {
6855
+ return 27;
6856
+ }
6857
+ else if (encodeTypeName == "DEUTSCHE_POST_LEITCODE") {
6858
+ return 28;
6859
+ }
6860
+ else if (encodeTypeName == "OPC") {
6861
+ return 29;
6862
+ }
6863
+ else if (encodeTypeName == "PZN") {
6864
+ return 30;
6865
+ }
6866
+ else if (encodeTypeName == "CODE_16_K") {
6867
+ return 31;
6868
+ }
6869
+ else if (encodeTypeName == "PHARMACODE") {
6870
+ return 32;
6871
+ }
6872
+ else if (encodeTypeName == "DATA_MATRIX") {
6873
+ return 33;
6874
+ }
6875
+ else if (encodeTypeName == "QR") {
6876
+ return 34;
6877
+ }
6878
+ else if (encodeTypeName == "AZTEC") {
6879
+ return 35;
6880
+ }
6881
+ else if (encodeTypeName == "GS_1_AZTEC") {
6882
+ return 81;
6883
+ }
6884
+ else if (encodeTypeName == "PDF_417") {
6885
+ return 36;
6886
+ }
6887
+ else if (encodeTypeName == "MACRO_PDF_417") {
6888
+ return 37;
6889
+ }
6890
+ else if (encodeTypeName == "GS_1_DATA_MATRIX") {
6891
+ return 48;
6892
+ }
6893
+ else if (encodeTypeName == "MICRO_PDF_417") {
6894
+ return 55;
6895
+ }
6896
+ else if (encodeTypeName == "GS_1_QR") {
6897
+ return 56;
6898
+ }
6899
+ else if (encodeTypeName == "MAXI_CODE") {
6900
+ return 57;
6901
+ }
6902
+ else if (encodeTypeName == "DOT_CODE") {
6903
+ return 60;
6904
+ }
6905
+ else if (encodeTypeName == "AUSTRALIA_POST") {
6906
+ return 38;
6907
+ }
6908
+ else if (encodeTypeName == "POSTNET") {
6909
+ return 39;
6910
+ }
6911
+ else if (encodeTypeName == "PLANET") {
6912
+ return 40;
6913
+ }
6914
+ else if (encodeTypeName == "ONE_CODE") {
6915
+ return 41;
6916
+ }
6917
+ else if (encodeTypeName == "RM_4_SCC") {
6918
+ return 42;
6919
+ }
6920
+ else if (encodeTypeName == "MAILMARK") {
6921
+ return 66;
6922
+ }
6923
+ else if (encodeTypeName == "DATABAR_OMNI_DIRECTIONAL") {
6924
+ return 43;
6925
+ }
6926
+ else if (encodeTypeName == "DATABAR_TRUNCATED") {
6927
+ return 44;
6928
+ }
6929
+ else if (encodeTypeName == "DATABAR_LIMITED") {
6930
+ return 45;
6931
+ }
6932
+ else if (encodeTypeName == "DATABAR_EXPANDED") {
6933
+ return 46;
6934
+ }
6935
+ else if (encodeTypeName == "DATABAR_EXPANDED_STACKED") {
6936
+ return 52;
6937
+ }
6938
+ else if (encodeTypeName == "DATABAR_STACKED") {
6939
+ return 53;
6940
+ }
6941
+ else if (encodeTypeName == "DATABAR_STACKED_OMNI_DIRECTIONAL") {
6942
+ return 54;
6943
+ }
6944
+ else if (encodeTypeName == "SINGAPORE_POST") {
6945
+ return 47;
6946
+ }
6947
+ else if (encodeTypeName == "AUSTRALIAN_POSTE_PARCEL") {
6948
+ return 49;
6949
+ }
6950
+ else if (encodeTypeName == "SWISS_POST_PARCEL") {
6951
+ return 50;
6952
+ }
6953
+ else if (encodeTypeName == "PATCH_CODE") {
6954
+ return 51;
6955
+ }
6956
+ else if (encodeTypeName == "CODE_32") {
6957
+ return 58;
6958
+ }
6959
+ else if (encodeTypeName == "DATA_LOGIC_2_OF_5") {
6960
+ return 59;
6961
+ }
6962
+ else if (encodeTypeName == "DUTCH_KIX") {
6963
+ return 61;
6964
+ }
6965
+ else if (encodeTypeName == "UPCA_GS_1_CODE_128_COUPON") {
6966
+ return 62;
6967
+ }
6968
+ else if (encodeTypeName == "UPCA_GS_1_DATABAR_COUPON") {
6969
+ return 63;
6970
+ }
6971
+ else if (encodeTypeName == "CODABLOCK_F") {
6972
+ return 64;
6973
+ }
6974
+ else if (encodeTypeName == "GS_1_CODABLOCK_F") {
6975
+ return 65;
6976
+ }
6977
+ else if (encodeTypeName == "GS_1_COMPOSITE_BAR") {
6978
+ return 67;
6979
+ }
6980
+ else if (encodeTypeName == "HIBC_CODE_39_LIC") {
6981
+ return 68;
6982
+ }
6983
+ else if (encodeTypeName == "HIBC_CODE_128_LIC") {
6984
+ return 69;
6985
+ }
6986
+ else if (encodeTypeName == "HIBC_AZTEC_LIC") {
6987
+ return 70;
6988
+ }
6989
+ else if (encodeTypeName == "HIBC_DATA_MATRIX_LIC") {
6990
+ return 71;
6991
+ }
6992
+ else if (encodeTypeName == "HIBCQRLIC") {
6993
+ return 72;
6994
+ }
6995
+ else if (encodeTypeName == "HIBC_CODE_39_PAS") {
6996
+ return 73;
6997
+ }
6998
+ else if (encodeTypeName == "HIBC_CODE_128_PAS") {
6999
+ return 74;
7000
+ }
7001
+ else if (encodeTypeName == "HIBC_AZTEC_PAS") {
7002
+ return 75;
7003
+ }
7004
+ else if (encodeTypeName == "HIBC_DATA_MATRIX_PAS") {
7005
+ return 76;
7006
+ }
7007
+ else if (encodeTypeName == "HIBCQRPAS") {
7008
+ return 77;
7009
+ }
7010
+ else if (encodeTypeName == "GS_1_DOT_CODE") {
7011
+ return 78;
7012
+ }
7013
+ else if (encodeTypeName == "HAN_XIN") {
7014
+ return 79;
7015
+ }
7016
+ else if (encodeTypeName == "GS_1_HAN_XIN") {
7017
+ return 80;
7018
+ }
7019
+ else if (encodeTypeName == "MICRO_QR") {
7020
+ return 83;
7021
+ }
7022
+ else if (encodeTypeName == "RECT_MICRO_QR") {
7023
+ return 84;
7024
+ }
7025
+ else {
7026
+ return -1;
7027
+ }
7028
+ }
7029
+ }
6773
7030
 
6774
7031
  /**
6775
7032
  * <p>
@@ -7546,37 +7803,37 @@ DotCodeEncodeMode =
7546
7803
  * Pdf417 barcode encode mode
7547
7804
  */
7548
7805
  Pdf417EncodeMode =
7549
- {
7550
- /**
7551
- *
7552
- * In Auto mode, the CodeText is encoded with maximum data compactness.
7553
- * Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
7554
- * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
7555
- */
7556
- AUTO: 0,
7806
+ {
7807
+ /**
7808
+ *
7809
+ * In Auto mode, the CodeText is encoded with maximum data compactness.
7810
+ * Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
7811
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
7812
+ */
7813
+ AUTO: 0,
7557
7814
 
7558
- /**
7559
- * In Binary mode, the CodeText is encoded with maximum data compactness.
7560
- * If a Unicode character is found, an exception is thrown.
7561
- */
7562
- BINARY: 1,
7815
+ /**
7816
+ * In Binary mode, the CodeText is encoded with maximum data compactness.
7817
+ * If a Unicode character is found, an exception is thrown.
7818
+ */
7819
+ BINARY: 1,
7563
7820
 
7564
- /**
7565
- * In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
7566
- * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
7567
- * Please note that some old (pre 2006) scanners may not support this mode.
7568
- */
7569
- ECI: 2,
7821
+ /**
7822
+ * In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
7823
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
7824
+ * Please note that some old (pre 2006) scanners may not support this mode.
7825
+ */
7826
+ ECI: 2,
7570
7827
 
7571
- /**
7572
- * Extended mode which supports multi ECI modes.
7573
- * It is better to use Pdf417ExtCodetextBuilder for extended codetext generation.
7574
- * Use Display2DText property to set visible text to removing managing characters.
7575
- * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
7576
- * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
7577
- */
7578
- EXTENDED: 3
7579
- }
7828
+ /**
7829
+ * Extended mode which supports multi ECI modes.
7830
+ * It is better to use Pdf417ExtCodetextBuilder for extended codetext generation.
7831
+ * Use Display2DText property to set visible text to removing managing characters.
7832
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
7833
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
7834
+ */
7835
+ EXTENDED: 3
7836
+ }
7580
7837
 
7581
7838
  /**
7582
7839
  * <p>
@@ -7600,7 +7857,7 @@ Pdf417EncodeMode =
7600
7857
  * </pre></blockquote></hr></p>
7601
7858
  */
7602
7859
  Code128EncodeMode =
7603
- {
7860
+ {
7604
7861
  /**
7605
7862
  * <p>
7606
7863
  * Encode codetext in classic ISO 15417 mode. The mode should be used in all ordinary cases.
@@ -7658,1077 +7915,1077 @@ Code128EncodeMode =
7658
7915
  * </p>
7659
7916
  */
7660
7917
  HanXinVersion =
7661
- {
7662
- /**
7663
- * <p>
7664
- * Specifies to automatically pick up the best version.
7665
- * This is default value.
7666
- * </p>
7667
- */
7668
- AUTO:0,
7669
- /**
7670
- * <p>
7671
- * Specifies version 1 with 23 x 23 modules.
7672
- * </p>
7673
- */
7674
- VERSION_01:1,
7675
- /**
7676
- * <p>
7677
- * Specifies version 2 with 25 x 25 modules.
7678
- * </p>
7679
- */
7680
- VERSION_02:2,
7681
- /**
7682
- * <p>
7683
- * Specifies version 3 with 27 x 27 modules.
7684
- * </p>
7685
- */
7686
- VERSION_03:3,
7687
- /**
7688
- * <p>
7689
- * Specifies version 4 with 29 x 29 modules.
7690
- * </p>
7691
- */
7692
- VERSION_04:4,
7693
- /**
7694
- * <p>
7695
- * Specifies version 5 with 31 x 31 modules.
7696
- * </p>
7697
- */
7698
- VERSION_05:5,
7699
- /**
7700
- * <p>
7701
- * Specifies version 6 with 33 x 33 modules.
7702
- * </p>
7703
- */
7704
- VERSION_06:6,
7705
- /**
7706
- * <p>
7707
- * Specifies version 7 with 35 x 35 modules.
7708
- * </p>
7709
- */
7710
- VERSION_07:7,
7711
- /**
7712
- * <p>
7713
- * Specifies version 8 with 37 x 37 modules.
7714
- * </p>
7715
- */
7716
- VERSION_08:8,
7717
- /**
7718
- * <p>
7719
- * Specifies version 9 with 39 x 39 modules.
7720
- * </p>
7721
- */
7722
- VERSION_09:9,
7723
- /**
7724
- * <p>
7725
- * Specifies version 10 with 41 x 41 modules.
7726
- * </p>
7727
- */
7728
- VERSION_10:10,
7729
- /**
7730
- * <p>
7731
- * Specifies version 11 with 43 x 43 modules.
7732
- * </p>
7733
- */
7734
- VERSION_11:11,
7735
- /**
7736
- * <p>
7737
- * Specifies version 12 with 45 x 45 modules.
7738
- * </p>
7739
- */
7740
- VERSION_12:12,
7741
- /**
7742
- * <p>
7743
- * Specifies version 13 with 47 x 47 modules.
7744
- * </p>
7745
- */
7746
- VERSION_13:13,
7747
- /**
7748
- * <p>
7749
- * Specifies version 14 with 49 x 49 modules.
7750
- * </p>
7751
- */
7752
- VERSION_14:14,
7753
- /**
7754
- * <p>
7755
- * Specifies version 15 with 51 x 51 modules.
7756
- * </p>
7757
- */
7758
- VERSION_15:15,
7759
- /**
7760
- * <p>
7761
- * Specifies version 16 with 53 x 53 modules.
7762
- * </p>
7763
- */
7764
- VERSION_16:16,
7765
- /**
7766
- * <p>
7767
- * Specifies version 17 with 55 x 55 modules.
7768
- * </p>
7769
- */
7770
- VERSION_17:17,
7771
- /**
7772
- * <p>
7773
- * Specifies version 18 with 57 x 57 modules.
7774
- * </p>
7775
- */
7776
- VERSION_18:18,
7777
- /**
7778
- * <p>
7779
- * Specifies version 19 with 59 x 59 modules.
7780
- * </p>
7781
- */
7782
- VERSION_19:19,
7783
- /**
7784
- * <p>
7785
- * Specifies version 20 with 61 x 61 modules.
7786
- * </p>
7787
- */
7788
- VERSION_20:20,
7789
- /**
7790
- * <p>
7791
- * Specifies version 21 with 63 x 63 modules.
7792
- * </p>
7793
- */
7794
- VERSION_21:21,
7795
- /**
7796
- * <p>
7797
- * Specifies version 22 with 65 x 65 modules.
7798
- * </p>
7799
- */
7800
- VERSION_22:22,
7801
- /**
7802
- * <p>
7803
- * Specifies version 23 with 67 x 67 modules.
7804
- * </p>
7805
- */
7806
- VERSION_23:23,
7807
- /**
7808
- * <p>
7809
- * Specifies version 24 with 69 x 69 modules.
7810
- * </p>
7811
- */
7812
- VERSION_24:24,
7813
- /**
7814
- * <p>
7815
- * Specifies version 25 with 71 x 71 modules.
7816
- * </p>
7817
- */
7818
- VERSION_25:25,
7819
- /**
7820
- * <p>
7821
- * Specifies version 26 with 73 x 73 modules.
7822
- * </p>
7823
- */
7824
- VERSION_26:26,
7825
- /**
7826
- * <p>
7827
- * Specifies version 27 with 75 x 75 modules.
7828
- * </p>
7829
- */
7830
- VERSION_27:27,
7831
- /**
7832
- * <p>
7833
- * Specifies version 28 with 77 x 77 modules.
7834
- * </p>
7835
- */
7836
- VERSION_28:28,
7837
- /**
7838
- * <p>
7839
- * Specifies version 29 with 79 x 79 modules.
7840
- * </p>
7841
- */
7842
- VERSION_29:29,
7843
- /**
7844
- * <p>
7845
- * Specifies version 30 with 81 x 81 modules.
7846
- * </p>
7847
- */
7848
- VERSION_30:30,
7849
- /**
7850
- * <p>
7851
- * Specifies version 31 with 83 x 83 modules.
7852
- * </p>
7853
- */
7854
- VERSION_31:31,
7855
- /**
7856
- * <p>
7857
- * Specifies version 32 with 85 x 85 modules.
7858
- * </p>
7859
- */
7860
- VERSION_32:32,
7861
- /**
7862
- * <p>
7863
- * Specifies version 33 with 87 x 87 modules.
7864
- * </p>
7865
- */
7866
- VERSION_33:33,
7867
- /**
7868
- * <p>
7869
- * Specifies version 34 with 89 x 89 modules.
7870
- * </p>
7871
- */
7872
- VERSION_34:34,
7873
- /**
7874
- * <p>
7875
- * Specifies version 35 with 91 x 91 modules.
7876
- * </p>
7877
- */
7878
- VERSION_35:35,
7879
- /**
7880
- * <p>
7881
- * Specifies version 36 with 93 x 93 modules.
7882
- * </p>
7883
- */
7884
- VERSION_36:36,
7885
- /**
7886
- * <p>
7887
- * Specifies version 37 with 95 x 95 modules.
7888
- * </p>
7889
- */
7890
- VERSION_37:37,
7891
- /**
7892
- * <p>
7893
- * Specifies version 38 with 97 x 97 modules.
7894
- * </p>
7895
- */
7896
- VERSION_38:38,
7897
- /**
7898
- * <p>
7899
- * Specifies version 39 with 99 x 99 modules.
7900
- * </p>
7901
- */
7902
- VERSION_39:39,
7903
- /**
7904
- * <p>
7905
- * Specifies version 40 with 101 x 101 modules.
7906
- * </p>
7907
- */
7908
- VERSION_40:40,
7909
- /**
7910
- * <p>
7911
- * Specifies version 41 with 103 x 103 modules.
7912
- * </p>
7913
- */
7914
- VERSION_41:41,
7915
- /**
7916
- * <p>
7917
- * Specifies version 42 with 105 x 105 modules.
7918
- * </p>
7919
- */
7920
- VERSION_42:42,
7921
- /**
7922
- * <p>
7923
- * Specifies version 43 with 107 x 107 modules.
7924
- * </p>
7925
- */
7926
- VERSION_43:43,
7927
- /**
7928
- * <p>
7929
- * Specifies version 44 with 109 x 109 modules.
7930
- * </p>
7931
- */
7932
- VERSION_44:44,
7933
- /**
7934
- * <p>
7935
- * Specifies version 45 with 111 x 111 modules.
7936
- * </p>
7937
- */
7938
- VERSION_45:45,
7939
- /**
7940
- * <p>
7941
- * Specifies version 46 with 113 x 113 modules.
7942
- * </p>
7943
- */
7944
- VERSION_46:46,
7945
- /**
7946
- * <p>
7947
- * Specifies version 47 with 115 x 115 modules.
7948
- * </p>
7949
- */
7950
- VERSION_47:47,
7951
- /**
7952
- * <p>
7953
- * Specifies version 48 with 117 x 117 modules.
7954
- * </p>
7955
- */
7956
- VERSION_48:48,
7957
- /**
7958
- * <p>
7959
- * Specifies version 49 with 119 x 119 modules.
7960
- * </p>
7961
- */
7962
- VERSION_49:49,
7963
- /**
7964
- * <p>
7965
- * Specifies version 50 with 121 x 121 modules.
7966
- * </p>
7967
- */
7968
- VERSION_50:50,
7969
- /**
7970
- * <p>
7971
- * Specifies version 51 with 123 x 123 modules.
7972
- * </p>
7973
- */
7974
- VERSION_51:51,
7975
- /**
7976
- * <p>
7977
- * Specifies version 52 with 125 x 125 modules.
7978
- * </p>
7979
- */
7980
- VERSION_52:52,
7981
- /**
7982
- * <p>
7983
- * Specifies version 53 with 127 x 127 modules.
7984
- * </p>
7985
- */
7986
- VERSION_53:53,
7987
- /**
7988
- * <p>
7989
- * Specifies version 54 with 129 x 129 modules.
7990
- * </p>
7991
- */
7992
- VERSION_54:54,
7993
- /**
7994
- * <p>
7995
- * Specifies version 55 with 131 x 131 modules.
7996
- * </p>
7997
- */
7998
- VERSION_55:55,
7999
- /**
8000
- * <p>
8001
- * Specifies version 56 with 133 x 133 modules.
8002
- * </p>
8003
- */
8004
- VERSION_56:56,
8005
- /**
8006
- * <p>
8007
- * Specifies version 57 with 135 x 135 modules.
8008
- * </p>
8009
- */
8010
- VERSION_57:57,
8011
- /**
8012
- * <p>
8013
- * Specifies version 58 with 137 x 137 modules.
8014
- * </p>
8015
- */
8016
- VERSION_58:58,
8017
- /**
8018
- * <p>
8019
- * Specifies version 59 with 139 x 139 modules.
8020
- * </p>
8021
- */
8022
- VERSION_59:59,
8023
- /**
8024
- * <p>
8025
- * Specifies version 60 with 141 x 141 modules.
8026
- * </p>
8027
- */
8028
- VERSION_60:60,
8029
- /**
8030
- * <p>
8031
- * Specifies version 61 with 143 x 143 modules.
8032
- * </p>
8033
- */
8034
- VERSION_61:61,
8035
- /**
8036
- * <p>
8037
- * Specifies version 62 with 145 x 145 modules.
8038
- * </p>
8039
- */
8040
- VERSION_62:62,
8041
- /**
8042
- * <p>
8043
- * Specifies version 63 with 147 x 147 modules.
8044
- * </p>
8045
- */
8046
- VERSION_63:63,
8047
- /**
8048
- * <p>
8049
- * Specifies version 64 with 149 x 149 modules.
8050
- * </p>
8051
- */
8052
- VERSION_64:64,
8053
- /**
8054
- * <p>
8055
- * Specifies version 65 with 151 x 151 modules.
8056
- * </p>
8057
- */
8058
- VERSION_65:65,
8059
- /**
8060
- * <p>
8061
- * Specifies version 66 with 153 x 153 modules.
8062
- * </p>
8063
- */
8064
- VERSION_66:66,
8065
- /**
8066
- * <p>
8067
- * Specifies version 67 with 155 x 155 modules.
8068
- * </p>
8069
- */
8070
- VERSION_67:67,
8071
- /**
8072
- * <p>
8073
- * Specifies version 68 with 157 x 157 modules.
8074
- * </p>
8075
- */
8076
- VERSION_68:68,
8077
- /**
8078
- * <p>
8079
- * Specifies version 69 with 159 x 159 modules.
8080
- * </p>
8081
- */
8082
- VERSION_69:69,
8083
- /**
8084
- * <p>
8085
- * Specifies version 70 with 161 x 161 modules.
8086
- * </p>
8087
- */
8088
- VERSION_70:70,
8089
- /**
8090
- * <p>
8091
- * Specifies version 71 with 163 x 163 modules.
8092
- * </p>
8093
- */
8094
- VERSION_71:71,
8095
- /**
8096
- * <p>
8097
- * Specifies version 72 with 165 x 165 modules.
8098
- * </p>
8099
- */
8100
- VERSION_72:72,
8101
- /**
8102
- * <p>
8103
- * Specifies version 73 with 167 x 167 modules.
8104
- * </p>
8105
- */
8106
- VERSION_73:73,
8107
- /**
8108
- * <p>
8109
- * Specifies version 74 with 169 x 169 modules.
8110
- * </p>
8111
- */
8112
- VERSION_74:74,
8113
- /**
8114
- * <p>
8115
- * Specifies version 75 with 171 x 171 modules.
8116
- * </p>
8117
- */
8118
- VERSION_75:75,
8119
- /**
8120
- * <p>
8121
- * Specifies version 76 with 173 x 173 modules.
8122
- * </p>
8123
- */
8124
- VERSION_76:76,
8125
- /**
8126
- * <p>
8127
- * Specifies version 77 with 175 x 175 modules.
8128
- * </p>
8129
- */
8130
- VERSION_77:77,
8131
- /**
8132
- * <p>
8133
- * Specifies version 78 with 177 x 177 modules.
8134
- * </p>
8135
- */
8136
- VERSION_78:78,
8137
- /**
8138
- * <p>
8139
- * Specifies version 79 with 179 x 179 modules.
8140
- * </p>
8141
- */
8142
- VERSION_79:79,
8143
- /**
8144
- * <p>
8145
- * Specifies version 80 with 181 x 181 modules.
8146
- * </p>
8147
- */
8148
- VERSION_80:80,
8149
- /**
8150
- * <p>
8151
- * Specifies version 81 with 183 x 183 modules.
8152
- * </p>
8153
- */
8154
- VERSION_81:81,
8155
- /**
8156
- * <p>
8157
- * Specifies version 82 with 185 x 185 modules.
8158
- * </p>
8159
- */
8160
- VERSION_82:82,
8161
- /**
8162
- * <p>
8163
- * Specifies version 83 with 187 x 187 modules.
8164
- * </p>
8165
- */
8166
- VERSION_83:83,
8167
- /**
8168
- * <p>
8169
- * Specifies version 84 with 189 x 189 modules.
8170
- * </p>
8171
- */
8172
- VERSION_84:84,
8173
- }
8174
-
8175
- /**
8176
- * <p>
8177
- * Level of Reed-Solomon error correction. From low to high: L1, L2, L3, L4.
8178
- * </p>
8179
- */
8180
- HanXinErrorLevel =
8181
- {
8182
- /**
8183
- * <p>
8184
- * Allows recovery of 8% of the code text
8185
- * </p>
8186
- */
8187
- L1:0,
8188
- /**
8189
- * <p>
8190
- * Allows recovery of 15% of the code text
8191
- * </p>
8192
- */
8193
- L2:1,
8194
- /**
8195
- * <p>
8196
- * Allows recovery of 23% of the code text
8197
- * </p>
8198
- */
8199
- L3:2,
8200
- /**
8201
- * <p>
8202
- * Allows recovery of 30% of the code text
8203
- * </p>
8204
- */
8205
- L4:3
8206
- }
8207
-
8208
- /**
8209
- * <p>
8210
- * Han Xin Code encoding mode. It is recommended to use Auto with ASCII / Chinese characters or Unicode for Unicode characters.
8211
- * </p><p><hr><blockquote><pre>
8212
- * <pre>
8213
- * @example
8214
- * // Auto mode
8215
- * let codetext = "1234567890ABCDEFGabcdefg,Han Xin Code";
8216
- * let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
8217
- * generator.save("test.bmp", BarcodeImageFormat.BMP);
8218
- *
8219
- * @example
8220
- * // Bytes mode
8221
- * let encodedArr = [0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9];
8222
- *
8223
- * //encode array to string
8224
- * let codetext = "";
8225
- * for (int i = 0; i <encodedArr.length; i++)
8226
- * {
8227
- * let bval = String.fromCharCode(encodedArr[i]);
8228
- * codetext += bval;
8229
- * }
8230
- *
8231
- * let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
8232
- * generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.BYTES);
8233
- * generator.save("test.bmp", BarcodeImageFormat.BMP);
8234
- *
8235
- * @example
8236
- * // ECI mode
8237
- * let codetext = "ΑΒΓΔΕ";
8238
- * let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
8239
- * generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.ECI);
8240
- * generator.getParameters().getBarcode().getHanXin().setHanXinECIEncoding(ECIEncodings.ISO_8859_7);
8241
- * generator.save("test.bmp", BarcodeImageFormat.BMP);
8242
- *
8243
- * @example
8244
- * // URI mode
8245
- * let codetext = "https://www.test.com/%BC%DE%%%ab/search=test";
8246
- * generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
8247
- * generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.URI);
8248
- * generator.save("test.bmp", BarcodeImageFormat.BMP);
8249
- *
8250
- * // Extended mode - TBD
8251
- * </pre>
8252
- * </pre></blockquote></hr></p>
8253
- */
8254
- HanXinEncodeMode =
8255
- {
8256
- /**
8257
- * <p>
8258
- * Sequence of Numeric, Text, ECI, Binary Bytes and 4 GB18030 modes changing automatically.
8259
- * </p>
8260
- */
8261
- AUTO:0,
8262
- /**
8263
- * <p>
8264
- * Binary byte mode encodes binary data in any form and encodes them in their binary byte. Every byte in
8265
- * Binary Byte mode is represented by 8 bits.
8266
- * </p>
8267
- */
8268
- BINARY:1,
8269
- /**
8270
- * <p>
8271
- * Extended Channel Interpretation (ECI) mode
8272
- * </p>
8273
- */
8274
- ECI:2,
8275
- /**
8276
- * <p>
8277
- * Unicode mode designs a way to represent any text data reference to UTF8 encoding/charset in Han Xin Code.
8278
- * </p>
8279
- */
8280
- UNICODE:3,
8281
- /**
8282
- * <p>
8283
- * URI mode indicates the data represented in Han Xin Code is Uniform Resource Identifier (URI)
8284
- * reference to RFC 3986.
8285
- * </p>
8286
- */
8287
- URI:4,
8288
- /**
8289
- * <p>
8290
- * Extended mode will allow more flexible combinations of other modes, this mode is currently not implemented.
8291
- * </p>
8292
- */
8293
- EXTENDED:5
8294
- }
8295
-
8296
- /**
8297
- * <p>
8298
- * Specify the type of the ECC to encode.
8299
- * </p>
8300
- */
8301
- DataMatrixVersion =
8302
- {
8303
- /**
8304
- * <p>
8305
- * Specifies to automatically pick up the smallest size for DataMatrix.
8306
- * This is default value.
8307
- * </p>
8308
- */
8309
- AUTO:0,
8310
- /**
8311
- * <p>
8312
- * Instructs to get symbol sizes from Rows And Columns parameters. Note that DataMatrix does not support
8313
- * custom rows and columns numbers. This option is not recommended to use.
8314
- * </p>
8315
- */
8316
- ROWS_COLUMNS:1,
8317
- /**
8318
- * <p>
8319
- * Specifies size of 9 x 9 modules for ECC000 type.
8320
- * </p>
8321
- */
8322
- ECC000_9x9:2,
8323
- /**
8324
- * <p>
8325
- * Specifies size of 11 x 11 modules for ECC000-ECC050 types.
8326
- * </p>
8327
- */
8328
- ECC000_050_11x11:3,
8329
- /**
8330
- * <p>
8331
- * Specifies size of 13 x 13 modules for ECC000-ECC100 types.
8332
- * </p>
8333
- */
8334
- ECC000_100_13x13:4,
8335
- /**
8336
- * <p>
8337
- * Specifies size of 15 x 15 modules for ECC000-ECC100 types.
8338
- * </p>
8339
- */
8340
- ECC000_100_15x15:5,
8341
- /**
8342
- * <p>
8343
- * Specifies size of 17 x 17 modules for ECC000-ECC140 types.
8344
- * </p>
8345
- */
8346
- ECC000_140_17x17:6,
8347
- /**
8348
- * <p>
8349
- * Specifies size of 19 x 19 modules for ECC000-ECC140 types.
8350
- * </p>
8351
- */
8352
- ECC000_140_19x19:7,
8353
- /**
8354
- * <p>
8355
- * Specifies size of 21 x 21 modules for ECC000-ECC140 types.
8356
- * </p>
8357
- */
8358
- ECC000_140_21x21:8,
8359
- /**
8360
- * <p>
8361
- * Specifies size of 23 x 23 modules for ECC000-ECC140 types.
8362
- * </p>
8363
- */
8364
- ECC000_140_23x23:9,
8365
- /**
8366
- * <p>
8367
- * Specifies size of 25 x 25 modules for ECC000-ECC140 types.
8368
- * </p>
8369
- */
8370
- ECC000_140_25x25:10,
8371
- /**
8372
- * <p>
8373
- * Specifies size of 27 x 27 modules for ECC000-ECC140 types.
8374
- * </p>
8375
- */
8376
- ECC000_140_27x27:11,
8377
- /**
8378
- * <p>
8379
- * Specifies size of 29 x 29 modules for ECC000-ECC140 types.
8380
- * </p>
8381
- */
8382
- ECC000_140_29x29:12,
8383
- /**
8384
- * <p>
8385
- * Specifies size of 31 x 31 modules for ECC000-ECC140 types.
8386
- * </p>
8387
- */
8388
- ECC000_140_31x31:13,
8389
- /**
8390
- * <p>
8391
- * Specifies size of 33 x 33 modules for ECC000-ECC140 types.
8392
- * </p>
8393
- */
8394
- ECC000_140_33x33:14,
8395
- /**
8396
- * <p>
8397
- * Specifies size of 35 x 35 modules for ECC000-ECC140 types.
8398
- * </p>
8399
- */
8400
- ECC000_140_35x35:15,
8401
- /**
8402
- * <p>
8403
- * Specifies size of 37 x 37 modules for ECC000-ECC140 types.
8404
- * </p>
8405
- */
8406
- ECC000_140_37x37:16,
8407
- /**
8408
- * <p>
8409
- * Specifies size of 39 x 39 modules for ECC000-ECC140 types.
8410
- * </p>
8411
- */
8412
- ECC000_140_39x39:17,
8413
- /**
8414
- * <p>
8415
- * Specifies size of 41 x 41 modules for ECC000-ECC140 types.
8416
- * </p>
8417
- */
8418
- ECC000_140_41x41:18,
8419
- /**
8420
- * <p>
8421
- * Specifies size of 43 x 43 modules for ECC000-ECC140 types.
8422
- * </p>
8423
- */
8424
- ECC000_140_43x43:19,
8425
- /**
8426
- * <p>
8427
- * Specifies size of 45 x 45 modules for ECC000-ECC140 types.
8428
- * </p>
8429
- */
8430
- ECC000_140_45x45:20,
8431
- /**
8432
- * <p>
8433
- * Specifies size of 47 x 47 modules for ECC000-ECC140 types.
8434
- * </p>
8435
- */
8436
- ECC000_140_47x47:21,
8437
- /**
8438
- * <p>
8439
- * Specifies size of 49 x 49 modules for ECC000-ECC140 types.
8440
- * </p>
8441
- */
8442
- ECC000_140_49x49:22,
8443
- /**
8444
- * <p>
8445
- * Specifies size of 10 x 10 modules for ECC200 type.
8446
- * </p>
8447
- */
8448
- ECC200_10x10:23,
8449
- /**
8450
- * <p>
8451
- * Specifies size of 12 x 12 modules for ECC200 type.
8452
- * </p>
8453
- */
8454
- ECC200_12x12:24,
8455
- /**
8456
- * <p>
8457
- * Specifies size of 14 x 14 modules for ECC200 type.
8458
- * </p>
8459
- */
8460
- ECC200_14x14:25,
8461
- /**
8462
- * <p>
8463
- * Specifies size of 16 x 16 modules for ECC200 type.
8464
- * </p>
8465
- */
8466
- ECC200_16x16:26,
8467
- /**
8468
- * <p>
8469
- * Specifies size of 18 x 18 modules for ECC200 type.
8470
- * </p>
8471
- */
8472
- ECC200_18x18:27,
8473
- /**
8474
- * <p>
8475
- * Specifies size of 20 x 20 modules for ECC200 type.
8476
- * </p>
8477
- */
8478
- ECC200_20x20:28,
8479
- /**
8480
- * <p>
8481
- * Specifies size of 22 x 22 modules for ECC200 type.
8482
- * </p>
8483
- */
8484
- ECC200_22x22:29,
8485
- /**
8486
- * <p>
8487
- * Specifies size of 24 x 24 modules for ECC200 type.
8488
- * </p>
8489
- */
8490
- ECC200_24x24:30,
8491
- /**
8492
- * <p>
8493
- * Specifies size of 26 x 26 modules for ECC200 type.
8494
- * </p>
8495
- */
8496
- ECC200_26x26:31,
8497
- /**
8498
- * <p>
8499
- * Specifies size of 32 x 32 modules for ECC200 type.
8500
- * </p>
8501
- */
8502
- ECC200_32x32:32,
8503
- /**
8504
- * <p>
8505
- * Specifies size of 36 x 36 modules for ECC200 type.
8506
- * </p>
8507
- */
8508
- ECC200_36x36:33,
8509
- /**
8510
- * <p>
8511
- * Specifies size of 40 x 40 modules for ECC200 type.
8512
- * </p>
8513
- */
8514
- ECC200_40x40:34,
8515
- /**
8516
- * <p>
8517
- * Specifies size of 44 x 44 modules for ECC200 type.
8518
- * </p>
8519
- */
8520
- ECC200_44x44:35,
8521
- /**
8522
- * <p>
8523
- * Specifies size of 48 x 48 modules for ECC200 type.
8524
- * </p>
8525
- */
8526
- ECC200_48x48:36,
8527
- /**
8528
- * <p>
8529
- * Specifies size of 52 x 52 modules for ECC200 type.
8530
- * </p>
8531
- */
8532
- ECC200_52x52:37,
8533
- /**
8534
- * <p>
8535
- * Specifies size of 64 x 64 modules for ECC200 type.
8536
- * </p>
8537
- */
8538
- ECC200_64x64:38,
8539
- /**
8540
- * <p>
8541
- * Specifies size of 72 x 72 modules for ECC200 type.
8542
- * </p>
8543
- */
8544
- ECC200_72x72:39,
8545
- /**
8546
- * <p>
8547
- * Specifies size of 80 x 80 modules for ECC200 type.
8548
- * </p>
8549
- */
8550
- ECC200_80x80:40,
8551
- /**
8552
- * <p>
8553
- * Specifies size of 88 x 88 modules for ECC200 type.
8554
- * </p>
8555
- */
8556
- ECC200_88x88:41,
8557
- /**
8558
- * <p>
8559
- * Specifies size of 96 x 96 modules for ECC200 type.
8560
- * </p>
8561
- */
8562
- ECC200_96x96:42,
8563
- /**
8564
- * <p>
8565
- * Specifies size of 104 x 104 modules for ECC200 type.
8566
- * </p>
8567
- */
8568
- ECC200_104x104:43,
8569
- /**
8570
- * <p>
8571
- * Specifies size of 120 x 120 modules for ECC200 type.
8572
- * </p>
8573
- */
8574
- ECC200_120x120:44,
8575
- /**
8576
- * <p>
8577
- * Specifies size of 132 x 132 modules for ECC200 type.
8578
- * </p>
8579
- */
8580
- ECC200_132x132:45,
8581
- /**
8582
- * <p>
8583
- * Specifies size of 144 x 144 modules for ECC200 type.
8584
- * </p>
8585
- */
8586
- ECC200_144x144:46,
8587
- /**
8588
- * <p>
8589
- * Specifies size of 8 x 18 modules for ECC200 type.
8590
- * </p>
8591
- */
8592
- ECC200_8x18:47,
8593
- /**
8594
- * <p>
8595
- * Specifies size of 8 x 32 modules for ECC200 type.
8596
- * </p>
8597
- */
8598
- ECC200_8x32:48,
8599
- /**
8600
- * <p>
8601
- * Specifies size of 12 x 26 modules for ECC200 type.
8602
- * </p>
8603
- */
8604
- ECC200_12x26:49,
8605
- /**
8606
- * <p>
8607
- * Specifies size of 12 x 36 modules for ECC200 type.
8608
- * </p>
8609
- */
8610
- ECC200_12x36:50,
8611
- /**
8612
- * <p>
8613
- * Specifies size of 16 x 36 modules for ECC200 type.
8614
- * </p>
8615
- */
8616
- ECC200_16x36:51,
8617
- /**
8618
- * <p>
8619
- * Specifies size of 16 x 48 modules for ECC200 type.
8620
- * </p>
8621
- */
8622
- ECC200_16x48:52,
8623
- /**
8624
- * <p>
8625
- * Specifies size of 8 x 48 modules for DMRE barcodes.
8626
- * </p>
8627
- */
8628
- DMRE_8x48:53,
8629
- /**
8630
- * <p>
8631
- * Specifies size of 8 x 64 modules for DMRE barcodes.
8632
- * </p>
8633
- */
8634
- DMRE_8x64:54,
8635
- /**
8636
- * <p>
8637
- * Specifies size of 8 x 80 modules for DMRE barcodes.
8638
- * </p>
8639
- */
8640
- DMRE_8x80:55,
8641
- /**
8642
- * <p>
8643
- * Specifies size of 8 x 96 modules for DMRE barcodes.
8644
- * </p>
8645
- */
8646
- DMRE_8x96:56,
8647
- /**
8648
- * <p>
8649
- * Specifies size of 8 x 120 modules for DMRE barcodes.
8650
- * </p>
8651
- */
8652
- DMRE_8x120:57,
8653
- /**
8654
- * <p>
8655
- * Specifies size of 8 x 144 modules for DMRE barcodes.
8656
- * </p>
8657
- */
8658
- DMRE_8x144:58,
8659
- /**
8660
- * <p>
8661
- * Specifies size of 12 x 64 modules for DMRE barcodes.
8662
- * </p>
8663
- */
8664
- DMRE_12x64:59,
8665
- /**
8666
- * <p>
8667
- * Specifies size of 12 x 88 modules for DMRE barcodes.
8668
- * </p>
8669
- */
8670
- DMRE_12x88:60,
8671
- /**
8672
- * <p>
8673
- * Specifies size of 16 x 64 modules for DMRE barcodes.
8674
- * </p>
8675
- */
8676
- DMRE_16x64:61,
8677
- /**
8678
- * <p>
8679
- * Specifies size of 20 x 36 modules for DMRE barcodes.
8680
- * </p>
8681
- */
8682
- DMRE_20x36:62,
8683
- /**
8684
- * <p>
8685
- * Specifies size of 20 x 44 modules for DMRE barcodes.
8686
- * </p>
8687
- */
8688
- DMRE_20x44:63,
8689
- /**
8690
- * <p>
8691
- * Specifies size of 20 x 64 modules for DMRE barcodes.
8692
- * </p>
8693
- */
8694
- DMRE_20x64:64,
8695
- /**
8696
- * <p>
8697
- * Specifies size of 22 x 48 modules for DMRE barcodes.
8698
- * </p>
8699
- */
8700
- DMRE_22x48:65,
8701
- /**
8702
- * <p>
8703
- * Specifies size of 24 x 48 modules for DMRE barcodes.
8704
- * </p>
8705
- */
8706
- DMRE_24x48:66,
8707
- /**
8708
- * <p>
8709
- * Specifies size of 24 x 64 modules for DMRE barcodes.
8710
- * </p>
8711
- */
8712
- DMRE_24x64:67,
8713
- /**
8714
- * <p>
8715
- * Specifies size of 26 x 40 modules for DMRE barcodes.
8716
- * </p>
8717
- */
8718
- DMRE_26x40:68,
8719
- /**
8720
- * <p>
8721
- * Specifies size of 26 x 48 modules for DMRE barcodes.
8722
- * </p>
8723
- */
8724
- DMRE_26x48:69,
8725
- /**
8726
- * <p>
8727
- * Specifies size of 26 x 64 modules for DMRE barcodes.
8728
- * </p>
8729
- */
8730
- DMRE_26x64:70
8731
- }
7918
+ {
7919
+ /**
7920
+ * <p>
7921
+ * Specifies to automatically pick up the best version.
7922
+ * This is default value.
7923
+ * </p>
7924
+ */
7925
+ AUTO: 0,
7926
+ /**
7927
+ * <p>
7928
+ * Specifies version 1 with 23 x 23 modules.
7929
+ * </p>
7930
+ */
7931
+ VERSION_01: 1,
7932
+ /**
7933
+ * <p>
7934
+ * Specifies version 2 with 25 x 25 modules.
7935
+ * </p>
7936
+ */
7937
+ VERSION_02: 2,
7938
+ /**
7939
+ * <p>
7940
+ * Specifies version 3 with 27 x 27 modules.
7941
+ * </p>
7942
+ */
7943
+ VERSION_03: 3,
7944
+ /**
7945
+ * <p>
7946
+ * Specifies version 4 with 29 x 29 modules.
7947
+ * </p>
7948
+ */
7949
+ VERSION_04: 4,
7950
+ /**
7951
+ * <p>
7952
+ * Specifies version 5 with 31 x 31 modules.
7953
+ * </p>
7954
+ */
7955
+ VERSION_05: 5,
7956
+ /**
7957
+ * <p>
7958
+ * Specifies version 6 with 33 x 33 modules.
7959
+ * </p>
7960
+ */
7961
+ VERSION_06: 6,
7962
+ /**
7963
+ * <p>
7964
+ * Specifies version 7 with 35 x 35 modules.
7965
+ * </p>
7966
+ */
7967
+ VERSION_07: 7,
7968
+ /**
7969
+ * <p>
7970
+ * Specifies version 8 with 37 x 37 modules.
7971
+ * </p>
7972
+ */
7973
+ VERSION_08: 8,
7974
+ /**
7975
+ * <p>
7976
+ * Specifies version 9 with 39 x 39 modules.
7977
+ * </p>
7978
+ */
7979
+ VERSION_09: 9,
7980
+ /**
7981
+ * <p>
7982
+ * Specifies version 10 with 41 x 41 modules.
7983
+ * </p>
7984
+ */
7985
+ VERSION_10: 10,
7986
+ /**
7987
+ * <p>
7988
+ * Specifies version 11 with 43 x 43 modules.
7989
+ * </p>
7990
+ */
7991
+ VERSION_11: 11,
7992
+ /**
7993
+ * <p>
7994
+ * Specifies version 12 with 45 x 45 modules.
7995
+ * </p>
7996
+ */
7997
+ VERSION_12: 12,
7998
+ /**
7999
+ * <p>
8000
+ * Specifies version 13 with 47 x 47 modules.
8001
+ * </p>
8002
+ */
8003
+ VERSION_13: 13,
8004
+ /**
8005
+ * <p>
8006
+ * Specifies version 14 with 49 x 49 modules.
8007
+ * </p>
8008
+ */
8009
+ VERSION_14: 14,
8010
+ /**
8011
+ * <p>
8012
+ * Specifies version 15 with 51 x 51 modules.
8013
+ * </p>
8014
+ */
8015
+ VERSION_15: 15,
8016
+ /**
8017
+ * <p>
8018
+ * Specifies version 16 with 53 x 53 modules.
8019
+ * </p>
8020
+ */
8021
+ VERSION_16: 16,
8022
+ /**
8023
+ * <p>
8024
+ * Specifies version 17 with 55 x 55 modules.
8025
+ * </p>
8026
+ */
8027
+ VERSION_17: 17,
8028
+ /**
8029
+ * <p>
8030
+ * Specifies version 18 with 57 x 57 modules.
8031
+ * </p>
8032
+ */
8033
+ VERSION_18: 18,
8034
+ /**
8035
+ * <p>
8036
+ * Specifies version 19 with 59 x 59 modules.
8037
+ * </p>
8038
+ */
8039
+ VERSION_19: 19,
8040
+ /**
8041
+ * <p>
8042
+ * Specifies version 20 with 61 x 61 modules.
8043
+ * </p>
8044
+ */
8045
+ VERSION_20: 20,
8046
+ /**
8047
+ * <p>
8048
+ * Specifies version 21 with 63 x 63 modules.
8049
+ * </p>
8050
+ */
8051
+ VERSION_21: 21,
8052
+ /**
8053
+ * <p>
8054
+ * Specifies version 22 with 65 x 65 modules.
8055
+ * </p>
8056
+ */
8057
+ VERSION_22: 22,
8058
+ /**
8059
+ * <p>
8060
+ * Specifies version 23 with 67 x 67 modules.
8061
+ * </p>
8062
+ */
8063
+ VERSION_23: 23,
8064
+ /**
8065
+ * <p>
8066
+ * Specifies version 24 with 69 x 69 modules.
8067
+ * </p>
8068
+ */
8069
+ VERSION_24: 24,
8070
+ /**
8071
+ * <p>
8072
+ * Specifies version 25 with 71 x 71 modules.
8073
+ * </p>
8074
+ */
8075
+ VERSION_25: 25,
8076
+ /**
8077
+ * <p>
8078
+ * Specifies version 26 with 73 x 73 modules.
8079
+ * </p>
8080
+ */
8081
+ VERSION_26: 26,
8082
+ /**
8083
+ * <p>
8084
+ * Specifies version 27 with 75 x 75 modules.
8085
+ * </p>
8086
+ */
8087
+ VERSION_27: 27,
8088
+ /**
8089
+ * <p>
8090
+ * Specifies version 28 with 77 x 77 modules.
8091
+ * </p>
8092
+ */
8093
+ VERSION_28: 28,
8094
+ /**
8095
+ * <p>
8096
+ * Specifies version 29 with 79 x 79 modules.
8097
+ * </p>
8098
+ */
8099
+ VERSION_29: 29,
8100
+ /**
8101
+ * <p>
8102
+ * Specifies version 30 with 81 x 81 modules.
8103
+ * </p>
8104
+ */
8105
+ VERSION_30: 30,
8106
+ /**
8107
+ * <p>
8108
+ * Specifies version 31 with 83 x 83 modules.
8109
+ * </p>
8110
+ */
8111
+ VERSION_31: 31,
8112
+ /**
8113
+ * <p>
8114
+ * Specifies version 32 with 85 x 85 modules.
8115
+ * </p>
8116
+ */
8117
+ VERSION_32: 32,
8118
+ /**
8119
+ * <p>
8120
+ * Specifies version 33 with 87 x 87 modules.
8121
+ * </p>
8122
+ */
8123
+ VERSION_33: 33,
8124
+ /**
8125
+ * <p>
8126
+ * Specifies version 34 with 89 x 89 modules.
8127
+ * </p>
8128
+ */
8129
+ VERSION_34: 34,
8130
+ /**
8131
+ * <p>
8132
+ * Specifies version 35 with 91 x 91 modules.
8133
+ * </p>
8134
+ */
8135
+ VERSION_35: 35,
8136
+ /**
8137
+ * <p>
8138
+ * Specifies version 36 with 93 x 93 modules.
8139
+ * </p>
8140
+ */
8141
+ VERSION_36: 36,
8142
+ /**
8143
+ * <p>
8144
+ * Specifies version 37 with 95 x 95 modules.
8145
+ * </p>
8146
+ */
8147
+ VERSION_37: 37,
8148
+ /**
8149
+ * <p>
8150
+ * Specifies version 38 with 97 x 97 modules.
8151
+ * </p>
8152
+ */
8153
+ VERSION_38: 38,
8154
+ /**
8155
+ * <p>
8156
+ * Specifies version 39 with 99 x 99 modules.
8157
+ * </p>
8158
+ */
8159
+ VERSION_39: 39,
8160
+ /**
8161
+ * <p>
8162
+ * Specifies version 40 with 101 x 101 modules.
8163
+ * </p>
8164
+ */
8165
+ VERSION_40: 40,
8166
+ /**
8167
+ * <p>
8168
+ * Specifies version 41 with 103 x 103 modules.
8169
+ * </p>
8170
+ */
8171
+ VERSION_41: 41,
8172
+ /**
8173
+ * <p>
8174
+ * Specifies version 42 with 105 x 105 modules.
8175
+ * </p>
8176
+ */
8177
+ VERSION_42: 42,
8178
+ /**
8179
+ * <p>
8180
+ * Specifies version 43 with 107 x 107 modules.
8181
+ * </p>
8182
+ */
8183
+ VERSION_43: 43,
8184
+ /**
8185
+ * <p>
8186
+ * Specifies version 44 with 109 x 109 modules.
8187
+ * </p>
8188
+ */
8189
+ VERSION_44: 44,
8190
+ /**
8191
+ * <p>
8192
+ * Specifies version 45 with 111 x 111 modules.
8193
+ * </p>
8194
+ */
8195
+ VERSION_45: 45,
8196
+ /**
8197
+ * <p>
8198
+ * Specifies version 46 with 113 x 113 modules.
8199
+ * </p>
8200
+ */
8201
+ VERSION_46: 46,
8202
+ /**
8203
+ * <p>
8204
+ * Specifies version 47 with 115 x 115 modules.
8205
+ * </p>
8206
+ */
8207
+ VERSION_47: 47,
8208
+ /**
8209
+ * <p>
8210
+ * Specifies version 48 with 117 x 117 modules.
8211
+ * </p>
8212
+ */
8213
+ VERSION_48: 48,
8214
+ /**
8215
+ * <p>
8216
+ * Specifies version 49 with 119 x 119 modules.
8217
+ * </p>
8218
+ */
8219
+ VERSION_49: 49,
8220
+ /**
8221
+ * <p>
8222
+ * Specifies version 50 with 121 x 121 modules.
8223
+ * </p>
8224
+ */
8225
+ VERSION_50: 50,
8226
+ /**
8227
+ * <p>
8228
+ * Specifies version 51 with 123 x 123 modules.
8229
+ * </p>
8230
+ */
8231
+ VERSION_51: 51,
8232
+ /**
8233
+ * <p>
8234
+ * Specifies version 52 with 125 x 125 modules.
8235
+ * </p>
8236
+ */
8237
+ VERSION_52: 52,
8238
+ /**
8239
+ * <p>
8240
+ * Specifies version 53 with 127 x 127 modules.
8241
+ * </p>
8242
+ */
8243
+ VERSION_53: 53,
8244
+ /**
8245
+ * <p>
8246
+ * Specifies version 54 with 129 x 129 modules.
8247
+ * </p>
8248
+ */
8249
+ VERSION_54: 54,
8250
+ /**
8251
+ * <p>
8252
+ * Specifies version 55 with 131 x 131 modules.
8253
+ * </p>
8254
+ */
8255
+ VERSION_55: 55,
8256
+ /**
8257
+ * <p>
8258
+ * Specifies version 56 with 133 x 133 modules.
8259
+ * </p>
8260
+ */
8261
+ VERSION_56: 56,
8262
+ /**
8263
+ * <p>
8264
+ * Specifies version 57 with 135 x 135 modules.
8265
+ * </p>
8266
+ */
8267
+ VERSION_57: 57,
8268
+ /**
8269
+ * <p>
8270
+ * Specifies version 58 with 137 x 137 modules.
8271
+ * </p>
8272
+ */
8273
+ VERSION_58: 58,
8274
+ /**
8275
+ * <p>
8276
+ * Specifies version 59 with 139 x 139 modules.
8277
+ * </p>
8278
+ */
8279
+ VERSION_59: 59,
8280
+ /**
8281
+ * <p>
8282
+ * Specifies version 60 with 141 x 141 modules.
8283
+ * </p>
8284
+ */
8285
+ VERSION_60: 60,
8286
+ /**
8287
+ * <p>
8288
+ * Specifies version 61 with 143 x 143 modules.
8289
+ * </p>
8290
+ */
8291
+ VERSION_61: 61,
8292
+ /**
8293
+ * <p>
8294
+ * Specifies version 62 with 145 x 145 modules.
8295
+ * </p>
8296
+ */
8297
+ VERSION_62: 62,
8298
+ /**
8299
+ * <p>
8300
+ * Specifies version 63 with 147 x 147 modules.
8301
+ * </p>
8302
+ */
8303
+ VERSION_63: 63,
8304
+ /**
8305
+ * <p>
8306
+ * Specifies version 64 with 149 x 149 modules.
8307
+ * </p>
8308
+ */
8309
+ VERSION_64: 64,
8310
+ /**
8311
+ * <p>
8312
+ * Specifies version 65 with 151 x 151 modules.
8313
+ * </p>
8314
+ */
8315
+ VERSION_65: 65,
8316
+ /**
8317
+ * <p>
8318
+ * Specifies version 66 with 153 x 153 modules.
8319
+ * </p>
8320
+ */
8321
+ VERSION_66: 66,
8322
+ /**
8323
+ * <p>
8324
+ * Specifies version 67 with 155 x 155 modules.
8325
+ * </p>
8326
+ */
8327
+ VERSION_67: 67,
8328
+ /**
8329
+ * <p>
8330
+ * Specifies version 68 with 157 x 157 modules.
8331
+ * </p>
8332
+ */
8333
+ VERSION_68: 68,
8334
+ /**
8335
+ * <p>
8336
+ * Specifies version 69 with 159 x 159 modules.
8337
+ * </p>
8338
+ */
8339
+ VERSION_69: 69,
8340
+ /**
8341
+ * <p>
8342
+ * Specifies version 70 with 161 x 161 modules.
8343
+ * </p>
8344
+ */
8345
+ VERSION_70: 70,
8346
+ /**
8347
+ * <p>
8348
+ * Specifies version 71 with 163 x 163 modules.
8349
+ * </p>
8350
+ */
8351
+ VERSION_71: 71,
8352
+ /**
8353
+ * <p>
8354
+ * Specifies version 72 with 165 x 165 modules.
8355
+ * </p>
8356
+ */
8357
+ VERSION_72: 72,
8358
+ /**
8359
+ * <p>
8360
+ * Specifies version 73 with 167 x 167 modules.
8361
+ * </p>
8362
+ */
8363
+ VERSION_73: 73,
8364
+ /**
8365
+ * <p>
8366
+ * Specifies version 74 with 169 x 169 modules.
8367
+ * </p>
8368
+ */
8369
+ VERSION_74: 74,
8370
+ /**
8371
+ * <p>
8372
+ * Specifies version 75 with 171 x 171 modules.
8373
+ * </p>
8374
+ */
8375
+ VERSION_75: 75,
8376
+ /**
8377
+ * <p>
8378
+ * Specifies version 76 with 173 x 173 modules.
8379
+ * </p>
8380
+ */
8381
+ VERSION_76: 76,
8382
+ /**
8383
+ * <p>
8384
+ * Specifies version 77 with 175 x 175 modules.
8385
+ * </p>
8386
+ */
8387
+ VERSION_77: 77,
8388
+ /**
8389
+ * <p>
8390
+ * Specifies version 78 with 177 x 177 modules.
8391
+ * </p>
8392
+ */
8393
+ VERSION_78: 78,
8394
+ /**
8395
+ * <p>
8396
+ * Specifies version 79 with 179 x 179 modules.
8397
+ * </p>
8398
+ */
8399
+ VERSION_79: 79,
8400
+ /**
8401
+ * <p>
8402
+ * Specifies version 80 with 181 x 181 modules.
8403
+ * </p>
8404
+ */
8405
+ VERSION_80: 80,
8406
+ /**
8407
+ * <p>
8408
+ * Specifies version 81 with 183 x 183 modules.
8409
+ * </p>
8410
+ */
8411
+ VERSION_81: 81,
8412
+ /**
8413
+ * <p>
8414
+ * Specifies version 82 with 185 x 185 modules.
8415
+ * </p>
8416
+ */
8417
+ VERSION_82: 82,
8418
+ /**
8419
+ * <p>
8420
+ * Specifies version 83 with 187 x 187 modules.
8421
+ * </p>
8422
+ */
8423
+ VERSION_83: 83,
8424
+ /**
8425
+ * <p>
8426
+ * Specifies version 84 with 189 x 189 modules.
8427
+ * </p>
8428
+ */
8429
+ VERSION_84: 84,
8430
+ }
8431
+
8432
+ /**
8433
+ * <p>
8434
+ * Level of Reed-Solomon error correction. From low to high: L1, L2, L3, L4.
8435
+ * </p>
8436
+ */
8437
+ HanXinErrorLevel =
8438
+ {
8439
+ /**
8440
+ * <p>
8441
+ * Allows recovery of 8% of the code text
8442
+ * </p>
8443
+ */
8444
+ L1: 0,
8445
+ /**
8446
+ * <p>
8447
+ * Allows recovery of 15% of the code text
8448
+ * </p>
8449
+ */
8450
+ L2: 1,
8451
+ /**
8452
+ * <p>
8453
+ * Allows recovery of 23% of the code text
8454
+ * </p>
8455
+ */
8456
+ L3: 2,
8457
+ /**
8458
+ * <p>
8459
+ * Allows recovery of 30% of the code text
8460
+ * </p>
8461
+ */
8462
+ L4: 3
8463
+ }
8464
+
8465
+ /**
8466
+ * <p>
8467
+ * Han Xin Code encoding mode. It is recommended to use Auto with ASCII / Chinese characters or Unicode for Unicode characters.
8468
+ * </p><p><hr><blockquote><pre>
8469
+ * <pre>
8470
+ * @example
8471
+ * // Auto mode
8472
+ * let codetext = "1234567890ABCDEFGabcdefg,Han Xin Code";
8473
+ * let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
8474
+ * generator.save("test.bmp", BarcodeImageFormat.BMP);
8475
+ *
8476
+ * @example
8477
+ * // Bytes mode
8478
+ * let encodedArr = [0xFF, 0xFE, 0xFD, 0xFC, 0xFB, 0xFA, 0xF9];
8479
+ *
8480
+ * //encode array to string
8481
+ * let codetext = "";
8482
+ * for (int i = 0; i <encodedArr.length; i++)
8483
+ * {
8484
+ * let bval = String.fromCharCode(encodedArr[i]);
8485
+ * codetext += bval;
8486
+ * }
8487
+ *
8488
+ * let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
8489
+ * generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.BYTES);
8490
+ * generator.save("test.bmp", BarcodeImageFormat.BMP);
8491
+ *
8492
+ * @example
8493
+ * // ECI mode
8494
+ * let codetext = "ΑΒΓΔΕ";
8495
+ * let generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
8496
+ * generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.ECI);
8497
+ * generator.getParameters().getBarcode().getHanXin().setHanXinECIEncoding(ECIEncodings.ISO_8859_7);
8498
+ * generator.save("test.bmp", BarcodeImageFormat.BMP);
8499
+ *
8500
+ * @example
8501
+ * // URI mode
8502
+ * let codetext = "https://www.test.com/%BC%DE%%%ab/search=test";
8503
+ * generator = new BarcodeGenerator(EncodeTypes.HAN_XIN, codetext);
8504
+ * generator.getParameters().getBarcode().getHanXin().setHanXinEncodeMode(HanXinEncodeMode.URI);
8505
+ * generator.save("test.bmp", BarcodeImageFormat.BMP);
8506
+ *
8507
+ * // Extended mode - TBD
8508
+ * </pre>
8509
+ * </pre></blockquote></hr></p>
8510
+ */
8511
+ HanXinEncodeMode =
8512
+ {
8513
+ /**
8514
+ * <p>
8515
+ * Sequence of Numeric, Text, ECI, Binary Bytes and 4 GB18030 modes changing automatically.
8516
+ * </p>
8517
+ */
8518
+ AUTO: 0,
8519
+ /**
8520
+ * <p>
8521
+ * Binary byte mode encodes binary data in any form and encodes them in their binary byte. Every byte in
8522
+ * Binary Byte mode is represented by 8 bits.
8523
+ * </p>
8524
+ */
8525
+ BINARY: 1,
8526
+ /**
8527
+ * <p>
8528
+ * Extended Channel Interpretation (ECI) mode
8529
+ * </p>
8530
+ */
8531
+ ECI: 2,
8532
+ /**
8533
+ * <p>
8534
+ * Unicode mode designs a way to represent any text data reference to UTF8 encoding/charset in Han Xin Code.
8535
+ * </p>
8536
+ */
8537
+ UNICODE: 3,
8538
+ /**
8539
+ * <p>
8540
+ * URI mode indicates the data represented in Han Xin Code is Uniform Resource Identifier (URI)
8541
+ * reference to RFC 3986.
8542
+ * </p>
8543
+ */
8544
+ URI: 4,
8545
+ /**
8546
+ * <p>
8547
+ * Extended mode will allow more flexible combinations of other modes, this mode is currently not implemented.
8548
+ * </p>
8549
+ */
8550
+ EXTENDED: 5
8551
+ }
8552
+
8553
+ /**
8554
+ * <p>
8555
+ * Specify the type of the ECC to encode.
8556
+ * </p>
8557
+ */
8558
+ DataMatrixVersion =
8559
+ {
8560
+ /**
8561
+ * <p>
8562
+ * Specifies to automatically pick up the smallest size for DataMatrix.
8563
+ * This is default value.
8564
+ * </p>
8565
+ */
8566
+ AUTO: 0,
8567
+ /**
8568
+ * <p>
8569
+ * Instructs to get symbol sizes from Rows And Columns parameters. Note that DataMatrix does not support
8570
+ * custom rows and columns numbers. This option is not recommended to use.
8571
+ * </p>
8572
+ */
8573
+ ROWS_COLUMNS: 1,
8574
+ /**
8575
+ * <p>
8576
+ * Specifies size of 9 x 9 modules for ECC000 type.
8577
+ * </p>
8578
+ */
8579
+ ECC000_9x9: 2,
8580
+ /**
8581
+ * <p>
8582
+ * Specifies size of 11 x 11 modules for ECC000-ECC050 types.
8583
+ * </p>
8584
+ */
8585
+ ECC000_050_11x11: 3,
8586
+ /**
8587
+ * <p>
8588
+ * Specifies size of 13 x 13 modules for ECC000-ECC100 types.
8589
+ * </p>
8590
+ */
8591
+ ECC000_100_13x13: 4,
8592
+ /**
8593
+ * <p>
8594
+ * Specifies size of 15 x 15 modules for ECC000-ECC100 types.
8595
+ * </p>
8596
+ */
8597
+ ECC000_100_15x15: 5,
8598
+ /**
8599
+ * <p>
8600
+ * Specifies size of 17 x 17 modules for ECC000-ECC140 types.
8601
+ * </p>
8602
+ */
8603
+ ECC000_140_17x17: 6,
8604
+ /**
8605
+ * <p>
8606
+ * Specifies size of 19 x 19 modules for ECC000-ECC140 types.
8607
+ * </p>
8608
+ */
8609
+ ECC000_140_19x19: 7,
8610
+ /**
8611
+ * <p>
8612
+ * Specifies size of 21 x 21 modules for ECC000-ECC140 types.
8613
+ * </p>
8614
+ */
8615
+ ECC000_140_21x21: 8,
8616
+ /**
8617
+ * <p>
8618
+ * Specifies size of 23 x 23 modules for ECC000-ECC140 types.
8619
+ * </p>
8620
+ */
8621
+ ECC000_140_23x23: 9,
8622
+ /**
8623
+ * <p>
8624
+ * Specifies size of 25 x 25 modules for ECC000-ECC140 types.
8625
+ * </p>
8626
+ */
8627
+ ECC000_140_25x25: 10,
8628
+ /**
8629
+ * <p>
8630
+ * Specifies size of 27 x 27 modules for ECC000-ECC140 types.
8631
+ * </p>
8632
+ */
8633
+ ECC000_140_27x27: 11,
8634
+ /**
8635
+ * <p>
8636
+ * Specifies size of 29 x 29 modules for ECC000-ECC140 types.
8637
+ * </p>
8638
+ */
8639
+ ECC000_140_29x29: 12,
8640
+ /**
8641
+ * <p>
8642
+ * Specifies size of 31 x 31 modules for ECC000-ECC140 types.
8643
+ * </p>
8644
+ */
8645
+ ECC000_140_31x31: 13,
8646
+ /**
8647
+ * <p>
8648
+ * Specifies size of 33 x 33 modules for ECC000-ECC140 types.
8649
+ * </p>
8650
+ */
8651
+ ECC000_140_33x33: 14,
8652
+ /**
8653
+ * <p>
8654
+ * Specifies size of 35 x 35 modules for ECC000-ECC140 types.
8655
+ * </p>
8656
+ */
8657
+ ECC000_140_35x35: 15,
8658
+ /**
8659
+ * <p>
8660
+ * Specifies size of 37 x 37 modules for ECC000-ECC140 types.
8661
+ * </p>
8662
+ */
8663
+ ECC000_140_37x37: 16,
8664
+ /**
8665
+ * <p>
8666
+ * Specifies size of 39 x 39 modules for ECC000-ECC140 types.
8667
+ * </p>
8668
+ */
8669
+ ECC000_140_39x39: 17,
8670
+ /**
8671
+ * <p>
8672
+ * Specifies size of 41 x 41 modules for ECC000-ECC140 types.
8673
+ * </p>
8674
+ */
8675
+ ECC000_140_41x41: 18,
8676
+ /**
8677
+ * <p>
8678
+ * Specifies size of 43 x 43 modules for ECC000-ECC140 types.
8679
+ * </p>
8680
+ */
8681
+ ECC000_140_43x43: 19,
8682
+ /**
8683
+ * <p>
8684
+ * Specifies size of 45 x 45 modules for ECC000-ECC140 types.
8685
+ * </p>
8686
+ */
8687
+ ECC000_140_45x45: 20,
8688
+ /**
8689
+ * <p>
8690
+ * Specifies size of 47 x 47 modules for ECC000-ECC140 types.
8691
+ * </p>
8692
+ */
8693
+ ECC000_140_47x47: 21,
8694
+ /**
8695
+ * <p>
8696
+ * Specifies size of 49 x 49 modules for ECC000-ECC140 types.
8697
+ * </p>
8698
+ */
8699
+ ECC000_140_49x49: 22,
8700
+ /**
8701
+ * <p>
8702
+ * Specifies size of 10 x 10 modules for ECC200 type.
8703
+ * </p>
8704
+ */
8705
+ ECC200_10x10: 23,
8706
+ /**
8707
+ * <p>
8708
+ * Specifies size of 12 x 12 modules for ECC200 type.
8709
+ * </p>
8710
+ */
8711
+ ECC200_12x12: 24,
8712
+ /**
8713
+ * <p>
8714
+ * Specifies size of 14 x 14 modules for ECC200 type.
8715
+ * </p>
8716
+ */
8717
+ ECC200_14x14: 25,
8718
+ /**
8719
+ * <p>
8720
+ * Specifies size of 16 x 16 modules for ECC200 type.
8721
+ * </p>
8722
+ */
8723
+ ECC200_16x16: 26,
8724
+ /**
8725
+ * <p>
8726
+ * Specifies size of 18 x 18 modules for ECC200 type.
8727
+ * </p>
8728
+ */
8729
+ ECC200_18x18: 27,
8730
+ /**
8731
+ * <p>
8732
+ * Specifies size of 20 x 20 modules for ECC200 type.
8733
+ * </p>
8734
+ */
8735
+ ECC200_20x20: 28,
8736
+ /**
8737
+ * <p>
8738
+ * Specifies size of 22 x 22 modules for ECC200 type.
8739
+ * </p>
8740
+ */
8741
+ ECC200_22x22: 29,
8742
+ /**
8743
+ * <p>
8744
+ * Specifies size of 24 x 24 modules for ECC200 type.
8745
+ * </p>
8746
+ */
8747
+ ECC200_24x24: 30,
8748
+ /**
8749
+ * <p>
8750
+ * Specifies size of 26 x 26 modules for ECC200 type.
8751
+ * </p>
8752
+ */
8753
+ ECC200_26x26: 31,
8754
+ /**
8755
+ * <p>
8756
+ * Specifies size of 32 x 32 modules for ECC200 type.
8757
+ * </p>
8758
+ */
8759
+ ECC200_32x32: 32,
8760
+ /**
8761
+ * <p>
8762
+ * Specifies size of 36 x 36 modules for ECC200 type.
8763
+ * </p>
8764
+ */
8765
+ ECC200_36x36: 33,
8766
+ /**
8767
+ * <p>
8768
+ * Specifies size of 40 x 40 modules for ECC200 type.
8769
+ * </p>
8770
+ */
8771
+ ECC200_40x40: 34,
8772
+ /**
8773
+ * <p>
8774
+ * Specifies size of 44 x 44 modules for ECC200 type.
8775
+ * </p>
8776
+ */
8777
+ ECC200_44x44: 35,
8778
+ /**
8779
+ * <p>
8780
+ * Specifies size of 48 x 48 modules for ECC200 type.
8781
+ * </p>
8782
+ */
8783
+ ECC200_48x48: 36,
8784
+ /**
8785
+ * <p>
8786
+ * Specifies size of 52 x 52 modules for ECC200 type.
8787
+ * </p>
8788
+ */
8789
+ ECC200_52x52: 37,
8790
+ /**
8791
+ * <p>
8792
+ * Specifies size of 64 x 64 modules for ECC200 type.
8793
+ * </p>
8794
+ */
8795
+ ECC200_64x64: 38,
8796
+ /**
8797
+ * <p>
8798
+ * Specifies size of 72 x 72 modules for ECC200 type.
8799
+ * </p>
8800
+ */
8801
+ ECC200_72x72: 39,
8802
+ /**
8803
+ * <p>
8804
+ * Specifies size of 80 x 80 modules for ECC200 type.
8805
+ * </p>
8806
+ */
8807
+ ECC200_80x80: 40,
8808
+ /**
8809
+ * <p>
8810
+ * Specifies size of 88 x 88 modules for ECC200 type.
8811
+ * </p>
8812
+ */
8813
+ ECC200_88x88: 41,
8814
+ /**
8815
+ * <p>
8816
+ * Specifies size of 96 x 96 modules for ECC200 type.
8817
+ * </p>
8818
+ */
8819
+ ECC200_96x96: 42,
8820
+ /**
8821
+ * <p>
8822
+ * Specifies size of 104 x 104 modules for ECC200 type.
8823
+ * </p>
8824
+ */
8825
+ ECC200_104x104: 43,
8826
+ /**
8827
+ * <p>
8828
+ * Specifies size of 120 x 120 modules for ECC200 type.
8829
+ * </p>
8830
+ */
8831
+ ECC200_120x120: 44,
8832
+ /**
8833
+ * <p>
8834
+ * Specifies size of 132 x 132 modules for ECC200 type.
8835
+ * </p>
8836
+ */
8837
+ ECC200_132x132: 45,
8838
+ /**
8839
+ * <p>
8840
+ * Specifies size of 144 x 144 modules for ECC200 type.
8841
+ * </p>
8842
+ */
8843
+ ECC200_144x144: 46,
8844
+ /**
8845
+ * <p>
8846
+ * Specifies size of 8 x 18 modules for ECC200 type.
8847
+ * </p>
8848
+ */
8849
+ ECC200_8x18: 47,
8850
+ /**
8851
+ * <p>
8852
+ * Specifies size of 8 x 32 modules for ECC200 type.
8853
+ * </p>
8854
+ */
8855
+ ECC200_8x32: 48,
8856
+ /**
8857
+ * <p>
8858
+ * Specifies size of 12 x 26 modules for ECC200 type.
8859
+ * </p>
8860
+ */
8861
+ ECC200_12x26: 49,
8862
+ /**
8863
+ * <p>
8864
+ * Specifies size of 12 x 36 modules for ECC200 type.
8865
+ * </p>
8866
+ */
8867
+ ECC200_12x36: 50,
8868
+ /**
8869
+ * <p>
8870
+ * Specifies size of 16 x 36 modules for ECC200 type.
8871
+ * </p>
8872
+ */
8873
+ ECC200_16x36: 51,
8874
+ /**
8875
+ * <p>
8876
+ * Specifies size of 16 x 48 modules for ECC200 type.
8877
+ * </p>
8878
+ */
8879
+ ECC200_16x48: 52,
8880
+ /**
8881
+ * <p>
8882
+ * Specifies size of 8 x 48 modules for DMRE barcodes.
8883
+ * </p>
8884
+ */
8885
+ DMRE_8x48: 53,
8886
+ /**
8887
+ * <p>
8888
+ * Specifies size of 8 x 64 modules for DMRE barcodes.
8889
+ * </p>
8890
+ */
8891
+ DMRE_8x64: 54,
8892
+ /**
8893
+ * <p>
8894
+ * Specifies size of 8 x 80 modules for DMRE barcodes.
8895
+ * </p>
8896
+ */
8897
+ DMRE_8x80: 55,
8898
+ /**
8899
+ * <p>
8900
+ * Specifies size of 8 x 96 modules for DMRE barcodes.
8901
+ * </p>
8902
+ */
8903
+ DMRE_8x96: 56,
8904
+ /**
8905
+ * <p>
8906
+ * Specifies size of 8 x 120 modules for DMRE barcodes.
8907
+ * </p>
8908
+ */
8909
+ DMRE_8x120: 57,
8910
+ /**
8911
+ * <p>
8912
+ * Specifies size of 8 x 144 modules for DMRE barcodes.
8913
+ * </p>
8914
+ */
8915
+ DMRE_8x144: 58,
8916
+ /**
8917
+ * <p>
8918
+ * Specifies size of 12 x 64 modules for DMRE barcodes.
8919
+ * </p>
8920
+ */
8921
+ DMRE_12x64: 59,
8922
+ /**
8923
+ * <p>
8924
+ * Specifies size of 12 x 88 modules for DMRE barcodes.
8925
+ * </p>
8926
+ */
8927
+ DMRE_12x88: 60,
8928
+ /**
8929
+ * <p>
8930
+ * Specifies size of 16 x 64 modules for DMRE barcodes.
8931
+ * </p>
8932
+ */
8933
+ DMRE_16x64: 61,
8934
+ /**
8935
+ * <p>
8936
+ * Specifies size of 20 x 36 modules for DMRE barcodes.
8937
+ * </p>
8938
+ */
8939
+ DMRE_20x36: 62,
8940
+ /**
8941
+ * <p>
8942
+ * Specifies size of 20 x 44 modules for DMRE barcodes.
8943
+ * </p>
8944
+ */
8945
+ DMRE_20x44: 63,
8946
+ /**
8947
+ * <p>
8948
+ * Specifies size of 20 x 64 modules for DMRE barcodes.
8949
+ * </p>
8950
+ */
8951
+ DMRE_20x64: 64,
8952
+ /**
8953
+ * <p>
8954
+ * Specifies size of 22 x 48 modules for DMRE barcodes.
8955
+ * </p>
8956
+ */
8957
+ DMRE_22x48: 65,
8958
+ /**
8959
+ * <p>
8960
+ * Specifies size of 24 x 48 modules for DMRE barcodes.
8961
+ * </p>
8962
+ */
8963
+ DMRE_24x48: 66,
8964
+ /**
8965
+ * <p>
8966
+ * Specifies size of 24 x 64 modules for DMRE barcodes.
8967
+ * </p>
8968
+ */
8969
+ DMRE_24x64: 67,
8970
+ /**
8971
+ * <p>
8972
+ * Specifies size of 26 x 40 modules for DMRE barcodes.
8973
+ * </p>
8974
+ */
8975
+ DMRE_26x40: 68,
8976
+ /**
8977
+ * <p>
8978
+ * Specifies size of 26 x 48 modules for DMRE barcodes.
8979
+ * </p>
8980
+ */
8981
+ DMRE_26x48: 69,
8982
+ /**
8983
+ * <p>
8984
+ * Specifies size of 26 x 64 modules for DMRE barcodes.
8985
+ * </p>
8986
+ */
8987
+ DMRE_26x64: 70
8988
+ }
8732
8989
 
8733
8990
  /**
8734
8991
  * <p>
@@ -8778,51 +9035,51 @@ DataMatrixVersion =
8778
9035
  * </pre></blockquote></hr></p>
8779
9036
  */
8780
9037
  AztecEncodeMode =
8781
- {
8782
- /**
8783
- * In Auto mode, the CodeText is encoded with maximum data compactness.
8784
- * Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
8785
- * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
8786
- */
8787
- AUTO: 0,
9038
+ {
9039
+ /**
9040
+ * In Auto mode, the CodeText is encoded with maximum data compactness.
9041
+ * Unicode characters are re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
9042
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
9043
+ */
9044
+ AUTO: 0,
8788
9045
 
8789
- /**
8790
- * Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
8791
- * @deprecated
8792
- */
8793
- BYTES: 1,
9046
+ /**
9047
+ * Encode codetext as plain bytes. If it detects any Unicode character, the character will be encoded as two bytes, lower byte first.
9048
+ * @deprecated
9049
+ */
9050
+ BYTES: 1,
8794
9051
 
8795
- /**
8796
- * Extended mode which supports multi ECI modes.
8797
- * It is better to use AztecExtCodetextBuilder for extended codetext generation.
8798
- * Use Display2DText property to set visible text to removing managing characters.
8799
- * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
8800
- * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
8801
- * @deprecated
8802
- */
8803
- EXTENDED_CODETEXT: 2,
8804
- /**
8805
- * Extended mode which supports multi ECI modes.
8806
- * It is better to use AztecExtCodetextBuilder for extended codetext generation.
8807
- * Use Display2DText property to set visible text to removing managing characters.
8808
- * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
8809
- * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
8810
- */
8811
- EXTENDED: 3,
9052
+ /**
9053
+ * Extended mode which supports multi ECI modes.
9054
+ * It is better to use AztecExtCodetextBuilder for extended codetext generation.
9055
+ * Use Display2DText property to set visible text to removing managing characters.
9056
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
9057
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
9058
+ * @deprecated
9059
+ */
9060
+ EXTENDED_CODETEXT: 2,
9061
+ /**
9062
+ * Extended mode which supports multi ECI modes.
9063
+ * It is better to use AztecExtCodetextBuilder for extended codetext generation.
9064
+ * Use Display2DText property to set visible text to removing managing characters.
9065
+ * ECI identifiers are set as single slash and six digits identifier "\000026" - UTF8 ECI identifier
9066
+ * All unicode characters after ECI identifier are automatically encoded into correct character codeset.
9067
+ */
9068
+ EXTENDED: 3,
8812
9069
 
8813
- /**
8814
- * In Binary mode, the CodeText is encoded with maximum data compactness.
8815
- * If a Unicode character is found, an exception is thrown.
8816
- */
8817
- BINARY: 4,
9070
+ /**
9071
+ * In Binary mode, the CodeText is encoded with maximum data compactness.
9072
+ * If a Unicode character is found, an exception is thrown.
9073
+ */
9074
+ BINARY: 4,
8818
9075
 
8819
- /**
8820
- * In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
8821
- * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
8822
- * Please note that some old (pre 2006) scanners may not support this mode.
8823
- */
8824
- ECI: 5
8825
- }
9076
+ /**
9077
+ * In ECI mode, the entire message is re-encoded in the ECIEncoding specified encoding with the insertion of an ECI identifier.
9078
+ * If a character is found that is not supported by the selected ECI encoding, an exception is thrown.
9079
+ * Please note that some old (pre 2006) scanners may not support this mode.
9080
+ */
9081
+ ECI: 5
9082
+ }
8826
9083
 
8827
9084
  /**
8828
9085
  * Version of MicroQR Code.
@@ -8830,41 +9087,41 @@ AztecEncodeMode =
8830
9087
  * @enum
8831
9088
  */
8832
9089
  MicroQRVersion =
8833
- {
8834
- /**
8835
- * Specifies to automatically pick up the best version for MicroQR.
8836
- * This is default value.
8837
- */
8838
- AUTO: 0,
9090
+ {
9091
+ /**
9092
+ * Specifies to automatically pick up the best version for MicroQR.
9093
+ * This is default value.
9094
+ */
9095
+ AUTO: 0,
8839
9096
 
8840
- /**
8841
- * <p>
8842
- * Specifies version M1 for Micro QR with 11 x 11 modules.
8843
- * </p>
8844
- */
8845
- M1: 1,
9097
+ /**
9098
+ * <p>
9099
+ * Specifies version M1 for Micro QR with 11 x 11 modules.
9100
+ * </p>
9101
+ */
9102
+ M1: 1,
8846
9103
 
8847
- /**
8848
- * <p>
8849
- * Specifies version M2 for Micro QR with 13 x 13 modules.
8850
- * </p>
8851
- */
8852
- M2: 2,
9104
+ /**
9105
+ * <p>
9106
+ * Specifies version M2 for Micro QR with 13 x 13 modules.
9107
+ * </p>
9108
+ */
9109
+ M2: 2,
8853
9110
 
8854
- /**
8855
- * <p>
8856
- * Specifies version M3 for Micro QR with 15 x 15 modules.
8857
- * </p>
8858
- */
8859
- M3: 3,
9111
+ /**
9112
+ * <p>
9113
+ * Specifies version M3 for Micro QR with 15 x 15 modules.
9114
+ * </p>
9115
+ */
9116
+ M3: 3,
8860
9117
 
8861
- /**
8862
- * <p>
8863
- * Specifies version M4 for Micro QR with 17 x 17 modules.
8864
- * </p>
8865
- */
8866
- M4: 4
8867
- }
9118
+ /**
9119
+ * <p>
9120
+ * Specifies version M4 for Micro QR with 17 x 17 modules.
9121
+ * </p>
9122
+ */
9123
+ M4: 4
9124
+ }
8868
9125
 
8869
9126
  /**
8870
9127
  * <p>
@@ -8874,239 +9131,274 @@ MicroQRVersion =
8874
9131
  * @enum
8875
9132
  */
8876
9133
  RectMicroQRVersion =
8877
- {
8878
- /**
8879
- * <p>
8880
- * Specifies to automatically pick up the best version for RectMicroQR.
8881
- * This is default value.
8882
- * </p>
8883
- */
8884
- AUTO: 0,
9134
+ {
9135
+ /**
9136
+ * <p>
9137
+ * Specifies to automatically pick up the best version for RectMicroQR.
9138
+ * This is default value.
9139
+ * </p>
9140
+ */
9141
+ AUTO: 0,
8885
9142
 
8886
- /**
8887
- * <p>
8888
- * Specifies version with 7 x 43 modules.
8889
- * </p>
8890
- */
8891
- R7x43: 1,
9143
+ /**
9144
+ * <p>
9145
+ * Specifies version with 7 x 43 modules.
9146
+ * </p>
9147
+ */
9148
+ R7x43: 1,
8892
9149
 
8893
- /**
8894
- * <p>
8895
- * Specifies version with 7 x 59 modules.
8896
- * </p>
8897
- */
8898
- R7x59: 2,
9150
+ /**
9151
+ * <p>
9152
+ * Specifies version with 7 x 59 modules.
9153
+ * </p>
9154
+ */
9155
+ R7x59: 2,
8899
9156
 
8900
- /**
8901
- * <p>
8902
- * Specifies version with 7 x 77 modules.
8903
- * </p>
8904
- */
8905
- R7x77: 3,
9157
+ /**
9158
+ * <p>
9159
+ * Specifies version with 7 x 77 modules.
9160
+ * </p>
9161
+ */
9162
+ R7x77: 3,
9163
+
9164
+ /**
9165
+ * <p>
9166
+ * Specifies version with 7 x 99 modules.
9167
+ * </p>
9168
+ */
9169
+ R7x99: 4,
8906
9170
 
8907
- /**
8908
- * <p>
8909
- * Specifies version with 7 x 99 modules.
8910
- * </p>
8911
- */
8912
- R7x99: 4,
9171
+ /**
9172
+ * <p>
9173
+ * Specifies version with 7 x 139 modules.
9174
+ * </p>
9175
+ */
9176
+ R7x139: 5,
8913
9177
 
8914
- /**
8915
- * <p>
8916
- * Specifies version with 7 x 139 modules.
8917
- * </p>
8918
- */
8919
- R7x139: 5,
9178
+ /**
9179
+ * <p>
9180
+ * Specifies version with 9 x 43 modules.
9181
+ * </p>
9182
+ */
9183
+ R9x43: 6,
8920
9184
 
8921
- /**
8922
- * <p>
8923
- * Specifies version with 9 x 43 modules.
8924
- * </p>
8925
- */
8926
- R9x43: 6,
9185
+ /**
9186
+ * <p>
9187
+ * Specifies version with 9 x 59 modules.
9188
+ * </p>
9189
+ */
9190
+ R9x59: 7,
8927
9191
 
8928
- /**
8929
- * <p>
8930
- * Specifies version with 9 x 59 modules.
8931
- * </p>
8932
- */
8933
- R9x59: 7,
9192
+ /**
9193
+ * <p>
9194
+ * Specifies version with 9 x 77 modules.
9195
+ * </p>
9196
+ */
9197
+ R9x77: 8,
8934
9198
 
8935
- /**
8936
- * <p>
8937
- * Specifies version with 9 x 77 modules.
8938
- * </p>
8939
- */
8940
- R9x77: 8,
9199
+ /**
9200
+ * <p>
9201
+ * Specifies version with 9 x 99 modules.
9202
+ * </p>
9203
+ */
9204
+ R9x99: 9,
8941
9205
 
8942
- /**
8943
- * <p>
8944
- * Specifies version with 9 x 99 modules.
8945
- * </p>
8946
- */
8947
- R9x99: 9,
9206
+ /**
9207
+ * <p>
9208
+ * Specifies version with 9 x 139 modules.
9209
+ * </p>
9210
+ */
9211
+ R9x139: 10,
8948
9212
 
8949
- /**
8950
- * <p>
8951
- * Specifies version with 9 x 139 modules.
8952
- * </p>
8953
- */
8954
- R9x139: 10,
9213
+ /**
9214
+ * <p>
9215
+ * Specifies version with 11 x 27 modules.
9216
+ * </p>
9217
+ */
9218
+ R11x27: 11,
8955
9219
 
8956
- /**
8957
- * <p>
8958
- * Specifies version with 11 x 27 modules.
8959
- * </p>
8960
- */
8961
- R11x27: 11,
9220
+ /**
9221
+ * <p>
9222
+ * Specifies version with 11 x 43 modules.
9223
+ * </p>
9224
+ */
9225
+ R11x43: 12,
8962
9226
 
8963
- /**
8964
- * <p>
8965
- * Specifies version with 11 x 43 modules.
8966
- * </p>
8967
- */
8968
- R11x43: 12,
9227
+ /**
9228
+ * <p>
9229
+ * Specifies version with 11 x 59 modules.
9230
+ * </p>
9231
+ */
9232
+ R11x59: 13,
8969
9233
 
8970
- /**
8971
- * <p>
8972
- * Specifies version with 11 x 59 modules.
8973
- * </p>
8974
- */
8975
- R11x59: 13,
9234
+ /**
9235
+ * <p>
9236
+ * Specifies version with 11 x 77 modules.
9237
+ * </p>
9238
+ */
9239
+ R11x77: 14,
8976
9240
 
8977
- /**
8978
- * <p>
8979
- * Specifies version with 11 x 77 modules.
8980
- * </p>
8981
- */
8982
- R11x77: 14,
9241
+ /**
9242
+ * <p>
9243
+ * Specifies version with 11 x 99 modules.
9244
+ * </p>
9245
+ */
9246
+ R11x99: 15,
8983
9247
 
8984
- /**
8985
- * <p>
8986
- * Specifies version with 11 x 99 modules.
8987
- * </p>
8988
- */
8989
- R11x99: 15,
9248
+ /**
9249
+ * <p>
9250
+ * Specifies version with 11 x 139 modules.
9251
+ * </p>
9252
+ */
9253
+ R11x139: 16,
8990
9254
 
8991
- /**
8992
- * <p>
8993
- * Specifies version with 11 x 139 modules.
8994
- * </p>
8995
- */
8996
- R11x139: 16,
9255
+ /**
9256
+ * <p>
9257
+ * Specifies version with 13 x 27 modules.
9258
+ * </p>
9259
+ */
9260
+ R13x27: 17,
8997
9261
 
8998
- /**
8999
- * <p>
9000
- * Specifies version with 13 x 27 modules.
9001
- * </p>
9002
- */
9003
- R13x27: 17,
9262
+ /**
9263
+ * <p>
9264
+ * Specifies version with 13 x 43 modules.
9265
+ * </p>
9266
+ */
9267
+ R13x43: 18,
9004
9268
 
9005
- /**
9006
- * <p>
9007
- * Specifies version with 13 x 43 modules.
9008
- * </p>
9009
- */
9010
- R13x43: 18,
9269
+ /**
9270
+ * <p>
9271
+ * Specifies version with 13 x 59 modules.
9272
+ * </p>
9273
+ */
9274
+ R13x59: 19,
9011
9275
 
9012
- /**
9013
- * <p>
9014
- * Specifies version with 13 x 59 modules.
9015
- * </p>
9016
- */
9017
- R13x59: 19,
9276
+ /**
9277
+ * <p>
9278
+ * Specifies version with 13 x 77 modules.
9279
+ * </p>
9280
+ */
9281
+ R13x77: 20,
9018
9282
 
9019
- /**
9020
- * <p>
9021
- * Specifies version with 13 x 77 modules.
9022
- * </p>
9023
- */
9024
- R13x77: 20,
9283
+ /**
9284
+ * <p>
9285
+ * Specifies version with 13 x 99 modules.
9286
+ * </p>
9287
+ */
9288
+ R13x99: 21,
9025
9289
 
9026
- /**
9027
- * <p>
9028
- * Specifies version with 13 x 99 modules.
9029
- * </p>
9030
- */
9031
- R13x99: 21,
9290
+ /**
9291
+ * <p>
9292
+ * Specifies version with 13 x 139 modules.
9293
+ * </p>
9294
+ */
9295
+ R13x139: 22,
9032
9296
 
9033
- /**
9034
- * <p>
9035
- * Specifies version with 13 x 139 modules.
9036
- * </p>
9037
- */
9038
- R13x139: 22,
9297
+ /**
9298
+ * <p>
9299
+ * Specifies version with 15 x 43 modules.
9300
+ * </p>
9301
+ */
9302
+ R15x43: 23,
9039
9303
 
9040
- /**
9041
- * <p>
9042
- * Specifies version with 15 x 43 modules.
9043
- * </p>
9044
- */
9045
- R15x43: 23,
9304
+ /**
9305
+ * <p>
9306
+ * Specifies version with 15 x 59 modules.
9307
+ * </p>
9308
+ */
9309
+ R15x59: 24,
9046
9310
 
9047
- /**
9048
- * <p>
9049
- * Specifies version with 15 x 59 modules.
9050
- * </p>
9051
- */
9052
- R15x59: 24,
9311
+ /**
9312
+ * <p>
9313
+ * Specifies version with 15 x 77 modules.
9314
+ * </p>
9315
+ */
9316
+ R15x77: 25,
9053
9317
 
9054
- /**
9055
- * <p>
9056
- * Specifies version with 15 x 77 modules.
9057
- * </p>
9058
- */
9059
- R15x77: 25,
9318
+ /**
9319
+ * <p>
9320
+ * Specifies version with 15 x 99 modules.
9321
+ * </p>
9322
+ */
9323
+ R15x99: 26,
9060
9324
 
9061
- /**
9062
- * <p>
9063
- * Specifies version with 15 x 99 modules.
9064
- * </p>
9065
- */
9066
- R15x99: 26,
9325
+ /**
9326
+ * <p>
9327
+ * Specifies version with 15 x 139 modules.
9328
+ * </p>
9329
+ */
9330
+ R15x139: 27,
9067
9331
 
9068
- /**
9069
- * <p>
9070
- * Specifies version with 15 x 139 modules.
9071
- * </p>
9072
- */
9073
- R15x139: 27,
9332
+ /**
9333
+ * <p>
9334
+ * Specifies version with 17 x 43 modules.
9335
+ * </p>
9336
+ */
9337
+ R17x43: 28,
9074
9338
 
9075
- /**
9076
- * <p>
9077
- * Specifies version with 17 x 43 modules.
9078
- * </p>
9079
- */
9080
- R17x43: 28,
9339
+ /**
9340
+ * <p>
9341
+ * Specifies version with 17 x 59 modules.
9342
+ * </p>
9343
+ */
9344
+ R17x59: 29,
9081
9345
 
9082
- /**
9083
- * <p>
9084
- * Specifies version with 17 x 59 modules.
9085
- * </p>
9086
- */
9087
- R17x59: 29,
9346
+ /**
9347
+ * <p>
9348
+ * Specifies version with 17 x 77 modules.
9349
+ * </p>
9350
+ */
9351
+ R17x77: 30,
9088
9352
 
9089
- /**
9090
- * <p>
9091
- * Specifies version with 17 x 77 modules.
9092
- * </p>
9093
- */
9094
- R17x77: 30,
9353
+ /**
9354
+ * <p>
9355
+ * Specifies version with 17 x 99 modules.
9356
+ * </p>
9357
+ */
9358
+ R17x99: 31,
9095
9359
 
9096
- /**
9097
- * <p>
9098
- * Specifies version with 17 x 99 modules.
9099
- * </p>
9100
- */
9101
- R17x99: 31,
9360
+ /**
9361
+ * <p>
9362
+ * Specifies version with 17 x 139 modules.
9363
+ * </p>
9364
+ */
9365
+ R17x139: 32
9366
+ }
9102
9367
 
9103
- /**
9104
- * <p>
9105
- * Specifies version with 17 x 139 modules.
9106
- * </p>
9107
- */
9108
- R17x139: 32
9109
- }
9368
+ /**
9369
+ * <p>
9370
+ * Possible modes for filling color in svg file, RGB is default and supported by SVG 1.1.
9371
+ * RGBA, HSL, HSLA is allowed in SVG 2.0 standard.
9372
+ * Even in RGB opacity will be set through "fill-opacity" parameter
9373
+ * </p>
9374
+ */
9375
+ SvgColorMode =
9376
+ {
9377
+ /**
9378
+ * <p>
9379
+ * RGB mode, example: fill="#ff5511" fill-opacity="0.73". Default mode.
9380
+ * </p>
9381
+ */
9382
+ RGB: 0,
9383
+ /**
9384
+ * <p>
9385
+ * RGBA mode, example: fill="rgba(255, 85, 17, 0.73)"
9386
+ * </p>
9387
+ */
9388
+ RGBA: 1,
9389
+ /**
9390
+ * <p>
9391
+ * HSL mode, example: fill="hsl(17, 100%, 53%)" fill-opacity="0.73"
9392
+ * </p>
9393
+ */
9394
+ HSL: 2,
9395
+ /**
9396
+ * <p>
9397
+ * HSLA mode, example: fill="hsla(30, 50%, 70%, 0.8)"
9398
+ * </p>
9399
+ */
9400
+ HSLA: 3
9401
+ }
9110
9402
 
9111
9403
  module.exports = {
9112
9404
  BarcodeGenerator,
@@ -9183,5 +9475,7 @@ module.exports = {
9183
9475
  MicroQRVersion,
9184
9476
  RectMicroQRVersion,
9185
9477
  ImageParameters,
9186
- SvgParameters
9478
+ SvgParameters,
9479
+ HslaColor,
9480
+ SvgColorMode
9187
9481
  };