export class DebugMode { takePicture: boolean = true; showCoordinates: boolean = false; showDocumentDetectorStatus: boolean = false; showCroppedDocument: boolean = false; transparentBackground: boolean = false; DEBUG_CROP_SIZE = 160; constructor() {} fullMode = () => { this.takePicture = false; this.showCoordinates = true; this.showDocumentDetectorStatus = true; this.showCroppedDocument = true; this.transparentBackground = true; return this; }; } // @ts-ignore window.__GETID__ = { debug: new DebugMode(), }; export const fullDebugMode = new DebugMode().fullMode(); export function getDebugMode(): DebugMode { // @ts-ignore return window.__GETID__.debug; }