UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

94 lines (93 loc) • 2.63 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var data_scanner_exports = {}; __export(data_scanner_exports, { DataScannerViewController: () => DataScannerViewController }); module.exports = __toCommonJS(data_scanner_exports); var import_configuration = require("./configuration.cjs"); var DataScannerViewController = class { static isSupported = false; static isAvailable = false; static supportedTextRecognitionLanguages = []; static RecognizedDataType = import_configuration.RecognizedDataType; configuration; delegate = null; regionOfInterest; constructor(options) { this.configuration = (0, import_configuration.scannerConfiguration)(options); } get recognizedDataTypes() { return this.configuration.recognizedDataTypes; } get qualityLevel() { return this.configuration.qualityLevel; } get recognizesMultipleItems() { return this.configuration.recognizesMultipleItems; } get isHighFrameRateTrackingEnabled() { return this.configuration.isHighFrameRateTrackingEnabled; } get isPinchToZoomEnabled() { return this.configuration.isPinchToZoomEnabled; } get isGuidanceEnabled() { return this.configuration.isGuidanceEnabled; } get isHighlightingEnabled() { return this.configuration.isHighlightingEnabled; } unavailable() { throw new Error("DataScannerViewController needs an iOS build"); } get isScanning() { return false; } get minZoomFactor() { return this.unavailable(); } get maxZoomFactor() { return this.unavailable(); } get zoomFactor() { return this.unavailable(); } set zoomFactor(_value) { this.unavailable(); } get recognizedItems() { return this.unavailable(); } async present(_animated = true) { this.unavailable(); } async dismiss(_animated = true) { this.unavailable(); } startScanning() { this.unavailable(); } stopScanning() { this.unavailable(); } async capturePhoto() { this.unavailable(); } };