@syncfusion/ej2-barcode-generator
Version:
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.
43 lines (35 loc) • 816 B
text/typescript
/**
* Rect defines and processes rectangular regions
*/
export class Rect {
/**
* Sets the x-coordinate of the starting point of a rectangular region
*
* @default 0
*/
public x: number = Number.MAX_VALUE;
/**
* Sets the y-coordinate of the starting point of a rectangular region
*
* @default 0
*/
public y: number = Number.MAX_VALUE;
/**
* Sets the width of a rectangular region
*
* @default 0
*/
public width: number = 0;
/**
* Sets the height of a rectangular region
*
* @default 0
*/
public height: number = 0;
constructor(x?: number, y?: number, width?: number, height?: number) {
this.x = x;
this.y = y;
this.width = width;
this.height = height;
}
}