UNPKG

689 BPlain TextView Raw
1/**
2 * A 2-Dimensional rectangle given by its relative position and size,
3 * representing the area where barcode operations are performed.
4 */
5export interface SearchArea {
6 /**
7 * The x-coordinate position of the top-left corner of the rectangle, given as width percentage (0.0 - 1.0).
8 */
9 readonly x: number;
10 /**
11 * The y-coordinate position of the top-left corner of the rectangle, given as height percentage (0.0 - 1.0).
12 */
13 readonly y: number;
14 /**
15 * The width of the rectangle, given as width percentage (0.0 - 1.0).
16 */
17 readonly width: number;
18 /**
19 * The height of the rectangle, given as height percentage (0.0 - 1.0).
20 */
21 readonly height: number;
22}