import {CameraEnhancer} from "../dce";
/**
 * The DSRect class represents a rectangle in 2D space,
 * which contains four integer values that specify the top, left, right, and bottom edges of the rectangle.
 * @see {@link CameraEnhancer.setScanRegion}
 * */
export interface DSRect {
  /**
   * Y coordinate of the top border of the region.
   */
  top: number;
  /**
   * Y coordinate of the buttom border of the region.
   */
  bottom: number;
  /**
   * X coordinate of the right border of the region.
   */
  right: number;
  /**
   * X coordinate of the left border of the region.
   */
  left: number;
  /**
   * 1/True: the coordinates are measured by percentage.
   * 0/False: the coordinates are measured by pixel distance.
   */
  measuredInPercentage: number | boolean;
}
