@scandit/web-datacapture-core 7.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -0
- package/README.md +6 -0
- package/THIRD-PARTY.txt +73 -0
- package/build/electron/chunk-6RVAZ75N.js +1 -0
- package/build/electron/common.cjs +1 -0
- package/build/electron/common.js +0 -0
- package/build/electron/constants.cjs +1 -0
- package/build/electron/constants.js +1 -0
- package/build/electron/main.cjs +1 -0
- package/build/electron/main.d.cts +26 -0
- package/build/electron/main.d.ts +26 -0
- package/build/electron/main.js +1 -0
- package/build/electron/preload.cjs +1 -0
- package/build/electron/preload.d.cts +6 -0
- package/build/electron/preload.d.ts +6 -0
- package/build/electron/preload.js +1 -0
- package/build/js/AimerViewfinder.d.ts +15 -0
- package/build/js/AimerViewfinder.js +1 -0
- package/build/js/Brush.d.ts +27 -0
- package/build/js/Brush.js +1 -0
- package/build/js/Camera-Cxbduq94.d.ts +1700 -0
- package/build/js/Camera.d.ts +17 -0
- package/build/js/Camera.js +1 -0
- package/build/js/CameraAccess.d.ts +17 -0
- package/build/js/CameraAccess.js +1 -0
- package/build/js/CameraRelated.d.ts +17 -0
- package/build/js/CameraRelated.js +1 -0
- package/build/js/Common.d.ts +229 -0
- package/build/js/Common.js +1 -0
- package/build/js/DataCaptureContext.d.ts +17 -0
- package/build/js/DataCaptureContext.js +1 -0
- package/build/js/DataCaptureContextRelated.d.ts +17 -0
- package/build/js/DataCaptureContextRelated.js +1 -0
- package/build/js/DataCaptureContextSettings.d.ts +13 -0
- package/build/js/DataCaptureContextSettings.js +1 -0
- package/build/js/DataCaptureError.d.ts +13 -0
- package/build/js/DataCaptureError.js +1 -0
- package/build/js/DataCaptureVersion.d.ts +6 -0
- package/build/js/DataCaptureVersion.js +1 -0
- package/build/js/DataCaptureView.d.ts +17 -0
- package/build/js/DataCaptureView.js +1 -0
- package/build/js/DataCaptureViewPlusRelated.d.ts +25 -0
- package/build/js/DataCaptureViewPlusRelated.js +1 -0
- package/build/js/DefaultViewClassnames.d.ts +23 -0
- package/build/js/DefaultViewClassnames.js +1 -0
- package/build/js/Defaults.d.ts +143 -0
- package/build/js/Defaults.js +1 -0
- package/build/js/Feedback.d.ts +21 -0
- package/build/js/Feedback.js +1 -0
- package/build/js/FrameData.d.ts +17 -0
- package/build/js/FrameData.js +1 -0
- package/build/js/ImageFrameSource.d.ts +57 -0
- package/build/js/ImageFrameSource.js +1 -0
- package/build/js/LoadingStatus.d.ts +23 -0
- package/build/js/LoadingStatus.js +1 -0
- package/build/js/Localization.d.ts +44 -0
- package/build/js/Localization.js +1 -0
- package/build/js/LocationSelection.d.ts +39 -0
- package/build/js/LocationSelection.js +1 -0
- package/build/js/RectangularViewfinder.d.ts +33 -0
- package/build/js/RectangularViewfinder.js +1 -0
- package/build/js/SingleImageUploader.d.ts +58 -0
- package/build/js/SingleImageUploader.js +1 -0
- package/build/js/SingleImageUploaderSettings.d.ts +33 -0
- package/build/js/SingleImageUploaderSettings.js +1 -0
- package/build/js/Sound.d.ts +17 -0
- package/build/js/Sound.js +1 -0
- package/build/js/Vibration.d.ts +21 -0
- package/build/js/Vibration.js +1 -0
- package/build/js/ViewControls.d.ts +54 -0
- package/build/js/ViewControls.js +1 -0
- package/build/js/Viewfinder.d.ts +15 -0
- package/build/js/Viewfinder.js +1 -0
- package/build/js/ViewfinderPlusRelated.d.ts +58 -0
- package/build/js/ViewfinderPlusRelated.js +1 -0
- package/build/js/assets/beepSound.d.ts +4 -0
- package/build/js/assets/beepSound.js +1 -0
- package/build/js/assets/folderImage.d.ts +4 -0
- package/build/js/assets/folderImage.js +1 -0
- package/build/js/assets/index.d.d.ts +5 -0
- package/build/js/assets/index.d.js +1 -0
- package/build/js/assets/index.d.ts +5 -0
- package/build/js/assets/index.js +1 -0
- package/build/js/assets/scanningByScandit.d.ts +4 -0
- package/build/js/assets/scanningByScandit.js +1 -0
- package/build/js/assets/transparentPixelImage.d.ts +4 -0
- package/build/js/assets/transparentPixelImage.js +1 -0
- package/build/js/browserCompatibility.d.ts +83 -0
- package/build/js/browserCompatibility.js +1 -0
- package/build/js/browserHelper.d.ts +154 -0
- package/build/js/browserHelper.js +1 -0
- package/build/js/chunks/chunk-2DXPVHBJ.js +1 -0
- package/build/js/chunks/chunk-2NZR6P45.js +14 -0
- package/build/js/chunks/chunk-2Q5FZVGV.js +3 -0
- package/build/js/chunks/chunk-2WQHYCZC.js +6 -0
- package/build/js/chunks/chunk-3A4KLILV.js +3 -0
- package/build/js/chunks/chunk-3FDT22IX.js +3 -0
- package/build/js/chunks/chunk-44B7Z6ZZ.js +5 -0
- package/build/js/chunks/chunk-457L5N2F.js +6 -0
- package/build/js/chunks/chunk-4FJRDG6T.js +6 -0
- package/build/js/chunks/chunk-4ZMCJXZS.js +3 -0
- package/build/js/chunks/chunk-5IVFVUF4.js +21 -0
- package/build/js/chunks/chunk-5LIWL2C4.js +3 -0
- package/build/js/chunks/chunk-5RW5274G.js +1 -0
- package/build/js/chunks/chunk-5S537AFM.js +3 -0
- package/build/js/chunks/chunk-6H6FKGVE.js +3 -0
- package/build/js/chunks/chunk-6OQQP3SM.js +29 -0
- package/build/js/chunks/chunk-6W7FX6LD.js +3 -0
- package/build/js/chunks/chunk-6XT4BUUR.js +9 -0
- package/build/js/chunks/chunk-72DAONJI.js +5 -0
- package/build/js/chunks/chunk-76GU6PXK.js +3 -0
- package/build/js/chunks/chunk-7NUUZ7LP.js +5 -0
- package/build/js/chunks/chunk-7SW2PEHB.js +3 -0
- package/build/js/chunks/chunk-7XQ3GHYH.js +3 -0
- package/build/js/chunks/chunk-AIRWHLJH.js +5 -0
- package/build/js/chunks/chunk-BDLLVGRH.js +3 -0
- package/build/js/chunks/chunk-BKSPXD6N.js +8 -0
- package/build/js/chunks/chunk-CQ5KZRRX.js +17 -0
- package/build/js/chunks/chunk-CREAZBG7.js +5 -0
- package/build/js/chunks/chunk-D2EQRTOA.js +6 -0
- package/build/js/chunks/chunk-D4YDSS77.js +6 -0
- package/build/js/chunks/chunk-DEQ72K2Q.js +7 -0
- package/build/js/chunks/chunk-E2VUMNY4.js +16 -0
- package/build/js/chunks/chunk-EC4DRTKR.js +5 -0
- package/build/js/chunks/chunk-EK2IIDFY.js +3 -0
- package/build/js/chunks/chunk-EMHHC6NB.js +5 -0
- package/build/js/chunks/chunk-EP3GI7KA.js +3 -0
- package/build/js/chunks/chunk-EQRBQJYM.js +3 -0
- package/build/js/chunks/chunk-EV4OEANA.js +3 -0
- package/build/js/chunks/chunk-EYIDRFHC.js +6 -0
- package/build/js/chunks/chunk-FGCJ3ZLG.js +3 -0
- package/build/js/chunks/chunk-FGO2SSRS.js +3 -0
- package/build/js/chunks/chunk-FTD535WI.js +3 -0
- package/build/js/chunks/chunk-GE4CBD4E.js +3 -0
- package/build/js/chunks/chunk-GPJEB376.js +5 -0
- package/build/js/chunks/chunk-GSJH2EXJ.js +6 -0
- package/build/js/chunks/chunk-GWI2ZHMO.js +15 -0
- package/build/js/chunks/chunk-GX4YCYCH.js +3 -0
- package/build/js/chunks/chunk-H4TH4342.js +3 -0
- package/build/js/chunks/chunk-HNFNB37O.js +6 -0
- package/build/js/chunks/chunk-HRS63RFH.js +47 -0
- package/build/js/chunks/chunk-HZY2EBWP.js +8 -0
- package/build/js/chunks/chunk-IGJQFAQU.js +3 -0
- package/build/js/chunks/chunk-IH7SHTFM.js +5 -0
- package/build/js/chunks/chunk-IZLMNXTH.js +41 -0
- package/build/js/chunks/chunk-J25IZC7J.js +6 -0
- package/build/js/chunks/chunk-J2UL6U3I.js +3 -0
- package/build/js/chunks/chunk-JFRSUCMO.js +33 -0
- package/build/js/chunks/chunk-JKL2W65E.js +3 -0
- package/build/js/chunks/chunk-JS3T7K2Z.js +3 -0
- package/build/js/chunks/chunk-JXJQSWYG.js +3 -0
- package/build/js/chunks/chunk-KAZWF3JC.js +5 -0
- package/build/js/chunks/chunk-KW3YSGJX.js +5 -0
- package/build/js/chunks/chunk-KYNYQBNF.js +19 -0
- package/build/js/chunks/chunk-L2STPTEN.js +3 -0
- package/build/js/chunks/chunk-LA6TM76R.js +3 -0
- package/build/js/chunks/chunk-M46MIHI5.js +21 -0
- package/build/js/chunks/chunk-MAMZS5CH.js +7 -0
- package/build/js/chunks/chunk-MKHBE7BB.js +6 -0
- package/build/js/chunks/chunk-MSPQDVWJ.js +5 -0
- package/build/js/chunks/chunk-N4NOODAT.js +3 -0
- package/build/js/chunks/chunk-N5F43TUJ.js +5 -0
- package/build/js/chunks/chunk-N5YZEC56.js +3 -0
- package/build/js/chunks/chunk-NMX4VHW2.js +5 -0
- package/build/js/chunks/chunk-O7TZTIHO.js +3 -0
- package/build/js/chunks/chunk-OTI45AJG.js +12 -0
- package/build/js/chunks/chunk-PO2YU6JK.js +6 -0
- package/build/js/chunks/chunk-PXXUQXGB.js +7 -0
- package/build/js/chunks/chunk-Q7JWDX4U.js +3 -0
- package/build/js/chunks/chunk-QBDQQMQ5.js +5 -0
- package/build/js/chunks/chunk-QCRFVRSS.js +3 -0
- package/build/js/chunks/chunk-QCZSSQAQ.js +3 -0
- package/build/js/chunks/chunk-QR4TEDGM.js +6 -0
- package/build/js/chunks/chunk-R6E4CT22.js +3 -0
- package/build/js/chunks/chunk-RQQK6Z5F.js +3 -0
- package/build/js/chunks/chunk-SJE4IFCX.js +10 -0
- package/build/js/chunks/chunk-SP3HSP4K.js +3 -0
- package/build/js/chunks/chunk-SZ672BOB.js +5 -0
- package/build/js/chunks/chunk-T3AOBMAS.js +3 -0
- package/build/js/chunks/chunk-T5EUB6UG.js +6 -0
- package/build/js/chunks/chunk-T7URG4IQ.js +11 -0
- package/build/js/chunks/chunk-TBCW7RDM.js +21 -0
- package/build/js/chunks/chunk-TVDFY6ME.js +5 -0
- package/build/js/chunks/chunk-U6BTTEV6.js +3 -0
- package/build/js/chunks/chunk-UA3E3GGM.js +6 -0
- package/build/js/chunks/chunk-UHFABUTI.js +3 -0
- package/build/js/chunks/chunk-UPUPKPEP.js +8 -0
- package/build/js/chunks/chunk-UZWBB65W.js +3 -0
- package/build/js/chunks/chunk-VJB527QZ.js +3 -0
- package/build/js/chunks/chunk-VRVSELOR.js +6 -0
- package/build/js/chunks/chunk-W7LJM2QO.js +5 -0
- package/build/js/chunks/chunk-WSG6WSZN.js +6 -0
- package/build/js/chunks/chunk-WUHKODFA.js +3 -0
- package/build/js/chunks/chunk-XVLYCDJL.js +7 -0
- package/build/js/chunks/chunk-YRNH7TIR.js +1 -0
- package/build/js/chunks/chunk-YRSVOTNR.js +3 -0
- package/build/js/chunks/chunk-ZKROZLQ4.js +3 -0
- package/build/js/chunks/chunk-ZSYUKWWL.js +5 -0
- package/build/js/chunks/chunk-ZTM7LWVE.js +10 -0
- package/build/js/chunks/chunk-ZVBD3EW5.js +3 -0
- package/build/js/common-4FJYEFaM.d.ts +25 -0
- package/build/js/global.d.d.ts +42 -0
- package/build/js/global.d.js +1 -0
- package/build/js/index.d.ts +66 -0
- package/build/js/index.js +52 -0
- package/build/js/license/OpenSourceSoftwareLicenseInfo.d.ts +8 -0
- package/build/js/license/OpenSourceSoftwareLicenseInfo.js +1 -0
- package/build/js/logger.d.ts +26 -0
- package/build/js/logger.js +1 -0
- package/build/js/private/AnchorPositions.d.ts +28 -0
- package/build/js/private/AnchorPositions.js +1 -0
- package/build/js/private/CameraAccess.d.ts +17 -0
- package/build/js/private/CameraAccess.js +1 -0
- package/build/js/private/CameraManager.d.ts +17 -0
- package/build/js/private/CameraManager.js +1 -0
- package/build/js/private/CanvasDrawer.d.ts +36 -0
- package/build/js/private/CanvasDrawer.js +1 -0
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +39 -0
- package/build/js/private/CanvasDrawerWithMetrics.js +1 -0
- package/build/js/private/CavansDrawerAbstract.d.ts +37 -0
- package/build/js/private/CavansDrawerAbstract.js +1 -0
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +29 -0
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -0
- package/build/js/private/CustomLocationsView.d.ts +47 -0
- package/build/js/private/CustomLocationsView.js +1 -0
- package/build/js/private/CustomLocationsViewStyles.d.ts +7 -0
- package/build/js/private/CustomLocationsViewStyles.js +1 -0
- package/build/js/private/DataCaptureContextRelated.d.ts +25 -0
- package/build/js/private/DataCaptureContextRelated.js +1 -0
- package/build/js/private/DrawCommandBuffer.d.ts +44 -0
- package/build/js/private/DrawCommandBuffer.js +1 -0
- package/build/js/private/EventManager.d.ts +9 -0
- package/build/js/private/EventManager.js +1 -0
- package/build/js/private/FrameReaders/FrameReader.d.ts +17 -0
- package/build/js/private/FrameReaders/FrameReader.js +1 -0
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +17 -0
- package/build/js/private/FrameReaders/FrameReaderAbstract.js +1 -0
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +52 -0
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -0
- package/build/js/private/FrameReaders/WatermarkStack.d.ts +41 -0
- package/build/js/private/FrameReaders/WatermarkStack.js +1 -0
- package/build/js/private/FrameReaders/index.d.ts +18 -0
- package/build/js/private/FrameReaders/index.js +2 -0
- package/build/js/private/FrameReaders/webglUtilities.d.ts +5 -0
- package/build/js/private/FrameReaders/webglUtilities.js +1 -0
- package/build/js/private/GestureRecognizer/GestureRecognizer.d.ts +22 -0
- package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -0
- package/build/js/private/GestureRecognizer/PointerEventsDetector.d.ts +19 -0
- package/build/js/private/GestureRecognizer/PointerEventsDetector.js +1 -0
- package/build/js/private/GestureRecognizer/index.d.ts +5 -0
- package/build/js/private/GestureRecognizer/index.js +1 -0
- package/build/js/private/Helper.d.ts +14 -0
- package/build/js/private/Helper.js +1 -0
- package/build/js/private/HtmlElementState.d.ts +35 -0
- package/build/js/private/HtmlElementState.js +1 -0
- package/build/js/private/ModuleLicenseTextProvider.d.ts +6 -0
- package/build/js/private/ModuleLicenseTextProvider.js +1 -0
- package/build/js/private/NormalizedConfigureOptions.d.ts +53 -0
- package/build/js/private/NormalizedConfigureOptions.js +1 -0
- package/build/js/private/OrientationObserver.d.ts +30 -0
- package/build/js/private/OrientationObserver.js +1 -0
- package/build/js/private/Serializable.d.ts +9 -0
- package/build/js/private/Serializable.js +1 -0
- package/build/js/private/SingleImageUploaderView.d.ts +55 -0
- package/build/js/private/SingleImageUploaderView.js +1 -0
- package/build/js/private/SingleImageUploaderViewStyles.d.ts +28 -0
- package/build/js/private/SingleImageUploaderViewStyles.js +1 -0
- package/build/js/private/View.d.ts +7 -0
- package/build/js/private/View.js +1 -0
- package/build/js/private/ViewClassNames.d.ts +23 -0
- package/build/js/private/ViewClassNames.js +1 -0
- package/build/js/private/ViewControls+related.js +1 -0
- package/build/js/private/ViewControls_related.d.ts +120 -0
- package/build/js/private/ViewStyles.d.ts +4 -0
- package/build/js/private/ViewStyles.js +1 -0
- package/build/js/private/ViewsRegistry.d.ts +21 -0
- package/build/js/private/ViewsRegistry.js +1 -0
- package/build/js/private/hybridDesktopPlatformHelpers.d.ts +23 -0
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -0
- package/build/js/private/multithreadSimdHelper.d.ts +31 -0
- package/build/js/private/multithreadSimdHelper.js +1 -0
- package/build/js/private/ui/atoms/ArrowsUp.d.ts +19 -0
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -0
- package/build/js/private/ui/atoms/ProgressBar.d.ts +28 -0
- package/build/js/private/ui/atoms/ProgressBar.js +1 -0
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -0
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -0
- package/build/js/private/ui/atoms/ShutterButton.d.ts +39 -0
- package/build/js/private/ui/atoms/ShutterButton.js +29 -0
- package/build/js/private/ui/atoms/SvgIcon.d.ts +22 -0
- package/build/js/private/ui/atoms/SvgIcon.js +1 -0
- package/build/js/private/ui/atoms/Toast.d.ts +67 -0
- package/build/js/private/ui/atoms/Toast.js +1 -0
- package/build/js/private/ui/colors.d.ts +27 -0
- package/build/js/private/ui/colors.js +1 -0
- package/build/js/private/ui/molecules/HintPresenter.d.ts +58 -0
- package/build/js/private/ui/molecules/HintPresenter.js +1 -0
- package/build/js/private/ui/molecules/LoadingOverlay.d.ts +26 -0
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -0
- package/build/js/private/unsupportedBrowserError.d.ts +10 -0
- package/build/js/private/unsupportedBrowserError.js +1 -0
- package/build/js/private/utils/ScanditHTMLElement.d.ts +6 -0
- package/build/js/private/utils/ScanditHTMLElement.js +1 -0
- package/build/js/private/utils/clamp.d.ts +4 -0
- package/build/js/private/utils/clamp.js +1 -0
- package/build/js/private/utils/css.d.ts +4 -0
- package/build/js/private/utils/css.js +1 -0
- package/build/js/private/utils/debounce.d.ts +4 -0
- package/build/js/private/utils/debounce.js +1 -0
- package/build/js/private/utils/deferred.d.ts +9 -0
- package/build/js/private/utils/deferred.js +1 -0
- package/build/js/private/utils/defineCustomElements.d.ts +4 -0
- package/build/js/private/utils/defineCustomElements.js +1 -0
- package/build/js/private/utils/html.d.ts +4 -0
- package/build/js/private/utils/html.js +1 -0
- package/build/js/private/utils/index.d.ts +16 -0
- package/build/js/private/utils/index.js +15 -0
- package/build/js/private/utils/isObject.d.ts +4 -0
- package/build/js/private/utils/isObject.js +1 -0
- package/build/js/private/utils/isWorkerScope.d.ts +4 -0
- package/build/js/private/utils/isWorkerScope.js +1 -0
- package/build/js/private/utils/match.d.ts +11 -0
- package/build/js/private/utils/match.js +1 -0
- package/build/js/private/utils/throttle.d.ts +4 -0
- package/build/js/private/utils/throttle.js +1 -0
- package/build/js/private/utils/timeout.d.ts +14 -0
- package/build/js/private/utils/timeout.js +1 -0
- package/build/js/private/utils/unknownErrorToString.d.ts +4 -0
- package/build/js/private/utils/unknownErrorToString.js +1 -0
- package/build/js/private/utils/wait.d.ts +4 -0
- package/build/js/private/utils/wait.js +1 -0
- package/build/js/private/utils/waitTransitionEndForElement.d.ts +4 -0
- package/build/js/private/utils/waitTransitionEndForElement.js +1 -0
- package/build/js/sdk.d.ts +30 -0
- package/build/js/sdk.js +1 -0
- package/build/js/translations.d.ts +12 -0
- package/build/js/translations.js +1 -0
- package/build/js/tsHelper.d.ts +26 -0
- package/build/js/tsHelper.js +1 -0
- package/build/js/worker/OverrideState.d.ts +8 -0
- package/build/js/worker/OverrideState.js +1 -0
- package/build/js/worker/WorkerMain.d.ts +40 -0
- package/build/js/worker/WorkerMain.js +1 -0
- package/build/js/worker/dataCapture.inlineWorker.d.ts +24 -0
- package/build/js/worker/dataCapture.inlineWorker.js +1 -0
- package/build/js/worker/dataCaptureEngine.d.ts +17 -0
- package/build/js/worker/dataCaptureEngine.js +1 -0
- package/build/js/worker/dataCaptureLoader.d.ts +17 -0
- package/build/js/worker/dataCaptureLoader.js +1 -0
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +17 -0
- package/build/js/worker/dataCaptureWorkerRelated.js +1 -0
- package/build/js/worker/helper.d.ts +16 -0
- package/build/js/worker/helper.js +1 -0
- package/build/js/worker/helperFetch.d.ts +33 -0
- package/build/js/worker/helperFetch.js +1 -0
- package/build/js/worker/helperFs.d.ts +9 -0
- package/build/js/worker/helperFs.js +1 -0
- package/build/js/worker/importWasmScript.d.ts +4 -0
- package/build/js/worker/importWasmScript.js +1 -0
- package/build/js/worker/index.d.ts +18 -0
- package/build/js/worker/index.js +4 -0
- package/build/js/worker/inlineWorker.d.d.ts +5 -0
- package/build/js/worker/inlineWorker.d.js +1 -0
- package/package.json +156 -0
- package/sdc-lib/.gitkeep +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { a } from './chunk-BDLLVGRH.js';
|
|
2
|
+
import { c as c$1 } from './chunk-J2UL6U3I.js';
|
|
3
|
+
import { b, c } from './chunk-GX4YCYCH.js';
|
|
4
|
+
import { m, e, l as l$1, n as n$1 } from './chunk-N4NOODAT.js';
|
|
5
|
+
|
|
6
|
+
var l=class{static fromJSON(t){return (t==null?void 0:t.type)==="tapToFocus"?new b:null}},s=class{static fromJSON(t){return (t==null?void 0:t.type)==="swipeToZoom"?new c:null}};function n(e){let t="document"in globalThis?globalThis.document:void 0,i=t==null?void 0:t.createRange().createContextualFragment(e);if(i)return i.firstElementChild}function p(e$1){var t;return {Camera:{Settings:{preferredResolution:e$1.Camera.Settings.preferredResolution,zoomFactor:e$1.Camera.Settings.zoomFactor,zoomGestureZoomFactor:e$1.Camera.Settings.zoomGestureZoomFactor,focusGestureStrategy:e$1.Camera.Settings.focusGestureStrategy},defaultPosition:(t=e$1.Camera.defaultPosition)!=null?t:null,availablePositions:e$1.Camera.availablePositions},SingleImageUploader:{Settings:{iconElement:n(e$1.SingleImageUploader.Settings.iconElement),informationElement:n(e$1.SingleImageUploader.Settings.informationElement),buttonElement:n(e$1.SingleImageUploader.Settings.buttonElement),containerStyle:e$1.SingleImageUploader.Settings.containerStyle,iconStyle:e$1.SingleImageUploader.Settings.iconStyle,informationStyle:e$1.SingleImageUploader.Settings.informationStyle,buttonStyle:e$1.SingleImageUploader.Settings.buttonStyle,onlyCameraCapture:e$1.SingleImageUploader.Settings.onlyCameraCapture}},DataCaptureView:{scanAreaMargins:m.fromJSON(JSON.parse(e$1.DataCaptureView.scanAreaMargins)),pointOfInterest:e.fromJSON(JSON.parse(e$1.DataCaptureView.pointOfInterest)),logoStyle:e$1.DataCaptureView.logoStyle,logoAnchor:e$1.DataCaptureView.logoAnchor,logoOffset:e.fromJSON(JSON.parse(e$1.DataCaptureView.logoOffset)),focusGesture:l.fromJSON(JSON.parse(e$1.DataCaptureView.focusGesture)),zoomGesture:s.fromJSON(JSON.parse(e$1.DataCaptureView.zoomGesture)),cameraRecoveryText:e$1.DataCaptureView.cameraRecoveryText},RectangularViewfinder:Object.keys(e$1.RectangularViewfinder.styles).reduce((i,u)=>{let r=e$1.RectangularViewfinder.styles[u];return i.styles[u]={size:l$1.fromJSON(JSON.parse(r.size)),color:n$1.fromJSON(r.color),style:r.style,lineStyle:r.lineStyle,dimming:Number.parseFloat(r.dimming.toString()),animation:c$1.fromJSON(JSON.parse(r.animation))},i},{defaultStyle:e$1.RectangularViewfinder.defaultStyle,styles:{}}),AimerViewfinder:{frameColor:n$1.fromJSON(e$1.AimerViewfinder.frameColor),dotColor:n$1.fromJSON(e$1.AimerViewfinder.dotColor)},Brush:{fillColor:n$1.fromJSON(e$1.Brush.fillColor),strokeColor:n$1.fromJSON(e$1.Brush.strokeColor),strokeWidth:e$1.Brush.strokeWidth},Feedback:{defaultVibrationPattern:e$1.Feedback.defaultVibrationPattern}}}var y=p({DataCaptureView:{focusGesture:"null",zoomGesture:"null",logoAnchor:"bottomRight",logoStyle:"extended",logoOffset:JSON.stringify({x:{value:0,unit:"fraction"},y:{value:0,unit:"fraction"}}),pointOfInterest:JSON.stringify({x:{value:.5,unit:"fraction"},y:{value:.5,unit:"fraction"}}),scanAreaMargins:JSON.stringify({left:{value:0,unit:"fraction"},right:{value:0,unit:"fraction"},top:{value:0,unit:"fraction"},bottom:{value:0,unit:"fraction"}}),cameraRecoveryText:"(This text is updated from translations)"},Camera:{Settings:{preferredResolution:"auto",zoomFactor:1,focusGestureStrategy:"manualUntilCapture",zoomGestureZoomFactor:2},defaultPosition:"worldFacing",availablePositions:["worldFacing","userFacing"]},SingleImageUploader:{Settings:{iconElement:atob(a),informationElement:"<p data-scandit-default>(This text is updated from translations)</p>",buttonElement:"<div data-scandit-default>(This text is updated from translations)</div>",containerStyle:{backgroundColor:"#FFFFFF"},iconStyle:{fill:"#121619"},informationStyle:{color:"#121619",marginBottom:"2em"},buttonStyle:{color:"#FFFFFF",backgroundColor:"#121619",fontWeight:"bold",padding:"1.25em",width:"12em",textAlign:"center",textTransform:"uppercase"},onlyCameraCapture:!1}},AimerViewfinder:{frameColor:"#FFFFFFFF",dotColor:"#FFFFFFCC"},RectangularViewfinder:{defaultStyle:"rounded",styles:{rounded:{size:JSON.stringify({aspect:1,shorterDimension:{unit:"fraction",value:.75}}),color:"#FFFFFFFF",style:"rounded",lineStyle:"light",dimming:0,animation:JSON.stringify({looping:!0})},square:{size:JSON.stringify({aspect:1,shorterDimension:{unit:"fraction",value:.75}}),color:"#FFFFFFFF",style:"square",lineStyle:"light",dimming:0,animation:JSON.stringify({looping:!0})}}},Brush:{fillColor:"#00000000",strokeColor:"#00000000",strokeWidth:0},Feedback:{defaultVibrationPattern:[300]}});function V(e){y=e;}
|
|
7
|
+
|
|
8
|
+
export { l as a, s as b, p as c, y as d, V as e };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var e={"core.view.loading":"Loading the Scandit SDK...","core.singleImageUploader.title":"Analyze an image from your device.","core.singleImageUploader.button":"Choose an Image","core.camera.recovery":"Tap/click to resume scanning","barcode.find.view.textForCollapseCardsButton":"Collapse Cards"};
|
|
2
|
+
|
|
3
|
+
export { e as a };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-SP3HSP4K.js';
|
|
2
|
+
import { a } from './chunk-QCZSSQAQ.js';
|
|
3
|
+
|
|
4
|
+
var s=class i{constructor(){this.type="imageFrameSource";this._listeners=new Set;this._currentState="off";this._desiredState="off";this._context=null;this._imageData=null;}get desiredState(){return this._desiredState}get context(){return this._context}set context(e){this._context=e;}get currentState(){return this._currentState}static async fromFile(e){let t=URL.createObjectURL(e),r=new Image;r.src=t;try{await r.decode();}catch(a$1){throw new a({name:"InvalidImageError",message:"Submitted file is not an image"})}finally{URL.revokeObjectURL(t);}return i.fromImage(r)}static async fromImage(e){let t=new i;try{await e.decode();}catch(a$1){throw new a({name:"InvalidImageError",message:"Submitted image cannot be decoded"})}let r=t.getCanvasAndContext(e.width,e.height);return r.drawImage(e,0,0),t._imageData=r.getImageData(0,0,e.width,e.height,{colorSpace:"srgb"}),t}static async fromImageData(e){let t=new i,r=t.getCanvasAndContext(e.width,e.height);try{r.putImageData(e,0,0);}catch(a$1){throw new a({name:"InvalidImageError",message:`Submitted image data does not seem valid (details: ${a$1})`})}return t._imageData=e,t}async switchToDesiredState(e){if(e==="on"){if(this.currentState==="on")return}else if(this.currentState==="off")return;return this._desiredState=e,this._imageData==null?(a$1.log(a$1.Level.Warn,"No image data to process."),this.processSubmittedImage({data:new Uint8ClampedArray(0),width:0,height:0,colorSpace:"srgb"})):this.processSubmittedImage(this._imageData)}addListener(e){e!=null&&this._listeners.add(e);}removeListener(e){e!=null&&this._listeners.delete(e);}toJSONObject(){return {type:this.type}}getCurrentState(){return this._currentState}getCanvasAndContext(e,t){let r=document.createElement("canvas");r.width=e,r.height=t;let a$1=r.getContext("2d");if(a$1==null)throw new a({name:"ImageFrameSourceError",message:"Could not generate a canvas context to get image data"});return a$1}async setCurrentState(e){if(e!==this._currentState)return this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e})}async notifyContext(e){if(this._context)return this._context.update([e])}notifyListeners(){for(let e of this._listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}async processSubmittedImage(e){var t;await this.setCurrentState("on"),await((t=this._context)==null?void 0:t.sendFrameToProcessor(e)),await this.setCurrentState("off");}};
|
|
5
|
+
|
|
6
|
+
export { s as a };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { d } from './chunk-UPUPKPEP.js';
|
|
2
|
+
|
|
3
|
+
var u=(o=>(o.On="on",o.Off="off",o.Standby="standby",o.Starting="starting",o.Stopping="stopping",o.BootingUp="bootingUp",o.WakingUp="wakingUp",o.GoingToSleep="goingToSleep",o.ShuttingDown="shuttingDown",o))(u||{}),c=(t=>(t.On="on",t.Off="off",t))(c||{}),m=(t=>(t.WorldFacing="worldFacing",t.UserFacing="userFacing",t))(m||{}),p=(r=>(r.Auto="auto",r.HD="hd",r.FullHD="fullHd",r.UHD4K="uhd4k",r))(p||{}),g=(r=>(r.None="none",r.Manual="manual",r.ManualUntilCapture="manualUntilCapture",r.AutoOnLocation="autoOnLocation",r))(g||{});function f(a){var e;return ((e=a==null?void 0:a.toJSONObject())==null?void 0:e.type)==="camera"}var i=class a{constructor(e){this.preferredResolution=d.Camera.Settings.preferredResolution;this.zoomFactor=d.Camera.Settings.zoomFactor;this.zoomGestureZoomFactor=d.Camera.Settings.zoomGestureZoomFactor;this.focus={focusGestureStrategy:d.Camera.Settings.focusGestureStrategy};if(e!=null)for(let t of Object.getOwnPropertyNames(e))this[t]=e[t];}get focusGestureStrategy(){return this.focus.focusGestureStrategy}set focusGestureStrategy(e){this.focus.focusGestureStrategy=e;}static fromJSON(e){let t=new a;return t.preferredResolution=e.preferredResolution,t.zoomFactor=e.zoomFactor,t.zoomGestureZoomFactor=e.zoomGestureZoomFactor,t.focusGestureStrategy=e.focusGestureStrategy,t}setProperty(e,t){this[e]=t;}getProperty(e){return this[e]}toJSONObject(){let e={preferredResolution:this.preferredResolution,zoomFactor:this.zoomFactor,zoomGestureZoomFactor:this.zoomGestureZoomFactor,focus:{focusGestureStrategy:this.focus.focusGestureStrategy}},t={};for(let n of Object.keys(this))[...Object.keys(e),"focusGestureStrategy"].includes(n)||(t[n]=this[n]);return {...e,...t}}};
|
|
4
|
+
|
|
5
|
+
export { u as a, c as b, m as c, p as d, g as e, f, i as g };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-NMX4VHW2.js';
|
|
2
|
+
import { a } from './chunk-GE4CBD4E.js';
|
|
3
|
+
|
|
4
|
+
function r(){let e=a`@keyframes scandit-rotation{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.${a$1.CONTAINER_CLASS_NAME}{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;overflow:hidden;width:100%}.${a$1.CONTAINER_CLASS_NAME}:before{animation:scandit-rotation 1s linear infinite;background-color:#fff;content:" ";height:1px;left:0;opacity:0;pointer-events:none;position:absolute;top:0;width:1px}`,o=a`.${a$1.PAINTBOARDS_CONTAINER_CLASS_NAME}{height:inherit;position:relative;width:100%}.${a$1.PAINTBOARD_CLASS_NAME}{aspect-ratio:16/9;background-color:#000;height:100%;min-height:1px;min-width:1px;position:relative;width:100%}.${a$1.PAINTBOARD_CLASS_NAME}.${a$1.PAINTBOARD_CLASS_NAME_STATE_ON}{aspect-ratio:auto}.${a$1.PAINTBOARD_CLASS_NAME} video{display:block;height:100%;object-fit:cover;transition:opacity .3s;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.MIRRORED_CLASS_NAME}{transform:scaleX(-1)}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME}{background-color:#000;cursor:pointer;z-index:5}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CAMERA_RECOVERY_CLASS_NAME},.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.ERROR_CLASS_NAME}{align-items:center;color:#fff;display:flex;height:100%;justify-content:center;left:0;position:absolute;top:0;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.ERROR_CLASS_NAME}{background-color:rgba(0,0,0,.5);text-align:center;z-index:6}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.HINT_CONTAINER_CLASS_NAME}{bottom:5vh;display:grid;pointer-events:none;position:absolute;top:5vh;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.HINT_CLASS_NAME}{background-color:#fff;color:#000;padding:10px;width:fit-content}.${a$1.CAMERA_RECOVERY_CLASS_NAME}[hidden],.${a$1.ERROR_CLASS_NAME}[hidden],.${a$1.HINT_CLASS_NAME}[hidden]{display:none}.${a$1.PAINTBOARD_CLASS_NAME} canvas{height:100%;left:0;object-fit:cover;pointer-events:none;position:absolute;top:0;transition:opacity .3s;width:100%}`,i=a`.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME}{-webkit-tap-highlight-color:rgba(255,255,255,0);align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label{align-items:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label input[type=file]{position:absolute;top:-9999px}.${a$1.PAINTBOARD_CLASS_NAME}.${a$1.SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME} label button{pointer-events:none}`,n=a`.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CONTROLS_CLASS_NAME}{display:flex;height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CONTROL_WIDGET_CLASS_NAME}-${a$1.TORCH_SWITCH_CONTROL_CLASS_NAME}{left:16px;top:24px}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CONTROL_WIDGET_CLASS_NAME}-${a$1.CAMERA_SWITCH_CONTROL_CLASS_NAME}{right:16px;top:24px}.${a$1.PAINTBOARD_CLASS_NAME} .${a$1.CONTROL_WIDGET_CLASS_NAME}-${a$1.CAMERA_FOV_SWITCH_CONTROL_CLASS_NAME}{bottom:24px;right:24px}.${a$1.CONTROL_WIDGET_CLASS_NAME}{background-color:transparent;background-repeat:no-repeat;border:none;cursor:pointer;height:32px;pointer-events:all;position:absolute;width:32px}.${a$1.CONTROL_WIDGET_CLASS_NAME}+.${a$1.CONTROL_WIDGET_CLASS_NAME}{margin-left:16px}`,_=a`.${a$1.FROZEN_FRAME}{height:100%;left:0;object-fit:cover;opacity:1;position:absolute;top:0;width:100%}.${a$1.FROZEN_FRAME}[hidden]{opacity:0;pointer-events:none;visibility:hidden}`;return [e,o,n,i,_]}
|
|
5
|
+
|
|
6
|
+
export { r as a };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var o=class n{static fromJSON(e){let t=new n;return t._code=e.code,t._message=e.message,t._isValid=e.isValid,t}get message(){return this._message}get code(){return this._code}get isValid(){return this._isValid}},r=(a=>(a.None="None",a.X="X",a.Y="Y",a))(r||{});
|
|
2
|
+
|
|
3
|
+
export { o as a, r as b };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-IGJQFAQU.js';
|
|
2
|
+
import { a } from './chunk-EP3GI7KA.js';
|
|
3
|
+
import { a as a$2 } from './chunk-N4NOODAT.js';
|
|
4
|
+
|
|
5
|
+
var v=class extends a{constructor(e){super();this._onTouchStart=this.onTouchStart.bind(this);this._onPointerDown=this.onPointerDown.bind(this);a$1.detect(),this.element=e,this.addPointerDownListener();}removeAllListeners(){this.element.removeEventListener("touchend",this._onTouchStart),this.element.removeEventListener("mousedown",this._onPointerDown),this.element.removeEventListener("pointerdown",this._onPointerDown);}addPointerDownListener(){a$1.hasApi?this.element.addEventListener(a$1.prefixIfNeeded("pointerdown"),this._onPointerDown):a$1.hasTouch?this.element.addEventListener("touchstart",this._onTouchStart):this.element.addEventListener("mousedown",this._onPointerDown);}onPointerDown(e){let{clientX:n,clientY:t,button:o,currentTarget:a=this.element}=e;o===0&&this.onTap(this.pointRelativeToElement({clientX:n,clientY:t,rect:a.getBoundingClientRect()}),e);}onTouchStart(e){let[n]=e.touches,{clientX:t,clientY:o}=n;this.onTap(this.pointRelativeToElement({clientX:t,clientY:o,rect:this.element.getBoundingClientRect()}),e);}pointRelativeToElement({clientX:e,clientY:n,rect:t}){return new a$2(e-t.left,n-t.top)}onTap(e,n){var t;for(let o of this.listeners)(t=o.onTap)==null||t.call(o,e,n);}};
|
|
6
|
+
|
|
7
|
+
export { v as a };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { a as a$1 } from './chunk-KAZWF3JC.js';
|
|
2
|
+
|
|
3
|
+
var a=class n{constructor(){this.type="singleImageUploader";this._settings=new a$1(null);this._desiredState="off";this.listeners=[];this._context=null;this._view=void 0;}static get default(){return new n}get desiredState(){return this._desiredState}get settings(){return this._settings}get context(){return this._context}set context(e){this._context=e;}set currentState(e){e!==this._currentState&&(this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e}));}get currentState(){return this._currentState}async switchToDesiredState(e){if(e==="on"){if(this.currentState==="on"||this.currentState==="starting")return}else if(this.currentState==="off"||this.currentState==="stopping")return;return this._desiredState=e,this.setCurrentState(e==="on"?"starting":"off")}addListener(e){e!=null&&(this.listeners.includes(e)||this.listeners.push(e));}removeListener(e){e!=null&&this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}async applySettings(e){return this._settings=e,this.notifyContext({type:"singleImageModeUploaderSettings",newValue:this._settings})}toJSONObject(){return {type:this.type,settings:this.settings.toJSONObject(),desiredState:this.desiredState}}getCurrentState(){return this._currentState}async setCurrentState(e){if(e!==this._currentState)return this._currentState=e,this.notifyListeners(),this.notifyContext({type:"frameSourceState",newValue:e})}async notifyContext(e){if(this._context)return this._context.update([e])}notifyListeners(){for(let e of this.listeners)e.didChangeState&&e.didChangeState(this,this.currentState);}async processUploadedFileCapture(e){var t,r;await((t=this._context)==null?void 0:t.sendFrameToProcessor(e)),this.currentState="starting",(r=this._view)==null||r.onAfterImageProcessed();}addView(e){this._view=e;}};
|
|
4
|
+
|
|
5
|
+
export { a };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { a } from './chunk-2NZR6P45.js';
|
|
2
|
+
import { b } from './chunk-FTD535WI.js';
|
|
3
|
+
import { a as a$4 } from './chunk-AIRWHLJH.js';
|
|
4
|
+
import { a as a$3 } from './chunk-FGO2SSRS.js';
|
|
5
|
+
import { a as a$1 } from './chunk-QCRFVRSS.js';
|
|
6
|
+
import { a as a$2 } from './chunk-SP3HSP4K.js';
|
|
7
|
+
|
|
8
|
+
var h=class{constructor(a$2,e){this.onMessageListener=this.onMessage.bind(this);this.workerSelf=a$2,this.dataCaptureInstance=new a(e,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)}),a$1(a$2)&&this.listenToMessages();}listenToMessages(){this.workerSelf.addEventListener("message",this.onMessageListener),this.workerSelf.addEventListener("error",a=>{a$2.log(a$2.Level.Error,a);}),this.workerSelf.addEventListener("messageerror",a=>{a$2.log(a$2.Level.Error,a);});}postMessage(a,e){this.workerSelf.postMessage(a,e!=null?e:[]);}getOffscreenCanvas(){if(typeof this.workerSelf.OffscreenCanvas=="function")return new this.workerSelf.OffscreenCanvas(32,32)}hasPayload(a){return a$3(a)&&"payload"in a}hasTransferables(a){return a$3(a)&&Array.isArray(a.transferables)}async respondWith(a,e,u){let r=null,t;try{t=u(),t instanceof Promise&&(t=await t);}catch(l){t=void 0,r=a$4(l);}let i={type:"workerTaskId",command:a,id:e,payload:this.hasPayload(t)?t.payload:void 0};r!=null&&(i.error=r),this.postMessage(i,this.hasTransferables(t)?t.transferables:[]);}onMessage(a){switch(a.data.command){case"loadLibrary":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.loadLibrary({libraryLocation:e.libraryLocation,locationPath:e.locationPath,referredOrigin:e.referredOrigin,preloadEngine:e.preloadEngine,writableDataPathOverride:e.writableDataPathOverride,overrideThreadsSupport:e.overrideThreadsSupport,overrideSimdSupport:e.overrideSimdSupport,verifyResponseHash:e.verifyResponseHash}));}break}case"onTap":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.onTap(e.point);});}break}case"hintPresenterV2update":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.hintPresenterV2Update();});}break}case"createContext":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.createContext({context:e.context,deviceId:e.deviceId,delayedRegistration:e.delayedRegistration,highEndBlurryRecognition:e.highEndBlurryRecognition,appName:e.appName,parentDomain:e.parentDomain}));}break}case"setFrameSource":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.setFrameSource(e.mirrorAxis,e.isCameraFrameSource));}break}case"processFrame":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.processFrame({data:e.data,width:e.width,height:e.height,colorType:e.colorType}));}break}case"requestFrameData":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.requestFrameData(e.frameId));}break}case"deleteFrameData":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.deleteFrameData(e.frameId);});}break}case"updateContext":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.updateContext(e));}break}case"dispose":{this.respondWith(a.data.command,a.data.id,()=>this.dataCaptureInstance.dispose());break}case"flushAnalytics":{this.respondWith(a.data.command,a.data.id,()=>{this.dataCaptureInstance.flushAnalytics();});break}case"reportCameraProperties":{{let{data:e}=a;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.reportCameraProperties(e));}break}case"setLogLevel":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{a$2.setLevel(e.level);});}break}case"extractCentaurusLicense":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.extractCentaurusLicense(e.licenseKey));}break}case"documentVisibility":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.onDocumentVisibilityChange(e.state);});}break}case"isFeatureSupported":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.isFeatureSupported(e.feature));}break}case"getViewfinderInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getViewfinderInfo());}break}case"getOpenSourceSoftwareLicenseInfo":{{let{data:e}=a;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getOpenSourceSoftwareLicenseInfo());}break}default:return b(a.data),!1}return !0}};
|
|
9
|
+
|
|
10
|
+
export { h as a };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
function p(u){let r=new Set,e;return {when(t,n){return r.add([t,n]),this},otherwise(t){return e=t,this},run(){for(let[t,n]of r)if(t(u))return n(u);if(typeof e!="function")throw new Error("Math case miss default handler or is not a function");return e(u)}}}
|
|
2
|
+
|
|
3
|
+
export { p as a };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
interface ContextBridgeApi {
|
|
3
|
+
getAppInfo: () => Promise<GetAppInfoResponse["payload"]>;
|
|
4
|
+
getKey: (options: {
|
|
5
|
+
licenseDataPath: string;
|
|
6
|
+
}) => Promise<GetLicenseKeyResponse["payload"]>;
|
|
7
|
+
}
|
|
8
|
+
type GetAppInfoMessageKey = "get-app-info";
|
|
9
|
+
type GetLicenseMessageKey = "get-license-key";
|
|
10
|
+
interface GenericResponse<T> {
|
|
11
|
+
type: T;
|
|
12
|
+
senderId: string;
|
|
13
|
+
payload: T extends GetLicenseMessageKey ? {
|
|
14
|
+
licenseKey: string;
|
|
15
|
+
} : T extends GetAppInfoMessageKey ? {
|
|
16
|
+
isPackaged: boolean;
|
|
17
|
+
appId: string;
|
|
18
|
+
appName: string;
|
|
19
|
+
version: string;
|
|
20
|
+
} : never;
|
|
21
|
+
}
|
|
22
|
+
type GetLicenseKeyResponse = GenericResponse<GetLicenseMessageKey>;
|
|
23
|
+
type GetAppInfoResponse = GenericResponse<GetAppInfoMessageKey>;
|
|
24
|
+
|
|
25
|
+
export type { ContextBridgeApi as C, GetAppInfoResponse as G, GetLicenseKeyResponse as a };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { C as ContextBridgeApi } from './common-4FJYEFaM.js';
|
|
3
|
+
|
|
4
|
+
declare const K: string;
|
|
5
|
+
|
|
6
|
+
/* eslint-disable no-var,vars-on-top */
|
|
7
|
+
// var declarations needed to define global properties
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
declare global {
|
|
11
|
+
var VERSION: string;
|
|
12
|
+
var PACKAGE_NAME: string;
|
|
13
|
+
var SDC_WASM_CORE_FILE_NAME: string;
|
|
14
|
+
var SDC_WASM_CORE_SIMD_FILE_NAME: string;
|
|
15
|
+
var SDC_WASM_CORE_HASH: string;
|
|
16
|
+
var SDC_WASM_CORE_SIMD_HASH: string;
|
|
17
|
+
var SDC_WASM_CORE_MT_FILE_NAME: string;
|
|
18
|
+
var SDC_WASM_CORE_MT_SIMD_FILE_NAME: string;
|
|
19
|
+
var SDC_WASM_CORE_MT_HASH: string;
|
|
20
|
+
var SDC_WASM_CORE_MT_SIMD_HASH: string;
|
|
21
|
+
var SDC_WASM_JS_VERSION: string;
|
|
22
|
+
var WASM_METADATA: Record<string, { bytes: number }>;
|
|
23
|
+
var DEBUG_PERFORMANCE: boolean;
|
|
24
|
+
var WEBASSEMBLY_SKIP_CUSTOM_LOADER: boolean;
|
|
25
|
+
var path: string;
|
|
26
|
+
|
|
27
|
+
interface Navigator {
|
|
28
|
+
mozVibrate?: Navigator["vibrate"];
|
|
29
|
+
msVibrate?: Navigator["vibrate"];
|
|
30
|
+
webkitVibrate?: Navigator["vibrate"];
|
|
31
|
+
enumerateDevices?: () => Promise<MediaDeviceInfo[]>;
|
|
32
|
+
msPointerEnabled?: boolean;
|
|
33
|
+
msMaxTouchPoints?: Navigator["maxTouchPoints"];
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface Window {
|
|
37
|
+
orientation?: number;
|
|
38
|
+
[K]?: ContextBridgeApi;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// force the file to be registered as a module, not a script
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { Logger } from './logger.js';
|
|
3
|
+
export { WorkerMain } from './worker/WorkerMain.js';
|
|
4
|
+
export { Anchor, Color, ColorJSON, Direction, JSONType, MarginsWithUnit, MarginsWithUnitJSON, MeasureUnit, NumberWithUnit, NumberWithUnitJSON, Orientation, Point, PointJSON, PointWithUnit, PointWithUnitJSON, Quadrilateral, QuadrilateralJSON, Rect, RectJSON, RectWithUnit, RectWithUnitJSON, Size, SizeJSON, SizeWithAspect, SizeWithUnit, SizeWithUnitAndAspect, SizeWithUnitAndAspectJSON, SizeWithUnitJSON, SizingMode } from './Common.js';
|
|
5
|
+
export { OverrideState } from './worker/OverrideState.js';
|
|
6
|
+
import { D as DataCaptureLoader } from './Camera-Cxbduq94.js';
|
|
7
|
+
export { g as Camera, m as CameraAccess, e as CameraJSON, C as CameraPosition, l as CameraSettings, i as CameraSettingsFromJSON, j as CameraSettingsJSON, h as CameraSettingsJSONBase, o as Change, H as ContextStatus, G as ContextStatusJSON, u as DataCaptureComponent, t as DataCaptureComponentJSON, B as DataCaptureContext, x as DataCaptureContextCreationOptions, y as DataCaptureContextJSON, E as DataCaptureContextListener, R as DataCaptureLoaderOptions, q as DataCaptureMode, r as DataCaptureModeJSON, J as DataCaptureOverlay, M as DataCaptureView, L as DataCaptureViewJSON, K as DataCaptureViewListener, n as DeviceCamera, F as FocusGestureStrategy, N as FrameData, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, p as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse, O as PrivateLoadableFrameData, I as PrivateMirrorAxis, T as TorchState, f as VideoFrameResolution, V as VideoResolution, Q as convertToPublicFrameData, k as isCameraFrameSource } from './Camera-Cxbduq94.js';
|
|
8
|
+
export { LoadingStatus, LoadingStatusSubscriber, ProgressInfo, default as loadingStatus } from './LoadingStatus.js';
|
|
9
|
+
export { DeepMutable, DeepPartial, DistributiveKeyOf, MethodSignature, Mutable, Optional, Prettify, assert, assertUnreachable, assertUnreachableThrowException } from './tsHelper.js';
|
|
10
|
+
export { AnchorPositions, AnchorPositionsJSON } from './private/AnchorPositions.js';
|
|
11
|
+
export { BrowserHelper } from './browserHelper.js';
|
|
12
|
+
export { BrowserCompatibility, Feature } from './browserCompatibility.js';
|
|
13
|
+
export { DataCaptureContextSettings, DataCaptureContextSettingsJSON } from './DataCaptureContextSettings.js';
|
|
14
|
+
export { DataCaptureVersion } from './DataCaptureVersion.js';
|
|
15
|
+
export { FocusGesture, FocusGestureJSON, LogoStyle, SwipeToZoom, TapToFocus, ZoomGesture, ZoomGestureJSON } from './DataCaptureViewPlusRelated.js';
|
|
16
|
+
export { Feedback, FeedbackJSON } from './Feedback.js';
|
|
17
|
+
export { Sound } from './Sound.js';
|
|
18
|
+
export { Vibration } from './Vibration.js';
|
|
19
|
+
export { ImageFrameSource, ImageFrameSourceJSON } from './ImageFrameSource.js';
|
|
20
|
+
export { Localization, LocalizationSubscriber, LocalizationSubscription } from './Localization.js';
|
|
21
|
+
export { LocationSelection, LocationSelectionJSON, PrivateNoneLocationSelection, RadiusLocationSelection, RectangularLocationSelection } from './LocationSelection.js';
|
|
22
|
+
export { Translations } from './translations.js';
|
|
23
|
+
export { SingleImageUploader, SingleImageUploaderJSON, SingleImageUploaderType } from './SingleImageUploader.js';
|
|
24
|
+
export { SingleImageUploaderSettings, SingleImageUploaderSettingsJSON } from './SingleImageUploaderSettings.js';
|
|
25
|
+
export { CameraFOVSwitchControl, CameraSwitchControl, Control, TorchSwitchControl } from './ViewControls.js';
|
|
26
|
+
export { NoViewfinder, Viewfinder } from './Viewfinder.js';
|
|
27
|
+
export { AimerViewfinderJSON, PrivateRectangularViewfinderAnimation, PrivateRectangularViewfinderDefault, RectangularViewfinderAnimation, RectangularViewfinderJSON, RectangularViewfinderLineStyle, RectangularViewfinderStyle, ViewfinderJSON, ViewfinderType, ViewfinderTypeAimer, ViewfinderTypeNone, ViewfinderTypeRectangular, ViewfinderTypeTargetAimer } from './ViewfinderPlusRelated.js';
|
|
28
|
+
export { RectangularViewfinder } from './RectangularViewfinder.js';
|
|
29
|
+
export { AimerViewfinder } from './AimerViewfinder.js';
|
|
30
|
+
export { Brush, BrushJSON } from './Brush.js';
|
|
31
|
+
export { DataCaptureError, DataCaptureErrorDetails } from './DataCaptureError.js';
|
|
32
|
+
import './private/Serializable.js';
|
|
33
|
+
import './private/FrameReaders/WatermarkStack.js';
|
|
34
|
+
import './private/CustomLocationsView.js';
|
|
35
|
+
import './private/View.js';
|
|
36
|
+
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
37
|
+
import './private/HtmlElementState.js';
|
|
38
|
+
import 'csstype';
|
|
39
|
+
|
|
40
|
+
type PrivateCaptureModuleName = "BarcodeCapture" | "IdCapture" | "Parser";
|
|
41
|
+
interface ModuleLoader {
|
|
42
|
+
moduleName: string;
|
|
43
|
+
load(options: ConfigureOptions): Promise<any>;
|
|
44
|
+
}
|
|
45
|
+
interface ConfigureOptions {
|
|
46
|
+
licenseKey: string;
|
|
47
|
+
libraryLocation: string;
|
|
48
|
+
moduleLoaders: ModuleLoader[];
|
|
49
|
+
logLevel?: Logger.Level;
|
|
50
|
+
licenseDataPath?: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* @hidden
|
|
54
|
+
*
|
|
55
|
+
* Used by tests.
|
|
56
|
+
*/
|
|
57
|
+
declare function resetConfigure(): Promise<void>;
|
|
58
|
+
declare function configure(options: ConfigureOptions): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* @hidden
|
|
61
|
+
*
|
|
62
|
+
* Used by tests.
|
|
63
|
+
*/
|
|
64
|
+
declare function setMainDataCaptureLoader(newLoader: DataCaptureLoader): void;
|
|
65
|
+
|
|
66
|
+
export { type ConfigureOptions, DataCaptureLoader, Logger, type ModuleLoader, type PrivateCaptureModuleName, configure, resetConfigure, setMainDataCaptureLoader };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export { a as DataCaptureLoader } from './chunks/chunk-CREAZBG7.js';
|
|
2
|
+
export { a as WorkerMain } from './chunks/chunk-ZTM7LWVE.js';
|
|
3
|
+
export { a as OverrideState } from './chunks/chunk-6W7FX6LD.js';
|
|
4
|
+
import { a as a$3 } from './chunks/chunk-RQQK6Z5F.js';
|
|
5
|
+
export { c as CameraFOVSwitchControl, b as CameraSwitchControl, a as TorchSwitchControl } from './chunks/chunk-T5EUB6UG.js';
|
|
6
|
+
export { a as NoViewfinder } from './chunks/chunk-4ZMCJXZS.js';
|
|
7
|
+
export { a as convertToPublicFrameData } from './chunks/chunk-UHFABUTI.js';
|
|
8
|
+
export { a as ImageFrameSource } from './chunks/chunk-VRVSELOR.js';
|
|
9
|
+
export { a as PrivateNoneLocationSelection, b as RadiusLocationSelection, c as RectangularLocationSelection } from './chunks/chunk-KW3YSGJX.js';
|
|
10
|
+
export { a as RectangularViewfinder } from './chunks/chunk-2WQHYCZC.js';
|
|
11
|
+
export { a as SingleImageUploader } from './chunks/chunk-ZSYUKWWL.js';
|
|
12
|
+
export { a as SingleImageUploaderSettings } from './chunks/chunk-KAZWF3JC.js';
|
|
13
|
+
export { a as DataCaptureVersion } from './chunks/chunk-YRSVOTNR.js';
|
|
14
|
+
export { a as DataCaptureView } from './chunks/chunk-HRS63RFH.js';
|
|
15
|
+
import { a as a$5 } from './chunks/chunk-N5YZEC56.js';
|
|
16
|
+
export { a as AnchorPositions } from './chunks/chunk-N5F43TUJ.js';
|
|
17
|
+
import { a as a$2 } from './chunks/chunk-VJB527QZ.js';
|
|
18
|
+
export { a as assert, b as assertUnreachable, c as assertUnreachableThrowException } from './chunks/chunk-FTD535WI.js';
|
|
19
|
+
import { a as a$1 } from './chunks/chunk-7XQ3GHYH.js';
|
|
20
|
+
export { a as Localization } from './chunks/chunk-7XQ3GHYH.js';
|
|
21
|
+
export { a as Feedback } from './chunks/chunk-PO2YU6JK.js';
|
|
22
|
+
export { a as Sound } from './chunks/chunk-GSJH2EXJ.js';
|
|
23
|
+
export { a as Vibration } from './chunks/chunk-UA3E3GGM.js';
|
|
24
|
+
export { a as AimerViewfinder } from './chunks/chunk-TVDFY6ME.js';
|
|
25
|
+
export { a as Brush } from './chunks/chunk-MKHBE7BB.js';
|
|
26
|
+
export { a as Camera } from './chunks/chunk-SJE4IFCX.js';
|
|
27
|
+
export { a as CameraAccess } from './chunks/chunk-7NUUZ7LP.js';
|
|
28
|
+
export { a as DataCaptureContext } from './chunks/chunk-CQ5KZRRX.js';
|
|
29
|
+
import { a as a$6, c } from './chunks/chunk-IH7SHTFM.js';
|
|
30
|
+
import { a } from './chunks/chunk-EMHHC6NB.js';
|
|
31
|
+
import { b } from './chunks/chunk-6H6FKGVE.js';
|
|
32
|
+
export { b as loadingStatus } from './chunks/chunk-6H6FKGVE.js';
|
|
33
|
+
export { a as DataCaptureContextSettings } from './chunks/chunk-7SW2PEHB.js';
|
|
34
|
+
import { a as a$9 } from './chunks/chunk-GPJEB376.js';
|
|
35
|
+
import { a as a$4 } from './chunks/chunk-SP3HSP4K.js';
|
|
36
|
+
export { a as Logger } from './chunks/chunk-SP3HSP4K.js';
|
|
37
|
+
import { a as a$7 } from './chunks/chunk-QCZSSQAQ.js';
|
|
38
|
+
export { a as DataCaptureError } from './chunks/chunk-QCZSSQAQ.js';
|
|
39
|
+
import { a as a$8 } from './chunks/chunk-4FJRDG6T.js';
|
|
40
|
+
export { a as BrowserHelper } from './chunks/chunk-4FJRDG6T.js';
|
|
41
|
+
export { a as Feature } from './chunks/chunk-5LIWL2C4.js';
|
|
42
|
+
export { c as CameraPosition, g as CameraSettings, e as FocusGestureStrategy, a as FrameSourceState, b as TorchState, d as VideoResolution, f as isCameraFrameSource } from './chunks/chunk-W7LJM2QO.js';
|
|
43
|
+
export { c as RectangularViewfinderAnimation, b as RectangularViewfinderLineStyle, a as RectangularViewfinderStyle } from './chunks/chunk-J2UL6U3I.js';
|
|
44
|
+
export { a as LogoStyle, c as SwipeToZoom, b as TapToFocus } from './chunks/chunk-GX4YCYCH.js';
|
|
45
|
+
export { q as Anchor, n as Color, p as Direction, m as MarginsWithUnit, c as MeasureUnit, d as NumberWithUnit, o as Orientation, a as Point, e as PointWithUnit, b as Quadrilateral, f as Rect, g as RectWithUnit, i as Size, j as SizeWithAspect, h as SizeWithUnit, l as SizeWithUnitAndAspect, k as SizingMode } from './chunks/chunk-N4NOODAT.js';
|
|
46
|
+
export { a as ContextStatus, b as PrivateMirrorAxis } from './chunks/chunk-WUHKODFA.js';
|
|
47
|
+
|
|
48
|
+
var p=a;async function S(){var e;a.configurePhase="unconfigured",(e=p.mainDataCaptureLoader)!=null&&e.terminateDataCaptureWorker&&await p.mainDataCaptureLoader.terminateDataCaptureWorker(!0);}function l({percentage:e}){for(let r of a$5.values())r.setProgressBarPercentage(e);}function D(){var o,u;function e(v){return ["auto","off","on"].includes(v)}let r=new URLSearchParams(window.location.search),[t="auto",i="auto"]=[(o=r.get("pthreads"))==null?void 0:o.toLowerCase(),(u=r.get("simd"))==null?void 0:u.toLowerCase()];return {overrideThreadsSupport:e(t)?t:"auto",overrideSimdSupport:e(i)?i:"auto"}}async function O(e){if(a$6()&&typeof e.licenseDataPath!="string")throw new a$7({name:"MisconfigurationError",message:'"licenseDataPath" string is missing or not valid'});if(a$6()&&typeof e.licenseDataPath=="string"){let t=await c({licenseDataPath:e.licenseDataPath});if(t==null)throw new Error("Cannot retrieve license key for Electron");e.licenseKey=t.licenseKey;}if(e.licenseKey==null||e.licenseKey.trim().length<64)throw new a$7({name:"NoLicenseKeyError",message:"No license key provided"});if(typeof e.libraryLocation!="string")throw new a$7({name:"MisconfigurationError",message:'Option "libraryLocation" was not provided'});if(!Array.isArray(e.moduleLoaders)||e.moduleLoaders.length===0)throw new a$7({name:"MisconfigurationError",message:'Option "moduleLoaders" is missing or empty'});let r=e.moduleLoaders.map(t=>t.moduleName);if(!["BarcodeCapture","IdCapture"].includes(r[0]))throw new a$7({name:"MisconfigurationError",message:'Main modules must be loaded before side modules. For example "BarcodeCapture" must be loaded before "Parser".'})}async function M(e,r){let t=new Map,i=new Map;for(let o of e)i.set(o.moduleName,o.load(r));await Promise.all(i.values());for(let[o,u]of i)t.set(o,await u);return t}async function Ue(e){var i;if(p.configurePhase!=="unconfigured"&&p.configurePromise!=null)return p.configurePromise;a$1.getInstance().updateIfMissing(a$2),await O(e);let r={...D(),...e,libraryLocation:a$3(e.libraryLocation),logLevel:(i=e.logLevel)!=null?i:a$4.Level.Debug,verifyResponseHash:!0,loadProgressNotifier:b.notify.bind(b)};a.userLicenseKey=r.licenseKey,a$4.setLevel(r.logLevel);async function t(){a.configurePhase="started",b.subscribe(l);let o=a$8.checkBrowserCompatibility();if(!o.fullSupport&&!o.scannerSupport)throw new a$9(o);a$8.isSupportedIOSVersion()||a$4.log(a$4.Level.Warn,`Warning: Minimum supported iOS version is 14.6.
|
|
49
|
+
Please check the minimum system requirements here:
|
|
50
|
+
https://docs.scandit.com/system-requirements#web-sdk`),a.dataCaptureLoaders=await M(r.moduleLoaders,r),a.mainDataCaptureLoader=[...a.dataCaptureLoaders.entries()][0][1],a.configurePhase="done",b.unsubscribe(l);}return a.configurePromise=t().catch(o=>{throw S(),b.unsubscribe(l),o}),a.configurePromise}function Qe(e){a.mainDataCaptureLoader=e;}
|
|
51
|
+
|
|
52
|
+
export { Ue as configure, S as resetConfigure, Qe as setMainDataCaptureLoader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as OpenSourceSoftwareLicenseInfo } from '../chunks/chunk-JS3T7K2Z.js';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
declare namespace Logger {
|
|
3
|
+
/**
|
|
4
|
+
* Log level.
|
|
5
|
+
*/
|
|
6
|
+
enum Level {
|
|
7
|
+
Debug = "debug",
|
|
8
|
+
Info = "info",
|
|
9
|
+
Warn = "warn",
|
|
10
|
+
Error = "error",
|
|
11
|
+
Quiet = "quiet"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @param level The log level.
|
|
16
|
+
*/
|
|
17
|
+
function setLevel(level: Level): void;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param level The log level.
|
|
21
|
+
* @param data The log contents.
|
|
22
|
+
*/
|
|
23
|
+
function log(level: Exclude<Level, Level.Quiet>, ...data: any[]): void;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { Logger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as Logger } from './chunks/chunk-SP3HSP4K.js';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { QuadrilateralJSON, PointJSON, Quadrilateral, Point } from '../Common.js';
|
|
3
|
+
import { Serializable } from './Serializable.js';
|
|
4
|
+
|
|
5
|
+
interface AnchorPositionsJSON extends QuadrilateralJSON {
|
|
6
|
+
centerRight: PointJSON;
|
|
7
|
+
centerLeft: PointJSON;
|
|
8
|
+
topCenter: PointJSON;
|
|
9
|
+
bottomCenter: PointJSON;
|
|
10
|
+
center: PointJSON;
|
|
11
|
+
}
|
|
12
|
+
declare class AnchorPositions extends Quadrilateral implements Serializable<AnchorPositionsJSON> {
|
|
13
|
+
private readonly _centerRight;
|
|
14
|
+
private readonly _centerLeft;
|
|
15
|
+
private readonly _topCenter;
|
|
16
|
+
private readonly _bottomCenter;
|
|
17
|
+
private readonly _center;
|
|
18
|
+
constructor(topLeft: Point, topRight: Point, bottomRight: Point, bottomLeft: Point, centerLeft: Point, topCenter: Point, centerRight: Point, bottomCenter: Point, center: Point);
|
|
19
|
+
get centerRight(): Point;
|
|
20
|
+
get center(): Point;
|
|
21
|
+
get centerLeft(): Point;
|
|
22
|
+
get topCenter(): Point;
|
|
23
|
+
get bottomCenter(): Point;
|
|
24
|
+
protected static fromJSON(json: AnchorPositionsJSON): AnchorPositions;
|
|
25
|
+
toJSONObject(): AnchorPositionsJSON;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { AnchorPositions, type AnchorPositionsJSON };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as AnchorPositions } from '../chunks/chunk-N5F43TUJ.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
export { bn as AspectRatio, bp as CameraAccess, bl as CameraPosition, bm as CameraResolutionConstraint, bo as DeviceCamera } from '../Camera-Cxbduq94.js';
|
|
3
|
+
import './Serializable.js';
|
|
4
|
+
import './FrameReaders/WatermarkStack.js';
|
|
5
|
+
import '../tsHelper.js';
|
|
6
|
+
import '../Common.js';
|
|
7
|
+
import '../DataCaptureContextSettings.js';
|
|
8
|
+
import '../DataCaptureViewPlusRelated.js';
|
|
9
|
+
import '../ViewControls.js';
|
|
10
|
+
import './CustomLocationsView.js';
|
|
11
|
+
import './View.js';
|
|
12
|
+
import './AnchorPositions.js';
|
|
13
|
+
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
14
|
+
import './HtmlElementState.js';
|
|
15
|
+
import '../worker/OverrideState.js';
|
|
16
|
+
import '../logger.js';
|
|
17
|
+
import '../LoadingStatus.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { c as AspectRatio, d as CameraAccess, a as CameraPosition, b as CameraResolutionConstraint } from '../chunks/chunk-BKSPXD6N.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
export { bx as CameraManager, bv as CameraManagerEvent, bw as CameraManagerEventParameters, br as CameraResolutionConstraint, bs as ExtendedMediaTrackCapabilities, bt as ExtendedMediaTrackConstraintSet, bj as FrameCapture, bu as GUI, bq as MeteringMode } from '../Camera-Cxbduq94.js';
|
|
3
|
+
import './Serializable.js';
|
|
4
|
+
import './FrameReaders/WatermarkStack.js';
|
|
5
|
+
import '../tsHelper.js';
|
|
6
|
+
import '../Common.js';
|
|
7
|
+
import '../DataCaptureContextSettings.js';
|
|
8
|
+
import '../DataCaptureViewPlusRelated.js';
|
|
9
|
+
import '../ViewControls.js';
|
|
10
|
+
import './CustomLocationsView.js';
|
|
11
|
+
import './View.js';
|
|
12
|
+
import './AnchorPositions.js';
|
|
13
|
+
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
14
|
+
import './HtmlElementState.js';
|
|
15
|
+
import '../worker/OverrideState.js';
|
|
16
|
+
import '../logger.js';
|
|
17
|
+
import '../LoadingStatus.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { d as CameraManager, c as CameraManagerEvent, b as CameraResolutionConstraint, a as MeteringMode } from '../chunks/chunk-OTI45AJG.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { CanvasDrawerAbstract } from './CavansDrawerAbstract.js';
|
|
3
|
+
import './DrawCommandBuffer.js';
|
|
4
|
+
|
|
5
|
+
declare enum PathWinding {
|
|
6
|
+
Nonzero = "nonzero",
|
|
7
|
+
Evenodd = "evenodd"
|
|
8
|
+
}
|
|
9
|
+
declare class PrivateCanvasDrawer extends CanvasDrawerAbstract {
|
|
10
|
+
private static ResizeObserver;
|
|
11
|
+
protected readonly canvas: HTMLCanvasElement;
|
|
12
|
+
private _context;
|
|
13
|
+
private resizeObserver?;
|
|
14
|
+
private isNextDrawPending;
|
|
15
|
+
private latestCommands;
|
|
16
|
+
private readonly doDrawLoop;
|
|
17
|
+
constructor(canvas: HTMLCanvasElement);
|
|
18
|
+
get context(): CanvasRenderingContext2D;
|
|
19
|
+
/**
|
|
20
|
+
* Draw given commands. If the canvas has not a valid size, postpone drawing until it is.
|
|
21
|
+
*/
|
|
22
|
+
draw(commands: Uint8Array): void;
|
|
23
|
+
updateCanvasSizeAttributes(width: number, height: number, devicePixelRatio?: number): void;
|
|
24
|
+
/**
|
|
25
|
+
* Observe the canvas until it has a valid size. When it happens,
|
|
26
|
+
* draw postponed commands onto it.
|
|
27
|
+
* Also on canvas resize, scale the context by device pixel ratio.
|
|
28
|
+
*/
|
|
29
|
+
startObservingCanvasResize(): void;
|
|
30
|
+
endObservingCanvasResize(): void;
|
|
31
|
+
protected doDraw(): void;
|
|
32
|
+
private postponeDraw;
|
|
33
|
+
private isCanvasReady;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { PathWinding, PrivateCanvasDrawer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as PathWinding, b as PrivateCanvasDrawer } from '../chunks/chunk-457L5N2F.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { PrivateCanvasDrawer } from './CanvasDrawer.js';
|
|
3
|
+
import { S as PerformanceMetrics } from '../Camera-Cxbduq94.js';
|
|
4
|
+
import './CavansDrawerAbstract.js';
|
|
5
|
+
import './DrawCommandBuffer.js';
|
|
6
|
+
import './Serializable.js';
|
|
7
|
+
import './FrameReaders/WatermarkStack.js';
|
|
8
|
+
import '../tsHelper.js';
|
|
9
|
+
import '../Common.js';
|
|
10
|
+
import '../DataCaptureContextSettings.js';
|
|
11
|
+
import '../DataCaptureViewPlusRelated.js';
|
|
12
|
+
import '../ViewControls.js';
|
|
13
|
+
import './CustomLocationsView.js';
|
|
14
|
+
import './View.js';
|
|
15
|
+
import './AnchorPositions.js';
|
|
16
|
+
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
17
|
+
import './HtmlElementState.js';
|
|
18
|
+
import '../worker/OverrideState.js';
|
|
19
|
+
import '../logger.js';
|
|
20
|
+
import '../LoadingStatus.js';
|
|
21
|
+
|
|
22
|
+
declare class PrivateCanvasDrawerWithMetrics extends PrivateCanvasDrawer {
|
|
23
|
+
private drawPerformanceTimer;
|
|
24
|
+
private drawPerformanceFPSCounter;
|
|
25
|
+
private lastDrawPerformanceFPSCounter;
|
|
26
|
+
private performanceMetrics?;
|
|
27
|
+
private performanceCanvasLayer;
|
|
28
|
+
private _performanceLayerContext;
|
|
29
|
+
constructor(canvas: HTMLCanvasElement);
|
|
30
|
+
get performanceLayerContext(): CanvasRenderingContext2D;
|
|
31
|
+
setupPerformanceLayer(): void;
|
|
32
|
+
setPerformanceMetrics(performanceMetrics: PerformanceMetrics): void;
|
|
33
|
+
updateCanvasSizeAttributes(width: number, height: number, devicePixelRatio?: number): ReturnType<PrivateCanvasDrawer["updateCanvasSizeAttributes"]>;
|
|
34
|
+
protected doDraw(): void;
|
|
35
|
+
protected drawPerformanceMetrics(): void;
|
|
36
|
+
protected drawFullPerformanceMetrics(): void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { PrivateCanvasDrawerWithMetrics };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as PrivateCanvasDrawerWithMetrics } from '../chunks/chunk-QR4TEDGM.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { DrawCommandEnum, DrawCommandBuffer } from './DrawCommandBuffer.js';
|
|
3
|
+
|
|
4
|
+
declare enum PathWinding {
|
|
5
|
+
Nonzero = "nonzero",
|
|
6
|
+
Evenodd = "evenodd"
|
|
7
|
+
}
|
|
8
|
+
declare abstract class CanvasDrawerAbstract {
|
|
9
|
+
protected pathWinding: PathWinding;
|
|
10
|
+
protected abstract context: CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D;
|
|
11
|
+
protected abstract draw(commands: Uint8Array): void;
|
|
12
|
+
protected drawSingleCommand(commandType: DrawCommandEnum, commandBuffer: DrawCommandBuffer): void;
|
|
13
|
+
private beginPath;
|
|
14
|
+
private closePath;
|
|
15
|
+
private setStrokeColor;
|
|
16
|
+
private setFillColor;
|
|
17
|
+
private fill;
|
|
18
|
+
private stroke;
|
|
19
|
+
private addLine;
|
|
20
|
+
private lineTo;
|
|
21
|
+
private moveTo;
|
|
22
|
+
private addRectangle;
|
|
23
|
+
private addRoundedRectangle;
|
|
24
|
+
private setStrokeWidth;
|
|
25
|
+
private addArc;
|
|
26
|
+
private addCircle;
|
|
27
|
+
private bezierTo;
|
|
28
|
+
private saveState;
|
|
29
|
+
private restoreState;
|
|
30
|
+
private translate;
|
|
31
|
+
private transform;
|
|
32
|
+
private scale;
|
|
33
|
+
private addPathWinding;
|
|
34
|
+
private colorToRgbaString;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { CanvasDrawerAbstract, PathWinding };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { b as CanvasDrawerAbstract, a as PathWinding } from '../chunks/chunk-QBDQQMQ5.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { ModuleLicenseTextProvider } from './ModuleLicenseTextProvider.js';
|
|
3
|
+
import { Logger } from '../logger.js';
|
|
4
|
+
import { PartialSDKGlobals } from '../sdk.js';
|
|
5
|
+
import '../Camera-Cxbduq94.js';
|
|
6
|
+
import './Serializable.js';
|
|
7
|
+
import './FrameReaders/WatermarkStack.js';
|
|
8
|
+
import '../tsHelper.js';
|
|
9
|
+
import '../Common.js';
|
|
10
|
+
import '../DataCaptureContextSettings.js';
|
|
11
|
+
import '../DataCaptureViewPlusRelated.js';
|
|
12
|
+
import '../ViewControls.js';
|
|
13
|
+
import './CustomLocationsView.js';
|
|
14
|
+
import './View.js';
|
|
15
|
+
import './AnchorPositions.js';
|
|
16
|
+
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
17
|
+
import './HtmlElementState.js';
|
|
18
|
+
import '../worker/OverrideState.js';
|
|
19
|
+
import '../LoadingStatus.js';
|
|
20
|
+
|
|
21
|
+
declare class CoreModuleLicenseTextProvider implements ModuleLicenseTextProvider {
|
|
22
|
+
private sdk;
|
|
23
|
+
private logger;
|
|
24
|
+
constructor(sdk?: PartialSDKGlobals, logger?: typeof Logger);
|
|
25
|
+
private get workerCommand();
|
|
26
|
+
getLicenseText(): Promise<string>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { CoreModuleLicenseTextProvider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as CoreModuleLicenseTextProvider } from '../chunks/chunk-D2EQRTOA.js';
|