aspose.barcode 23.4.0 → 23.6.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/AsposeBarcode.js +1 -1
- package/lib/ComplexBarcode.js +763 -755
- package/lib/Generation.js +1349 -389
- package/lib/Joint.js +56 -2
- package/lib/Recognition.js +178 -90
- package/lib/{aspose-barcode-nodejs-23.4.jar → aspose-barcode-nodejs-23.6.jar} +0 -0
- package/package.json +1 -1
package/lib/Joint.js
CHANGED
|
@@ -116,6 +116,18 @@ class License extends BaseJavaClass
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
resetLicense()
|
|
120
|
+
{
|
|
121
|
+
try
|
|
122
|
+
{
|
|
123
|
+
let javaClass = this.getJavaClass();
|
|
124
|
+
javaClass.resetLicenseSync();
|
|
125
|
+
} catch (ex)
|
|
126
|
+
{
|
|
127
|
+
throw new BarcodeException(ex);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
119
131
|
isLicensed()
|
|
120
132
|
{
|
|
121
133
|
let is_licensed = this.getJavaClass().isLicensedSync();
|
|
@@ -206,6 +218,9 @@ class BarcodeException extends Error
|
|
|
206
218
|
class Rectangle extends BaseJavaClass
|
|
207
219
|
{
|
|
208
220
|
|
|
221
|
+
/**
|
|
222
|
+
* @return {Rectangle} empty Rectangle
|
|
223
|
+
*/
|
|
209
224
|
static get EMPTY()
|
|
210
225
|
{
|
|
211
226
|
return new Rectangle(0, 0,0,0);
|
|
@@ -241,41 +256,65 @@ class Rectangle extends BaseJavaClass
|
|
|
241
256
|
return rectangle;
|
|
242
257
|
}
|
|
243
258
|
|
|
259
|
+
/**
|
|
260
|
+
* @return X
|
|
261
|
+
*/
|
|
244
262
|
getX()
|
|
245
263
|
{
|
|
246
264
|
return this.getJavaClass().getXSync();
|
|
247
265
|
}
|
|
248
266
|
|
|
267
|
+
/**
|
|
268
|
+
* @return Y
|
|
269
|
+
*/
|
|
249
270
|
getY()
|
|
250
271
|
{
|
|
251
272
|
return this.getJavaClass().getYSync();
|
|
252
273
|
}
|
|
253
274
|
|
|
275
|
+
/**
|
|
276
|
+
* @return Left
|
|
277
|
+
*/
|
|
254
278
|
getLeft()
|
|
255
279
|
{
|
|
256
280
|
return this.getX();
|
|
257
281
|
}
|
|
258
282
|
|
|
283
|
+
/**
|
|
284
|
+
* @return Top
|
|
285
|
+
*/
|
|
259
286
|
getTop()
|
|
260
287
|
{
|
|
261
288
|
return this.getY();
|
|
262
289
|
}
|
|
263
290
|
|
|
291
|
+
/**
|
|
292
|
+
* @return Right
|
|
293
|
+
*/
|
|
264
294
|
getRight()
|
|
265
295
|
{
|
|
266
296
|
return this.getX() + this.getWidth();
|
|
267
297
|
}
|
|
268
298
|
|
|
299
|
+
/**
|
|
300
|
+
* @return Bottom
|
|
301
|
+
*/
|
|
269
302
|
getBottom()
|
|
270
303
|
{
|
|
271
304
|
return this.getY() + this.getHeight();
|
|
272
305
|
}
|
|
273
306
|
|
|
307
|
+
/**
|
|
308
|
+
* @return Width
|
|
309
|
+
*/
|
|
274
310
|
getWidth()
|
|
275
311
|
{
|
|
276
312
|
return this.getJavaClass().getWidthSync();
|
|
277
313
|
}
|
|
278
314
|
|
|
315
|
+
/**
|
|
316
|
+
* @return Height
|
|
317
|
+
*/
|
|
279
318
|
getHeight()
|
|
280
319
|
{
|
|
281
320
|
return this.getJavaClass().getHeightSync();
|
|
@@ -335,6 +374,9 @@ class Rectangle extends BaseJavaClass
|
|
|
335
374
|
}
|
|
336
375
|
}
|
|
337
376
|
|
|
377
|
+
/**
|
|
378
|
+
* Represents Point class
|
|
379
|
+
*/
|
|
338
380
|
class Point extends BaseJavaClass
|
|
339
381
|
{
|
|
340
382
|
static get javaClassName()
|
|
@@ -343,7 +385,7 @@ class Point extends BaseJavaClass
|
|
|
343
385
|
}
|
|
344
386
|
|
|
345
387
|
/**
|
|
346
|
-
* Represents
|
|
388
|
+
* Represents an empty Point
|
|
347
389
|
*/
|
|
348
390
|
static get EMPTY()
|
|
349
391
|
{
|
|
@@ -351,7 +393,7 @@ class Point extends BaseJavaClass
|
|
|
351
393
|
}
|
|
352
394
|
|
|
353
395
|
/**
|
|
354
|
-
*
|
|
396
|
+
* Point constructor.
|
|
355
397
|
* @param x
|
|
356
398
|
* @param y
|
|
357
399
|
*/
|
|
@@ -373,21 +415,33 @@ class Point extends BaseJavaClass
|
|
|
373
415
|
{
|
|
374
416
|
}
|
|
375
417
|
|
|
418
|
+
/**
|
|
419
|
+
* @return X
|
|
420
|
+
*/
|
|
376
421
|
getX()
|
|
377
422
|
{
|
|
378
423
|
return this.getJavaClass().getXSync();
|
|
379
424
|
}
|
|
380
425
|
|
|
426
|
+
/**
|
|
427
|
+
* @return Y
|
|
428
|
+
*/
|
|
381
429
|
getY()
|
|
382
430
|
{
|
|
383
431
|
return this.getJavaClass().getYSync();
|
|
384
432
|
}
|
|
385
433
|
|
|
434
|
+
/**
|
|
435
|
+
* @param x X
|
|
436
|
+
*/
|
|
386
437
|
setX(x)
|
|
387
438
|
{
|
|
388
439
|
this.getJavaClass().xSync = x;
|
|
389
440
|
}
|
|
390
441
|
|
|
442
|
+
/**
|
|
443
|
+
* @param y Y
|
|
444
|
+
*/
|
|
391
445
|
setY(y)
|
|
392
446
|
{
|
|
393
447
|
this.getJavaClass().ySync = y;
|