UNPKG

one

Version:

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

1 lines • 2.97 kB
{"version":3,"file":"index.js","names":[],"sources":["esm/platform/data-scanner/index.js"],"sourcesContent":["import { scannerConfiguration, RecognizedDataType } from \"./configuration\";\nclass DataScannerViewController {\n static isSupported = false;\n static isAvailable = false;\n static supportedTextRecognitionLanguages = [];\n static RecognizedDataType = RecognizedDataType;\n configuration;\n delegate = null;\n regionOfInterest;\n constructor(options) {\n this.configuration = scannerConfiguration(options);\n }\n get recognizedDataTypes() {\n return this.configuration.recognizedDataTypes;\n }\n get qualityLevel() {\n return this.configuration.qualityLevel;\n }\n get recognizesMultipleItems() {\n return this.configuration.recognizesMultipleItems;\n }\n get isHighFrameRateTrackingEnabled() {\n return this.configuration.isHighFrameRateTrackingEnabled;\n }\n get isPinchToZoomEnabled() {\n return this.configuration.isPinchToZoomEnabled;\n }\n get isGuidanceEnabled() {\n return this.configuration.isGuidanceEnabled;\n }\n get isHighlightingEnabled() {\n return this.configuration.isHighlightingEnabled;\n }\n unavailable() {\n throw new Error(\"DataScannerViewController needs an iOS build\");\n }\n get isScanning() {\n return false;\n }\n get minZoomFactor() {\n return this.unavailable();\n }\n get maxZoomFactor() {\n return this.unavailable();\n }\n get zoomFactor() {\n return this.unavailable();\n }\n set zoomFactor(_value) {\n this.unavailable();\n }\n get recognizedItems() {\n return this.unavailable();\n }\n async present(_animated = true) {\n this.unavailable();\n }\n async dismiss(_animated = true) {\n this.unavailable();\n }\n startScanning() {\n this.unavailable();\n }\n stopScanning() {\n this.unavailable();\n }\n async capturePhoto() {\n this.unavailable();\n }\n}\nexport {\n DataScannerViewController\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAM,4BAAN,MAAgC;CAC9B,OAAO,cAAc;CACrB,OAAO,cAAc;CACrB,OAAO,oCAAoC,CAAC;CAC5C,OAAO,qBAAqB;CAC5B;CACA,WAAW;CACX;CACA,YAAY,SAAS;EACnB,KAAK,gBAAgB,qBAAqB,OAAO;CACnD;CACA,IAAI,sBAAsB;EACxB,OAAO,KAAK,cAAc;CAC5B;CACA,IAAI,eAAe;EACjB,OAAO,KAAK,cAAc;CAC5B;CACA,IAAI,0BAA0B;EAC5B,OAAO,KAAK,cAAc;CAC5B;CACA,IAAI,iCAAiC;EACnC,OAAO,KAAK,cAAc;CAC5B;CACA,IAAI,uBAAuB;EACzB,OAAO,KAAK,cAAc;CAC5B;CACA,IAAI,oBAAoB;EACtB,OAAO,KAAK,cAAc;CAC5B;CACA,IAAI,wBAAwB;EAC1B,OAAO,KAAK,cAAc;CAC5B;CACA,cAAc;EACZ,MAAM,IAAI,MAAM,8CAA8C;CAChE;CACA,IAAI,aAAa;EACf,OAAO;CACT;CACA,IAAI,gBAAgB;EAClB,OAAO,KAAK,YAAY;CAC1B;CACA,IAAI,gBAAgB;EAClB,OAAO,KAAK,YAAY;CAC1B;CACA,IAAI,aAAa;EACf,OAAO,KAAK,YAAY;CAC1B;CACA,IAAI,WAAW,QAAQ;EACrB,KAAK,YAAY;CACnB;CACA,IAAI,kBAAkB;EACpB,OAAO,KAAK,YAAY;CAC1B;CACA,MAAM,QAAQ,YAAY,MAAM;EAC9B,KAAK,YAAY;CACnB;CACA,MAAM,QAAQ,YAAY,MAAM;EAC9B,KAAK,YAAY;CACnB;CACA,gBAAgB;EACd,KAAK,YAAY;CACnB;CACA,eAAe;EACb,KAAK,YAAY;CACnB;CACA,MAAM,eAAe;EACnB,KAAK,YAAY;CACnB;AACF"}