UNPKG

capacitor-plugin-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK for Capacitor

43 lines 1.88 kB
import { PartiallyConstructible } from '../../utils'; import { CameraScreenConfiguration, } from '../document/CameraScreenConfiguration'; import { CroppingScreenConfiguration, } from '../document/CroppingScreenConfiguration'; import { ReorderPagesScreenConfiguration } from '../document/ReorderPagesScreenConfiguration'; import { ReviewScreenConfiguration, } from '../document/ReviewScreenConfiguration'; /** Configuration of the document scanner sub-screens. */ export class DocumentScannerScreens extends PartiallyConstructible { /** @param source {@displayType `DeepPartial<DocumentScannerScreens>`} */ constructor(source = {}) { super(); /** Configuration of the screen for scanning the pages with the camera. */ this.camera = new CameraScreenConfiguration({}); /** Configuration of the screen for reviewing the scanned pages. */ this.review = new ReviewScreenConfiguration({}); /** Configuration of the screen for cropping the scanned pages. */ this.cropping = new CroppingScreenConfiguration({}); /** Configuration of the screen for reordering the scanned pages. */ this.reorderPages = new ReorderPagesScreenConfiguration({}); if (source.camera !== undefined) { this.camera = new CameraScreenConfiguration(source.camera); } if (source.review !== undefined) { this.review = new ReviewScreenConfiguration(source.review); } if (source.cropping !== undefined) { this.cropping = new CroppingScreenConfiguration(source.cropping); } if (source.reorderPages !== undefined) { this.reorderPages = new ReorderPagesScreenConfiguration(source.reorderPages); } } } //# sourceMappingURL=DocumentScannerScreens.js.map