UNPKG

react-native-scanbot-sdk

Version:

Scanbot Document and Barcode Scanner SDK React Native Plugin for Android and iOS

34 lines (32 loc) 780 B
import { ImageRef } from '../../imageRef'; export class CroppingViewResult { /** * The polygon of the cropped area. */ polygon = []; /** * The rotation of the resulting cropped area */ rotation = 'NONE'; /** A crop from the input image. */ sourceImage = null; constructor(source) { if (source.polygon !== undefined) { this.polygon = source.polygon.map(it => { return { x: it.x, y: it.y }; }); } if (source.sourceImage !== undefined) { this.sourceImage = source.sourceImage != null ? ImageRef.From(source.sourceImage) : null; } if (source.rotation !== undefined) { this.rotation = source.rotation; } } } //# sourceMappingURL=ScanbotCroppingViewProperties.js.map