You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.0 KiB
56 lines
1.0 KiB
8 months ago
|
/**
|
||
|
* @internal
|
||
|
*/
|
||
|
export interface ZXingPoint {
|
||
|
x: number;
|
||
|
y: number;
|
||
|
}
|
||
|
/**
|
||
|
* @internal
|
||
|
*/
|
||
|
export interface ZXingPosition {
|
||
|
topLeft: ZXingPoint;
|
||
|
topRight: ZXingPoint;
|
||
|
bottomLeft: ZXingPoint;
|
||
|
bottomRight: ZXingPoint;
|
||
|
}
|
||
|
/**
|
||
|
* X, Y coordinates to describe a point.
|
||
|
*
|
||
|
* @property x X coordinate.
|
||
|
* @property y Y coordinate.
|
||
|
*
|
||
|
* @see {@link Position | `Position`}
|
||
|
*/
|
||
|
export interface Point extends ZXingPoint {
|
||
|
}
|
||
|
/**
|
||
|
* Position of the decoded barcode.
|
||
|
*/
|
||
|
export interface Position {
|
||
|
/**
|
||
|
* Top-left point of the decoded barcode.
|
||
|
*
|
||
|
* @see {@link Point | `Point`}
|
||
|
*/
|
||
|
topLeft: Point;
|
||
|
/**
|
||
|
* Top-right point of the decoded barcode.
|
||
|
*
|
||
|
* @see {@link Point | `Point`}
|
||
|
*/
|
||
|
topRight: Point;
|
||
|
/**
|
||
|
* Bottom-left point of the decoded barcode.
|
||
|
*
|
||
|
* @see {@link Point | `Point`}
|
||
|
*/
|
||
|
bottomLeft: Point;
|
||
|
/**
|
||
|
* Bottom-right point of the decoded barcode.
|
||
|
*
|
||
|
* @see {@link Point | `Point`}
|
||
|
*/
|
||
|
bottomRight: Point;
|
||
|
}
|