Skip to content

Commit 9b7264d

Browse files
author
pipeline
committed
v19.1.54 is released
1 parent 0cd2c7c commit 9b7264d

File tree

2,564 files changed

+1950952
-119432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,564 files changed

+1950952
-119432
lines changed

controls/barcodegenerator/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [Unreleased]
44

5+
## 18.4.30 (2020-12-17)
6+
7+
### Barcode
8+
9+
#### Bug Fixes
10+
11+
- `#278404` - "Ean-13 barcode not rendering" issue has been fixed.
12+
513
## 18.3.35 (2020-10-01)
614

715
### Barcode

controls/barcodegenerator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@syncfusion/ej2-barcode-generator",
3-
"version": "18.3.47",
3+
"version": "18.4.2",
44
"description": "Barcode generator component is a pure JavaScript library which will convert a string to Barcode and show it to the user. This supports major 1D and 2D barcodes including coda bar, code 128, QR Code.",
55
"author": "Syncfusion Inc.",
66
"license": "SEE LICENSE IN license",

controls/barcodegenerator/spec/barcode/core/UPC.spec.ts

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,35 @@ describe('Barcode Control ', () => {
357357
});
358358
});
359359

360+
describe('upcA character rendering issue ', () => {
361+
362+
beforeAll((): void => {
363+
ele = createElement('div', { id: 'codabar3' });
364+
document.body.appendChild(ele);
365+
barcode = new BarcodeGenerator({
366+
width: '300px', height: '150px',
367+
type: 'UpcA',
368+
value: '024100106851',
369+
displayText: {
370+
371+
},
372+
});
373+
barcode.appendTo('#codabar3');
374+
});
375+
376+
afterAll((): void => {
377+
barcode.destroy();
378+
ele.remove();
379+
});
380+
381+
it('upcA character rendering issue', (done: Function) => {
382+
var barcode = document.getElementById("codabar3");
383+
var value = barcode.children[0].children[0].getAttribute("style")
384+
expect(value==="font-size: 20px; font-family: monospace;").toBe(true);
385+
done();
386+
});
387+
});
388+
360389
describe('upcE bar testing for all lines check upcE barcode', () => {
361390
//let barcode: BarcodeGenerator;
362391
//let ele: HTMLElement;
@@ -413,8 +442,7 @@ describe('Barcode Control ', () => {
413442
});
414443

415444
describe('upcE bar testing for all lines check upcE barcode disable checksum', () => {
416-
//let barcode: BarcodeGenerator;
417-
//let ele: HTMLElement;
445+
418446
beforeAll((): void => {
419447
ele = createElement('div', { id: 'codabar4' });
420448
document.body.appendChild(ele);

controls/barcodegenerator/src/barcode/barcode-base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ export abstract class BarcodeBase {
2525
public enableCheckSum: boolean;
2626
public encodingValue: DataMatrixEncoding;
2727
public size: DataMatrixSize;
28-
}
28+
}

controls/barcodegenerator/src/barcode/barcode-model.d.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export interface BarcodeGeneratorModel extends ComponentModel{
1616
* width:'1000px', height:'500px' });
1717
* barcode.appendTo('#barcode');
1818
* ```
19+
*
1920
* @default '100%'
2021
*/
2122
width?: string | number;
@@ -30,57 +31,75 @@ export interface BarcodeGeneratorModel extends ComponentModel{
3031
* height:'1000px', height:'500px' });
3132
* barcode.appendTo('#barcode');
3233
* ```
34+
*
3335
* @default '100'
36+
*
3437
*/
3538
height?: string | number;
3639

3740
/**
3841
* Defines the barcode rendering mode.
3942
* * SVG - Renders the bar-code objects as SVG elements
4043
* * Canvas - Renders the bar-code in a canvas
44+
*
4145
* @default 'SVG'
46+
*
4247
*/
4348
mode?: RenderingMode;
4449

4550
/**
4651
* Defines the type of barcode to be rendered.
52+
*
4753
* @default 'Code128'
54+
*
4855
*/
4956
type?: BarcodeType;
5057

5158
/**
5259
* Defines the value of the barcode to be rendered.
60+
*
5361
* @default undefined
62+
*
5463
*/
5564
value?: string;
5665

5766
/**
5867
* Defines the checksum for the barcode.
68+
*
5969
* @default 'true'
70+
*
6071
*/
6172
enableCheckSum?: boolean;
6273

6374
/**
6475
* Defines the text properties for the barcode.
76+
*
6577
* @default ''
78+
*
6679
*/
6780
displayText?: DisplayTextModel;
6881

6982
/**
7083
* Defines the margin properties for the barcode.
84+
*
7185
* @default ''
86+
*
7287
*/
7388
margin?: MarginModel;
7489

7590
/**
7691
* Defines the background color of the barcode.
92+
*
7793
* @default 'white'
94+
*
7895
*/
7996
backgroundColor?: string;
8097

8198
/**
8299
* Defines the forecolor of the barcode.
100+
*
83101
* @default 'black'
102+
*
84103
*/
85104
foreColor?: string;
86105

0 commit comments

Comments
 (0)