@scandit/web-datacapture-core 7.0.2 → 7.1.0-beta.2
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/build/electron/common.cjs +1 -1
- package/build/electron/constants.cjs +1 -1
- package/build/electron/main.cjs +1 -1
- package/build/electron/preload.cjs +1 -1
- package/build/js/AimerViewfinder.js +1 -1
- package/build/js/Brush.js +1 -1
- package/build/js/{Camera-ZV7WBiWy.d.ts → Camera-CXPOECYt.d.ts} +9 -12
- package/build/js/Camera.d.ts +3 -1
- package/build/js/Camera.js +1 -1
- package/build/js/CameraAccess.d.ts +3 -1
- package/build/js/CameraAccess.js +1 -1
- package/build/js/CameraRelated.d.ts +3 -1
- package/build/js/CameraRelated.js +1 -1
- package/build/js/Common.d.ts +1 -0
- package/build/js/Common.js +1 -1
- package/build/js/DataCaptureContext.d.ts +3 -1
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +3 -1
- package/build/js/DataCaptureContextRelated.js +1 -1
- package/build/js/DataCaptureContextSettings.js +1 -1
- package/build/js/DataCaptureError.js +1 -1
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +3 -1
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/DataCaptureViewPlusRelated.js +1 -1
- package/build/js/DefaultViewClassnames.js +1 -1
- package/build/js/Defaults.d.ts +3 -1
- package/build/js/Defaults.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +3 -1
- package/build/js/FrameData.js +1 -1
- package/build/js/ImageFrameSource.d.ts +3 -1
- package/build/js/ImageFrameSource.js +1 -1
- package/build/js/LoadingStatus.js +1 -1
- package/build/js/Localization.js +1 -1
- package/build/js/LocationSelection.js +1 -1
- package/build/js/RectangularViewfinder.js +1 -1
- package/build/js/ScanditIcon.d.ts +50 -0
- package/build/js/ScanditIcon.js +1 -0
- package/build/js/ScanditIconBuilder.d.ts +63 -0
- package/build/js/ScanditIconBuilder.js +1 -0
- package/build/js/SingleImageUploader.d.ts +3 -1
- package/build/js/SingleImageUploader.js +1 -1
- package/build/js/SingleImageUploaderSettings.js +1 -1
- package/build/js/Sound.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/ViewControls.js +1 -1
- package/build/js/Viewfinder.js +1 -1
- package/build/js/ViewfinderPlusRelated.js +1 -1
- package/build/js/assets/beepSound.js +1 -1
- package/build/js/assets/folderImage.js +1 -1
- package/build/js/assets/index.d.js +0 -1
- package/build/js/assets/index.js +1 -1
- package/build/js/assets/scanningByScandit.js +1 -1
- package/build/js/assets/transparentPixelImage.js +1 -1
- package/build/js/browserCompatibility.js +1 -1
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/chunk-2DXPVHBJ.js +0 -1
- package/build/js/chunks/chunk-2Q5FZVGV.js +1 -3
- package/build/js/chunks/chunk-2WN7BGOB.js +1 -6
- package/build/js/chunks/chunk-3A4KLILV.js +1 -3
- package/build/js/chunks/chunk-457L5N2F.js +1 -6
- package/build/js/chunks/chunk-46WJFV3I.js +1 -8
- package/build/js/chunks/chunk-4YVKSEZS.js +1 -0
- package/build/js/chunks/chunk-4ZMCJXZS.js +1 -3
- package/build/js/chunks/chunk-5DETRQ7Y.js +1 -0
- package/build/js/chunks/{chunk-M46MIHI5.js → chunk-5E7ISPKS.js} +2 -8
- package/build/js/chunks/chunk-5LIWL2C4.js +1 -3
- package/build/js/chunks/chunk-5PHKPYK6.js +1 -0
- package/build/js/chunks/chunk-5RW5274G.js +0 -1
- package/build/js/chunks/chunk-5S537AFM.js +1 -3
- package/build/js/chunks/chunk-5TKCHVG2.js +1 -5
- package/build/js/chunks/chunk-64US32RY.js +5 -0
- package/build/js/chunks/chunk-6H6FKGVE.js +1 -3
- package/build/js/chunks/chunk-6MF4F3EH.js +1 -0
- package/build/js/chunks/chunk-6UJOYR5F.js +1 -0
- package/build/js/chunks/chunk-6W7FX6LD.js +1 -3
- package/build/js/chunks/chunk-72DAONJI.js +1 -5
- package/build/js/chunks/{chunk-T7URG4IQ.js → chunk-76CQG6HG.js} +2 -10
- package/build/js/chunks/{chunk-GWI2ZHMO.js → chunk-7ALHRD5L.js} +2 -11
- package/build/js/chunks/{chunk-TCJPGGHY.js → chunk-7B2VPGLP.js} +2 -8
- package/build/js/chunks/chunk-7JX43F4O.js +1 -0
- package/build/js/chunks/chunk-7SW2PEHB.js +1 -3
- package/build/js/chunks/chunk-7XQ3GHYH.js +1 -3
- package/build/js/chunks/chunk-AD3CNBDO.js +1 -0
- package/build/js/chunks/chunk-AIRWHLJH.js +1 -5
- package/build/js/chunks/chunk-B5JOQVFY.js +2 -6
- package/build/js/chunks/chunk-BDLLVGRH.js +1 -3
- package/build/js/chunks/chunk-BIGR7VVJ.js +1 -8
- package/build/js/chunks/{chunk-TBCW7RDM.js → chunk-BWOCR6MD.js} +2 -12
- package/build/js/chunks/chunk-CAIEX6BZ.js +1 -0
- package/build/js/chunks/chunk-DMOXDUF6.js +1 -6
- package/build/js/chunks/chunk-DVQH5JLR.js +1 -0
- package/build/js/chunks/chunk-EHMSDFH7.js +1 -5
- package/build/js/chunks/chunk-EP3GI7KA.js +1 -3
- package/build/js/chunks/chunk-EQRBQJYM.js +1 -3
- package/build/js/chunks/chunk-EV4OEANA.js +1 -3
- package/build/js/chunks/{chunk-5IVFVUF4.js → chunk-FFFXM7UY.js} +2 -8
- package/build/js/chunks/chunk-FGCJ3ZLG.js +1 -2
- package/build/js/chunks/chunk-FGO2SSRS.js +1 -3
- package/build/js/chunks/chunk-FNFCPBQI.js +1 -0
- package/build/js/chunks/chunk-FTD535WI.js +1 -3
- package/build/js/chunks/chunk-G33OCZIN.js +1 -0
- package/build/js/chunks/chunk-GAVFMG2G.js +1 -0
- package/build/js/chunks/chunk-GE4CBD4E.js +1 -3
- package/build/js/chunks/chunk-GPJEB376.js +1 -5
- package/build/js/chunks/chunk-GSJH2EXJ.js +2 -6
- package/build/js/chunks/chunk-GX4YCYCH.js +1 -3
- package/build/js/chunks/chunk-GZ4F55TI.js +1 -0
- package/build/js/chunks/chunk-H4TH4342.js +1 -3
- package/build/js/chunks/{chunk-3FDT22IX.js → chunk-HC2AMLBI.js} +1 -3
- package/build/js/chunks/chunk-HDW5KYJV.js +1 -0
- package/build/js/chunks/chunk-IGJQFAQU.js +1 -3
- package/build/js/chunks/chunk-IQ5KX55O.js +1 -0
- package/build/js/chunks/chunk-J2UL6U3I.js +1 -3
- package/build/js/chunks/chunk-JFRSUCMO.js +1 -3
- package/build/js/chunks/chunk-JKL2W65E.js +1 -3
- package/build/js/chunks/chunk-JO2MKLMM.js +1 -0
- package/build/js/chunks/chunk-JRBLEJMD.js +1 -0
- package/build/js/chunks/chunk-JS3T7K2Z.js +1 -3
- package/build/js/chunks/chunk-JXJQSWYG.js +1 -3
- package/build/js/chunks/chunk-KCNXUTBL.js +2 -7
- package/build/js/chunks/chunk-KRWPFM7Z.js +1 -0
- package/build/js/chunks/chunk-KYNYQBNF.js +1 -3
- package/build/js/chunks/chunk-L2STPTEN.js +1 -3
- package/build/js/chunks/chunk-L5H6R4AV.js +21 -0
- package/build/js/chunks/chunk-LA6TM76R.js +1 -3
- package/build/js/chunks/chunk-LDJ53PEJ.js +1 -0
- package/build/js/chunks/chunk-MNUHPMUS.js +1 -0
- package/build/js/chunks/chunk-MRFUL2AA.js +1 -0
- package/build/js/chunks/{chunk-6OQQP3SM.js → chunk-MST2ECFN.js} +2 -9
- package/build/js/chunks/chunk-MU4VAJIM.js +2 -6
- package/build/js/chunks/chunk-MW5PTAU7.js +1 -3
- package/build/js/chunks/chunk-N5YZEC56.js +1 -3
- package/build/js/chunks/chunk-NMROJLGQ.js +1 -5
- package/build/js/chunks/chunk-NMX4VHW2.js +1 -5
- package/build/js/chunks/chunk-NQC64CT7.js +1 -0
- package/build/js/chunks/chunk-O7TZTIHO.js +1 -3
- package/build/js/chunks/chunk-PWRWWFPG.js +1 -0
- package/build/js/chunks/chunk-Q7JWDX4U.js +1 -3
- package/build/js/chunks/chunk-Q7NDC6TJ.js +1 -6
- package/build/js/chunks/chunk-QBDQQMQ5.js +1 -5
- package/build/js/chunks/chunk-QCRFVRSS.js +1 -3
- package/build/js/chunks/chunk-QCZSSQAQ.js +1 -3
- package/build/js/chunks/chunk-QHBIT2WY.js +1 -3
- package/build/js/chunks/{chunk-ARJASUTK.js → chunk-QK3D2DQM.js} +2 -15
- package/build/js/chunks/chunk-R2VJDRLZ.js +1 -0
- package/build/js/chunks/chunk-R6E4CT22.js +1 -3
- package/build/js/chunks/chunk-RIMH6UPR.js +1 -0
- package/build/js/chunks/chunk-RQQK6Z5F.js +1 -2
- package/build/js/chunks/chunk-SK6L34IF.js +1 -5
- package/build/js/chunks/chunk-T3AOBMAS.js +1 -3
- package/build/js/chunks/chunk-T5EUB6UG.js +1 -6
- package/build/js/chunks/chunk-T5QHKJ2U.js +1 -0
- package/build/js/chunks/chunk-TM7QAJVA.js +1 -0
- package/build/js/chunks/chunk-U6BTTEV6.js +1 -3
- package/build/js/chunks/chunk-UHFABUTI.js +1 -3
- package/build/js/chunks/chunk-ULRY4SXF.js +1 -7
- package/build/js/chunks/chunk-UZWBB65W.js +1 -3
- package/build/js/chunks/chunk-VJB527QZ.js +1 -3
- package/build/js/chunks/chunk-WUHKODFA.js +1 -3
- package/build/js/chunks/chunk-XR65N6EG.js +1 -3
- package/build/js/chunks/chunk-YEMIFGKZ.js +1 -0
- package/build/js/chunks/chunk-YGFWA4WG.js +1 -6
- package/build/js/chunks/chunk-YRNH7TIR.js +0 -1
- package/build/js/chunks/chunk-ZDYFZYVT.js +1 -0
- package/build/js/chunks/chunk-ZKROZLQ4.js +1 -2
- package/build/js/chunks/chunk-ZVBD3EW5.js +1 -3
- package/build/js/global.d.js +0 -1
- package/build/js/index.d.ts +7 -3
- package/build/js/index.js +3 -51
- package/build/js/license/OpenSourceSoftwareLicenseInfo.js +1 -1
- package/build/js/logger.js +1 -1
- package/build/js/private/AnchorPositions.d.ts +13 -0
- package/build/js/private/AnchorPositions.js +1 -1
- package/build/js/private/CameraAccess.d.ts +3 -1
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +3 -1
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CanvasDrawer.js +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +3 -1
- package/build/js/private/CanvasDrawerWithMetrics.js +1 -1
- package/build/js/private/CavansDrawerAbstract.js +1 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +3 -1
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/CustomLocationsView.js +1 -1
- package/build/js/private/CustomLocationsViewStyles.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +3 -1
- package/build/js/private/DataCaptureContextRelated.js +0 -1
- package/build/js/private/DrawCommandBuffer.js +1 -1
- package/build/js/private/EventManager.d.ts +1 -1
- package/build/js/private/EventManager.js +1 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +3 -1
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +3 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.js +1 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +3 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/WatermarkStack.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +3 -1
- package/build/js/private/FrameReaders/index.js +1 -2
- package/build/js/private/FrameReaders/webglUtilities.js +1 -1
- package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
- package/build/js/private/GestureRecognizer/PointerEventsDetector.js +1 -1
- package/build/js/private/GestureRecognizer/index.js +1 -1
- package/build/js/private/Helper.js +1 -1
- package/build/js/private/HtmlElementState.js +1 -1
- package/build/js/private/ModuleLicenseTextProvider.js +0 -1
- package/build/js/private/NormalizedConfigureOptions.d.ts +5 -1
- package/build/js/private/NormalizedConfigureOptions.js +0 -1
- package/build/js/private/OrientationObserver.js +1 -1
- package/build/js/private/Serializable.js +0 -1
- package/build/js/private/SingleImageUploaderView.js +1 -1
- package/build/js/private/SingleImageUploaderViewStyles.js +1 -1
- package/build/js/private/View.js +0 -1
- package/build/js/private/ViewClassNames.js +1 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +3 -1
- package/build/js/private/ViewStyles.js +1 -1
- package/build/js/private/ViewsRegistry.d.ts +3 -1
- package/build/js/private/ViewsRegistry.js +1 -1
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/multithreadSimdHelper.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +19 -0
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +27 -0
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +27 -0
- package/build/js/private/ui/atoms/CheckSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/CheckSvgIcon.js +15 -0
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +20 -0
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/CrossSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/CrossSvgIcon.js +12 -0
- package/build/js/private/ui/atoms/Dot5xSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +11 -0
- package/build/js/private/ui/atoms/GlassSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/GlassSvgIcon.js +15 -0
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +16 -0
- package/build/js/private/ui/atoms/LowStockSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +12 -0
- package/build/js/private/ui/atoms/OnexSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/OnexSvgIcon.js +13 -0
- package/build/js/private/ui/atoms/PrinterSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +24 -0
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +13 -0
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.js +2 -9
- package/build/js/private/ui/atoms/StarFilledSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +13 -0
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +32 -0
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +13 -0
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +12 -0
- package/build/js/private/ui/atoms/Toast.d.ts +2 -1
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +14 -0
- package/build/js/private/ui/atoms/WrongItemSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +15 -0
- package/build/js/private/ui/colors.d.ts +2 -1
- package/build/js/private/ui/colors.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +2 -1
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/unsupportedBrowserError.js +1 -1
- package/build/js/private/utils/ScanditHTMLElement.js +1 -1
- package/build/js/private/utils/clamp.js +1 -1
- package/build/js/private/utils/css.js +1 -1
- package/build/js/private/utils/debounce.js +1 -1
- package/build/js/private/utils/deferred.js +1 -1
- package/build/js/private/utils/defineCustomElements.js +1 -1
- package/build/js/private/utils/html.js +1 -1
- package/build/js/private/utils/index.js +1 -15
- package/build/js/private/utils/isObject.js +1 -1
- package/build/js/private/utils/isWorkerScope.js +1 -1
- package/build/js/private/utils/match.js +1 -1
- package/build/js/private/utils/quadrilateralUtils.d.ts +8 -0
- package/build/js/private/utils/quadrilateralUtils.js +1 -0
- package/build/js/private/utils/throttle.js +1 -1
- package/build/js/private/utils/timeout.js +1 -1
- package/build/js/private/utils/unknownErrorToString.js +1 -1
- package/build/js/private/utils/wait.js +1 -1
- package/build/js/private/utils/waitTransitionEndForElement.js +1 -1
- package/build/js/sdk.d.ts +3 -1
- package/build/js/sdk.js +1 -1
- package/build/js/translations.js +1 -1
- package/build/js/tsHelper.js +1 -1
- package/build/js/worker/OverrideState.js +1 -1
- package/build/js/worker/WorkerMain.d.ts +3 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/dataCapture.inlineWorker.d.ts +3 -1
- package/build/js/worker/dataCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +3 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +3 -1
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +3 -1
- package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
- package/build/js/worker/helper.js +1 -1
- package/build/js/worker/helperFetch.js +1 -1
- package/build/js/worker/helperFs.d.ts +0 -2
- package/build/js/worker/helperFs.js +1 -1
- package/build/js/worker/importWasmScript.js +1 -1
- package/build/js/worker/index.d.ts +3 -1
- package/build/js/worker/index.js +1 -4
- package/build/js/worker/inlineWorker.d.js +0 -1
- package/package.json +2 -2
- package/build/js/chunks/chunk-2WQHYCZC.js +0 -6
- package/build/js/chunks/chunk-34FEFSCI.js +0 -6
- package/build/js/chunks/chunk-3V7ZD6JQ.js +0 -14
- package/build/js/chunks/chunk-44B7Z6ZZ.js +0 -5
- package/build/js/chunks/chunk-6O3B7VJJ.js +0 -6
- package/build/js/chunks/chunk-ABRFVD7T.js +0 -5
- package/build/js/chunks/chunk-E2VUMNY4.js +0 -16
- package/build/js/chunks/chunk-EFJGQ4BT.js +0 -3
- package/build/js/chunks/chunk-HNMM5VR6.js +0 -6
- package/build/js/chunks/chunk-J6Q5HITP.js +0 -47
- package/build/js/chunks/chunk-KAZWF3JC.js +0 -5
- package/build/js/chunks/chunk-KW3YSGJX.js +0 -5
- package/build/js/chunks/chunk-MAMZS5CH.js +0 -7
- package/build/js/chunks/chunk-MKHBE7BB.js +0 -6
- package/build/js/chunks/chunk-MOKCZFZV.js +0 -10
- package/build/js/chunks/chunk-MSPQDVWJ.js +0 -5
- package/build/js/chunks/chunk-N4NOODAT.js +0 -3
- package/build/js/chunks/chunk-N5F43TUJ.js +0 -5
- package/build/js/chunks/chunk-NNLX5HO4.js +0 -10
- package/build/js/chunks/chunk-PXXUQXGB.js +0 -7
- package/build/js/chunks/chunk-SKRKDAFC.js +0 -13
- package/build/js/chunks/chunk-TVDFY6ME.js +0 -5
- package/build/js/chunks/chunk-TWBD6OC5.js +0 -9
- package/build/js/chunks/chunk-UPUPKPEP.js +0 -8
- package/build/js/chunks/chunk-V76YCTVB.js +0 -5
- package/build/js/chunks/chunk-W7LJM2QO.js +0 -5
- package/build/js/chunks/chunk-WSG6WSZN.js +0 -6
- package/build/js/chunks/chunk-XVLYCDJL.js +0 -7
- package/build/js/chunks/chunk-ZSYUKWWL.js +0 -5
- /package/{THIRD-PARTY.txt → THIRD_PARTY.txt} +0 -0
|
@@ -23,5 +23,6 @@ declare const SecondaryRed80: Color;
|
|
|
23
23
|
declare const SecondaryRed60: Color;
|
|
24
24
|
declare const SecondaryRed40: Color;
|
|
25
25
|
declare const SecondaryRed20: Color;
|
|
26
|
+
declare const SecondaryBlue100: Color;
|
|
26
27
|
|
|
27
|
-
export { SecondaryGreen100, SecondaryGreen20, SecondaryGreen40, SecondaryGreen60, SecondaryGreen80, SecondaryOrange100, SecondaryOrange20, SecondaryOrange40, SecondaryOrange60, SecondaryOrange80, SecondaryRed100, SecondaryRed20, SecondaryRed40, SecondaryRed60, SecondaryRed80, gray300, gray900, primaryTeal100, primaryTeal25, primaryTeal50, primaryTeal75 };
|
|
28
|
+
export { SecondaryBlue100, SecondaryGreen100, SecondaryGreen20, SecondaryGreen40, SecondaryGreen60, SecondaryGreen80, SecondaryOrange100, SecondaryOrange20, SecondaryOrange40, SecondaryOrange60, SecondaryOrange80, SecondaryRed100, SecondaryRed20, SecondaryRed40, SecondaryRed60, SecondaryRed80, gray300, gray900, primaryTeal100, primaryTeal25, primaryTeal50, primaryTeal75 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{v as SecondaryBlue100,g as SecondaryGreen100,k as SecondaryGreen20,j as SecondaryGreen40,i as SecondaryGreen60,h as SecondaryGreen80,l as SecondaryOrange100,p as SecondaryOrange20,o as SecondaryOrange40,n as SecondaryOrange60,m as SecondaryOrange80,q as SecondaryRed100,u as SecondaryRed20,t as SecondaryRed40,s as SecondaryRed60,r as SecondaryRed80,f as gray300,e as gray900,a as primaryTeal100,d as primaryTeal25,c as primaryTeal50,b as primaryTeal75}from'../../chunks/chunk-T5QHKJ2U.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { ScanditHTMLElement } from '../../utils/ScanditHTMLElement.js';
|
|
3
3
|
import { Rect } from '../../../Common.js';
|
|
4
|
-
import {
|
|
4
|
+
import { X as DataCaptureCallbackMessage } from '../../../Camera-CXPOECYt.js';
|
|
5
|
+
import '../../../ScanditIcon.js';
|
|
5
6
|
import '../../Serializable.js';
|
|
6
7
|
import '../../FrameReaders/WatermarkStack.js';
|
|
7
8
|
import '../../../tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{b as HintPresenter,a as HintPresenterEvents}from'../../../chunks/chunk-64US32RY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as LoadingOverlay}from'../../../chunks/chunk-7ALHRD5L.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as UnsupportedBrowserError}from'../chunks/chunk-GPJEB376.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as ScanditHTMLElement}from'../../chunks/chunk-EV4OEANA.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as clamp}from'../../chunks/chunk-L2STPTEN.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as css}from'../../chunks/chunk-GE4CBD4E.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as debounce}from'../../chunks/chunk-R6E4CT22.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as Deferred}from'../../chunks/chunk-O7TZTIHO.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as defineCustomElements}from'../../chunks/chunk-3A4KLILV.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as html}from'../../chunks/chunk-U6BTTEV6.js';
|
|
@@ -1,15 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { a as throttle } from '../../chunks/chunk-T3AOBMAS.js';
|
|
3
|
-
export { a as Timeout } from '../../chunks/chunk-Q7JWDX4U.js';
|
|
4
|
-
export { a as wait } from '../../chunks/chunk-UZWBB65W.js';
|
|
5
|
-
export { a as waitTransitionEndForElement } from '../../chunks/chunk-72DAONJI.js';
|
|
6
|
-
export { a as defineCustomElements } from '../../chunks/chunk-3A4KLILV.js';
|
|
7
|
-
export { a as html } from '../../chunks/chunk-U6BTTEV6.js';
|
|
8
|
-
export { a as ScanditHTMLElement } from '../../chunks/chunk-EV4OEANA.js';
|
|
9
|
-
export { a as clamp } from '../../chunks/chunk-L2STPTEN.js';
|
|
10
|
-
export { a as css } from '../../chunks/chunk-GE4CBD4E.js';
|
|
11
|
-
export { a as unknownErrorToString } from '../../chunks/chunk-AIRWHLJH.js';
|
|
12
|
-
export { a as isObject } from '../../chunks/chunk-FGO2SSRS.js';
|
|
13
|
-
export { a as isWorkerScope } from '../../chunks/chunk-QCRFVRSS.js';
|
|
14
|
-
export { a as Deferred } from '../../chunks/chunk-O7TZTIHO.js';
|
|
15
|
-
export { a as debounce } from '../../chunks/chunk-R6E4CT22.js';
|
|
1
|
+
export{a as waitTransitionEndForElement}from'../../chunks/chunk-72DAONJI.js';export{a as match}from'../../chunks/chunk-ZVBD3EW5.js';export{a as throttle}from'../../chunks/chunk-T3AOBMAS.js';export{a as Timeout}from'../../chunks/chunk-Q7JWDX4U.js';export{a as wait}from'../../chunks/chunk-UZWBB65W.js';export{a as ScanditHTMLElement}from'../../chunks/chunk-EV4OEANA.js';export{a as clamp}from'../../chunks/chunk-L2STPTEN.js';export{a as defineCustomElements}from'../../chunks/chunk-3A4KLILV.js';export{a as html}from'../../chunks/chunk-U6BTTEV6.js';export{a as css}from'../../chunks/chunk-GE4CBD4E.js';export{a as isWorkerScope}from'../../chunks/chunk-QCRFVRSS.js';export{a as unknownErrorToString}from'../../chunks/chunk-AIRWHLJH.js';export{a as isObject}from'../../chunks/chunk-FGO2SSRS.js';export{a as Deferred}from'../../chunks/chunk-O7TZTIHO.js';export{a as debounce}from'../../chunks/chunk-R6E4CT22.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as isObject}from'../../chunks/chunk-FGO2SSRS.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as isWorkerScope}from'../../chunks/chunk-QCRFVRSS.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as match}from'../../chunks/chunk-ZVBD3EW5.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { Quadrilateral } from '../../Common.js';
|
|
3
|
+
import '../Serializable.js';
|
|
4
|
+
|
|
5
|
+
declare function calculateWidth(quadrilateral: Quadrilateral): number;
|
|
6
|
+
declare function calculateHeight(quadrilateral: Quadrilateral): number;
|
|
7
|
+
|
|
8
|
+
export { calculateHeight, calculateWidth };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function o(t,n){let e=n.x-t.x,c=n.y-t.y;return Math.hypot(e,c)}function m(t){return (o(t.topLeft,t.topRight)+o(t.bottomLeft,t.bottomRight))/2}function i(t){return (o(t.topRight,t.bottomRight)+o(t.bottomLeft,t.topLeft))/2}export{i as calculateHeight,m as calculateWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as throttle}from'../../chunks/chunk-T3AOBMAS.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as Timeout}from'../../chunks/chunk-Q7JWDX4U.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as unknownErrorToString}from'../../chunks/chunk-AIRWHLJH.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as wait}from'../../chunks/chunk-UZWBB65W.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as waitTransitionEndForElement}from'../../chunks/chunk-72DAONJI.js';
|
package/build/js/sdk.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { D as DataCaptureLoader } from './Camera-
|
|
2
|
+
import { D as DataCaptureLoader } from './Camera-CXPOECYt.js';
|
|
3
3
|
import { LoadingStatus } from './LoadingStatus.js';
|
|
4
|
+
import './ScanditIcon.js';
|
|
4
5
|
import './private/Serializable.js';
|
|
5
6
|
import './private/FrameReaders/WatermarkStack.js';
|
|
6
7
|
import './tsHelper.js';
|
|
@@ -15,6 +16,7 @@ import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
|
15
16
|
import './private/HtmlElementState.js';
|
|
16
17
|
import './worker/OverrideState.js';
|
|
17
18
|
import './logger.js';
|
|
19
|
+
import './private/utils/ScanditHTMLElement.js';
|
|
18
20
|
|
|
19
21
|
interface SDKGlobals {
|
|
20
22
|
configurePhase: "done" | "started" | "unconfigured";
|
package/build/js/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as sdk}from'./chunks/chunk-NMROJLGQ.js';
|
package/build/js/translations.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as translations}from'./chunks/chunk-VJB527QZ.js';
|
package/build/js/tsHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as assert,b as assertUnreachable,c as assertUnreachableThrowException}from'./chunks/chunk-FTD535WI.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as OverrideState}from'../chunks/chunk-6W7FX6LD.js';
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { S as DataCaptureEngine, U as Module, Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, $ as ModuleHandler,
|
|
2
|
+
import { S as DataCaptureEngine, U as Module, Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, $ as ModuleHandler, X as DataCaptureCallbackMessage, a0 as DataCaptureActionMessageKey, a1 as EngineWorkerResponse } from '../Camera-CXPOECYt.js';
|
|
3
3
|
import '../private/Serializable.js';
|
|
4
4
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import '../tsHelper.js';
|
|
6
6
|
import '../Common.js';
|
|
7
|
+
import '../ScanditIcon.js';
|
|
8
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
7
9
|
import '../DataCaptureContextSettings.js';
|
|
8
10
|
import '../DataCaptureViewPlusRelated.js';
|
|
9
11
|
import '../ViewControls.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as WorkerMain}from'../chunks/chunk-MNUHPMUS.js';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { S as DataCaptureEngine, U as Module } from '../Camera-
|
|
2
|
+
import { S as DataCaptureEngine, U as Module } from '../Camera-CXPOECYt.js';
|
|
3
3
|
import { WorkerMain } from './WorkerMain.js';
|
|
4
4
|
import '../private/Serializable.js';
|
|
5
5
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
6
6
|
import '../tsHelper.js';
|
|
7
7
|
import '../Common.js';
|
|
8
|
+
import '../ScanditIcon.js';
|
|
9
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
8
10
|
import '../DataCaptureContextSettings.js';
|
|
9
11
|
import '../DataCaptureViewPlusRelated.js';
|
|
10
12
|
import '../ViewControls.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-HDW5KYJV.js';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { bb as CreateContextParameters, S as DataCaptureEngine, ba as LoadLibraryParameters, be as ProcessFrameParameters, bf as ReportCameraPropertiesParameters, bd as SetFrameSourceParameters, bc as UpdateContextParameters, bg as WorkerFunctions } from '../Camera-
|
|
2
|
+
export { bb as CreateContextParameters, S as DataCaptureEngine, ba as LoadLibraryParameters, be as ProcessFrameParameters, bf as ReportCameraPropertiesParameters, bd as SetFrameSourceParameters, bc as UpdateContextParameters, bg as WorkerFunctions } from '../Camera-CXPOECYt.js';
|
|
3
3
|
import './OverrideState.js';
|
|
4
4
|
import '../LoadingStatus.js';
|
|
5
5
|
import '../Common.js';
|
|
6
|
+
import '../ScanditIcon.js';
|
|
6
7
|
import '../private/Serializable.js';
|
|
7
8
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
8
9
|
import '../tsHelper.js';
|
|
@@ -15,3 +16,4 @@ import '../private/AnchorPositions.js';
|
|
|
15
16
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
16
17
|
import '../private/HtmlElementState.js';
|
|
17
18
|
import '../logger.js';
|
|
19
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as DataCaptureEngine}from'../chunks/chunk-6UJOYR5F.js';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import './OverrideState.js';
|
|
3
|
-
export { D as DataCaptureLoader, R as DataCaptureLoaderOptions } from '../Camera-
|
|
3
|
+
export { D as DataCaptureLoader, R as DataCaptureLoaderOptions } from '../Camera-CXPOECYt.js';
|
|
4
4
|
import '../logger.js';
|
|
5
|
+
import '../ScanditIcon.js';
|
|
5
6
|
import '../LoadingStatus.js';
|
|
6
7
|
import '../private/Serializable.js';
|
|
7
8
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
@@ -15,3 +16,4 @@ import '../private/View.js';
|
|
|
15
16
|
import '../private/AnchorPositions.js';
|
|
16
17
|
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
17
18
|
import '../private/HtmlElementState.js';
|
|
19
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as DataCaptureLoader}from'../chunks/chunk-5DETRQ7Y.js';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import '../Common.js';
|
|
3
|
-
export { Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, aS as CaptureModeDeserializerInstance, a9 as CreateContextDataCaptureAction, a0 as DataCaptureActionMessageKey,
|
|
3
|
+
export { Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, aS as CaptureModeDeserializerInstance, a9 as CreateContextDataCaptureAction, a0 as DataCaptureActionMessageKey, X as DataCaptureCallbackMessage, aq as DataCaptureCallbackMessageKeys, aK as DataCaptureContext, aR as DataCaptureContextDeserializer, aQ as DataCaptureContextDeserializerResult, aL as DataCaptureImageBufferFrameSource, aO as DataCaptureView, aI as DataCaptureWorker, ad as DeleteFrameDataDataCaptureAction, ax as DidTapTrackedBarcode, ah as DisposeDataCaptureAction, aJ as EmscriptenClassHandle, a1 as EngineWorkerResponse, al as ExtractCentaurusLicenseDataCaptureAction, a2 as ExtractCentaurusLicenseResponse, ai as FlushAnalyticsDataCaptureAction, Y as GenericHint, aM as GestureListener, aN as GestureRecognizer, ap as GetOpenSourceSoftwareLicenseInfoAction, a6 as GetOpenSourceSoftwareLicenseInfoResponse, a5 as GetViewfinderInfo, ao as GetViewfinderInfoAction, b4 as GuidanceHint, b2 as GuidanceHintAnchor, b3 as GuidanceHintStyle, aE as HideGuidanceMessage, av as HideHintWorkerMessage, aC as HideToastMessage, b0 as HintAnchor, a_ as HintCornerStyle, aW as HintFont, aZ as HintHeight, a$ as HintIcon, b8 as HintPresenterV2, an as HintPresenterV2updateAction, b1 as HintStyle, aX as HintTextAlignment, aY as HintWidth, af as IsFeatureSupportedAction, au as IsFeatureSupportedMessage, a4 as IsFeatureSupportedResponse, aP as JSONParseable, b7 as LicensedFeature, a8 as LoadLibraryDataCaptureAction, U as Module, $ as ModuleHandler, aT as ModuleMirrorAxis, az as OnFrameProcessingFinishedMessage, ay as OnFrameProcessingStartedMessage, aA as OnFrameSkippedMessage, am as OnTapAction, aH as PayloadForCommand, W as PerformanceMetrics, aw as PerformanceMetricsReportMessage, b9 as PlatformHintPresenter, ab as ProcessFrameDataCaptureAction, aj as ReportCameraPropertiesDataCaptureAction, ac as RequestFrameDataDataCaptureAction, a3 as RequestFrameDataResponse, aa as SetFrameSourceDataCaptureAction, ak as SetLogLevelDataCaptureAction, aD as ShowGuidanceMessage, as as ShowHintWorkerMessage, aB as ShowToastMessage, aF as StartUpdateTimerMessage, aG as StopUpdateTimerMessage, ar as SuccessFeedbackWorkerMessage, b6 as ToastHint, b5 as ToastHintStyle, ag as UpdateContextDataCaptureAction, at as UpdateHintWorkerMessage, aU as Vector, ae as VisibilityChangeAction, aV as WasmFrameData, a7 as WorkerResponse } from '../Camera-CXPOECYt.js';
|
|
4
4
|
import '../LoadingStatus.js';
|
|
5
5
|
import '../logger.js';
|
|
6
6
|
import '../private/Serializable.js';
|
|
7
7
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
8
8
|
import '../tsHelper.js';
|
|
9
|
+
import '../ScanditIcon.js';
|
|
10
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
9
11
|
import '../DataCaptureContextSettings.js';
|
|
10
12
|
import '../DataCaptureViewPlusRelated.js';
|
|
11
13
|
import '../ViewControls.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{h as GuidanceHintAnchor,i as GuidanceHintStyle,g as HintAnchor,e as HintCornerStyle,a as HintFont,d as HintHeight,f as HintIcon,b as HintTextAlignment,c as HintWidth,k as LicensedFeature,j as ToastHintStyle}from'../chunks/chunk-HC2AMLBI.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{c as getDomain,a as instantiateWebAssembly,b as retryWithExponentialBackoff}from'../chunks/chunk-2WN7BGOB.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as ResponseValidity,e as createResponseWithProgress,f as fetchWasm,d as getTotalInBytes,c as setWasmMetadata,b as verifyResponseData}from'../chunks/chunk-B5JOQVFY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as setupFS}from'../chunks/chunk-TM7QAJVA.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as importWasmScript}from'../chunks/chunk-YGFWA4WG.js';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
export { WorkerMain } from './WorkerMain.js';
|
|
3
|
-
export { Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, aS as CaptureModeDeserializerInstance, a9 as CreateContextDataCaptureAction, bb as CreateContextParameters, a0 as DataCaptureActionMessageKey,
|
|
3
|
+
export { Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, aS as CaptureModeDeserializerInstance, a9 as CreateContextDataCaptureAction, bb as CreateContextParameters, a0 as DataCaptureActionMessageKey, X as DataCaptureCallbackMessage, aq as DataCaptureCallbackMessageKeys, aK as DataCaptureContext, aR as DataCaptureContextDeserializer, aQ as DataCaptureContextDeserializerResult, S as DataCaptureEngine, aL as DataCaptureImageBufferFrameSource, D as DataCaptureLoader, R as DataCaptureLoaderOptions, aO as DataCaptureView, aI as DataCaptureWorker, ad as DeleteFrameDataDataCaptureAction, ax as DidTapTrackedBarcode, ah as DisposeDataCaptureAction, aJ as EmscriptenClassHandle, a1 as EngineWorkerResponse, al as ExtractCentaurusLicenseDataCaptureAction, a2 as ExtractCentaurusLicenseResponse, ai as FlushAnalyticsDataCaptureAction, Y as GenericHint, aM as GestureListener, aN as GestureRecognizer, ap as GetOpenSourceSoftwareLicenseInfoAction, a6 as GetOpenSourceSoftwareLicenseInfoResponse, a5 as GetViewfinderInfo, ao as GetViewfinderInfoAction, b4 as GuidanceHint, b2 as GuidanceHintAnchor, b3 as GuidanceHintStyle, aE as HideGuidanceMessage, av as HideHintWorkerMessage, aC as HideToastMessage, b0 as HintAnchor, a_ as HintCornerStyle, aW as HintFont, aZ as HintHeight, a$ as HintIcon, b8 as HintPresenterV2, an as HintPresenterV2updateAction, b1 as HintStyle, aX as HintTextAlignment, aY as HintWidth, af as IsFeatureSupportedAction, au as IsFeatureSupportedMessage, a4 as IsFeatureSupportedResponse, aP as JSONParseable, b7 as LicensedFeature, a8 as LoadLibraryDataCaptureAction, ba as LoadLibraryParameters, U as Module, $ as ModuleHandler, aT as ModuleMirrorAxis, az as OnFrameProcessingFinishedMessage, ay as OnFrameProcessingStartedMessage, aA as OnFrameSkippedMessage, am as OnTapAction, aH as PayloadForCommand, W as PerformanceMetrics, aw as PerformanceMetricsReportMessage, b9 as PlatformHintPresenter, ab as ProcessFrameDataCaptureAction, be as ProcessFrameParameters, aj as ReportCameraPropertiesDataCaptureAction, bf as ReportCameraPropertiesParameters, ac as RequestFrameDataDataCaptureAction, a3 as RequestFrameDataResponse, aa as SetFrameSourceDataCaptureAction, bd as SetFrameSourceParameters, ak as SetLogLevelDataCaptureAction, aD as ShowGuidanceMessage, as as ShowHintWorkerMessage, aB as ShowToastMessage, aF as StartUpdateTimerMessage, aG as StopUpdateTimerMessage, ar as SuccessFeedbackWorkerMessage, b6 as ToastHint, b5 as ToastHintStyle, ag as UpdateContextDataCaptureAction, bc as UpdateContextParameters, at as UpdateHintWorkerMessage, aU as Vector, ae as VisibilityChangeAction, aV as WasmFrameData, bg as WorkerFunctions, a7 as WorkerResponse } from '../Camera-CXPOECYt.js';
|
|
4
4
|
import '../private/Serializable.js';
|
|
5
5
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
6
6
|
import '../tsHelper.js';
|
|
7
7
|
import '../Common.js';
|
|
8
|
+
import '../ScanditIcon.js';
|
|
9
|
+
import '../private/utils/ScanditHTMLElement.js';
|
|
8
10
|
import '../DataCaptureContextSettings.js';
|
|
9
11
|
import '../DataCaptureViewPlusRelated.js';
|
|
10
12
|
import '../ViewControls.js';
|
package/build/js/worker/index.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { a as WorkerMain } from '../chunks/chunk-NNLX5HO4.js';
|
|
3
|
-
export { a as DataCaptureEngine } from '../chunks/chunk-3V7ZD6JQ.js';
|
|
4
|
-
export { h as GuidanceHintAnchor, i as GuidanceHintStyle, g as HintAnchor, e as HintCornerStyle, a as HintFont, d as HintHeight, f as HintIcon, b as HintTextAlignment, c as HintWidth, k as LicensedFeature, j as ToastHintStyle } from '../chunks/chunk-3FDT22IX.js';
|
|
1
|
+
export{a as DataCaptureLoader}from'../chunks/chunk-5DETRQ7Y.js';export{a as WorkerMain}from'../chunks/chunk-MNUHPMUS.js';export{a as DataCaptureEngine}from'../chunks/chunk-6UJOYR5F.js';export{h as GuidanceHintAnchor,i as GuidanceHintStyle,g as HintAnchor,e as HintCornerStyle,a as HintFont,d as HintHeight,f as HintIcon,b as HintTextAlignment,c as HintWidth,k as LicensedFeature,j as ToastHintStyle}from'../chunks/chunk-HC2AMLBI.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scandit/web-datacapture-core",
|
|
3
|
-
"version": "7.0.2",
|
|
3
|
+
"version": "7.1.0-beta.2",
|
|
4
4
|
"description": "Scandit Data Capture SDK for the Web",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"README.md",
|
|
103
103
|
"README.txt",
|
|
104
104
|
"LICENSE",
|
|
105
|
-
"
|
|
105
|
+
"THIRD_PARTY.txt",
|
|
106
106
|
"build/",
|
|
107
107
|
"sdc-lib/"
|
|
108
108
|
],
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { d } from './chunk-UPUPKPEP.js';
|
|
2
|
-
import { n, l, d as d$1 } from './chunk-N4NOODAT.js';
|
|
3
|
-
|
|
4
|
-
var s=class{constructor(i,e){this.type="rectangular";this._disabledColor=n.fromRGBA(0,0,0,0);let n$1=i!=null?i:d.RectangularViewfinder.defaultStyle;this._style=d.RectangularViewfinder.styles[n$1].style,this._lineStyle=d.RectangularViewfinder.styles[n$1].lineStyle,this._dimming=d.RectangularViewfinder.styles[n$1].dimming,this._animation=d.RectangularViewfinder.styles[n$1].animation,this.color=d.RectangularViewfinder.styles[n$1].color,this._sizeWithUnitAndAspect=d.RectangularViewfinder.styles[n$1].size,e!==void 0&&(this._lineStyle=e);}get animation(){return this._animation}set animation(i){this._animation=i;}get dimming(){return this._dimming}set dimming(i){this._dimming=i;}get lineStyle(){return this._lineStyle}get sizeWithUnitAndAspect(){return this._sizeWithUnitAndAspect}get style(){return this._style}get disabledColor(){return this._disabledColor}set disabledColor(i){this._disabledColor=i;}setHeightAndAspectRatio(i,e){this._sizeWithUnitAndAspect=l.sizeWithHeightAndAspectRatio(i,e);}setShorterDimensionAndAspectRatio(i,e){this._sizeWithUnitAndAspect=l.sizeWithShorterDimensionAndAspectRatio(new d$1(i,"fraction"),e);}setSize(i){this._sizeWithUnitAndAspect=l.sizeWithWidthAndHeight(i);}setWidthAndAspectRatio(i,e){this._sizeWithUnitAndAspect=l.sizeWithWidthAndAspectRatio(i,e);}toJSONObject(){return {type:this.type,color:this.color.toJSON(),style:this.style,lineStyle:this.lineStyle,dimming:this.dimming,animation:this.animation?this.animation.toJSONObject():null,size:this.sizeWithUnitAndAspect.toJSONObject(),disabledColor:this._disabledColor.toJSON()}}};
|
|
5
|
-
|
|
6
|
-
export { s as a };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-XR65N6EG.js';
|
|
2
|
-
import { a as a$1 } from './chunk-QCZSSQAQ.js';
|
|
3
|
-
|
|
4
|
-
var y=Promise.resolve(),p=!1,h=!1,d,b={writableDataPathPreload:"",writableDataPath:"",preloading:!1};async function T(){let t="FILE_DATA",o,s,e,r,a$2;function n(){clearTimeout(a$2),e.result.close(),r.result.close(),o(0);}function I(){try{let l=[],f=e.result.transaction(t,"readonly");f.addEventListener("error",n),f.addEventListener("abort",n);let m=f.objectStore(t).openCursor();m.onsuccess=()=>{let i=m.result;if(i==null)try{let c=0,u=r.result.transaction(t,"readwrite"),P=u.objectStore(t);u.addEventListener("error",n),u.addEventListener("abort",n),u.oncomplete=()=>{clearTimeout(a$2),e.result.close(),r.result.close(),o(c);};for(let D of l){let g=P.count(D.primaryKey);g.onsuccess=()=>{g.result===0&&(++c,P.add(D.value,D.primaryKey));},clearTimeout(a$2),a$2=globalThis.setTimeout(()=>{a.log(a.Level.Warn,"IndexedDB database is blocked! Resetting Scandit Data Capture library..."),s(new a$1({name:"BlockedIndexedDB",message:"IndexedDB database is blocked"}));},500);}}catch(c){n.call({error:c});}else {let{writableDataPathPreload:c,writableDataPath:u}=b;l.push({value:i.value,primaryKey:i.primaryKey.toString().replace(`${c}/`,`${u}/`)}),i.continue();}},m.onerror=n;}catch(l){n.call({error:l});}}return new Promise((l,f)=>{let{writableDataPathPreload:m,writableDataPath:i}=b;o=l,s=f,e=indexedDB.open(m),e.onupgradeneeded=()=>{try{e.result.createObjectStore(t);}catch(c){}},e.onsuccess=()=>{if(!Array.from(e.result.objectStoreNames).includes(t)){l(0);return}r=indexedDB.open(i),r.onupgradeneeded=()=>{try{r.result.createObjectStore(t);}catch(c){}},r.onsuccess=()=>{I();},r.onblocked=r.onerror=n;},e.onblocked=e.onerror=n;})}async function B(t,o){let{preloading:s}=b;if(d!=null){if(p=!0,!s&&t){let e=await T();if(!o&&e===0){p=!1;return}}await new Promise((e,r)=>{d==null||d(t,a=>{if(p=!1,a!=null){r(a);return}e();});});}}async function w(t,o=!1,s=!1){return (!h||s)&&(p?(h=!0,y=y.then(async()=>(h=!1,B(t,o)))):y=B(t,o)),y}async function O(t){b=t,d=FS.syncfs,FS.syncfs=(o,s)=>{let e=s,r=a=>{e(a);};w(o).then(r).catch(r);};try{FS.mkdir(b.writableDataPath);}catch(o){if(o.code!=="EEXIST")throw d=void 0,o}return FS.mount(IDBFS,{},b.writableDataPath),w(!0,!0)}
|
|
5
|
-
|
|
6
|
-
export { O as a };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { d } from './chunk-RQQK6Z5F.js';
|
|
2
|
-
import { a as a$4 } from './chunk-34FEFSCI.js';
|
|
3
|
-
import { a as a$5 } from './chunk-YGFWA4WG.js';
|
|
4
|
-
import { c as c$1, a as a$6 } from './chunk-2WN7BGOB.js';
|
|
5
|
-
import { c } from './chunk-B5JOQVFY.js';
|
|
6
|
-
import { a as a$2 } from './chunk-EFJGQ4BT.js';
|
|
7
|
-
import { a as a$1 } from './chunk-O7TZTIHO.js';
|
|
8
|
-
import { a } from './chunk-XR65N6EG.js';
|
|
9
|
-
import { a as a$3 } from './chunk-QCZSSQAQ.js';
|
|
10
|
-
import { c as c$2, e } from './chunk-H4TH4342.js';
|
|
11
|
-
|
|
12
|
-
var C=class C{constructor(e,t){this.hintPresenterV2=null;this.MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL=10;this.redrawInterval=1e3/30;this.redrawRequests=[];this._isDrawLoopRunning=!1;this.frameDataPool=new Map;this.lastFrameCounter=-1;this.poorMansBenchmarkLogs=!1;this.writableDataPathPreload="/scandit_sync_folder_preload";this.writableDataPathStandard="/scandit_sync_folder";this.resourceFilesSubfolder="resources";this.performanceMetricsReporterTimer=void 0;this.performanceMetrics={frameDataPoolSize:0,processedFramesCount:0,redrawRequestsCount:0,actualRedrawsCount:0};this.gestureListener=null;this.webPlatformHintPresenter=null;this.moduleHandler=e,this.workerFunctions=t,this._loadProgressCallback=this._loadProgressCallback.bind(this),c(this.getWasmMetadata());}get Module(){return this.moduleHandler.get()}set isDrawLoopRunning(e){this._isDrawLoopRunning=e,!e&&typeof this.loopTimeoutId=="number"&&(clearTimeout(this.loopTimeoutId),this.loopTimeoutId=void 0);}get isDrawLoopRunning(){return this._isDrawLoopRunning}convertToLoadableFrameData(e){let t=this.getNextFrameId();this.frameDataPool.set(t,new Uint8ClampedArray(e.getFrameData()));let r=this.lastUsedModuleMirrorAxis==null?!1:this.lastUsedModuleMirrorAxis!==this.Module.Axis.None;return {frameId:t,width:e.getWidth(),height:e.getHeight(),isFrameSourceMirrored:r}}createContext(e){var h,g,M,f,b;let t=this.getModeDeserializers(),r=c$1(location);(r==="localhost"||r==="127.0.0.1")&&navigator.userAgent.includes("Electron")&&e.appName!=null&&(r+=`-${e.appName}`),this.parentDomain=e.parentDomain,this.contextDeserializer=new this.Module.DataCaptureContextDeserializer(this.writableDataPath,e.deviceId,e.context.deviceModelName,r,this.parentDomain,t,e.delayedRegistration,e.highEndBlurryRecognition,this.resourcePath);let a=this.contextDeserializer.contextFromJson(JSON.stringify(e.context));if(a==null){let s=this.contextDeserializer.getLastError();throw new Error(`Could not create the context: ${s}`)}let i=a.getView();this.context=a.getContext(),a.delete();let o=this.Module.DataCaptureContextListener.extend("DataCaptureContextListener",{didChangeStatus:(s,p)=>{this.contextDidChangeStatus(JSON.parse(p.toJson()));},didStartObservingContext:()=>{this.didStartObservingContext();}}),u=this.Module.DataCaptureContextFrameListener.extend("DataCaptureContextFrameListener",{onObservationStarted:s=>{},onObservationStopped:s=>{},onFrameProcessingStarted:(s,p)=>{this.workerFunctions.postMessage({type:"onFrameProcessingStarted"});},onFrameProcessingFinished:(s,p)=>{this.workerFunctions.postMessage({type:"onFrameProcessingFinished"});},onFrameSkipped:(s,p)=>{this.workerFunctions.postMessage({type:"onFrameSkipped"});}}),w=this.Module.GestureRecognizer.extend("GestureRecognizer",{setGestureListener:(s,p)=>{var D;(D=this.gestureListener)==null||D.delete(),this.gestureListener=s.clone();}});(h=this.gestureRecognizer)==null||h.delete(),this.gestureRecognizer=new w;let m=new o;this.context.addListener(m),m.delete();let d=new u;this.context.addFrameListener(d),d.delete(),this.setView(i),(g=this.view)==null||g.setGestureRecognizer(this.gestureRecognizer);let c=this.Module.PlatformHintPresenter.extend("PlatformHintPresenter",{setHintPresenter:s=>{},showToast:s=>{this.workerFunctions.postMessage({type:"showToast",payload:JSON.parse(s)});},hideToast:s=>{this.workerFunctions.postMessage({type:"hideToast",payload:JSON.parse(s)});},showGuidance:s=>{this.workerFunctions.postMessage({type:"showGuidance",payload:JSON.parse(s)});},hideGuidance:s=>{this.workerFunctions.postMessage({type:"hideGuidance",payload:JSON.parse(s)});},startUpdateTimer:s=>{this.workerFunctions.postMessage({type:"startUpdateTimer",payload:{duration:{unit:"ms",value:s}}});},stopUpdateTimer:()=>{this.workerFunctions.postMessage({type:"stopUpdateTimer"});}});(M=this.hintPresenterV2)==null||M.delete(),(f=this.webPlatformHintPresenter)==null||f.delete(),this.webPlatformHintPresenter=new c,this.hintPresenterV2=new this.Module.HintPresenterV2(this.webPlatformHintPresenter),(b=this.view)==null||b.setHintPresenterV2(this.hintPresenterV2);}onTap(e){var t;(t=this.gestureListener)==null||t.onTap(JSON.stringify(e));}hintPresenterV2Update(){var e;(e=this.hintPresenterV2)==null||e.update();}startReportingPerformanceMetrics(){this.performanceMetricsReporterTimer==null&&(this.performanceMetricsReporterTimer=setInterval(()=>{this.reportPerformanceMetrics();for(let e of Object.keys(this.performanceMetrics))this.performanceMetrics[e]=0;},1e3));}async reportPerformanceMetrics(){this.workerFunctions.postMessage({type:"performanceMetricsReport",payload:{...this.performanceMetrics}});}deleteFrameData(e){this.frameDataPool.delete(e);}dispose(){var e,t;this.context.dispose(),this.frameDataPool.clear(),this.isDrawLoopRunning=!1,this.lastFrameCounter=-1,(e=this.gestureRecognizer)==null||e.delete(),this.gestureRecognizer=null,(t=this.gestureListener)==null||t.delete(),this.gestureListener=null;}flushAnalytics(){this.context.flushAnalytics();}extractCentaurusLicense(e){return {payload:{centaurus:{licenseKey:this.Module.LicenseUtils[C.get3dPartyLicenseKeyMethodName](e)}}}}getModeDeserializers(){return new this.Module.VectorDataCaptureModeDeserializer}loadLibrary(e){return this.libraryLoadingPromise!=null?this.libraryLoadingPromise:(this.libraryLoadingPromise=this.setup(e),this.libraryLoadingPromise)}processFrame(e){var i;if(this.context==null)return {payload:e,transferables:[e.data.buffer]};let t=e.data,r=e.colorType==="GRAYSCALE"?this.Module.ImageBufferFormat.Grayscale8:this.Module.ImageBufferFormat.Rgba8888,a=this.Module.allocateUint8Array(t.byteLength);return this.Module.HEAPU8.set(t,a),(i=this.imageFrameSource)==null||i.outputFrame(a,e.width,e.height,r),{payload:e,transferables:[e.data.buffer]}}reportCameraProperties(e){this.context.setCameraProperties(e.deviceId,e.isFrontFacing,e.hasAutofocus);}requestFrameData(e){let t=this.frameDataPool.get(e);return t==null?{payload:{data:null}}:{payload:{data:t},transferables:[t.buffer]}}scheduleRedraw(e,t){this.addRedrawRequest(t),this.isDrawLoopRunning||this.startDrawLoop(e);}sendViewRefreshCommands(e){this.workerFunctions.postMessage({type:"draw",payload:e},[e.buffer]);}setFrameSource(e,t){var r;this.lastUsedModuleMirrorAxis=this.mapMirrorAxisOnModule(e),(r=this.imageFrameSource)==null||r.delete(),this.imageFrameSource=new this.Module.ImageBufferFrameSource(this.lastUsedModuleMirrorAxis,t,0),this.context.setFrameSource(this.imageFrameSource);}startDrawLoop(e){this.isDrawLoopRunning=!0;let t=i=>this.redrawRequests.length>0&&this.redrawRequests[0]<=i,r=i=>{for(;this.redrawRequests.length>0&&this.redrawRequests[0]<=i;)this.redrawRequests.shift();},a=()=>{this.loopTimeoutId=setTimeout(()=>{if(!this.isDrawLoopRunning)return;let i=performance.now();if(t(i)){r(i),e.draw();let o=e.getDrawCommands();this.sendViewRefreshCommands(new Uint8Array(o));}a();},this.redrawInterval);};a();}updateContext(e){if(this.context!=null&&this.contextDeserializer!=null){e.view!=null&&!e.view.visible&&this.context.flushAnalytics();let t=this.contextDeserializer.updateContextFromJson(this.context,this.view,JSON.stringify(e.context));if(t==null){let a=this.contextDeserializer.getLastError();throw new Error(`Could not update the context: ${a}`)}this.context.delete(),this.context=t.getContext();let r=t.getView();t.delete(),r!=null&&e.view!=null&&r.setViewSize(e.view.width,e.view.height,e.view.orientation),this.hintPresenterV2!=null&&(r==null||r.setHintPresenterV2(this.hintPresenterV2)),this.gestureRecognizer!=null&&(r==null||r.setGestureRecognizer(this.gestureRecognizer)),this.setView(r),a.log(a.Level.Debug,"context updated",e);}}onDocumentVisibilityChange(e){e==="hidden"&&this.context.flushAnalytics();}isFeatureSupported(e){return {payload:{supported:this.context.isFeatureSupported(e)}}}getViewfinderInfo(){var e,t;return {payload:{isDisplayingViewfinder:(t=(e=this.view)==null?void 0:e.isDisplayingViewfinder())!=null?t:!1,rect:JSON.parse(this.view.getViewfinderRect())}}}getOpenSourceSoftwareLicenseInfo(){return {payload:{licenseText:this.Module.OpenSourceSoftwareLicenseInfo.getLicenseText()}}}getNextFrameId(){return this.lastFrameCounter++,this.lastFrameCounter>=this.MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL&&(this.lastFrameCounter=0),this.lastFrameCounter}getWasmDynamicLibraries(e){return this.getWasmSideModuleFileName()==null?[]:[`${e.replace(/\/[^/]*$/,"/")}${this.getWasmSideModuleFileName()}`]}getWasmCoreExpectedHash(e,t){return t?e?globalThis.SDC_WASM_CORE_MT_SIMD_HASH:globalThis.SDC_WASM_CORE_MT_HASH:e?globalThis.SDC_WASM_CORE_SIMD_HASH:""}getWasmCoreFileName(e,t){return t?e?globalThis.SDC_WASM_CORE_MT_SIMD_FILE_NAME:globalThis.SDC_WASM_CORE_MT_FILE_NAME:e?globalThis.SDC_WASM_CORE_SIMD_FILE_NAME:""}getWasmMetadata(){return globalThis.WASM_METADATA}getWasmSideModuleFileName(){return ""}_loadProgressCallback(e){this.workerFunctions.postMessage({type:"loadLibraryProgress",payload:e});}addRedrawRequest(e){this.redrawRequests.push(Math.round(performance.now())+e),this.redrawRequests.sort((t,r)=>t-r);}contextDidChangeStatus(e){e.code===260?e.message=e.message.replace("domain name",`domain name (${c$1(location)})`):e.code===265&&(e.message=e.message.replace("domain name",`domain name (${this.parentDomain})`)),this.workerFunctions.postMessage({type:"contextDidChangeStatus",payload:e});}didStartObservingContext(){this.workerFunctions.postMessage({type:"didStartObservingContext"});}mapMirrorAxisOnModule(e){switch(e){case"None":return this.Module.Axis.None;case"X":return this.Module.Axis.X;case"Y":return this.Module.Axis.Y;default:return this.Module.Axis.None}}setView(e){this.view=e,this.setViewRefreshHandler(e),e==null&&(this.isDrawLoopRunning=!1,this.sendViewRefreshCommands(new Uint8Array([])));}setViewRefreshHandler(e){if(e==null||e.isViewRefreshHandlerSet)return;let t=this.Module.NeedsRedrawDelegate.extend("NeedsRedrawDelegate",{setNeedsRedrawIn:this.scheduleRedraw.bind(this,e)}),r=new t;e.setNeedsRedrawDelegate(r),e.isViewRefreshHandlerSet=!0;}setupDataDecoding(){let e=this.moduleHandler.get(),t=e.DataDecoding.extend("DataDecoding",{decode(r,a){try{let i=JSON.parse(a),o=[];for(let u of i){let w=new TextDecoder(u.ianaName,{fatal:!0});o.push(w.decode(r.slice(u.startIndex,u.endIndex)));}return o.join("")}catch(i){return ""}}});e.setDataDecoding(new t);}start(e,t,r){e&&t&&(this.setupDataDecoding(),this.moduleHandler.get().callMain(),typeof this.moduleHandler.get().PThread=="object"||r());}getWritableDataPath(e,t){return e?this.writableDataPathPreload:t!=null?(a.log(a.Level.Debug,`IndexedDB database name override in use to recover from blocked standard database: ${t}`),t):this.writableDataPathStandard}numOfMBToPages(e){return Math.ceil(1024*e*1024/64/1024)}async setup({libraryLocation:e$1,locationPath:t,preloadEngine:r,writableDataPathOverride:a$7,overrideThreadsSupport:i,overrideSimdSupport:o,verifyResponseHash:u,referredOrigin:w,fixedWasmMemory:m}){var x;let d$1=!1,c=!1;this.writableDataPath=this.getWritableDataPath(r,a$7),this.resourcePath=`${e$1}${this.resourceFilesSubfolder}/`,globalThis.path=t;let{resolve:h,reject:g,promise:M}=new a$1,f=a$2.sdkVersion();if(f==="")throw new a$3({name:"Invalid library version",message:"Library version is not defined or empty, cannot generate proper path to library files."});let[b,s]=await Promise.all([c$2(),e()]);i!=="auto"&&(s=i==="on"),o!=="auto"&&(b=o==="on");let p=this.getWasmCoreFileName(b,s),D=d(f,e$1,p),{jsURI:R,wasmURI:S}=D,N={instantiateWasm:(l,H)=>(a$6({importObject:l,wasmURI:S,expectedHash:this.getWasmCoreExpectedHash(b,s),verifyResponseHash:u,successCallback:H,progressCallback:this._loadProgressCallback,referredOrigin:w}),{})},y=m===null?null:new WebAssembly.Memory({initial:this.numOfMBToPages(m),maximum:this.numOfMBToPages(m),shared:s});return y!==null&&a.log(a.Level.Debug,"Fixed wasmMemory set",y),this.moduleHandler.set({...y?{wasmMemory:y}:{},mainScriptUrlOrBlob:R,canvas:(x=this.workerFunctions.getOffscreenCanvas())!=null?x:{getContext:()=>null},...N,dynamicLibraries:this.getWasmDynamicLibraries(S),locateFile:l=>e$1+l,noInitialRun:!0,preRun:[async()=>{try{await a$4({writableDataPathPreload:this.writableDataPathPreload,writableDataPath:this.writableDataPath,preloading:r});}catch(l){if(l.name==="BlockedIndexedDB"){g(l.toString());return}a.log(a.Level.Debug,"No IndexedDB support, some data will not be persisted:",l);}c=!0,this.start(c,d$1,h);}],onMainComplete:()=>{if([d$1,c].includes(!1)){a.log(a.Level.Warn,{runtimeLoaded:d$1,fileSystemSynced:c},"Both runtimeLoaded and fileSystemSynced should be true when calling onMainComplete"),g("onMainComplete has been called but runtime or file system was not ready.");return}h();},onRuntimeInitialized:()=>{d$1=!0,this.start(c,d$1,h);},print:l=>{a.log(a.Level.Info,l);}}),await a$5(R,f)||g(`Couldn't retrieve Scandit Data Capture library at ${R}, did you configure the path for it correctly?`),M}};C.get3dPartyLicenseKeyMethodName=atob("Z2V0QmxpbmtJZExpY2Vuc2VLZXk=");var W=C;
|
|
13
|
-
|
|
14
|
-
export { W as a };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { h, d } from './chunk-N4NOODAT.js';
|
|
2
|
-
|
|
3
|
-
var o=class c{constructor(e){this.element=e,this.setupListeners(),this.cacheDOMRect();}get width(){return this.cachedDOMRect.width}get height(){return this.cachedDOMRect.height}static areEquivalentJSONStates(e,t){return !e||!t?!1:e.size.isSameAs(t.size)&&e.visible===t.visible}onStateChanged(e){this.onStateChangedListener=e;}onDisconnected(e){this.onDisconnectedListener=e;}toJSONObject(){return {size:new h(new d(this.width,"pixel"),new d(this.height,"pixel")),visible:this.isVisible()}}isSameAs(e){return c.areEquivalentJSONStates(this.toJSONObject(),e.toJSONObject())}removeListeners(){this.resizeObserver.disconnect(),this.mutationObserver.disconnect();}isVisible(){return this.width>0&&this.height>0||this.element.getClientRects().length>0}setupListeners(){this.resizeObserver=new ResizeObserver(this.onSizeChange.bind(this)),this.resizeObserver.observe(this.element),this.mutationObserver=new MutationObserver(this.onMutation.bind(this)),this.element.parentElement&&this.mutationObserver.observe(this.element.parentElement,{childList:!0});}onSizeChange(e){var t;this.cacheDOMRect(e),document.contains(this.element)&&((t=this.onStateChangedListener)==null||t.call(this));}onMutation(e){var s;let t=e.find(({type:i})=>i==="childList");if(t){for(let i of t.removedNodes)if(i===this.element&&!document.contains(this.element)){(s=this.onDisconnectedListener)==null||s.call(this);return}}}cacheDOMRect(e){let t;Array.isArray(e)&&e.length>0&&(t=e[0].contentRect),t==null&&(t=this.element.getBoundingClientRect()),this.cachedDOMRect=t;}};
|
|
4
|
-
|
|
5
|
-
export { o as a };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-GSJH2EXJ.js';
|
|
2
|
-
import { a } from './chunk-HNMM5VR6.js';
|
|
3
|
-
|
|
4
|
-
var o=class r{constructor(i,e){this._vibration=null;this._sound=null;this._vibration=i,this._sound=e;}static get defaultFeedback(){return new r(a.defaultVibration,a$1.defaultSound)}get vibration(){return this._vibration}get sound(){return this._sound}emit(){this.sound&&this.sound.play(),this.vibration&&this.vibration.vibrate();}toJSONObject(){let i={};return this.sound!==null&&(i.sound=this.sound.toJSONObject()),this.vibration!==null&&(i.vibration=this.vibration.toJSONObject()),i}};
|
|
5
|
-
|
|
6
|
-
export { o as a };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-XR65N6EG.js';
|
|
2
|
-
|
|
3
|
-
var n=class{constructor(e){this.overrideThreadsSupport="auto";this.overrideSimdSupport="auto";this.workerCommandId=1;this.workerTasks=new Map;this.workerListeners=[];var r,a;this.libraryLocation=e.libraryLocation,this.isPreloadEngine=(r=e.preloadEngine)!=null?r:!1,this.workerMessageListener=this.onWorkerMessage.bind(this),this.dataCaptureWorker.addEventListener("message",this.workerMessageListener),this.overrideThreadsSupport=e.overrideThreadsSupport,this.overrideSimdSupport=e.overrideSimdSupport,this.verifyResponseHash=e.verifyResponseHash,this.highEndBlurryRecognition=(a=e.highEndBlurryRecognition)!=null?a:!1,typeof e.loadProgressNotifier=="function"&&this.addWorkerListener(o=>{var i;o.type==="loadLibraryProgress"&&((i=e.loadProgressNotifier)==null||i.call(e,o.payload));});}get dataCaptureWorker(){return (this._dataCaptureWorker)!=null||(this._dataCaptureWorker=(void 0)),this._dataCaptureWorker}get name(){return "CoreLoader"}get fixedWasmMemory(){return null}static async create(e){var a$1;let r=new this(e);return await r.workerCommand("setLogLevel",{level:(a$1=e.logLevel)!=null?a$1:a.Level.Debug}),await r.load(),r}async load(){var e;try{await this.workerCommand("loadLibrary",{libraryLocation:this.libraryLocation,locationPath:window.location.pathname,referredOrigin:window.location.origin,preloadEngine:this.isPreloadEngine,writableDataPathOverride:(e=localStorage.getItem("scanditWritableDataPathOverride"))!=null?e:void 0,overrideThreadsSupport:this.overrideThreadsSupport,overrideSimdSupport:this.overrideSimdSupport,verifyResponseHash:this.verifyResponseHash,fixedWasmMemory:this.fixedWasmMemory});}catch(r){if(r!=null&&typeof r=="object"&&typeof r.error=="string"&&r.error.includes("BlockedIndexedDB"))return await this.terminateDataCaptureWorker(!1),this.dataCaptureWorker.addEventListener("message",this.workerMessageListener),localStorage.setItem("scanditWritableDataPathOverride",`/scandit_sync_folder_${[...crypto.getRandomValues(new Uint32Array(2))].map(a=>a.toString(32)).join("")}`),this.load();throw r}}async workerCommand(e,r,a){return new Promise((o,i)=>{let t=this.workerCommandId++;this.workerTasks.set(t,{resolve:o,reject:i,command:e});let d={...r,command:e,id:t};this.dataCaptureWorker.postMessage(d,a);})}async terminateDataCaptureWorker(e=!0){var r,a;e&&await this.workerCommand("dispose",{}),(r=this._dataCaptureWorker)==null||r.removeEventListener("message",this.workerMessageListener),(a=this._dataCaptureWorker)==null||a.terminate(),this._dataCaptureWorker=void 0;}addWorkerListener(e){this.workerListeners.push(e);}removeWorkerListener(e){this.workerListeners.includes(e)&&this.workerListeners.splice(this.workerListeners.indexOf(e),1);}getOptions(){return {libraryLocation:this.libraryLocation,overrideThreadsSupport:this.overrideThreadsSupport,overrideSimdSupport:this.overrideSimdSupport,verifyResponseHash:this.verifyResponseHash}}onWorkerMessage(e){let r=e.data;if(r.type==="workerTaskId"&&typeof r.id=="number"){let{id:a,error:o,payload:i}=r,t=this.workerTasks.get(a);o==null?t==null||t.resolve(i):t==null||t.reject(r),this.workerTasks.delete(a);}else for(let a of this.workerListeners)a(r);}};
|
|
4
|
-
|
|
5
|
-
export { n as a };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { b as b$1 } from './chunk-TBCW7RDM.js';
|
|
2
|
-
import { a as a$7 } from './chunk-6OQQP3SM.js';
|
|
3
|
-
import { b, a as a$6 } from './chunk-5S537AFM.js';
|
|
4
|
-
import { a as a$5 } from './chunk-3A4KLILV.js';
|
|
5
|
-
import { a as a$3 } from './chunk-U6BTTEV6.js';
|
|
6
|
-
import { a as a$1 } from './chunk-EV4OEANA.js';
|
|
7
|
-
import { a as a$4 } from './chunk-GE4CBD4E.js';
|
|
8
|
-
import { a as a$2 } from './chunk-R6E4CT22.js';
|
|
9
|
-
|
|
10
|
-
var o="--view-finder-top",a="--view-finder-bottom",s="--hint-anchor-offset",H="--max-width-fraction",T="--horizontal-margin",d="--max-width-ratio-adjust",w=(c=>(c.Update="hintpresenterupdate",c))(w||{}),n=class n extends a$1{constructor(){super();this.onDidToastHideHandler=this.onDidToastHide.bind(this);this.orientationObserver=new b;this.onOrientationChangeHandler=a$2(this.onOrientationChange.bind(this),10);let t=this.attachShadow({mode:"open"});t.innerHTML=a$3`
|
|
11
|
-
<div id="root">
|
|
12
|
-
<slot></slot>
|
|
13
|
-
</div>
|
|
14
|
-
`,t.append(n.createStyleElement().cloneNode(!0)),this.root=t.querySelector("#root");}static createStyleElement(){return a$4`:host{pointer-events:none}:host #root{bottom:env(safe-area-inset-bottom,5vh);left:env(safe-area-inset-left,0);position:absolute;right:env(safe-area-inset-right,0);top:env(safe-area-inset-top,5vh);width:100%;${o}:0;${a}:0;${d}:1;z-index:1}::slotted(${b$1.tag}){left:50%;max-width:calc(var(${H})*var(${d})*100% - var(${T}));position:absolute;transform:translate3d(-50%,0,0);width:100%}::slotted(${b$1.tag}.${"aboveViewFinder"}){transform:translate3d(-50%,calc(-100% + var(${o}) - var(${s})),0)}::slotted(${b$1.tag}.${"belowViewFinder"}){transform:translate3d(-50%,calc(var(${a}) + var(${s})),0)}::slotted(${b$1.tag}.${"top"}){top:calc(var(${s}))}::slotted(${b$1.tag}.fitToText){width:fit-content}`}static register(){a$5({[n.tag]:n});}static create(){return document.createElement(n.tag)}connectedCallback(){this.orientationObserver.addEventListener(a$6,this.onOrientationChangeHandler),this.orientationObserver.register(),this.addEventListener("didhide",this.onDidToastHideHandler),this._viewFinderRect==null&&(this.root.style.setProperty(o,`${this.root.clientHeight/2}px`),this.root.style.setProperty(a,`${this.root.clientHeight/2+1}px`));}disconnectedCallback(){this.removeEventListener("didhide",this.onDidToastHideHandler);}setViewFinderRect(t){if(t===null){this.root.style.removeProperty(o),this.root.style.removeProperty(a);return}this._viewFinderRect=t;let{origin:{y:i},size:{height:e}}=this._viewFinderRect;this.root.style.setProperty(o,`${i}px`),this.root.style.setProperty(a,`${i+e}px`);}handleMessage(t){let{type:i}=t;switch(i){case"showToast":{this.showToast(t.payload);break}case"hideToast":{this.hideToast(t.payload);break}case"showGuidance":{this.showGuidance(t.payload);break}case"hideGuidance":{this.hideGuidance(t.payload);break}case"startUpdateTimer":{this.startUpdateTimer(t.payload.duration.value);break}case"stopUpdateTimer":{this.stopUpdateTimer();break}}}onDidToastHide(t){t.stopPropagation(),t.detail.target.remove();}async showToast(t){let i=this.idFromHint(t),e=this.querySelector(`#${i}`);if(e||(e=b$1.create(),e.id=i,this.append(e)),e.textContent=t.text,e.hintStyle=t.hintStyle,e.className="",e.style.setProperty(s,`${e.hintStyle.hintAnchorOffset/16}rem`),e.style.setProperty(H,t.hintStyle.maxWidthFraction.toString()),e.style.setProperty(T,`${t.hintStyle.horizontalMargin/16}rem`),e.classList.add(t.hintStyle.hintAnchor),e.classList.toggle("fitToText",t.hintStyle.fitToText),t.tag==="MoveCloserGuidance"){let h=a$7.create();h.setAttribute("slot","first-child"),e.append(h),e.setAttribute("direction","column");}return e.show()}async hideToast(t){let i=this.querySelector(`#${this.idFromHint(t)}`);if(i!=null)return i.hide()}async showGuidance(t){return this.showToast(t)}async hideGuidance(t){return this.hideToast(t)}startUpdateTimer(t){this.intervalId=setInterval(()=>{this.dispatchEvent(new CustomEvent("hintpresenterupdate"));},t);}stopUpdateTimer(){clearInterval(this.intervalId);}idFromHint(t){var i;return btoa([t.hintStyle.textColor,t.hintStyle.backgroundColor,t.hintStyle.hintAnchor,(i=t.tag)!=null?i:"",t.hintStyle.textAlignment].join("-")).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}onOrientationChange(t){let i=1;i=t.detail.value==="landscapeLeft"||t.detail.value==="landscapeRight"?window.innerHeight/window.innerWidth:1,this.root.style.setProperty(d,i.toString()),this._viewFinderRect==null&&(this.root.style.setProperty(o,`${this.root.clientHeight/2}px`),this.root.style.setProperty(a,`${this.root.clientHeight/2+1}px`));}};n.tag="scandit-hints";var l=n;l.register();
|
|
15
|
-
|
|
16
|
-
export { w as a, l as b };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-MU4VAJIM.js';
|
|
2
|
-
import { d } from './chunk-UPUPKPEP.js';
|
|
3
|
-
|
|
4
|
-
var n=class e{constructor(t,o=d.Feedback.defaultVibrationPattern){this.type=t,this.pattern=o;let r=a.getSupportedVibrationMethod();r&&(this._vibrate=r.bind(navigator));}static get defaultVibration(){return new e("default")}static withPattern(t){return new e("default",t)}toJSONObject(){return {type:this.type}}vibrate(){var t;return (t=this._vibrate)==null?void 0:t.call(this,this.pattern)}};
|
|
5
|
-
|
|
6
|
-
export { n as a };
|