zxing-wasm
Version:
ZXing-C++ WebAssembly as an ES/CJS module with types
56 lines (55 loc) • 1.03 kB
TypeScript
/**
* @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;
}