@scandit/web-datacapture-core 8.4.0 → 8.5.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/THIRD_PARTY.txt +2 -28
- package/build/electron/constants-D5Av3xIA.js +1 -0
- package/build/electron/constants-Tq_qHFkh.cjs +1 -0
- package/build/electron/main.cjs +1 -1
- package/build/electron/main.d.cts +12 -21
- package/build/electron/main.d.ts +12 -21
- package/build/electron/main.js +1 -1
- package/build/electron/preload.cjs +1 -1
- package/build/electron/preload.d.cts +4 -4
- package/build/electron/preload.d.ts +4 -4
- package/build/electron/preload.js +1 -1
- package/build/js/AdditionalLayerPosition-D_ouQ8wn.d.ts +7 -0
- package/build/js/AimerViewfinder-bCf_UrQu.d.ts +15 -0
- package/build/js/AimerViewfinder.d.ts +2 -22
- package/build/js/AimerViewfinder.js +1 -1
- package/build/js/Anchor-DxO9CbHk.d.ts +14 -0
- package/build/js/AnchorPositions-4M8lB28_.d.ts +42 -0
- package/build/js/AsyncStateMachine-gK_htWdT.d.ts +49 -0
- package/build/js/AudioCache-D893YEVZ.d.ts +37 -0
- package/build/js/BatteryInterface-BYl36ktu.d.ts +81 -0
- package/build/js/Brush-D6WUoW36.d.ts +32 -0
- package/build/js/Brush.d.ts +2 -32
- package/build/js/Brush.js +1 -1
- package/build/js/Camera-C7TNwqRo.d.ts +413 -0
- package/build/js/Camera.d.ts +2 -7
- package/build/js/Camera.js +1 -1
- package/build/js/CameraManager-DskA2C7T.js +35 -0
- package/build/js/CameraRelated.d.ts +2 -7
- package/build/js/CameraRelated.js +1 -1
- package/build/js/CavansDrawerAbstract-E_URl3X1.d.ts +37 -0
- package/build/js/Color-qNIvVO9c.d.ts +28 -0
- package/build/js/ColorType-Dj3_-sLJ.d.ts +7 -0
- package/build/js/CustomLocationsView-BmILmaYk.d.ts +59 -0
- package/build/js/DataCaptureContext-CYDrBO6_.d.ts +2017 -0
- package/build/js/DataCaptureContext-CbQes_57.js +6 -0
- package/build/js/DataCaptureContext.d.ts +2 -39
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +2 -39
- package/build/js/DataCaptureContextRelated.js +1 -1
- package/build/js/DataCaptureContextSettings-jR9ArFal.d.ts +13 -0
- package/build/js/DataCaptureContextSettings.d.ts +2 -13
- package/build/js/DataCaptureContextSettings.js +1 -1
- package/build/js/DataCaptureError-fm19xgXy.d.ts +13 -0
- package/build/js/DataCaptureError.d.ts +2 -13
- package/build/js/DataCaptureError.js +1 -1
- package/build/js/DataCaptureVersion-CoBugUHX.d.ts +6 -0
- package/build/js/DataCaptureVersion.d.ts +2 -6
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +2 -39
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/DataCaptureViewPlusRelated-DcAi6mWY.d.ts +50 -0
- package/build/js/DataCaptureViewPlusRelated.d.ts +2 -3
- package/build/js/DataCaptureViewPlusRelated.js +1 -1
- package/build/js/DefaultViewClassnames.d.ts +13 -13
- package/build/js/DefaultViewClassnames.js +1 -1
- package/build/js/Direction-Cii3d0QY.d.ts +12 -0
- package/build/js/DrawCommandBuffer-TbNqWVhj.d.ts +44 -0
- package/build/js/EventManager-Cr57hTzG.d.ts +9 -0
- package/build/js/Feedback-D4kA2xWA.d.ts +21 -0
- package/build/js/Feedback.d.ts +2 -21
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +2 -39
- package/build/js/FrameData.js +1 -1
- package/build/js/HtmlElementState-BeRz5m6o.d.ts +35 -0
- package/build/js/ImageFrameSource-YH6FmhqZ.d.ts +43 -0
- package/build/js/ImageFrameSource.d.ts +2 -47
- package/build/js/ImageFrameSource.js +1 -1
- package/build/js/JSONType-BJv7BUtr.d.ts +6 -0
- package/build/js/LaserlineViewfinder-Dkc264QQ.d.ts +17 -0
- package/build/js/LaserlineViewfinder.d.ts +2 -23
- package/build/js/LaserlineViewfinder.js +1 -1
- package/build/js/LoadingStatus-0KzcUFiY.d.ts +23 -0
- package/build/js/LoadingStatus.d.ts +2 -23
- package/build/js/LoadingStatus.js +1 -1
- package/build/js/Localization-LoX2FWJO.d.ts +44 -0
- package/build/js/Localization.d.ts +2 -44
- package/build/js/Localization.js +1 -1
- package/build/js/LocationSelection-BXqyUc16.d.ts +41 -0
- package/build/js/LocationSelection.d.ts +2 -44
- package/build/js/LocationSelection.js +1 -1
- package/build/js/MarginsWithUnit-BHhnV4t0.d.ts +38 -0
- package/build/js/MeasureUnit-D14sZoRp.d.ts +7 -0
- package/build/js/NotificationBuilder-B3uY_ZbG.d.ts +23 -0
- package/build/js/NotificationConfiguration-C-1Vhrpo.d.ts +22 -0
- package/build/js/NotificationPresenter/NotificationBuilder.d.ts +2 -25
- package/build/js/NotificationPresenter/NotificationBuilder.js +1 -1
- package/build/js/NotificationPresenter/NotificationConfiguration.d.ts +2 -24
- package/build/js/NotificationPresenter/NotificationConfiguration.js +1 -1
- package/build/js/NotificationPresenter/NotificationPresenter.d.ts +2 -14
- package/build/js/NotificationPresenter/NotificationStyle.d.ts +2 -9
- package/build/js/NotificationPresenter/NotificationStyle.js +1 -1
- package/build/js/NotificationPresenter/index.d.ts +6 -41
- package/build/js/NotificationPresenter/index.js +1 -1
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +2 -48
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.js +1 -1
- package/build/js/NotificationPresenter/private/presets.d.ts +5 -41
- package/build/js/NotificationPresenter/private/presets.js +1 -1
- package/build/js/NotificationPresenter-D0g_arAJ.d.ts +9 -0
- package/build/js/NotificationStyle-COZXqLGO.d.ts +9 -0
- package/build/js/NumberWithUnit-UGwoucuQ.d.ts +19 -0
- package/build/js/OpenSourceSoftwareLicenseInfo-CpjUKTrl.d.ts +8 -0
- package/build/js/Orientation-BNtNH3yS.d.ts +10 -0
- package/build/js/OverrideState-CGTOUAyb.d.ts +8 -0
- package/build/js/Point-CD9Qi9ID.d.ts +20 -0
- package/build/js/PointWithUnit-C_e8HUvk.d.ts +26 -0
- package/build/js/Quadrilateral-DbJ7LU2U.d.ts +25 -0
- package/build/js/Rect-BVo37EKG.d.ts +19 -0
- package/build/js/RectWithUnit-OJ1xPlBN.d.ts +19 -0
- package/build/js/RectangularViewfinder-j93qfYTd.d.ts +36 -0
- package/build/js/RectangularViewfinder.d.ts +2 -40
- package/build/js/RectangularViewfinder.js +1 -1
- package/build/js/ScanditHTMLElement-CrbGsFpn.d.ts +5 -0
- package/build/js/ScanditIcon-FRMSos7x.d.ts +49 -0
- package/build/js/ScanditIcon.d.ts +2 -50
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder-BtnTaVeJ.d.ts +66 -0
- package/build/js/ScanditIconBuilder.d.ts +3 -68
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/Serializable-Dbturs7d.d.ts +9 -0
- package/build/js/SingleImageUploader-CRDpQ9PA.d.ts +43 -0
- package/build/js/SingleImageUploader.d.ts +2 -48
- package/build/js/SingleImageUploader.js +1 -1
- package/build/js/SingleImageUploaderSettings-Y-cG1lpl.d.ts +33 -0
- package/build/js/SingleImageUploaderSettings.d.ts +2 -33
- package/build/js/SingleImageUploaderSettings.js +1 -1
- package/build/js/Size-i8Zhfc5b.d.ts +18 -0
- package/build/js/SizeMode-CkAAaxIg.d.ts +9 -0
- package/build/js/SizeWithAspect-Dg-YCV1Q.d.ts +12 -0
- package/build/js/SizeWithUnit-CNgvxsVj.d.ts +26 -0
- package/build/js/SizeWithUnitAndAspect-BrtiXpsG.d.ts +40 -0
- package/build/js/Sound-ByTzZ3ia.d.ts +21 -0
- package/build/js/Sound.d.ts +2 -21
- package/build/js/Sound.js +1 -1
- package/build/js/SvgIcon-CAR8Tf7x.d.ts +23 -0
- package/build/js/Vibration-B1J9JMda.d.ts +21 -0
- package/build/js/Vibration.d.ts +2 -21
- package/build/js/Vibration.js +1 -1
- package/build/js/View-BvEw8Q1D.d.ts +7 -0
- package/build/js/Viewfinder-DTjfkI0v.d.ts +19 -0
- package/build/js/Viewfinder.d.ts +2 -26
- package/build/js/Viewfinder.js +1 -1
- package/build/js/ViewfinderPlusRelated-CuUarlQb.d.ts +72 -0
- package/build/js/ViewfinderPlusRelated.d.ts +2 -76
- package/build/js/ViewfinderPlusRelated.js +1 -1
- package/build/js/WatermarkStack-CDKo8wBr.d.ts +41 -0
- package/build/js/ZoomGestureListener.d.ts +2 -3
- package/build/js/ZoomListener.d.ts +2 -7
- package/build/js/ZoomSwitchOrientation-Deylpp5l.d.ts +8 -0
- package/build/js/ZoomSwitchOrientation.d.ts +2 -8
- package/build/js/ZoomSwitchOrientation.js +1 -1
- package/build/js/areEqualArrays-BpuDaVrU.d.ts +4 -0
- package/build/js/assets/beepSound.d.ts +3 -3
- package/build/js/assets/beepSound.js +1 -1
- package/build/js/assets/folderImage.d.ts +3 -3
- package/build/js/assets/folderImage.js +1 -1
- package/build/js/assets/scanningByScandit.d.ts +3 -3
- package/build/js/assets/scanningByScandit.js +1 -1
- package/build/js/assets/transparentPixelImage.d.ts +3 -3
- package/build/js/assets/transparentPixelImage.js +1 -1
- package/build/js/browserCompatibility-DD4Tvtlv.d.ts +88 -0
- package/build/js/browserCompatibility.d.ts +2 -88
- package/build/js/browserCompatibility.js +1 -1
- package/build/js/browserHelper-BQPnAZ2Y.js +1 -0
- package/build/js/browserHelper-Dno5no9Z.d.ts +224 -0
- package/build/js/browserHelper.d.ts +2 -224
- package/build/js/browserHelper.js +1 -1
- package/build/js/clamp-B71RA4rG.d.ts +4 -0
- package/build/js/common-BisNSU4o.d.ts +25 -0
- package/build/js/commons/Anchor.d.ts +2 -14
- package/build/js/commons/Anchor.js +1 -1
- package/build/js/commons/Color.d.ts +2 -28
- package/build/js/commons/Color.js +1 -1
- package/build/js/commons/Direction.d.ts +2 -12
- package/build/js/commons/Direction.js +1 -1
- package/build/js/commons/JSONType.d.ts +2 -6
- package/build/js/commons/MarginsWithUnit.d.ts +2 -39
- package/build/js/commons/MarginsWithUnit.js +1 -1
- package/build/js/commons/MeasureUnit.d.ts +2 -7
- package/build/js/commons/MeasureUnit.js +1 -1
- package/build/js/commons/NumberWithUnit.d.ts +2 -19
- package/build/js/commons/NumberWithUnit.js +1 -1
- package/build/js/commons/Orientation.d.ts +2 -10
- package/build/js/commons/Orientation.js +1 -1
- package/build/js/commons/Point.d.ts +2 -20
- package/build/js/commons/Point.js +1 -1
- package/build/js/commons/PointWithUnit.d.ts +2 -27
- package/build/js/commons/PointWithUnit.js +1 -1
- package/build/js/commons/Quadrilateral.d.ts +2 -25
- package/build/js/commons/Quadrilateral.js +1 -1
- package/build/js/commons/Rect.d.ts +2 -19
- package/build/js/commons/Rect.js +1 -1
- package/build/js/commons/RectWithUnit.d.ts +2 -21
- package/build/js/commons/RectWithUnit.js +1 -1
- package/build/js/commons/Size.d.ts +2 -18
- package/build/js/commons/Size.js +1 -1
- package/build/js/commons/SizeMode.d.ts +2 -9
- package/build/js/commons/SizeMode.js +1 -1
- package/build/js/commons/SizeWithAspect.d.ts +2 -14
- package/build/js/commons/SizeWithAspect.js +1 -1
- package/build/js/commons/SizeWithUnit.d.ts +2 -27
- package/build/js/commons/SizeWithUnit.js +1 -1
- package/build/js/commons/SizeWithUnitAndAspect.d.ts +2 -42
- package/build/js/commons/SizeWithUnitAndAspect.js +1 -1
- package/build/js/controls/CameraFOVSwitchControl.d.ts +2 -76
- package/build/js/controls/CameraFOVSwitchControl.js +1 -1
- package/build/js/controls/CameraSwitchControl.d.ts +2 -66
- package/build/js/controls/CameraSwitchControl.js +1 -1
- package/build/js/controls/TorchSwitchControl.d.ts +2 -67
- package/build/js/controls/TorchSwitchControl.js +1 -1
- package/build/js/controls/ZoomSwitchControl.d.ts +2 -97
- package/build/js/controls/ZoomSwitchControl.js +1 -1
- package/build/js/controls/common.d.ts +2 -39
- package/build/js/controls/index.d.ts +2 -44
- package/build/js/controls/index.js +1 -1
- package/build/js/css-DUhStyMA.d.ts +4 -0
- package/build/js/debounce-B1bV6NXR.d.ts +4 -0
- package/build/js/defaults/DefaultsBrush.d.ts +4 -6
- package/build/js/defaults/DefaultsBrush.js +1 -1
- package/build/js/defaults/DefaultsCamera.d.ts +13 -51
- package/build/js/defaults/DefaultsCamera.js +1 -1
- package/build/js/defaults/DefaultsCameraSettings.d.ts +9 -14
- package/build/js/defaults/DefaultsCameraSettings.js +1 -1
- package/build/js/defaults/DefaultsDataCaptureView.d.ts +15 -18
- package/build/js/defaults/DefaultsDataCaptureView.js +1 -1
- package/build/js/defaults/DefaultsDeserializers.d.ts +6 -7
- package/build/js/defaults/DefaultsDeserializers.js +1 -1
- package/build/js/defaults/DefaultsFeedback.d.ts +4 -4
- package/build/js/defaults/DefaultsFeedback.js +1 -1
- package/build/js/defaults/DefaultsSingleImageUploader.d.ts +13 -13
- package/build/js/defaults/DefaultsSingleImageUploader.js +1 -1
- package/build/js/defaults/DefaultsViewfinders.d.ts +36 -41
- package/build/js/defaults/DefaultsViewfinders.js +1 -1
- package/build/js/deferred-BAgaHYOv.d.ts +9 -0
- package/build/js/defineCustomElements-D-wGrRhB.d.ts +4 -0
- package/build/js/domIdFromValues-i9GfVUED.d.ts +18 -0
- package/build/js/fromEntries-ByUS4mw-.d.ts +14 -0
- package/build/js/{global.d.d.ts → global.d.ts} +8 -11
- package/build/js/html-D92h5xTe.d.ts +60 -0
- package/build/js/hybridDesktopPlatformHelpers-DPAJQLcX.js +1 -0
- package/build/js/index-CBqIEC2q.d.ts +1 -0
- package/build/js/index-Cpl5B5iN.d.ts +58 -0
- package/build/js/index-PiddVj70.d.ts +9769 -0
- package/build/js/index.d.ts +57 -78
- package/build/js/index.js +1 -1
- package/build/js/isObject-DqOU8mxL.d.ts +4 -0
- package/build/js/isWorkerScope-CBqhEpK_.d.ts +4 -0
- package/build/js/license/OpenSourceSoftwareLicenseInfo.d.ts +2 -8
- package/build/js/license/OpenSourceSoftwareLicenseInfo.js +1 -1
- package/build/js/logger-D9wplwND.d.ts +30 -0
- package/build/js/logger.d.ts +2 -30
- package/build/js/logger.js +1 -1
- package/build/js/moduleLoader.d.ts +2 -39
- package/build/js/multithreadSimdHelper-BrYdWJgw.js +1 -0
- package/build/js/nativeHandle-DlljYL22.d.ts +4 -0
- package/build/js/private/AdditionalLayerPosition.d.ts +2 -6
- package/build/js/private/AdditionalLayerPosition.js +1 -1
- package/build/js/private/AnchorPositions.d.ts +2 -42
- package/build/js/private/AnchorPositions.js +1 -1
- package/build/js/private/BatteryInterface.d.ts +2 -81
- package/build/js/private/BatteryInterface.js +1 -1
- package/build/js/private/CameraAccess.d.ts +2 -7
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +2 -39
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CameraPool.d.ts +76 -114
- package/build/js/private/CameraPool.js +1 -1
- package/build/js/private/CanvasDrawer.d.ts +30 -31
- package/build/js/private/CanvasDrawer.js +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +27 -66
- package/build/js/private/CanvasDrawerWithMetrics.js +1 -1
- package/build/js/private/CavansDrawerAbstract.d.ts +2 -37
- package/build/js/private/CavansDrawerAbstract.js +1 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +13 -49
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/CustomLocationsView.d.ts +2 -64
- package/build/js/private/CustomLocationsView.js +1 -1
- package/build/js/private/CustomLocationsViewStyles.d.ts +4 -4
- package/build/js/private/CustomLocationsViewStyles.js +17 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +7 -44
- package/build/js/private/DrawCommandBuffer.d.ts +2 -44
- package/build/js/private/DrawCommandBuffer.js +1 -1
- package/build/js/private/EventManager.d.ts +2 -9
- package/build/js/private/EventManager.js +1 -1
- package/build/js/private/FrameReaders/ColorType.d.ts +2 -7
- package/build/js/private/FrameReaders/ColorType.js +1 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +2 -54
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +2 -69
- package/build/js/private/FrameReaders/FrameReaderAbstract.js +1 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +2 -74
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/WatermarkStack.d.ts +2 -41
- package/build/js/private/FrameReaders/WatermarkStack.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +3 -43
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/FrameReaders/webglUtilities.d.ts +3 -3
- package/build/js/private/FrameReaders/webglUtilities.js +1 -1
- package/build/js/private/GestureRecognizer/GestureRecognizer.d.ts +65 -66
- package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
- package/build/js/private/GestureRecognizer/PointerEventsDetector.d.ts +11 -15
- package/build/js/private/GestureRecognizer/PointerEventsDetector.js +1 -1
- package/build/js/private/GestureRecognizer/index.d.ts +2 -5
- package/build/js/private/GestureRecognizer/index.js +1 -1
- package/build/js/private/Helper.d.ts +7 -7
- package/build/js/private/Helper.js +1 -1
- package/build/js/private/HtmlElementState.d.ts +2 -37
- package/build/js/private/HtmlElementState.js +1 -1
- package/build/js/private/ImageConverterBase.d.ts +40 -40
- package/build/js/private/ImageConverterBase.js +1 -1
- package/build/js/private/ImageConverterMainThread.d.ts +6 -7
- package/build/js/private/ImageConverterMainThread.js +1 -1
- package/build/js/private/ModuleLicenseTextProvider.d.ts +4 -4
- package/build/js/private/NormalizedModuleLoaderOptions.d.ts +10 -46
- package/build/js/private/OrientationObserver.d.ts +26 -26
- package/build/js/private/OrientationObserver.js +1 -1
- package/build/js/private/Serializable.d.ts +2 -9
- package/build/js/private/SingleImageUploaderView.d.ts +52 -89
- package/build/js/private/SingleImageUploaderView.js +1 -1
- package/build/js/private/SingleImageUploaderViewStyles.d.ts +23 -23
- package/build/js/private/SingleImageUploaderViewStyles.js +31 -1
- package/build/js/private/View.d.ts +2 -7
- package/build/js/private/ViewClassNames.d.ts +13 -13
- package/build/js/private/ViewClassNames.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +82 -121
- package/build/js/private/ViewControls_related.js +1 -0
- package/build/js/private/ViewStyles.d.ts +3 -3
- package/build/js/private/ViewStyles.js +1 -1
- package/build/js/private/ViewsRegistry.d.ts +4 -41
- package/build/js/private/ViewsRegistry.js +1 -1
- package/build/js/private/customHowler/AudioCache.d.ts +2 -37
- package/build/js/private/customHowler/AudioCache.js +1 -1
- package/build/js/private/customHowler/Howl.d.ts +141 -141
- package/build/js/private/customHowler/Howl.js +1 -1
- package/build/js/private/customHowler/HowlRegistry.d.ts +3 -3
- package/build/js/private/customHowler/HowlRegistry.js +1 -1
- package/build/js/private/customHowler/Html5Sound.d.ts +45 -45
- package/build/js/private/customHowler/Html5Sound.js +1 -1
- package/build/js/private/customHowler/UnlockManager.d.ts +32 -32
- package/build/js/private/customHowler/UnlockManager.js +1 -1
- package/build/js/private/customHowler/WebAudioContextManager.d.ts +127 -127
- package/build/js/private/customHowler/WebAudioContextManager.js +1 -1
- package/build/js/private/customHowler/debug.d.ts +3 -3
- package/build/js/private/customHowler/debug.js +1 -1
- package/build/js/private/customHowler/index.d.ts +2 -2
- package/build/js/private/customHowler/index.js +1 -1
- package/build/js/private/customHowler/setup.d.ts +4 -5
- package/build/js/private/customHowler/setup.js +1 -1
- package/build/js/private/djinni-types/index.d.ts +2 -57
- package/build/js/private/djinni-types/index.js +1 -1
- package/build/js/private/hybridDesktopPlatformHelpers.d.ts +5 -5
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/multithreadSimdHelper.d.ts +3 -3
- package/build/js/private/multithreadSimdHelper.js +1 -1
- package/build/js/private/nativeHandle.d.ts +2 -4
- package/build/js/private/nativeHandle.js +1 -1
- package/build/js/private/privateAccess.d.ts +2 -8
- package/build/js/private/privateAccess.js +1 -1
- package/build/js/private/ui/atoms/AimerSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ArrowsUp.d.ts +13 -13
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/Backdrop.d.ts +29 -23
- package/build/js/private/ui/atoms/Backdrop.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.d.ts +21 -22
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.d.ts +49 -51
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/CheckSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/CrossSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/DeleteSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/DeleteSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Dot5xSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/KeyboardSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/LowStockSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/OnexSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PauseSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/PauseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PrinterSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/ProgressBar.d.ts +22 -22
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RestartSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ScanSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ScanSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.d.ts +34 -34
- package/build/js/private/ui/atoms/ShutterButton.js +1 -1
- package/build/js/private/ui/atoms/SlashSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/SlashSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarFilledSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -2
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/SvgIcon.d.ts +2 -23
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +41 -76
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TorchOffSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/TorchOffSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TorchOnSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/TorchOnSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/WrongItemSvgIcon.d.ts +11 -12
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
- package/build/js/private/ui/colors.d.ts +4 -5
- package/build/js/private/ui/colors.js +1 -1
- package/build/js/private/ui/molecules/ButtonEvents.d.ts +18 -18
- package/build/js/private/ui/molecules/ButtonEvents.js +1 -1
- package/build/js/private/ui/molecules/CameraFOVSwitchButton.d.ts +54 -57
- package/build/js/private/ui/molecules/CameraFOVSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/CameraSwitchButton.d.ts +47 -50
- package/build/js/private/ui/molecules/CameraSwitchButton.js +1 -1
- package/build/js/private/ui/molecules/ControlsLayout.d.ts +12 -12
- package/build/js/private/ui/molecules/ControlsLayout.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +2 -39
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.d.ts +20 -20
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/ui/molecules/TorchSwitchIconButton.d.ts +54 -60
- package/build/js/private/ui/molecules/TorchSwitchIconButton.js +1 -1
- package/build/js/private/ui/molecules/ZoomSwitchPill.d.ts +62 -65
- package/build/js/private/ui/molecules/ZoomSwitchPill.js +1 -1
- package/build/js/private/unsupportedBrowserError.d.ts +7 -7
- package/build/js/private/unsupportedBrowserError.js +1 -1
- package/build/js/private/utils/AnimationSimplePolyfill.d.ts +54 -54
- package/build/js/private/utils/AnimationSimplePolyfill.js +1 -1
- package/build/js/private/utils/AsyncStateMachine.d.ts +2 -49
- package/build/js/private/utils/AsyncStateMachine.js +1 -1
- package/build/js/private/utils/ScanditHTMLElement.d.ts +2 -6
- package/build/js/private/utils/ScanditHTMLElement.js +1 -1
- package/build/js/private/utils/areEqualArrays.d.ts +2 -4
- package/build/js/private/utils/areEqualArrays.js +1 -1
- package/build/js/private/utils/clamp.d.ts +2 -4
- package/build/js/private/utils/clamp.js +1 -1
- package/build/js/private/utils/cookieStore.d.ts +3 -3
- package/build/js/private/utils/cookieStore.js +1 -1
- package/build/js/private/utils/cookieStorePolyfill.d.ts +16 -16
- package/build/js/private/utils/cookieStorePolyfill.js +1 -1
- package/build/js/private/utils/css.d.ts +2 -4
- package/build/js/private/utils/css.js +1 -1
- package/build/js/private/utils/debounce.d.ts +2 -4
- package/build/js/private/utils/debounce.js +1 -1
- package/build/js/private/utils/deferred.d.ts +2 -9
- package/build/js/private/utils/deferred.js +1 -1
- package/build/js/private/utils/defineCustomElements.d.ts +2 -4
- package/build/js/private/utils/defineCustomElements.js +1 -1
- package/build/js/private/utils/domIdFromValues.d.ts +2 -18
- package/build/js/private/utils/domIdFromValues.js +1 -1
- package/build/js/private/utils/finalizationRegistryPolyfill.d.ts +3 -3
- package/build/js/private/utils/finalizationRegistryPolyfill.js +1 -1
- package/build/js/private/utils/fromEntries.d.ts +2 -14
- package/build/js/private/utils/fromEntries.js +1 -1
- package/build/js/private/utils/fromGrayScaleToRgba.d.ts +3 -3
- package/build/js/private/utils/fromGrayScaleToRgba.js +1 -1
- package/build/js/private/utils/getTimestamp.d.ts +3 -3
- package/build/js/private/utils/getTimestamp.js +1 -1
- package/build/js/private/utils/globalThisPolyfill.d.ts +3 -3
- package/build/js/private/utils/globalThisPolyfill.js +1 -1
- package/build/js/private/utils/html.d.ts +2 -60
- package/build/js/private/utils/html.js +1 -1
- package/build/js/private/utils/index.d.ts +21 -21
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/isObject.d.ts +2 -4
- package/build/js/private/utils/isObject.js +1 -1
- package/build/js/private/utils/isPointerTouchEvent.d.ts +3 -3
- package/build/js/private/utils/isPointerTouchEvent.js +1 -1
- package/build/js/private/utils/isWorkerScope.d.ts +2 -4
- package/build/js/private/utils/isWorkerScope.js +1 -1
- package/build/js/private/utils/polyfillLoader.d.ts +11 -11
- package/build/js/private/utils/polyfillLoader.js +1 -1
- package/build/js/private/utils/quadrilateralUtils.d.ts +4 -6
- package/build/js/private/utils/quadrilateralUtils.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +7 -43
- package/build/js/private/utils/replaceImagesInViewUtils.js +1 -1
- package/build/js/private/utils/safeCancelAnimation.d.ts +2 -53
- package/build/js/private/utils/safeCancelAnimation.js +1 -1
- package/build/js/private/utils/safeRequestAnimationFrame.d.ts +2 -23
- package/build/js/private/utils/safeRequestAnimationFrame.js +1 -1
- package/build/js/private/utils/safeStorage.d.ts +17 -17
- package/build/js/private/utils/safeStorage.js +1 -1
- package/build/js/private/utils/structuredClonePolyfill.d.ts +3 -3
- package/build/js/private/utils/structuredClonePolyfill.js +1 -1
- package/build/js/private/utils/throttle.d.ts +2 -4
- package/build/js/private/utils/throttle.js +1 -1
- package/build/js/private/utils/timeout.d.ts +2 -14
- package/build/js/private/utils/timeout.js +1 -1
- package/build/js/private/utils/unknownErrorToString.d.ts +2 -4
- package/build/js/private/utils/unknownErrorToString.js +1 -1
- package/build/js/private/utils/wait.d.ts +2 -4
- package/build/js/private/utils/wait.js +1 -1
- package/build/js/private/utils/waitTransitionEndForElement.d.ts +2 -4
- package/build/js/private/utils/waitTransitionEndForElement.js +1 -1
- package/build/js/private/utils/warnMultithreadingUnavailable.d.ts +3 -3
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -2
- package/build/js/privateAccess-Cy_yPta4.d.ts +8 -0
- package/build/js/safeCancelAnimation-C9SG0625.d.ts +53 -0
- package/build/js/safeRequestAnimationFrame-CrVl8FPa.d.ts +23 -0
- package/build/js/throttle-ICpoGeaZ.d.ts +4 -0
- package/build/js/timeout-CHMzurwd.d.ts +14 -0
- package/build/js/translations-Bqx7KLdt.d.ts +12 -0
- package/build/js/translations.d.ts +2 -12
- package/build/js/translations.js +1 -1
- package/build/js/tsHelper-N1CSjsuN.d.ts +18 -0
- package/build/js/tsHelper.d.ts +2 -26
- package/build/js/tsHelper.js +1 -1
- package/build/js/unknownErrorToString-BGDQCTvQ.d.ts +4 -0
- package/build/js/wait-CRu1G76q.d.ts +4 -0
- package/build/js/waitTransitionEndForElement-BrVosj17.d.ts +4 -0
- package/build/js/worker/ImageConverterForwarder.d.ts +21 -57
- package/build/js/worker/ImageConverterForwarder.js +1 -1
- package/build/js/worker/ImageConverterWorker.d.ts +6 -7
- package/build/js/worker/ImageConverterWorker.js +1 -1
- package/build/js/worker/OverrideState.d.ts +2 -8
- package/build/js/worker/OverrideState.js +1 -1
- package/build/js/worker/ViewInfoHelper.d.ts +9 -46
- package/build/js/worker/ViewInfoHelper.js +1 -1
- package/build/js/worker/WorkerMain.d.ts +2 -63
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +2 -39
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +2 -39
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -39
- package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
- package/build/js/worker/helper.d.ts +22 -13
- package/build/js/worker/helper.js +1 -1
- package/build/js/worker/helperFetch.d.ts +36 -22
- package/build/js/worker/helperFetch.js +1 -1
- package/build/js/worker/helperFs.d.ts +5 -5
- package/build/js/worker/helperFs.js +1 -1
- package/build/js/worker/importWasmScript.d.ts +3 -3
- package/build/js/worker/importWasmScript.js +1 -1
- package/build/js/worker/index.d.ts +2 -40
- package/build/js/worker/index.js +1 -1
- package/package.json +21 -11
- package/build/electron/chunk-6RVAZ75N.js +0 -1
- package/build/electron/common.cjs +0 -1
- package/build/electron/common.js +0 -0
- package/build/electron/constants.cjs +0 -1
- package/build/electron/constants.js +0 -1
- package/build/js/Camera-HgH6fwnW.d.ts +0 -410
- package/build/js/DataCaptureContext-Qg40v7QA.d.ts +0 -1740
- package/build/js/DataCaptureViewPlusRelated-BOrDBPHq.d.ts +0 -49
- package/build/js/chunks/chunk-24MGHMOY.js +0 -1
- package/build/js/chunks/chunk-2HTI5D6Y.js +0 -1
- package/build/js/chunks/chunk-2JIATMSD.js +0 -1
- package/build/js/chunks/chunk-2LSO6JEZ.js +0 -1
- package/build/js/chunks/chunk-3A4KLILV.js +0 -1
- package/build/js/chunks/chunk-3A7LM5JG.js +0 -1
- package/build/js/chunks/chunk-3KKUZY2T.js +0 -1
- package/build/js/chunks/chunk-3MKSI2DV.js +0 -1
- package/build/js/chunks/chunk-43GCMDYV.js +0 -1
- package/build/js/chunks/chunk-4BP7D26M.js +0 -1
- package/build/js/chunks/chunk-4F2Q2P2O.js +0 -1
- package/build/js/chunks/chunk-4KLHTKGW.js +0 -1
- package/build/js/chunks/chunk-4LGQ66HW.js +0 -1
- package/build/js/chunks/chunk-4QJAB4PO.js +0 -1
- package/build/js/chunks/chunk-4W2T3TLN.js +0 -1
- package/build/js/chunks/chunk-4WA2PCJE.js +0 -1
- package/build/js/chunks/chunk-4ZMCJXZS.js +0 -1
- package/build/js/chunks/chunk-5LXHD7FZ.js +0 -1
- package/build/js/chunks/chunk-5RCWM6NI.js +0 -1
- package/build/js/chunks/chunk-6AZW5IIG.js +0 -1
- package/build/js/chunks/chunk-6EEMWSEO.js +0 -1
- package/build/js/chunks/chunk-6H6FKGVE.js +0 -1
- package/build/js/chunks/chunk-6V2N4XHI.js +0 -1
- package/build/js/chunks/chunk-6W7FX6LD.js +0 -1
- package/build/js/chunks/chunk-76IGNICM.js +0 -1
- package/build/js/chunks/chunk-7HYFN4JO.js +0 -1
- package/build/js/chunks/chunk-7LTHFX4E.js +0 -1
- package/build/js/chunks/chunk-7OFC24NE.js +0 -1
- package/build/js/chunks/chunk-7SA74NKD.js +0 -0
- package/build/js/chunks/chunk-7SW2PEHB.js +0 -1
- package/build/js/chunks/chunk-AAEQZ45T.js +0 -1
- package/build/js/chunks/chunk-AAPD5YU3.js +0 -1
- package/build/js/chunks/chunk-ACFJP5SR.js +0 -1
- package/build/js/chunks/chunk-AE2LWVIB.js +0 -1
- package/build/js/chunks/chunk-AIC4H5KG.js +0 -2
- package/build/js/chunks/chunk-AIRWHLJH.js +0 -1
- package/build/js/chunks/chunk-ALQOQOAM.js +0 -1
- package/build/js/chunks/chunk-AZWFNBVA.js +0 -1
- package/build/js/chunks/chunk-BA3RP6L2.js +0 -1
- package/build/js/chunks/chunk-BDGRWHLY.js +0 -1
- package/build/js/chunks/chunk-BDLLVGRH.js +0 -1
- package/build/js/chunks/chunk-BZAQMYII.js +0 -1
- package/build/js/chunks/chunk-CAHJ3YOV.js +0 -1
- package/build/js/chunks/chunk-CAUB35PV.js +0 -1
- package/build/js/chunks/chunk-CD2BU66N.js +0 -1
- package/build/js/chunks/chunk-CERFU73N.js +0 -1
- package/build/js/chunks/chunk-CGK5V6XZ.js +0 -1
- package/build/js/chunks/chunk-CRUOVJHW.js +0 -1
- package/build/js/chunks/chunk-CX2R2XQK.js +0 -1
- package/build/js/chunks/chunk-CZI3JAVS.js +0 -35
- package/build/js/chunks/chunk-D222MT4V.js +0 -1
- package/build/js/chunks/chunk-DGDPZ73X.js +0 -1
- package/build/js/chunks/chunk-DGIQ3GF7.js +0 -1
- package/build/js/chunks/chunk-DN32UPQC.js +0 -1
- package/build/js/chunks/chunk-DZE2EYSZ.js +0 -1
- package/build/js/chunks/chunk-E4XJ4GKD.js +0 -1
- package/build/js/chunks/chunk-EMLXDXWN.js +0 -1
- package/build/js/chunks/chunk-ENYHCJGH.js +0 -1
- package/build/js/chunks/chunk-EP3GI7KA.js +0 -1
- package/build/js/chunks/chunk-EQ6V4W5K.js +0 -1
- package/build/js/chunks/chunk-EQRBQJYM.js +0 -1
- package/build/js/chunks/chunk-EV4OEANA.js +0 -1
- package/build/js/chunks/chunk-F2GMW4LP.js +0 -1
- package/build/js/chunks/chunk-FGO2SSRS.js +0 -1
- package/build/js/chunks/chunk-FHUC75ND.js +0 -1
- package/build/js/chunks/chunk-FR24G4R7.js +0 -1
- package/build/js/chunks/chunk-FTD535WI.js +0 -1
- package/build/js/chunks/chunk-G2BRTVN7.js +0 -1
- package/build/js/chunks/chunk-G7ORIX4S.js +0 -1
- package/build/js/chunks/chunk-GHR3BSUQ.js +0 -1
- package/build/js/chunks/chunk-GHTCNOQN.js +0 -1
- package/build/js/chunks/chunk-GPJEB376.js +0 -1
- package/build/js/chunks/chunk-GPPCTFZF.js +0 -1
- package/build/js/chunks/chunk-GPUTPXQM.js +0 -1
- package/build/js/chunks/chunk-GQ7A6533.js +0 -1
- package/build/js/chunks/chunk-GULNUBED.js +0 -1
- package/build/js/chunks/chunk-GVHXM75D.js +0 -1
- package/build/js/chunks/chunk-HBPGHXF2.js +0 -1
- package/build/js/chunks/chunk-I6SWF3FQ.js +0 -1
- package/build/js/chunks/chunk-IASACVTH.js +0 -1
- package/build/js/chunks/chunk-IJQG3OU6.js +0 -1
- package/build/js/chunks/chunk-IMXMNDKM.js +0 -1
- package/build/js/chunks/chunk-J3HHOJE3.js +0 -1
- package/build/js/chunks/chunk-JCKM5IJO.js +0 -0
- package/build/js/chunks/chunk-JFRSUCMO.js +0 -31
- package/build/js/chunks/chunk-JIGCOX5J.js +0 -1
- package/build/js/chunks/chunk-JS3T7K2Z.js +0 -1
- package/build/js/chunks/chunk-KAFNKP6O.js +0 -1
- package/build/js/chunks/chunk-KSCFPJAW.js +0 -1
- package/build/js/chunks/chunk-KXAJHLEO.js +0 -1
- package/build/js/chunks/chunk-KYNYQBNF.js +0 -17
- package/build/js/chunks/chunk-KZEBJGMU.js +0 -6
- package/build/js/chunks/chunk-L2STPTEN.js +0 -1
- package/build/js/chunks/chunk-L66S4DN2.js +0 -1
- package/build/js/chunks/chunk-LA6TM76R.js +0 -1
- package/build/js/chunks/chunk-LFJUGRQV.js +0 -1
- package/build/js/chunks/chunk-LSZZVJ6B.js +0 -1
- package/build/js/chunks/chunk-LV6LGCDC.js +0 -1
- package/build/js/chunks/chunk-LXOZUOZU.js +0 -1
- package/build/js/chunks/chunk-MA3GV76P.js +0 -1
- package/build/js/chunks/chunk-MA6UDVDJ.js +0 -1
- package/build/js/chunks/chunk-MBQZOWWF.js +0 -1
- package/build/js/chunks/chunk-N5YZEC56.js +0 -1
- package/build/js/chunks/chunk-NIKRAADM.js +0 -1
- package/build/js/chunks/chunk-NQF3GUK2.js +0 -1
- package/build/js/chunks/chunk-NVK73TNL.js +0 -1
- package/build/js/chunks/chunk-NYYGU4ZV.js +0 -1
- package/build/js/chunks/chunk-O4HDBWKK.js +0 -1
- package/build/js/chunks/chunk-O7EM4VIM.js +0 -1
- package/build/js/chunks/chunk-O7TZTIHO.js +0 -1
- package/build/js/chunks/chunk-OLUNDJBC.js +0 -1
- package/build/js/chunks/chunk-ORP45GHJ.js +0 -1
- package/build/js/chunks/chunk-OX64CCOP.js +0 -1
- package/build/js/chunks/chunk-Q7JWDX4U.js +0 -1
- package/build/js/chunks/chunk-QBDQQMQ5.js +0 -1
- package/build/js/chunks/chunk-QCRFVRSS.js +0 -1
- package/build/js/chunks/chunk-QCZSSQAQ.js +0 -1
- package/build/js/chunks/chunk-QFSNPY5Y.js +0 -1
- package/build/js/chunks/chunk-QG3MRQMP.js +0 -1
- package/build/js/chunks/chunk-QHBIT2WY.js +0 -1
- package/build/js/chunks/chunk-QIWPWOQG.js +0 -1
- package/build/js/chunks/chunk-QOCHMKNY.js +0 -1
- package/build/js/chunks/chunk-QQEY536Q.js +0 -1
- package/build/js/chunks/chunk-QUWP3ILW.js +0 -1
- package/build/js/chunks/chunk-R6E4CT22.js +0 -1
- package/build/js/chunks/chunk-R6SUMD5F.js +0 -1
- package/build/js/chunks/chunk-RG272MAJ.js +0 -1
- package/build/js/chunks/chunk-RSQRPDVQ.js +0 -1
- package/build/js/chunks/chunk-RXDVYEE5.js +0 -1
- package/build/js/chunks/chunk-RXPPTQAB.js +0 -1
- package/build/js/chunks/chunk-RXT3JWWR.js +0 -1
- package/build/js/chunks/chunk-RZTXUIJ5.js +0 -0
- package/build/js/chunks/chunk-SBC5K7IT.js +0 -1
- package/build/js/chunks/chunk-SEAVQZN6.js +0 -1
- package/build/js/chunks/chunk-SGL5J2CI.js +0 -1
- package/build/js/chunks/chunk-SHM7SU3B.js +0 -1
- package/build/js/chunks/chunk-SJIN27Q5.js +0 -1
- package/build/js/chunks/chunk-SK6L34IF.js +0 -1
- package/build/js/chunks/chunk-SNP4G4KV.js +0 -0
- package/build/js/chunks/chunk-T3AOBMAS.js +0 -1
- package/build/js/chunks/chunk-TKO5JMMS.js +0 -1
- package/build/js/chunks/chunk-TMIZ6Z75.js +0 -1
- package/build/js/chunks/chunk-TPHGDMKG.js +0 -1
- package/build/js/chunks/chunk-TR3NGINC.js +0 -1
- package/build/js/chunks/chunk-TTGJAMI2.js +0 -1
- package/build/js/chunks/chunk-U2WQ3WDE.js +0 -1
- package/build/js/chunks/chunk-U4IMOTYL.js +0 -1
- package/build/js/chunks/chunk-U6MFAGMG.js +0 -1
- package/build/js/chunks/chunk-U7ETOWGJ.js +0 -1
- package/build/js/chunks/chunk-UNO6YIIA.js +0 -1
- package/build/js/chunks/chunk-UWBNF47P.js +0 -1
- package/build/js/chunks/chunk-UWLAKRB2.js +0 -2
- package/build/js/chunks/chunk-UZWBB65W.js +0 -1
- package/build/js/chunks/chunk-V2OKMBZD.js +0 -1
- package/build/js/chunks/chunk-VJB527QZ.js +0 -1
- package/build/js/chunks/chunk-VSROWPI6.js +0 -1
- package/build/js/chunks/chunk-W33RVR5M.js +0 -1
- package/build/js/chunks/chunk-W3X3ZRQZ.js +0 -1
- package/build/js/chunks/chunk-W7VB532D.js +0 -1
- package/build/js/chunks/chunk-WARGMW7Z.js +0 -1
- package/build/js/chunks/chunk-WFKB322J.js +0 -1
- package/build/js/chunks/chunk-WGLHZXRT.js +0 -1
- package/build/js/chunks/chunk-WUHKODFA.js +0 -1
- package/build/js/chunks/chunk-XFQTFQYR.js +0 -1
- package/build/js/chunks/chunk-XR65N6EG.js +0 -1
- package/build/js/chunks/chunk-Y3TODCJD.js +0 -1
- package/build/js/chunks/chunk-Y7BTRVB4.js +0 -2
- package/build/js/chunks/chunk-Y7V35LNT.js +0 -1
- package/build/js/chunks/chunk-Y7ZNLVR2.js +0 -1
- package/build/js/chunks/chunk-YE2GYNRP.js +0 -1
- package/build/js/chunks/chunk-YJNJGCAN.js +0 -1
- package/build/js/chunks/chunk-YONR3EGV.js +0 -2
- package/build/js/chunks/chunk-YOTQPBO6.js +0 -1
- package/build/js/chunks/chunk-YRNH7TIR.js +0 -0
- package/build/js/chunks/chunk-YUZDO2PC.js +0 -1
- package/build/js/chunks/chunk-Z5LRFYGI.js +0 -1
- package/build/js/chunks/chunk-ZAXZRQYF.js +0 -1
- package/build/js/chunks/chunk-ZCF62ALL.js +0 -1
- package/build/js/chunks/chunk-ZKROZLQ4.js +0 -2
- package/build/js/common-4FJYEFaM.d.ts +0 -25
- package/build/js/global.d.js +0 -0
- package/build/js/private/ViewControls+related.js +0 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +0 -46
- package/build/js/worker/coreCapture.inlineWorker.js +0 -1
- package/build/js/worker/inlineWorker.d.d.ts +0 -5
- package/build/js/worker/inlineWorker.d.js +0 -0
|
@@ -0,0 +1,2017 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
import { t as Serializable } from "./Serializable-Dbturs7d.js";
|
|
3
|
+
import { t as nativeHandle } from "./nativeHandle-DlljYL22.js";
|
|
4
|
+
import { C as DeviceCamera, a as CameraPosition, d as FrameSource, f as FrameSourceJSON, g as TorchState, i as ZoomListener, o as CameraSettings, t as Camera } from "./Camera-C7TNwqRo.js";
|
|
5
|
+
import { n as PointJSON, t as Point } from "./Point-CD9Qi9ID.js";
|
|
6
|
+
import { t as Size } from "./Size-i8Zhfc5b.js";
|
|
7
|
+
import { n as RectJSON, t as Rect } from "./Rect-BVo37EKG.js";
|
|
8
|
+
import { t as INTERNAL_ACCESS } from "./privateAccess-Cy_yPta4.js";
|
|
9
|
+
import { r as ProgressInfo } from "./LoadingStatus-0KzcUFiY.js";
|
|
10
|
+
import { t as Anchor } from "./Anchor-DxO9CbHk.js";
|
|
11
|
+
import { t as JSONType } from "./JSONType-BJv7BUtr.js";
|
|
12
|
+
import { n as MarginsWithUnitJSON, t as MarginsWithUnit } from "./MarginsWithUnit-BHhnV4t0.js";
|
|
13
|
+
import { t as Orientation } from "./Orientation-BNtNH3yS.js";
|
|
14
|
+
import { n as PointWithUnitJSON, t as PointWithUnit } from "./PointWithUnit-C_e8HUvk.js";
|
|
15
|
+
import { t as Quadrilateral } from "./Quadrilateral-DbJ7LU2U.js";
|
|
16
|
+
import { c as ZoomGestureJSON, n as FocusGestureJSON, r as LogoStyle, s as ZoomGesture, t as FocusGesture } from "./DataCaptureViewPlusRelated-DcAi6mWY.js";
|
|
17
|
+
import { t as AsyncStateMachine } from "./AsyncStateMachine-gK_htWdT.js";
|
|
18
|
+
import { t as ScanditHTMLElement } from "./ScanditHTMLElement-CrbGsFpn.js";
|
|
19
|
+
import { t as ScanditIcon } from "./ScanditIcon-FRMSos7x.js";
|
|
20
|
+
import { t as NotificationConfiguration } from "./NotificationConfiguration-C-1Vhrpo.js";
|
|
21
|
+
import { t as NotificationPresenter } from "./NotificationPresenter-D0g_arAJ.js";
|
|
22
|
+
import { t as AnchorPositions } from "./AnchorPositions-4M8lB28_.js";
|
|
23
|
+
import { i as StateToRenderDomView, n as DidTapCustomLocationsViewListener, r as StateToRender } from "./CustomLocationsView-BmILmaYk.js";
|
|
24
|
+
import { t as AdditionalLayerPosition } from "./AdditionalLayerPosition-D_ouQ8wn.js";
|
|
25
|
+
import { t as ZoomSwitchOrientation } from "./ZoomSwitchOrientation-Deylpp5l.js";
|
|
26
|
+
import { n as DataCaptureContextSettingsJSON, t as DataCaptureContextSettings } from "./DataCaptureContextSettings-jR9ArFal.js";
|
|
27
|
+
import { t as ColorType } from "./ColorType-Dj3_-sLJ.js";
|
|
28
|
+
import { t as WatermarkStack } from "./WatermarkStack-CDKo8wBr.js";
|
|
29
|
+
import { i as MethodSignature, o as Optional } from "./tsHelper-N1CSjsuN.js";
|
|
30
|
+
import { t as BatteryInfo } from "./BatteryInterface-BYl36ktu.js";
|
|
31
|
+
import { t as Logger } from "./logger-D9wplwND.js";
|
|
32
|
+
import { c as ImagePlane, o as ImageConverterInstance, s as ImageConverter_statics } from "./index-Cpl5B5iN.js";
|
|
33
|
+
import { t as OpenSourceSoftwareLicenseInfo } from "./OpenSourceSoftwareLicenseInfo-CpjUKTrl.js";
|
|
34
|
+
import { n as HTMLElementStateJSON } from "./HtmlElementState-BeRz5m6o.js";
|
|
35
|
+
|
|
36
|
+
//#region src/main/DataCaptureView.d.ts
|
|
37
|
+
interface DataCaptureOverlay extends Serializable {
|
|
38
|
+
[nativeHandle]?: {
|
|
39
|
+
className: string;
|
|
40
|
+
id: number;
|
|
41
|
+
};
|
|
42
|
+
toJSONObject: () => any;
|
|
43
|
+
}
|
|
44
|
+
interface DataCaptureViewListener {
|
|
45
|
+
didChangeSize?: (view: DataCaptureView$1, size: Size, orientation: Orientation) => void;
|
|
46
|
+
didChangeScanAreaMargins?: (view: DataCaptureView$1, margins: MarginsWithUnit) => void;
|
|
47
|
+
willChangeScanAreaMargins?: (view: DataCaptureView$1, oldMargins: MarginsWithUnit, newMargins: MarginsWithUnit) => void;
|
|
48
|
+
}
|
|
49
|
+
interface DataCaptureViewJSON {
|
|
50
|
+
scanAreaMargins: MarginsWithUnitJSON;
|
|
51
|
+
pointOfInterest: PointWithUnitJSON;
|
|
52
|
+
logoAnchor: Anchor;
|
|
53
|
+
logoOffset: PointWithUnitJSON;
|
|
54
|
+
logoHidden: boolean;
|
|
55
|
+
logoStyle: LogoStyle;
|
|
56
|
+
overlays: ReturnType<DataCaptureOverlay["toJSONObject"]>[];
|
|
57
|
+
controls: ReturnType<Control["toJSONObject"]>[];
|
|
58
|
+
focusGesture: FocusGestureJSON | null;
|
|
59
|
+
zoomGestures: ZoomGestureJSON[];
|
|
60
|
+
}
|
|
61
|
+
interface DataCaptureViewConnectOptions {
|
|
62
|
+
camera?: Camera;
|
|
63
|
+
}
|
|
64
|
+
declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
|
|
65
|
+
focusGesture: FocusGesture | null;
|
|
66
|
+
shouldShowZoomNotification: boolean;
|
|
67
|
+
private _zoomGestures;
|
|
68
|
+
private swipeToZoomGesture;
|
|
69
|
+
private pinchToZoomGesture;
|
|
70
|
+
get zoomGestures(): ZoomGesture[];
|
|
71
|
+
set zoomGestures(gestures: ZoomGesture[]);
|
|
72
|
+
private _scanAreaMargins;
|
|
73
|
+
private _pointOfInterest;
|
|
74
|
+
private _logoStyle;
|
|
75
|
+
private _logoAnchor;
|
|
76
|
+
private _logoOffset;
|
|
77
|
+
private _context;
|
|
78
|
+
private readonly overlays;
|
|
79
|
+
private readonly controlMap;
|
|
80
|
+
private gestureRecognizer;
|
|
81
|
+
private containerElement;
|
|
82
|
+
private cameraPaintboardElement?;
|
|
83
|
+
private singleImageUploaderPaintboardElement?;
|
|
84
|
+
private frameSourceListener;
|
|
85
|
+
private _previewCamera;
|
|
86
|
+
private isConnected;
|
|
87
|
+
private get videoElement();
|
|
88
|
+
private visibilityListener;
|
|
89
|
+
private cameraRecoveryListener;
|
|
90
|
+
private controlsElement;
|
|
91
|
+
private cameraRecoveryElement;
|
|
92
|
+
private errorElement;
|
|
93
|
+
private canvasElement;
|
|
94
|
+
private frozenFrame;
|
|
95
|
+
private frozenFrameCanvas;
|
|
96
|
+
private _canvasDrawer;
|
|
97
|
+
private readonly listeners;
|
|
98
|
+
private htmlElement?;
|
|
99
|
+
private htmlElementState?;
|
|
100
|
+
private lastHtmlElementState;
|
|
101
|
+
private isVideoElementDetached;
|
|
102
|
+
private loadingOverlay;
|
|
103
|
+
private customLocationsView;
|
|
104
|
+
private lastFrameSourceState;
|
|
105
|
+
private singleImageUploaderView;
|
|
106
|
+
private orientation;
|
|
107
|
+
private hiddenProperties;
|
|
108
|
+
private orientationObserver;
|
|
109
|
+
private onOrientationChangeListener;
|
|
110
|
+
private hintPresenter;
|
|
111
|
+
private onHintPresenterUpdateHandler;
|
|
112
|
+
private onViewFinderUpdateRequestedHandler;
|
|
113
|
+
private onWorkerMessageHandler;
|
|
114
|
+
private localizationSubscription?;
|
|
115
|
+
private htmlElementDidChangeHandler;
|
|
116
|
+
private htmlElementDisconnectedHandler;
|
|
117
|
+
private notificationPresenter;
|
|
118
|
+
private readonly zoomNotificationDuration;
|
|
119
|
+
private zoomNotificationTimeout;
|
|
120
|
+
[INTERNAL_ACCESS]: {
|
|
121
|
+
attachAdditionalLayer: (layer: HTMLElement, position: AdditionalLayerPosition) => void;
|
|
122
|
+
freezeFrame: () => void;
|
|
123
|
+
unfreezeFrame: () => void;
|
|
124
|
+
overlays: Set<DataCaptureOverlay>;
|
|
125
|
+
};
|
|
126
|
+
constructor();
|
|
127
|
+
get scanAreaMargins(): MarginsWithUnit;
|
|
128
|
+
set scanAreaMargins(margins: MarginsWithUnit);
|
|
129
|
+
/**
|
|
130
|
+
* Normalize all MarginsWithUnit values to pixel units using the current CSS dimensions.
|
|
131
|
+
* If dimensions are not yet known (width/height === 0), fraction values are kept as-is
|
|
132
|
+
* so the intent is preserved until actual layout is available.
|
|
133
|
+
*/
|
|
134
|
+
private marginsToPixels;
|
|
135
|
+
get pointOfInterest(): PointWithUnit;
|
|
136
|
+
set pointOfInterest(pointOfInterest: PointWithUnit);
|
|
137
|
+
get logoStyle(): LogoStyle;
|
|
138
|
+
set logoStyle(logoStyle: LogoStyle);
|
|
139
|
+
get logoAnchor(): Anchor;
|
|
140
|
+
set logoAnchor(logoAnchor: Anchor);
|
|
141
|
+
get logoOffset(): PointWithUnit;
|
|
142
|
+
set logoOffset(logoOffset: PointWithUnit);
|
|
143
|
+
private get cameraRecoveryText();
|
|
144
|
+
private get width();
|
|
145
|
+
private get height();
|
|
146
|
+
private get canvasDrawer();
|
|
147
|
+
private get controls();
|
|
148
|
+
/**
|
|
149
|
+
* The current context as a PrivateDataCaptureContext
|
|
150
|
+
*/
|
|
151
|
+
private get privateContext();
|
|
152
|
+
static forContext(context: DataCaptureContext | null): Promise<DataCaptureView$1>;
|
|
153
|
+
showProgressBar(): void;
|
|
154
|
+
hideProgressBar(): void;
|
|
155
|
+
setProgressBarPercentage(percentage: number | null): void;
|
|
156
|
+
setProgressBarMessage(message: string): void;
|
|
157
|
+
getContext(): DataCaptureContext | null;
|
|
158
|
+
setContext(context: DataCaptureContext | null): Promise<void>;
|
|
159
|
+
connectToElement(element: HTMLElement, options?: DataCaptureViewConnectOptions): void;
|
|
160
|
+
detachFromElement(): void;
|
|
161
|
+
addOverlay(overlay: DataCaptureOverlay): Promise<void>;
|
|
162
|
+
removeOverlay(overlay: DataCaptureOverlay): Promise<void>;
|
|
163
|
+
addListener(listener: DataCaptureViewListener): void;
|
|
164
|
+
removeListener(listener: DataCaptureViewListener): void;
|
|
165
|
+
/**
|
|
166
|
+
* Converts a point in the coordinate system of the last visible frame and maps it to a coordinate in the view.
|
|
167
|
+
* It does *not* take into account if the frameSource is mirrored.
|
|
168
|
+
*/
|
|
169
|
+
viewPointForFramePoint(point: Point): Point;
|
|
170
|
+
viewQuadrilateralForFrameQuadrilateral(quadrilateral: Quadrilateral): Quadrilateral;
|
|
171
|
+
addControl(control: Control): void;
|
|
172
|
+
removeControl(control: Control): void;
|
|
173
|
+
toJSONObject(): DataCaptureViewJSON;
|
|
174
|
+
isCameraRecoveryVisible(): boolean;
|
|
175
|
+
setCameraRecoveryVisible(visible: boolean): void;
|
|
176
|
+
allowPictureInPicture(allow: boolean): Promise<void>;
|
|
177
|
+
protected viewAnchorPositionsForFrameAnchorPositions(anchorPositions: AnchorPositions): AnchorPositions;
|
|
178
|
+
protected setDidTapCustomLocationsViewListener(didTapViewListener: DidTapCustomLocationsViewListener): void;
|
|
179
|
+
protected renderCustomLocationsView(state: StateToRender | StateToRenderDomView): void;
|
|
180
|
+
getNotificationPresenter(): NotificationPresenter;
|
|
181
|
+
private removeStyles;
|
|
182
|
+
private onHintPresenterUpdate;
|
|
183
|
+
/** Called when the hint presenter requests the viewfinder rect. */
|
|
184
|
+
private onViewFinderUpdateRequested;
|
|
185
|
+
private clearHtmlElementContent;
|
|
186
|
+
private setupHtmlElement;
|
|
187
|
+
private setupHtmlElementSingleImageUploader;
|
|
188
|
+
private setupHtmlElementVisibility;
|
|
189
|
+
private createStyles;
|
|
190
|
+
private onOrientationChange;
|
|
191
|
+
private htmlElementDidChange;
|
|
192
|
+
private htmlElementDisconnected;
|
|
193
|
+
private handleVideoDisplay;
|
|
194
|
+
private isCanvasDrawerWithMetrics;
|
|
195
|
+
private onWorkerMessage;
|
|
196
|
+
/**
|
|
197
|
+
* Called when the view size has changed and SDC has recalculated everything, including the viewfinder rect.
|
|
198
|
+
*/
|
|
199
|
+
private onSDCViewSizeChangedCallback;
|
|
200
|
+
private updateHintPresenterViewFinderRect;
|
|
201
|
+
private drawEngineCommands;
|
|
202
|
+
private displayError;
|
|
203
|
+
private clearError;
|
|
204
|
+
private updateControls;
|
|
205
|
+
private onFrameSourceChange;
|
|
206
|
+
private onCameraStateChanged;
|
|
207
|
+
private setVideoElementOpacity;
|
|
208
|
+
private onSingleImageUploaderSettingsChange;
|
|
209
|
+
private setHiddenProperty;
|
|
210
|
+
private onVisibilityChange;
|
|
211
|
+
private cameraRecovery;
|
|
212
|
+
private freezeFrame;
|
|
213
|
+
private unfreezeFrame;
|
|
214
|
+
private addSwipeToZoomListener;
|
|
215
|
+
private removeSwipeToZoomListener;
|
|
216
|
+
private addPinchToZoomListener;
|
|
217
|
+
private removePinchToZoomListener;
|
|
218
|
+
private performZoomIn;
|
|
219
|
+
private performZoomOut;
|
|
220
|
+
private formatZoomFactor;
|
|
221
|
+
}
|
|
222
|
+
//#endregion
|
|
223
|
+
//#region src/main/controls/common.d.ts
|
|
224
|
+
type ControlType = "camera-fov" | "camera" | "shutter" | "torch" | "zoom";
|
|
225
|
+
interface SerializedControl {
|
|
226
|
+
type: ControlType;
|
|
227
|
+
}
|
|
228
|
+
interface PrivateBaseControl {
|
|
229
|
+
install: (view: DataCaptureView$1) => Promise<boolean>;
|
|
230
|
+
remove: (definitiveRemoval?: boolean) => void;
|
|
231
|
+
update?: (view: DataCaptureView$1) => void;
|
|
232
|
+
}
|
|
233
|
+
interface Control extends Serializable<SerializedControl> {}
|
|
234
|
+
interface PrivateControl extends Control, PrivateBaseControl {
|
|
235
|
+
view: DataCaptureView$1 | null;
|
|
236
|
+
}
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/main/controls/CameraFOVSwitchControl.d.ts
|
|
239
|
+
/**
|
|
240
|
+
* @deprecated 8.4.0 Use {@link ZoomSwitchControl} instead with `zoomLevels = [0.5, 1, 2]`.
|
|
241
|
+
*/
|
|
242
|
+
declare class CameraFOVSwitchControl implements Control {
|
|
243
|
+
protected readonly type: ControlType;
|
|
244
|
+
private customIcons;
|
|
245
|
+
private fovSwitchButton;
|
|
246
|
+
private CameraFOVSwitchButtonClass;
|
|
247
|
+
private currentFrameSource;
|
|
248
|
+
private view;
|
|
249
|
+
private onCameraFOVChanged;
|
|
250
|
+
private isTransitioning;
|
|
251
|
+
get cameraFOVWideImage(): string | null;
|
|
252
|
+
set cameraFOVWideImage(cameraFOVWideImage: string | null);
|
|
253
|
+
get cameraFOVWidePressedImage(): string | null;
|
|
254
|
+
set cameraFOVWidePressedImage(cameraFOVWidePressedImage: string | null);
|
|
255
|
+
get cameraFOVUltraWideImage(): string | null;
|
|
256
|
+
set cameraFOVUltraWideImage(cameraFOVUltraWideImage: string | null);
|
|
257
|
+
get cameraFOVUltraWidePressedImage(): string | null;
|
|
258
|
+
set cameraFOVUltraWidePressedImage(cameraFOVUltraWidePressedImage: string | null);
|
|
259
|
+
toJSONObject(): {
|
|
260
|
+
type: ControlType;
|
|
261
|
+
};
|
|
262
|
+
private updateButtonMode;
|
|
263
|
+
private applyCustomImagesToButton;
|
|
264
|
+
private updateButtonVisibility;
|
|
265
|
+
private canShow;
|
|
266
|
+
private isUltraWideBackCamera;
|
|
267
|
+
private handleCameraFOVChanged;
|
|
268
|
+
private setInitialWideCamera;
|
|
269
|
+
private handleCameraFOVSwitch;
|
|
270
|
+
private getAlternativeCamera;
|
|
271
|
+
private switchCameras;
|
|
272
|
+
}
|
|
273
|
+
//#endregion
|
|
274
|
+
//#region src/main/controls/CameraSwitchControl.d.ts
|
|
275
|
+
declare class CameraSwitchControl implements Control {
|
|
276
|
+
protected readonly type: ControlType;
|
|
277
|
+
private customImages;
|
|
278
|
+
private cameraSwitchButton;
|
|
279
|
+
private CameraSwitchButtonClass;
|
|
280
|
+
private currentFrameSource;
|
|
281
|
+
private view;
|
|
282
|
+
private onCameraSwitched;
|
|
283
|
+
private isTransitioning;
|
|
284
|
+
get idleImage(): string | null;
|
|
285
|
+
set idleImage(idleImage: string | null);
|
|
286
|
+
get pressedImage(): string | null;
|
|
287
|
+
set pressedImage(pressedImage: string | null);
|
|
288
|
+
toJSONObject(): {
|
|
289
|
+
type: ControlType;
|
|
290
|
+
};
|
|
291
|
+
private updateButtonVisibility;
|
|
292
|
+
private applyCustomImagesToButton;
|
|
293
|
+
private canShow;
|
|
294
|
+
private handleCameraSwitched;
|
|
295
|
+
private handleCameraSwitch;
|
|
296
|
+
private getNextDeviceCamera;
|
|
297
|
+
private switchCameras;
|
|
298
|
+
}
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region src/main/controls/TorchSwitchControl.d.ts
|
|
301
|
+
declare class TorchSwitchControl implements Control {
|
|
302
|
+
protected readonly type: ControlType;
|
|
303
|
+
private readonly customImage;
|
|
304
|
+
private torchSwitchIconButton;
|
|
305
|
+
private TorchSwitchIconButtonClass;
|
|
306
|
+
private view;
|
|
307
|
+
private onTorchToggled;
|
|
308
|
+
private get currentCamera();
|
|
309
|
+
get torchOffImage(): string | null;
|
|
310
|
+
set torchOffImage(torchOffImage: string | null);
|
|
311
|
+
get torchOffPressedImage(): string | null;
|
|
312
|
+
set torchOffPressedImage(torchOffPressedImage: string | null);
|
|
313
|
+
get torchOnImage(): string | null;
|
|
314
|
+
set torchOnImage(torchOnImage: string | null);
|
|
315
|
+
get torchOnPressedImage(): string | null;
|
|
316
|
+
set torchOnPressedImage(torchOnPressedImage: string | null);
|
|
317
|
+
toJSONObject(): {
|
|
318
|
+
type: ControlType;
|
|
319
|
+
};
|
|
320
|
+
private applyCustomImagesToButton;
|
|
321
|
+
private updateButtonState;
|
|
322
|
+
private handleTorchToggled;
|
|
323
|
+
private canShow;
|
|
324
|
+
private setTorchState;
|
|
325
|
+
}
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region src/main/controls/ZoomSwitchControl.d.ts
|
|
328
|
+
declare class ZoomSwitchControl implements Control, ZoomListener {
|
|
329
|
+
private readonly type;
|
|
330
|
+
private view?;
|
|
331
|
+
private _zoomLevels;
|
|
332
|
+
private _orientation;
|
|
333
|
+
private _isAlwaysExpanded;
|
|
334
|
+
private _selectedZoomLevel;
|
|
335
|
+
private _accessibilityLabel;
|
|
336
|
+
private zoomSwitchPill?;
|
|
337
|
+
private ZoomSwitchPill?;
|
|
338
|
+
private isApplyingZoomLevel;
|
|
339
|
+
private readonly handlerForZoomStrategy;
|
|
340
|
+
private onZoomLevelSelected;
|
|
341
|
+
private get currentCamera();
|
|
342
|
+
get orientation(): ZoomSwitchOrientation;
|
|
343
|
+
set orientation(value: ZoomSwitchOrientation);
|
|
344
|
+
get isAlwaysExpanded(): boolean;
|
|
345
|
+
set isAlwaysExpanded(value: boolean);
|
|
346
|
+
get isExpanded(): boolean;
|
|
347
|
+
set isExpanded(value: boolean);
|
|
348
|
+
get selectedZoomLevel(): number;
|
|
349
|
+
get accessibilityLabel(): string;
|
|
350
|
+
set accessibilityLabel(label: string);
|
|
351
|
+
/**
|
|
352
|
+
* Programmatically select a zoom level.
|
|
353
|
+
*
|
|
354
|
+
* - If `level` is outside the camera's hardware zoom range, it is clamped to the nearest supported value.
|
|
355
|
+
* - If the (clamped) level does not match any of the configured `zoomLevels`, it appears as a temporary
|
|
356
|
+
* button in the control. The temporary button disappears as soon as another level is selected.
|
|
357
|
+
*
|
|
358
|
+
* @returns The zoom level that was actually applied (after hardware clamping).
|
|
359
|
+
*/
|
|
360
|
+
selectZoomLevel(level: number): Promise<number>;
|
|
361
|
+
toJSONObject(): {
|
|
362
|
+
type: ControlType;
|
|
363
|
+
};
|
|
364
|
+
onZoomLevelChanged(camera: Camera, oldLevel: number, newLevel: number): void;
|
|
365
|
+
private canShow;
|
|
366
|
+
private handleZoomLevelSelected;
|
|
367
|
+
/**
|
|
368
|
+
* Updates the selected level in the UI, handling the temporary level logic:
|
|
369
|
+
* - If `level` matches a configured zoom level → select it, clear temporary
|
|
370
|
+
* - If `level` does NOT match → show it as a temporary level
|
|
371
|
+
*/
|
|
372
|
+
private updateSelectedLevelInUI;
|
|
373
|
+
private zoomStrategyForLevel;
|
|
374
|
+
private isCameraSwitchingStrategy;
|
|
375
|
+
private applyZoomLevelToCamera;
|
|
376
|
+
private switchToUltraWideCamera;
|
|
377
|
+
private switchToWideCamera;
|
|
378
|
+
private switchCameras;
|
|
379
|
+
private resolveOrientation;
|
|
380
|
+
private syncZoomLevelsFromCamera;
|
|
381
|
+
}
|
|
382
|
+
//#endregion
|
|
383
|
+
//#region src/main/private/FrameReaders/FrameReaderAbstract.d.ts
|
|
384
|
+
interface PoolCapacityOptions {
|
|
385
|
+
minPoolCapacity: number;
|
|
386
|
+
maxPoolCapacity: number;
|
|
387
|
+
}
|
|
388
|
+
declare abstract class FrameReaderAbstract {
|
|
389
|
+
colorType: ColorType;
|
|
390
|
+
protected readonly _contextWebGL: WebGLRenderingContext;
|
|
391
|
+
protected readonly _maxPoolCapacity: number;
|
|
392
|
+
protected readonly _minPoolCapacity: number;
|
|
393
|
+
/**
|
|
394
|
+
* In mobile applications, particularly on Android, capturing frames at a slow rate can be a common issue,
|
|
395
|
+
* especially in scenarios involving barcode tracking. Using a stack becomes valuable in such situations
|
|
396
|
+
* because it allows us to capture next frame with pixel data while the engine is still processing the previous one,
|
|
397
|
+
* eliminating the need to wait for the engine to finish before capturing the next frame.
|
|
398
|
+
*/
|
|
399
|
+
protected _framePool: Optional<WatermarkStack<Uint8ClampedArray>>;
|
|
400
|
+
/**
|
|
401
|
+
* Expected size of buffers in the pool. Used to validate buffers before recycling.
|
|
402
|
+
*/
|
|
403
|
+
protected _frameSize: number;
|
|
404
|
+
constructor(contextWebGL: WebGLRenderingContext, options?: PoolCapacityOptions | undefined);
|
|
405
|
+
abstract readFromSource(source: TexImageSource): FrameCapture;
|
|
406
|
+
abstract setup(): void;
|
|
407
|
+
recycle(pixelsData: Uint8ClampedArray): void;
|
|
408
|
+
abstract dispose(): void;
|
|
409
|
+
}
|
|
410
|
+
//#endregion
|
|
411
|
+
//#region src/main/private/FrameReaders/FrameReader.d.ts
|
|
412
|
+
declare class FrameReader extends FrameReaderAbstract {
|
|
413
|
+
colorType: ColorType;
|
|
414
|
+
private _framebuffer;
|
|
415
|
+
private _texture;
|
|
416
|
+
private get _initialized();
|
|
417
|
+
readFromSource(source: TexImageSource): FrameCapture;
|
|
418
|
+
setup(): void;
|
|
419
|
+
dispose(): void;
|
|
420
|
+
private updateFrameSizeIfNeeded;
|
|
421
|
+
}
|
|
422
|
+
//#endregion
|
|
423
|
+
//#region src/main/private/FrameReaders/GrayScaleFrameReader.d.ts
|
|
424
|
+
declare class GrayScaleFrameReader extends FrameReaderAbstract {
|
|
425
|
+
colorType: ColorType;
|
|
426
|
+
protected _framePool: Optional<WatermarkStack<Uint8ClampedArray>>;
|
|
427
|
+
private _shaderProgram;
|
|
428
|
+
private _canvas;
|
|
429
|
+
private _ctx;
|
|
430
|
+
private _positionBuffer;
|
|
431
|
+
private _texture;
|
|
432
|
+
private _rgbaFallbackReader;
|
|
433
|
+
private _useRgbaFallback;
|
|
434
|
+
/**
|
|
435
|
+
* When these vertices are connected, they form a full-screen quad that covers the entire viewport.
|
|
436
|
+
* This quad is used as the rendering target for the grayscale effect.
|
|
437
|
+
* The vertices are specified in normalized device coordinates, where (-1, -1) is the bottom-left corner of the viewport, and (1, 1) is the top-right corner.
|
|
438
|
+
* These positions are used in conjunction with the vertex and fragment shaders to apply the grayscale effect to the input RGBA frame across the entire screen.
|
|
439
|
+
* The transformation is performed on each pixel within these triangles using the shaders.
|
|
440
|
+
* https://www.khronos.org/opengl/wiki/Primitive#Triangle_primitives
|
|
441
|
+
*/
|
|
442
|
+
private _positions;
|
|
443
|
+
constructor(originalGLContext: WebGLRenderingContext, options?: PoolCapacityOptions | undefined);
|
|
444
|
+
private get _webglContext();
|
|
445
|
+
readFromSource(source: TexImageSource): FrameCapture;
|
|
446
|
+
setup(): void;
|
|
447
|
+
dispose(): void;
|
|
448
|
+
private updateCanvasSizeIfNeeded;
|
|
449
|
+
private updateFrameSizeIfNeeded;
|
|
450
|
+
private initShaderProgram;
|
|
451
|
+
private initBuffers;
|
|
452
|
+
private initTexture;
|
|
453
|
+
}
|
|
454
|
+
//#endregion
|
|
455
|
+
//#region src/main/worker/dataCaptureWorkerRelated.d.ts
|
|
456
|
+
/**
|
|
457
|
+
* MESSAGES (ACTIONS) SENT TO THE WORKER
|
|
458
|
+
*/
|
|
459
|
+
type DataCaptureActionMessageKey = "convertToJPEGResult" | "createContext" | "deleteFrameData" | "dispose" | "documentVisibility" | "extractCentaurusLicense" | "flushAnalytics" | "isFeatureSupported" | "loadLibrary" | "onTap" | "processFrame" | "reportCameraProperties" | "requestFrameData" | "setFrameSource" | "setLogLevel" | "updateBatteryInfo" | "updateContext" | "hintPresenterV2update" | "getViewfinderInfo" | "getOpenSourceSoftwareLicenseInfo" | "addNativeOverlay" | "removeNativeOverlay";
|
|
460
|
+
interface ExtractCentaurusLicenseResponse {
|
|
461
|
+
centaurus: {
|
|
462
|
+
licenseKey: string;
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
type RequestFrameDataResponse = {
|
|
466
|
+
data: Uint8ClampedArray;
|
|
467
|
+
colorType: ColorType;
|
|
468
|
+
frameId: FrameId;
|
|
469
|
+
} | {
|
|
470
|
+
data: null;
|
|
471
|
+
colorType: null;
|
|
472
|
+
frameId: null;
|
|
473
|
+
};
|
|
474
|
+
interface IsFeatureSupportedResponse {
|
|
475
|
+
supported: boolean;
|
|
476
|
+
}
|
|
477
|
+
interface GetViewfinderInfoResponse {
|
|
478
|
+
isDisplayingViewfinder: boolean;
|
|
479
|
+
rect: RectJSON;
|
|
480
|
+
}
|
|
481
|
+
interface GetOpenSourceSoftwareLicenseInfoResponse {
|
|
482
|
+
licenseText: string;
|
|
483
|
+
}
|
|
484
|
+
type WorkerResponse<C> = C extends "processFrame" ? ProcessFrameParameters : C extends "extractCentaurusLicense" ? ExtractCentaurusLicenseResponse : C extends "requestFrameData" ? RequestFrameDataResponse : C extends "isFeatureSupported" ? IsFeatureSupportedResponse : C extends "getViewfinderInfo" ? GetViewfinderInfoResponse : C extends "getOpenSourceSoftwareLicenseInfo" ? GetOpenSourceSoftwareLicenseInfoResponse : undefined;
|
|
485
|
+
interface DataCaptureActionMessage {
|
|
486
|
+
command: DataCaptureActionMessageKey;
|
|
487
|
+
id: number;
|
|
488
|
+
}
|
|
489
|
+
type LoadLibraryDataCaptureAction = DataCaptureActionMessage & LoadLibraryParameters & {
|
|
490
|
+
command: "loadLibrary";
|
|
491
|
+
};
|
|
492
|
+
type ConvertToJPEGResultDataCaptureAction = DataCaptureActionMessage & {
|
|
493
|
+
command: "convertToJPEGResult";
|
|
494
|
+
imageId: number;
|
|
495
|
+
result: Uint8Array;
|
|
496
|
+
};
|
|
497
|
+
type CreateContextDataCaptureAction = CreateContextParameters & DataCaptureActionMessage & {
|
|
498
|
+
command: "createContext";
|
|
499
|
+
};
|
|
500
|
+
type SetFrameSourceDataCaptureAction = DataCaptureActionMessage & SetFrameSourceParameters & {
|
|
501
|
+
command: "setFrameSource";
|
|
502
|
+
};
|
|
503
|
+
type ProcessFrameDataCaptureAction = DataCaptureActionMessage & ProcessFrameParameters & {
|
|
504
|
+
command: "processFrame";
|
|
505
|
+
};
|
|
506
|
+
type RequestFrameDataDataCaptureAction = DataCaptureActionMessage & {
|
|
507
|
+
command: "requestFrameData";
|
|
508
|
+
frameId: FrameId;
|
|
509
|
+
};
|
|
510
|
+
type DeleteFrameDataDataCaptureAction = DataCaptureActionMessage & {
|
|
511
|
+
command: "deleteFrameData";
|
|
512
|
+
frameId: FrameId;
|
|
513
|
+
};
|
|
514
|
+
type VisibilityChangeAction = DataCaptureActionMessage & {
|
|
515
|
+
command: "documentVisibility";
|
|
516
|
+
state: DocumentVisibilityState;
|
|
517
|
+
};
|
|
518
|
+
type IsFeatureSupportedAction = DataCaptureActionMessage & {
|
|
519
|
+
command: "isFeatureSupported";
|
|
520
|
+
feature: LicensedFeature;
|
|
521
|
+
};
|
|
522
|
+
type UpdateContextDataCaptureAction = DataCaptureActionMessage & {
|
|
523
|
+
command: "updateContext";
|
|
524
|
+
context: DataCaptureContextJSON;
|
|
525
|
+
view: UpdateContextParameters["view"];
|
|
526
|
+
};
|
|
527
|
+
type DisposeDataCaptureAction = DataCaptureActionMessage & {
|
|
528
|
+
command: "dispose";
|
|
529
|
+
};
|
|
530
|
+
type FlushAnalyticsDataCaptureAction = DataCaptureActionMessage & {
|
|
531
|
+
command: "flushAnalytics";
|
|
532
|
+
};
|
|
533
|
+
type ReportCameraPropertiesDataCaptureAction = DataCaptureActionMessage & ReportCameraPropertiesParameters & {
|
|
534
|
+
command: "reportCameraProperties";
|
|
535
|
+
};
|
|
536
|
+
type SetLogLevelDataCaptureAction = DataCaptureActionMessage & {
|
|
537
|
+
command: "setLogLevel";
|
|
538
|
+
level: Logger.Level;
|
|
539
|
+
};
|
|
540
|
+
type UpdateBatteryInfoDataCaptureAction = DataCaptureActionMessage & {
|
|
541
|
+
command: "updateBatteryInfo";
|
|
542
|
+
batteryInfo: BatteryInfo;
|
|
543
|
+
};
|
|
544
|
+
type ExtractCentaurusLicenseDataCaptureAction = DataCaptureActionMessage & {
|
|
545
|
+
command: "extractCentaurusLicense";
|
|
546
|
+
licenseKey: string;
|
|
547
|
+
};
|
|
548
|
+
type OnTapAction = DataCaptureActionMessage & {
|
|
549
|
+
command: "onTap";
|
|
550
|
+
point: PointJSON;
|
|
551
|
+
};
|
|
552
|
+
type HintPresenterV2updateAction = DataCaptureActionMessage & {
|
|
553
|
+
command: "hintPresenterV2update";
|
|
554
|
+
};
|
|
555
|
+
type GetViewfinderInfoAction = DataCaptureActionMessage & {
|
|
556
|
+
command: "getViewfinderInfo";
|
|
557
|
+
};
|
|
558
|
+
type GetOpenSourceSoftwareLicenseInfoAction = DataCaptureActionMessage & {
|
|
559
|
+
command: "getOpenSourceSoftwareLicenseInfo";
|
|
560
|
+
};
|
|
561
|
+
type AddNativeOverlayAction = DataCaptureActionMessage & {
|
|
562
|
+
command: "addNativeOverlay";
|
|
563
|
+
overlayHandle: {
|
|
564
|
+
className: string;
|
|
565
|
+
id: number;
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
type RemoveNativeOverlayAction = DataCaptureActionMessage & {
|
|
569
|
+
command: "removeNativeOverlay";
|
|
570
|
+
overlayHandle: {
|
|
571
|
+
className: string;
|
|
572
|
+
id: number;
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
type AnyDataCaptureActionMessage = ConvertToJPEGResultDataCaptureAction | CreateContextDataCaptureAction | DeleteFrameDataDataCaptureAction | DisposeDataCaptureAction | ExtractCentaurusLicenseDataCaptureAction | FlushAnalyticsDataCaptureAction | IsFeatureSupportedAction | LoadLibraryDataCaptureAction | OnTapAction | ProcessFrameDataCaptureAction | ReportCameraPropertiesDataCaptureAction | RequestFrameDataDataCaptureAction | SetFrameSourceDataCaptureAction | SetLogLevelDataCaptureAction | UpdateBatteryInfoDataCaptureAction | UpdateContextDataCaptureAction | VisibilityChangeAction | HintPresenterV2updateAction | GetViewfinderInfoAction | GetOpenSourceSoftwareLicenseInfoAction | AddNativeOverlayAction | RemoveNativeOverlayAction;
|
|
576
|
+
/**
|
|
577
|
+
* MESSAGES EMITTED BY THE WORKER
|
|
578
|
+
*/
|
|
579
|
+
type DataCaptureCallbackMessageKeys = "contextDidChangeStatus" | "didStartObservingContext" | "draw" | "hideHint" | "isFeatureSupported" | "loadLibraryProgress" | "performanceMetricsReport" | "showHint" | "successFeedback" | "updateHint" | "workerTaskId" | "onFrameProcessingStarted" | "onFrameProcessingFinished" | "onFrameSkipped" | "showToast" | "hideToast" | "showGuidance" | "hideGuidance" | "startUpdateTimer" | "stopUpdateTimer" | "setViewfinderRect" | "viewSizeChanged";
|
|
580
|
+
interface BaseDataCaptureCallbackMessage {
|
|
581
|
+
type: DataCaptureCallbackMessageKeys;
|
|
582
|
+
}
|
|
583
|
+
interface LoadLibraryProgressMessage {
|
|
584
|
+
type: "loadLibraryProgress";
|
|
585
|
+
payload: ProgressInfo;
|
|
586
|
+
}
|
|
587
|
+
interface ConsoleWorkerMessage {
|
|
588
|
+
type: "console";
|
|
589
|
+
payload: string;
|
|
590
|
+
}
|
|
591
|
+
interface ConvertToJPEGMessage {
|
|
592
|
+
type: "convertToJPEG";
|
|
593
|
+
imageId: number;
|
|
594
|
+
width: number;
|
|
595
|
+
height: number;
|
|
596
|
+
data: Uint8Array;
|
|
597
|
+
planes: ImagePlane[];
|
|
598
|
+
orientation: number;
|
|
599
|
+
quality: number;
|
|
600
|
+
}
|
|
601
|
+
interface WorkerTaskIdWorkerMessage extends BaseDataCaptureCallbackMessage {
|
|
602
|
+
type: "workerTaskId";
|
|
603
|
+
command: string;
|
|
604
|
+
id: number;
|
|
605
|
+
error?: unknown;
|
|
606
|
+
payload?: unknown;
|
|
607
|
+
}
|
|
608
|
+
type DrawWorkerMessage = BaseDataCaptureCallbackMessage & {
|
|
609
|
+
type: "draw";
|
|
610
|
+
payload: Uint8Array;
|
|
611
|
+
};
|
|
612
|
+
type DidChangeStatusWorkerMessage = BaseDataCaptureCallbackMessage & {
|
|
613
|
+
type: "contextDidChangeStatus";
|
|
614
|
+
payload: ContextStatusJSON;
|
|
615
|
+
};
|
|
616
|
+
type StartObservingContextWorkerMessage = BaseDataCaptureCallbackMessage & {
|
|
617
|
+
type: "didStartObservingContext";
|
|
618
|
+
};
|
|
619
|
+
type SuccessFeedbackWorkerMessage = BaseDataCaptureCallbackMessage & {
|
|
620
|
+
type: "successFeedback";
|
|
621
|
+
};
|
|
622
|
+
type ShowHintWorkerMessage = BaseDataCaptureCallbackMessage & {
|
|
623
|
+
type: "showHint";
|
|
624
|
+
payload: {
|
|
625
|
+
text: string;
|
|
626
|
+
style: HintStyle;
|
|
627
|
+
};
|
|
628
|
+
};
|
|
629
|
+
type UpdateHintWorkerMessage = BaseDataCaptureCallbackMessage & {
|
|
630
|
+
type: "updateHint";
|
|
631
|
+
payload: {
|
|
632
|
+
style: HintStyle;
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
type IsFeatureSupportedMessage = BaseDataCaptureCallbackMessage & {
|
|
636
|
+
type: "isFeatureSupported";
|
|
637
|
+
payload: { [key in LicensedFeature]: boolean };
|
|
638
|
+
};
|
|
639
|
+
type HideHintWorkerMessage = BaseDataCaptureCallbackMessage & {
|
|
640
|
+
type: "hideHint";
|
|
641
|
+
payload: Record<string, never>;
|
|
642
|
+
};
|
|
643
|
+
type PerformanceMetricsReportMessage = BaseDataCaptureCallbackMessage & {
|
|
644
|
+
type: "performanceMetricsReport";
|
|
645
|
+
payload: PerformanceMetrics;
|
|
646
|
+
};
|
|
647
|
+
type DidTapTrackedBarcode = BaseDataCaptureCallbackMessage & {
|
|
648
|
+
type: "didTapTrackedBarcode";
|
|
649
|
+
payload: any;
|
|
650
|
+
};
|
|
651
|
+
type OnFrameProcessingStartedMessage = BaseDataCaptureCallbackMessage & {
|
|
652
|
+
type: "onFrameProcessingStarted";
|
|
653
|
+
};
|
|
654
|
+
type OnFrameProcessingFinishedMessage = BaseDataCaptureCallbackMessage & {
|
|
655
|
+
type: "onFrameProcessingFinished";
|
|
656
|
+
};
|
|
657
|
+
type OnFrameSkippedMessage = BaseDataCaptureCallbackMessage & {
|
|
658
|
+
type: "onFrameSkipped";
|
|
659
|
+
};
|
|
660
|
+
type ShowToastMessage = BaseDataCaptureCallbackMessage & {
|
|
661
|
+
type: "showToast";
|
|
662
|
+
payload: GenericHint;
|
|
663
|
+
};
|
|
664
|
+
type HideToastMessage = BaseDataCaptureCallbackMessage & {
|
|
665
|
+
type: "hideToast";
|
|
666
|
+
payload: GenericHint;
|
|
667
|
+
};
|
|
668
|
+
type ShowGuidanceMessage = BaseDataCaptureCallbackMessage & {
|
|
669
|
+
type: "showGuidance";
|
|
670
|
+
payload: GenericHint;
|
|
671
|
+
};
|
|
672
|
+
type HideGuidanceMessage = BaseDataCaptureCallbackMessage & {
|
|
673
|
+
type: "hideGuidance";
|
|
674
|
+
payload: GenericHint;
|
|
675
|
+
};
|
|
676
|
+
type StartUpdateTimerMessage = BaseDataCaptureCallbackMessage & {
|
|
677
|
+
type: "startUpdateTimer";
|
|
678
|
+
payload: {
|
|
679
|
+
duration: {
|
|
680
|
+
unit: "ms";
|
|
681
|
+
value: number;
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
};
|
|
685
|
+
type StopUpdateTimerMessage = BaseDataCaptureCallbackMessage & {
|
|
686
|
+
type: "stopUpdateTimer";
|
|
687
|
+
};
|
|
688
|
+
interface ViewInfo<T extends Orientation | number = Orientation> {
|
|
689
|
+
width: number;
|
|
690
|
+
height: number;
|
|
691
|
+
orientation: T;
|
|
692
|
+
viewFinderRect: RectJSON;
|
|
693
|
+
}
|
|
694
|
+
type ViewSizeChangedMessage = BaseDataCaptureCallbackMessage & {
|
|
695
|
+
type: "viewSizeChanged";
|
|
696
|
+
payload: ViewInfo | null;
|
|
697
|
+
};
|
|
698
|
+
type DataCaptureCallbackMessage = ConsoleWorkerMessage | ConvertToJPEGMessage | DidChangeStatusWorkerMessage | DrawWorkerMessage | HideHintWorkerMessage | IsFeatureSupportedMessage | LoadLibraryProgressMessage | PerformanceMetricsReportMessage | ShowHintWorkerMessage | StartObservingContextWorkerMessage | SuccessFeedbackWorkerMessage | UpdateHintWorkerMessage | WorkerTaskIdWorkerMessage | OnFrameProcessingStartedMessage | OnFrameProcessingFinishedMessage | OnFrameSkippedMessage | ShowToastMessage | HideToastMessage | ShowGuidanceMessage | HideGuidanceMessage | StartUpdateTimerMessage | StopUpdateTimerMessage | ViewSizeChangedMessage;
|
|
699
|
+
/**
|
|
700
|
+
* OTHERS
|
|
701
|
+
*/
|
|
702
|
+
type PayloadForCommand<A, C> = A extends {
|
|
703
|
+
command: C;
|
|
704
|
+
} ? A : never;
|
|
705
|
+
interface DataCaptureWorker extends Omit<Worker, "postMessage"> {
|
|
706
|
+
onmessage: ((this: Worker, event_: MessageEvent & {
|
|
707
|
+
data: unknown;
|
|
708
|
+
}) => void) | null;
|
|
709
|
+
postMessage: <C extends AnyDataCaptureActionMessage["command"]>(message: PayloadForCommand<AnyDataCaptureActionMessage, C>, transfer?: Transferable[]) => void;
|
|
710
|
+
}
|
|
711
|
+
interface EmscriptenClassHandle<Self = EmscriptenClassHandle<unknown>> {
|
|
712
|
+
clone: () => Self;
|
|
713
|
+
delete: () => void;
|
|
714
|
+
isDeleted: () => boolean;
|
|
715
|
+
deleteLater: () => void;
|
|
716
|
+
isAliasOf: () => Self;
|
|
717
|
+
}
|
|
718
|
+
interface DataCaptureContext$1 extends EmscriptenClassHandle {
|
|
719
|
+
setCameraProperties: (deviceId: string, isFrontFacing: boolean, hasAutofocus: boolean) => void;
|
|
720
|
+
addListener: (function_: unknown) => void;
|
|
721
|
+
addFrameListener: (listener: unknown) => void;
|
|
722
|
+
dispose: () => void;
|
|
723
|
+
setFrameSource: (source: EmscriptenClassHandle) => void;
|
|
724
|
+
flushAnalytics: () => void;
|
|
725
|
+
isFeatureSupported: (feature: LicensedFeature) => boolean;
|
|
726
|
+
}
|
|
727
|
+
interface DataCaptureImageBufferFrameSource extends EmscriptenClassHandle {
|
|
728
|
+
outputFrame: (address: number, width: number, height: number, format: unknown) => void;
|
|
729
|
+
}
|
|
730
|
+
interface GestureListener extends EmscriptenClassHandle<GestureListener> {
|
|
731
|
+
onTap(point: string): void;
|
|
732
|
+
}
|
|
733
|
+
interface GestureRecognizer extends EmscriptenClassHandle {
|
|
734
|
+
setGestureListener(gestureListener: GestureListener, flags: number): void;
|
|
735
|
+
}
|
|
736
|
+
interface DataCaptureView extends EmscriptenClassHandle {
|
|
737
|
+
setViewSize: (w: number, h: number, orientation: Orientation) => void;
|
|
738
|
+
getViewInfo: () => string;
|
|
739
|
+
setNeedsRedrawDelegate: (delegate: unknown) => void;
|
|
740
|
+
draw: () => void;
|
|
741
|
+
getDrawCommands: () => Uint8Array;
|
|
742
|
+
isViewRefreshHandlerSet: boolean;
|
|
743
|
+
hintPresenterInitialized: () => boolean;
|
|
744
|
+
setHintPresenter: (hintPresenter: unknown) => void;
|
|
745
|
+
setHintPresenterV2: (hintPresenterV2: HintPresenterV2) => void;
|
|
746
|
+
setGestureRecognizer: (recognizer: GestureRecognizer) => void;
|
|
747
|
+
isDisplayingViewfinder: () => boolean;
|
|
748
|
+
getViewfinderRect: () => string;
|
|
749
|
+
addOverlay: (overlay: EmscriptenClassHandle) => void;
|
|
750
|
+
removeOverlay: (overlay: EmscriptenClassHandle) => void;
|
|
751
|
+
}
|
|
752
|
+
interface EmscriptenDataCaptureOverlay extends EmscriptenClassHandle {}
|
|
753
|
+
interface JSONParseable extends EmscriptenClassHandle {
|
|
754
|
+
toJson: () => string;
|
|
755
|
+
}
|
|
756
|
+
interface DataCaptureContextDeserializerResult extends EmscriptenClassHandle {
|
|
757
|
+
getContext: () => DataCaptureContext$1;
|
|
758
|
+
getView: () => DataCaptureView | undefined;
|
|
759
|
+
}
|
|
760
|
+
interface DataCaptureContextDeserializer extends EmscriptenClassHandle {
|
|
761
|
+
contextFromJson: (json: string) => DataCaptureContextDeserializerResult | null;
|
|
762
|
+
updateContextFromJson: (context: DataCaptureContext$1, view: DataCaptureView | undefined, json: string) => DataCaptureContextDeserializerResult | null;
|
|
763
|
+
getLastError: () => string;
|
|
764
|
+
}
|
|
765
|
+
interface CaptureModeDeserializerInstance extends EmscriptenClassHandle {
|
|
766
|
+
setListener: (listener: unknown) => void;
|
|
767
|
+
}
|
|
768
|
+
interface ModuleMirrorAxis {
|
|
769
|
+
None: unknown;
|
|
770
|
+
X: unknown;
|
|
771
|
+
Y: unknown;
|
|
772
|
+
}
|
|
773
|
+
interface Vector<T = unknown> {
|
|
774
|
+
push_back: (element: unknown) => void;
|
|
775
|
+
get: (index: number) => T;
|
|
776
|
+
size: () => number;
|
|
777
|
+
}
|
|
778
|
+
interface WasmFrameData extends EmscriptenClassHandle {
|
|
779
|
+
getFrameData: () => Uint8ClampedArray;
|
|
780
|
+
getWidth: () => number;
|
|
781
|
+
getHeight: () => number;
|
|
782
|
+
getMirrorAxis: () => unknown;
|
|
783
|
+
getOrientation: () => unknown;
|
|
784
|
+
}
|
|
785
|
+
interface WasmFeedback extends EmscriptenClassHandle {
|
|
786
|
+
emit: () => void;
|
|
787
|
+
}
|
|
788
|
+
interface BatteryData {
|
|
789
|
+
percentage: number;
|
|
790
|
+
}
|
|
791
|
+
interface DeviceInterfaceInstance extends EmscriptenClassHandle {
|
|
792
|
+
getBatteryData(): BatteryData | undefined;
|
|
793
|
+
isTablet(): boolean;
|
|
794
|
+
}
|
|
795
|
+
declare enum HintFont {
|
|
796
|
+
Body = "body",
|
|
797
|
+
Footnote = "footnote"
|
|
798
|
+
}
|
|
799
|
+
declare enum HintTextAlignment {
|
|
800
|
+
Start = "start",
|
|
801
|
+
Center = "center",
|
|
802
|
+
End = "end"
|
|
803
|
+
}
|
|
804
|
+
declare enum HintWidth {
|
|
805
|
+
Normal = "normal",
|
|
806
|
+
Wider = "wider",
|
|
807
|
+
FitText = "fitText"
|
|
808
|
+
}
|
|
809
|
+
declare enum HintHeight {
|
|
810
|
+
Normal = "normal",
|
|
811
|
+
Taller = "taller"
|
|
812
|
+
}
|
|
813
|
+
declare enum HintCornerStyle {
|
|
814
|
+
Square = "square",
|
|
815
|
+
Rounded = "rounded"
|
|
816
|
+
}
|
|
817
|
+
declare enum HintIcon {
|
|
818
|
+
None = "none",
|
|
819
|
+
Check = "check",
|
|
820
|
+
ExclamationMark = "exclamationMark"
|
|
821
|
+
}
|
|
822
|
+
declare enum HintAnchor {
|
|
823
|
+
Top = "top",
|
|
824
|
+
Center = "center",
|
|
825
|
+
AboveViewFinder = "aboveViewFinder",
|
|
826
|
+
BelowViewFinder = "belowViewFinder"
|
|
827
|
+
}
|
|
828
|
+
interface HintStyle {
|
|
829
|
+
textColor: string;
|
|
830
|
+
textAlignment: HintTextAlignment;
|
|
831
|
+
backgroundColor: string;
|
|
832
|
+
hintIcon: HintIcon;
|
|
833
|
+
isAnimatedToView: boolean;
|
|
834
|
+
hintAnchor: HintAnchor;
|
|
835
|
+
hintAnchorOffset: number;
|
|
836
|
+
horizontalMargin: number;
|
|
837
|
+
maxWidthFraction: number;
|
|
838
|
+
textSize: number;
|
|
839
|
+
textWeight: number;
|
|
840
|
+
lineHeight: number;
|
|
841
|
+
iconColor: string;
|
|
842
|
+
maxLines: number;
|
|
843
|
+
cornerRadius: number;
|
|
844
|
+
fitToText: boolean;
|
|
845
|
+
}
|
|
846
|
+
declare enum GuidanceHintAnchor {
|
|
847
|
+
AboveViewFinder = "aboveViewFinder",
|
|
848
|
+
BelowViewFinder = "belowViewFinder"
|
|
849
|
+
}
|
|
850
|
+
declare enum GuidanceHintStyle {
|
|
851
|
+
BlackOnWhite = "blackOnWhite",
|
|
852
|
+
WhiteOnBlack = "whiteOnBlack",
|
|
853
|
+
Transparent = "transparent"
|
|
854
|
+
}
|
|
855
|
+
interface GuidanceHint {
|
|
856
|
+
text: string;
|
|
857
|
+
guidanceHintStyle: GuidanceHintStyle;
|
|
858
|
+
guidanceHintAnchor: GuidanceHintAnchor;
|
|
859
|
+
hintStyle?: HintStyle;
|
|
860
|
+
moveCloserAnimation?: boolean;
|
|
861
|
+
}
|
|
862
|
+
declare enum ToastHintStyle {
|
|
863
|
+
Success = "success",
|
|
864
|
+
Error = "error",
|
|
865
|
+
Warning = "warning",
|
|
866
|
+
Info = "info",
|
|
867
|
+
Notification = "notification"
|
|
868
|
+
}
|
|
869
|
+
interface ToastHint {
|
|
870
|
+
text: string;
|
|
871
|
+
tag: string;
|
|
872
|
+
toastHintStyle: ToastHintStyle;
|
|
873
|
+
hintStyle?: HintStyle;
|
|
874
|
+
}
|
|
875
|
+
interface GenericHint {
|
|
876
|
+
text: string;
|
|
877
|
+
tag?: string;
|
|
878
|
+
hintStyle: Omit<HintStyle, "anchor" | "verticalOffsetRatio" | "font" | "hintWidth" | "hintHeight" | "hintCornerStyle">;
|
|
879
|
+
}
|
|
880
|
+
interface PerformanceMetrics {
|
|
881
|
+
cameraOutputFrames: number;
|
|
882
|
+
redrawRequestsCount: number;
|
|
883
|
+
actualRedrawsCount: number;
|
|
884
|
+
frameDataPoolSize: number;
|
|
885
|
+
frameProcessingStartedCount: number;
|
|
886
|
+
frameProcessedCount: number;
|
|
887
|
+
frameSkippedCount: number;
|
|
888
|
+
}
|
|
889
|
+
declare enum LicensedFeature {
|
|
890
|
+
Ocr = 0,
|
|
891
|
+
HideLogo = 1,
|
|
892
|
+
ShowTestLicenseMessage = 2,
|
|
893
|
+
AugmentedReality = 5,
|
|
894
|
+
ActivityPingStatsAddon = 8,
|
|
895
|
+
ActivityPing = 9,
|
|
896
|
+
Registration = 10,
|
|
897
|
+
Parser = 11,
|
|
898
|
+
BarcodeCapture = 14,
|
|
899
|
+
Analytics = 17,
|
|
900
|
+
AnalyticsBatchMode = 18,
|
|
901
|
+
AnalyticsScanContent = 19,
|
|
902
|
+
AnalyticsOnlineVerification = 20,
|
|
903
|
+
SparkScan = 21,
|
|
904
|
+
AamvaIdBarcodeVerification = 22,
|
|
905
|
+
MappingForTracking = 23,
|
|
906
|
+
BarcodeFind = 24,
|
|
907
|
+
MandatoryRegistration = 25,
|
|
908
|
+
FeatureTracking = 26,
|
|
909
|
+
IdCaptureViz = 27,
|
|
910
|
+
IdCaptureMrz = 28,
|
|
911
|
+
IdCaptureBarcode = 29,
|
|
912
|
+
BarcodeSelectionAimToScan = 30,
|
|
913
|
+
BarcodeSelectionTapToScan = 31,
|
|
914
|
+
BarcodeCount = 32,
|
|
915
|
+
BarcodePick = 33,
|
|
916
|
+
IdVerificationDataComparison = 34,
|
|
917
|
+
SmartLabelBarcode = 35,
|
|
918
|
+
SmartLabelText = 36,
|
|
919
|
+
VoidedIdDetection = 37,
|
|
920
|
+
BarcodeArFull = 38,
|
|
921
|
+
BarcodeSequence = 39
|
|
922
|
+
}
|
|
923
|
+
interface HintPresenterV2 extends EmscriptenClassHandle {
|
|
924
|
+
showToast: (toastHint: string) => void;
|
|
925
|
+
hideToast: (tag: string) => void;
|
|
926
|
+
hideAllToasts: () => void;
|
|
927
|
+
showGuidance: (guidanceHint: string) => void;
|
|
928
|
+
hideCurrentGuidance: () => void;
|
|
929
|
+
update: () => void;
|
|
930
|
+
}
|
|
931
|
+
interface PlatformHintPresenter extends EmscriptenClassHandle {
|
|
932
|
+
setHintPresenter(presenter: HintPresenterV2): void;
|
|
933
|
+
showToast(toast: string): void;
|
|
934
|
+
hideToast(toast: string): void;
|
|
935
|
+
showGuidance(guidanceHint: string): void;
|
|
936
|
+
hideGuidance(guidanceHint: string): void;
|
|
937
|
+
startUpdateTimer(intervalMs: number): void;
|
|
938
|
+
stopUpdateTimer(): void;
|
|
939
|
+
}
|
|
940
|
+
interface Module extends EmscriptenModule {
|
|
941
|
+
ImageConverter: ImageConverter_statics;
|
|
942
|
+
ImageConverterInstance: ImageConverterInstance;
|
|
943
|
+
callMain: () => void;
|
|
944
|
+
canvas: OffscreenCanvas | undefined;
|
|
945
|
+
__emscripten_proxy_main?: Record<number | string | symbol, unknown>;
|
|
946
|
+
mainScriptUrlOrBlob: string | Blob;
|
|
947
|
+
DataCaptureContextDeserializer: new (fsFolderPath: string, deviceId: string, deviceModel: string, domain: string, parentDomain: string, modeDeserializer: Vector, delayedRegistration: boolean, highEndBlurryRecognition: boolean, resourcePath: string) => DataCaptureContextDeserializer;
|
|
948
|
+
DataCaptureContextListener: {
|
|
949
|
+
extend: (target: "DataCaptureContextListener", parameters: {
|
|
950
|
+
didChangeStatus: (context: DataCaptureContext$1, contextStatus: {
|
|
951
|
+
toJson: () => string;
|
|
952
|
+
}) => void;
|
|
953
|
+
didStartObservingContext: (context: DataCaptureContext$1) => void;
|
|
954
|
+
didStopObservingContext: (context: DataCaptureContext$1) => void;
|
|
955
|
+
}) => new () => EmscriptenClassHandle;
|
|
956
|
+
};
|
|
957
|
+
DataCaptureContextFrameListener: {
|
|
958
|
+
extend: (target: "DataCaptureContextFrameListener", parameters: {
|
|
959
|
+
onObservationStarted: (context: DataCaptureContext$1) => void;
|
|
960
|
+
onObservationStopped: (context: DataCaptureContext$1) => void;
|
|
961
|
+
onFrameProcessingStarted: (context: DataCaptureContext$1, frameData: WasmFrameData) => void;
|
|
962
|
+
onFrameProcessingFinished: (context: DataCaptureContext$1, frameData: WasmFrameData) => void;
|
|
963
|
+
onFrameSkipped: (context: DataCaptureContext$1, frameData: WasmFrameData) => void;
|
|
964
|
+
}) => new () => EmscriptenClassHandle;
|
|
965
|
+
};
|
|
966
|
+
HintPresenter: {
|
|
967
|
+
extend: (target: "HintPresenter", parameters: {
|
|
968
|
+
showHint: (hint: string, style: string) => void;
|
|
969
|
+
updateHint: (style: string) => void;
|
|
970
|
+
hideHint: () => void;
|
|
971
|
+
}) => new () => EmscriptenClassHandle;
|
|
972
|
+
};
|
|
973
|
+
PlatformHintPresenter: {
|
|
974
|
+
extend: (target: "PlatformHintPresenter", parameters: {
|
|
975
|
+
setHintPresenter(presenter: HintPresenterV2): void;
|
|
976
|
+
showToast(toastHint: string): void;
|
|
977
|
+
hideToast(toastHint: string): void;
|
|
978
|
+
showGuidance(guidanceHint: string): void;
|
|
979
|
+
hideGuidance(guidanceHint: string): void;
|
|
980
|
+
startUpdateTimer(intervalMs: number): void;
|
|
981
|
+
stopUpdateTimer(): void;
|
|
982
|
+
}) => new () => PlatformHintPresenter;
|
|
983
|
+
};
|
|
984
|
+
HintPresenterV2: new (platformHintPresenter: PlatformHintPresenter) => HintPresenterV2;
|
|
985
|
+
ImageBufferFrameSource: new (mirroredAxis: unknown, isCameraFrameSource: boolean, orientation?: number) => DataCaptureImageBufferFrameSource;
|
|
986
|
+
ImageBufferFormat: {
|
|
987
|
+
Grayscale8: unknown;
|
|
988
|
+
Rgb888: unknown;
|
|
989
|
+
Rgba8888: unknown;
|
|
990
|
+
};
|
|
991
|
+
Axis: ModuleMirrorAxis;
|
|
992
|
+
NeedsRedrawDelegate: {
|
|
993
|
+
extend: (target: "NeedsRedrawDelegate", parameters: {
|
|
994
|
+
setNeedsRedrawIn: (inMs: number) => void;
|
|
995
|
+
}) => new () => EmscriptenClassHandle;
|
|
996
|
+
};
|
|
997
|
+
GestureRecognizer: {
|
|
998
|
+
extend: (target: "GestureRecognizer", parameters: {
|
|
999
|
+
setGestureListener(gestureListener: GestureListener, flags: number): void;
|
|
1000
|
+
}) => new () => GestureRecognizer;
|
|
1001
|
+
};
|
|
1002
|
+
VectorDataCaptureModeDeserializer: new () => Vector;
|
|
1003
|
+
allocateUint8Array: (length: number) => number;
|
|
1004
|
+
deleteUint8Array: (address: number) => void;
|
|
1005
|
+
DataDecoding: {
|
|
1006
|
+
extend: (target: "DataDecoding", options: {
|
|
1007
|
+
decode: (rawData: ArrayBuffer, encodingRanges: string) => string;
|
|
1008
|
+
}) => new () => EmscriptenClassHandle;
|
|
1009
|
+
};
|
|
1010
|
+
setDataDecoding: (decoder: unknown) => void;
|
|
1011
|
+
BatteryData: new (percentage: number) => BatteryData;
|
|
1012
|
+
DeviceInterface: {
|
|
1013
|
+
extend: (target: "DeviceInterface", methods: {
|
|
1014
|
+
getBatteryData: () => BatteryData | undefined;
|
|
1015
|
+
isTablet: () => boolean;
|
|
1016
|
+
}) => new () => DeviceInterfaceInstance;
|
|
1017
|
+
};
|
|
1018
|
+
DeviceHolder: {
|
|
1019
|
+
setCurrentDevice: (device: DeviceInterfaceInstance) => void;
|
|
1020
|
+
};
|
|
1021
|
+
LicenseUtils: {
|
|
1022
|
+
getBlinkIdLicenseKey: (scanditLicense: string) => string;
|
|
1023
|
+
};
|
|
1024
|
+
Feedback: {
|
|
1025
|
+
extend: (target: "Feedback", parameters: {
|
|
1026
|
+
emit: () => void;
|
|
1027
|
+
}) => new () => WasmFeedback;
|
|
1028
|
+
};
|
|
1029
|
+
dispose: () => void;
|
|
1030
|
+
LicenseFeature: LicensedFeature;
|
|
1031
|
+
addBarcodeFindToContext: (context: DataCaptureContext$1, mode: EmscriptenClassHandle) => void;
|
|
1032
|
+
removeBarcodeFindFromContext: (context: DataCaptureContext$1, mode: EmscriptenClassHandle) => void;
|
|
1033
|
+
addBarcodeFindBasicOverlayToView: (view: DataCaptureView, overlay: EmscriptenClassHandle) => void;
|
|
1034
|
+
removeBarcodeFindBasicOverlayFromView: (view: DataCaptureView, overlay: EmscriptenClassHandle) => void;
|
|
1035
|
+
addBarcodeArToContext: (context: DataCaptureContext$1, mode: EmscriptenClassHandle) => void;
|
|
1036
|
+
removeBarcodeArFromContext: (context: DataCaptureContext$1, mode: EmscriptenClassHandle) => void;
|
|
1037
|
+
OpenSourceSoftwareLicenseInfo: {
|
|
1038
|
+
getLicenseText(): string;
|
|
1039
|
+
};
|
|
1040
|
+
}
|
|
1041
|
+
type AugmentedWorker<M extends EmscriptenModule> = Worker & {
|
|
1042
|
+
Module: M;
|
|
1043
|
+
OffscreenCanvas: new (w: number, h: number) => OffscreenCanvas;
|
|
1044
|
+
};
|
|
1045
|
+
type EngineWorkerResponse<C extends DataCaptureActionMessageKey> = WorkerResponse<C> extends Promise<void> | void ? Promise<void> | void : {
|
|
1046
|
+
payload: WorkerResponse<C>;
|
|
1047
|
+
transferables?: Transferable[];
|
|
1048
|
+
};
|
|
1049
|
+
interface ModuleHandler<M extends Module> {
|
|
1050
|
+
get: () => M;
|
|
1051
|
+
set: (v: M) => void;
|
|
1052
|
+
}
|
|
1053
|
+
//#endregion
|
|
1054
|
+
//#region src/main/worker/dataCaptureEngine.d.ts
|
|
1055
|
+
interface LoadLibraryParameters {
|
|
1056
|
+
libraryLocation: string;
|
|
1057
|
+
locationPath: string;
|
|
1058
|
+
writableDataPathOverride?: string;
|
|
1059
|
+
indexedDBTimeoutMs: number;
|
|
1060
|
+
verifyResponseHash: boolean;
|
|
1061
|
+
onProgress?: (info: ProgressInfo) => void;
|
|
1062
|
+
referredOrigin?: string;
|
|
1063
|
+
fixedWasmMemory: number | null;
|
|
1064
|
+
simdSupport: boolean;
|
|
1065
|
+
threadsSupport: boolean;
|
|
1066
|
+
}
|
|
1067
|
+
interface CreateContextParameters {
|
|
1068
|
+
context: DataCaptureContextJSON;
|
|
1069
|
+
deviceId: string;
|
|
1070
|
+
delayedRegistration: boolean;
|
|
1071
|
+
highEndBlurryRecognition: boolean;
|
|
1072
|
+
appName: string | null;
|
|
1073
|
+
parentDomain: string;
|
|
1074
|
+
isTablet: boolean;
|
|
1075
|
+
batteryInfo: BatteryInfo;
|
|
1076
|
+
}
|
|
1077
|
+
interface UpdateContextParameters {
|
|
1078
|
+
context: DataCaptureContextJSON;
|
|
1079
|
+
view: {
|
|
1080
|
+
width: number;
|
|
1081
|
+
height: number;
|
|
1082
|
+
visible: boolean;
|
|
1083
|
+
orientation: Orientation;
|
|
1084
|
+
} | null;
|
|
1085
|
+
}
|
|
1086
|
+
interface SetFrameSourceParameters {
|
|
1087
|
+
mirrorAxis: PrivateMirrorAxis;
|
|
1088
|
+
isCameraFrameSource: boolean;
|
|
1089
|
+
}
|
|
1090
|
+
type ProcessFrameParameters = FrameCapture;
|
|
1091
|
+
interface ReportCameraPropertiesParameters {
|
|
1092
|
+
deviceId: string;
|
|
1093
|
+
hasAutofocus: boolean;
|
|
1094
|
+
isFrontFacing: boolean;
|
|
1095
|
+
}
|
|
1096
|
+
interface WorkerFunctions {
|
|
1097
|
+
getOffscreenCanvas: () => OffscreenCanvas | undefined;
|
|
1098
|
+
postMessage: (message: DataCaptureCallbackMessage, transfer?: Transferable[]) => void;
|
|
1099
|
+
}
|
|
1100
|
+
/**
|
|
1101
|
+
* DataCaptureEngine is an abstraction of the engine, it is created by the engine worker
|
|
1102
|
+
* and should be used as a singleton. It calls the underlying engine methods directly.
|
|
1103
|
+
*/
|
|
1104
|
+
declare class DataCaptureEngine<M extends Module> {
|
|
1105
|
+
private static get3dPartyLicenseKeyMethodName;
|
|
1106
|
+
context: DataCaptureContext$1;
|
|
1107
|
+
lastUsedModuleMirrorAxis: unknown;
|
|
1108
|
+
view: DataCaptureView | undefined;
|
|
1109
|
+
hintPresenterV2: HintPresenterV2 | null;
|
|
1110
|
+
/**
|
|
1111
|
+
* Maximum number of frames to keep in the pool.
|
|
1112
|
+
* Set to 5 to balance between:
|
|
1113
|
+
* - Providing sufficient buffering for frame listener callbacks that may arrive slightly out-of-order
|
|
1114
|
+
* - Minimizing memory overhead in the worker thread
|
|
1115
|
+
* - At 30 fps, 5 frames = ~167ms of retention, sufficient for most listener callbacks
|
|
1116
|
+
* - For higher frame rates, FIFO eviction prevents unbounded growth
|
|
1117
|
+
*/
|
|
1118
|
+
protected readonly MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL: number;
|
|
1119
|
+
protected readonly moduleHandler: ModuleHandler<M>;
|
|
1120
|
+
protected readonly redrawInterval: number;
|
|
1121
|
+
protected readonly redrawRequests: number[];
|
|
1122
|
+
protected readonly workerFunctions: WorkerFunctions;
|
|
1123
|
+
protected _isDrawLoopRunning: boolean;
|
|
1124
|
+
protected contextDeserializer: DataCaptureContextDeserializer | undefined;
|
|
1125
|
+
/**
|
|
1126
|
+
* Frame data pool that stores copies of frame data for access by listeners.
|
|
1127
|
+
* Frame data is stored with frameId as key, typically using performance.now() for high-precision timing.
|
|
1128
|
+
*
|
|
1129
|
+
* Frame ID Generation & Management:
|
|
1130
|
+
* - frameId comes from camera frame sources (typically performance.now() in milliseconds with decimal precision)
|
|
1131
|
+
* - Frames are stored in insertion order (Map preserves insertion order in JavaScript)
|
|
1132
|
+
* - Memory is managed through two complementary mechanisms:
|
|
1133
|
+
* 1. Bounded pool size (MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL) with FIFO eviction of oldest frames
|
|
1134
|
+
* 2. Immediate deletion after transfer via requestFrameData() to give callers control over lifetime
|
|
1135
|
+
* - For the deleteFrameData() API, frames marked for deletion are cleaned up on next prepareFrameForListener call
|
|
1136
|
+
* - This combination prevents both unbounded memory growth and memory leaks from unrequested frames
|
|
1137
|
+
*/
|
|
1138
|
+
protected frameDataPool: Map<FrameId, {
|
|
1139
|
+
data: Uint8ClampedArray;
|
|
1140
|
+
colorType: ColorType;
|
|
1141
|
+
frameId: FrameId;
|
|
1142
|
+
width: number;
|
|
1143
|
+
height: number;
|
|
1144
|
+
}>;
|
|
1145
|
+
protected lastFrameColorType: ColorType;
|
|
1146
|
+
protected lastFrameId: FrameId | null;
|
|
1147
|
+
protected imageFrameSource?: DataCaptureImageBufferFrameSource;
|
|
1148
|
+
protected libraryLoadingPromise: Promise<void> | undefined;
|
|
1149
|
+
protected loopTimeoutId?: ReturnType<typeof setTimeout>;
|
|
1150
|
+
protected resourcePath: string;
|
|
1151
|
+
protected writableDataPath: string;
|
|
1152
|
+
protected poorMansBenchmarkLogs: boolean;
|
|
1153
|
+
protected parentDomain: string;
|
|
1154
|
+
protected readonly writableDataPathStandard: string;
|
|
1155
|
+
protected readonly resourceFilesSubfolder: string;
|
|
1156
|
+
protected performanceMetricsReporterTimer: ReturnType<typeof setTimeout> | number | undefined;
|
|
1157
|
+
protected lastMetricsReportTime: number;
|
|
1158
|
+
protected readonly metricsReportInterval: number;
|
|
1159
|
+
protected performanceMetrics: PerformanceMetrics;
|
|
1160
|
+
protected frameProcessingStartedCount: number;
|
|
1161
|
+
protected frameProcessingFinishedCount: number;
|
|
1162
|
+
protected gestureRecognizer: GestureRecognizer | null;
|
|
1163
|
+
private gestureListener;
|
|
1164
|
+
private webPlatformHintPresenter;
|
|
1165
|
+
private deviceInstance;
|
|
1166
|
+
private deviceInfo;
|
|
1167
|
+
private webImageConverterInstance;
|
|
1168
|
+
private lastViewInfo;
|
|
1169
|
+
constructor(moduleHandler: ModuleHandler<M>, workerFunctions: WorkerFunctions);
|
|
1170
|
+
get Module(): M;
|
|
1171
|
+
set isDrawLoopRunning(newValue: boolean);
|
|
1172
|
+
get isDrawLoopRunning(): boolean;
|
|
1173
|
+
/**
|
|
1174
|
+
* Prepares frame data for listener callbacks by pooling it and cleaning up marked frames.
|
|
1175
|
+
* Called on session update for tracking modes and on didScan for scan modes.
|
|
1176
|
+
* @param frameData - The frame data to prepare for listener access.
|
|
1177
|
+
* @returns The loadable frame data metadata.
|
|
1178
|
+
*/
|
|
1179
|
+
prepareFrameForListener(frameData: WasmFrameData): PrivateLoadableFrameData;
|
|
1180
|
+
createContext(createContextJSON: CreateContextParameters): EngineWorkerResponse<"createContext">;
|
|
1181
|
+
convertToJPEGResult(imageId: number, result: Uint8Array): void;
|
|
1182
|
+
/**
|
|
1183
|
+
* Returns the ImageConverterInstance to be used in the worker thread. Depending on the availability of
|
|
1184
|
+
* OffscreenCanvas, a different implementation is returned.
|
|
1185
|
+
*/
|
|
1186
|
+
protected getImageConverterInstance(options: {
|
|
1187
|
+
quality: number;
|
|
1188
|
+
}): ImageConverterInstance;
|
|
1189
|
+
onTap(point: PointJSON): void;
|
|
1190
|
+
hintPresenterV2Update(): void;
|
|
1191
|
+
private lastFrameProcessingStartedCount;
|
|
1192
|
+
private lastFrameProcessingFinishedCount;
|
|
1193
|
+
startReportingPerformanceMetrics(): void;
|
|
1194
|
+
private scheduleMetricsReporting;
|
|
1195
|
+
private checkAndReportMetrics;
|
|
1196
|
+
reportPerformanceMetrics(): Promise<void>;
|
|
1197
|
+
deleteFrameData(frameId: FrameId): void;
|
|
1198
|
+
dispose(): EngineWorkerResponse<"dispose">;
|
|
1199
|
+
private cleanupMetricsReporting;
|
|
1200
|
+
flushAnalytics(): void;
|
|
1201
|
+
extractCentaurusLicense(scanditLicenseKey: string): EngineWorkerResponse<"extractCentaurusLicense">;
|
|
1202
|
+
getModeDeserializers(): Vector;
|
|
1203
|
+
loadLibrary(parameters: LoadLibraryParameters): EngineWorkerResponse<"loadLibrary">;
|
|
1204
|
+
processFrame(parameters: ProcessFrameParameters): EngineWorkerResponse<"processFrame">;
|
|
1205
|
+
reportCameraProperties(properties: ReportCameraPropertiesParameters): EngineWorkerResponse<"reportCameraProperties">;
|
|
1206
|
+
/**
|
|
1207
|
+
* Request frame data from the pool.
|
|
1208
|
+
* Converts grayscale to RGBA in the worker if needed.
|
|
1209
|
+
* Frames are immediately deleted after transfer to prevent memory accumulation.
|
|
1210
|
+
* @param frameId - The ID of the frame to retrieve.
|
|
1211
|
+
* @returns The frame data, with the frame deleted from the pool immediately after.
|
|
1212
|
+
*/
|
|
1213
|
+
requestFrameData(frameId: FrameId): EngineWorkerResponse<"requestFrameData">;
|
|
1214
|
+
scheduleRedraw(view: DataCaptureView, redrawInMs: number): void;
|
|
1215
|
+
sendViewRefreshCommands(commands: Uint8Array): void;
|
|
1216
|
+
setFrameSource(mirrorAxis: PrivateMirrorAxis, isCameraFrameSource: boolean): EngineWorkerResponse<"setFrameSource">;
|
|
1217
|
+
/**
|
|
1218
|
+
* The draw loop check at regular interval if any redraw request were made by the engine.
|
|
1219
|
+
* If a redraw is necessary, it gathers and sends drawing commands to the main thread.
|
|
1220
|
+
*/
|
|
1221
|
+
startDrawLoop(view: DataCaptureView): void;
|
|
1222
|
+
updateContext(contextUpdateParameters: UpdateContextParameters): EngineWorkerResponse<"updateContext">;
|
|
1223
|
+
notifyMainThreadOnViewInfoChanged(view?: DataCaptureView): void;
|
|
1224
|
+
protected getViewInfo(view?: DataCaptureView | null): ViewInfo | null;
|
|
1225
|
+
protected getOrientationFromNumber(orientation: number): Orientation;
|
|
1226
|
+
/**
|
|
1227
|
+
* Called before updateContextFromJson
|
|
1228
|
+
*
|
|
1229
|
+
* @protected
|
|
1230
|
+
* @param {UpdateContextParameters} contextUpdateParameters
|
|
1231
|
+
* @returns {UpdateContextParameters}
|
|
1232
|
+
*/
|
|
1233
|
+
protected onBeforeUpdateContextHook(contextUpdateParameters: UpdateContextParameters): UpdateContextParameters;
|
|
1234
|
+
onDocumentVisibilityChange(state: DocumentVisibilityState): void;
|
|
1235
|
+
isFeatureSupported(feature: LicensedFeature): EngineWorkerResponse<"isFeatureSupported">;
|
|
1236
|
+
getViewfinderInfo(): EngineWorkerResponse<"getViewfinderInfo">;
|
|
1237
|
+
getOpenSourceSoftwareLicenseInfo(): EngineWorkerResponse<"getOpenSourceSoftwareLicenseInfo">;
|
|
1238
|
+
protected getWasmDynamicLibraries(coreWasmURI: string): string[];
|
|
1239
|
+
protected getWasmCoreExpectedHash(simdSupport: boolean, threadsSupport: boolean): string;
|
|
1240
|
+
protected getWasmCoreFileName(simdSupport: boolean, threadsSupport: boolean): string;
|
|
1241
|
+
protected getWasmMetadata(): Record<string, {
|
|
1242
|
+
bytes: number;
|
|
1243
|
+
}>;
|
|
1244
|
+
protected getWasmSideModuleFileName(): string;
|
|
1245
|
+
private _loadProgressCallback;
|
|
1246
|
+
/**
|
|
1247
|
+
* Redraw requests are scheduled at [now + redrawInMs], so when pushed they must be sorted
|
|
1248
|
+
* in chronological order so that we can later easily check if we need to redraw by checking
|
|
1249
|
+
* the first element.
|
|
1250
|
+
* @param redrawInMs
|
|
1251
|
+
*/
|
|
1252
|
+
private addRedrawRequest;
|
|
1253
|
+
private contextDidChangeStatus;
|
|
1254
|
+
private didStartObservingContext;
|
|
1255
|
+
private mapMirrorAxisOnModule;
|
|
1256
|
+
protected setView(view: DataCaptureView | undefined): void;
|
|
1257
|
+
/**
|
|
1258
|
+
* Add a native overlay to the view without passing from the deserializer.
|
|
1259
|
+
* must be implemented in the specific module.
|
|
1260
|
+
* @param event - The message event containing the overlay handle.
|
|
1261
|
+
*/
|
|
1262
|
+
addNativeOverlay(event: MessageEvent<AnyDataCaptureActionMessage>): void;
|
|
1263
|
+
/**
|
|
1264
|
+
* Remove a native overlay from the view.
|
|
1265
|
+
* must be implemented in the specific module.
|
|
1266
|
+
* @param event - The message event containing the overlay handle.
|
|
1267
|
+
*/
|
|
1268
|
+
removeNativeOverlay(event: MessageEvent<AnyDataCaptureActionMessage>): void;
|
|
1269
|
+
private setViewRefreshHandler;
|
|
1270
|
+
private setupDataDecoding;
|
|
1271
|
+
private getBatteryData;
|
|
1272
|
+
private isTablet;
|
|
1273
|
+
private setupDeviceInterface;
|
|
1274
|
+
updateBatteryInfo(batteryInfo: BatteryInfo): void;
|
|
1275
|
+
private start;
|
|
1276
|
+
private getWritableDataPath;
|
|
1277
|
+
private numOfMBToPages;
|
|
1278
|
+
private setup;
|
|
1279
|
+
}
|
|
1280
|
+
//#endregion
|
|
1281
|
+
//#region src/main/private/CameraManager.d.ts
|
|
1282
|
+
declare enum MeteringMode {
|
|
1283
|
+
CONTINUOUS = "continuous",
|
|
1284
|
+
MANUAL = "manual",
|
|
1285
|
+
NONE = "none",
|
|
1286
|
+
SINGLE_SHOT = "single-shot"
|
|
1287
|
+
}
|
|
1288
|
+
declare enum CameraResolutionConstraint {
|
|
1289
|
+
ULTRA_HD = 0,
|
|
1290
|
+
FULL_HD = 1,
|
|
1291
|
+
HD = 2,
|
|
1292
|
+
SD = 3,
|
|
1293
|
+
NONE = 4
|
|
1294
|
+
}
|
|
1295
|
+
interface ExtendedMediaTrackCapabilities extends MediaTrackCapabilities {
|
|
1296
|
+
exposureCompensation?: DoubleRange;
|
|
1297
|
+
exposureMode?: MeteringMode[];
|
|
1298
|
+
exposureTime?: DoubleRange;
|
|
1299
|
+
focusDistance?: DoubleRange;
|
|
1300
|
+
focusMode?: MeteringMode[];
|
|
1301
|
+
torch?: boolean;
|
|
1302
|
+
zoom?: DoubleRange;
|
|
1303
|
+
}
|
|
1304
|
+
interface ExtendedMediaTrackConstraintSet extends MediaTrackConstraintSet {
|
|
1305
|
+
exposureCompensation?: ConstrainDouble | number;
|
|
1306
|
+
exposureMode?: MeteringMode;
|
|
1307
|
+
exposureTime?: ConstrainDouble | number;
|
|
1308
|
+
focusDistance?: ConstrainDouble | number;
|
|
1309
|
+
focusMode?: MeteringMode;
|
|
1310
|
+
torch?: boolean;
|
|
1311
|
+
zoom?: ConstrainDouble | number;
|
|
1312
|
+
}
|
|
1313
|
+
interface GUI {
|
|
1314
|
+
isCameraRecoveryVisible: () => boolean;
|
|
1315
|
+
setCameraRecoveryVisible: (visible: boolean) => void;
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Branded type for frame IDs to improve type safety.
|
|
1319
|
+
*
|
|
1320
|
+
* Frame IDs are high-resolution timestamps generated via performance.now() using getTimestamp().
|
|
1321
|
+
* Using a branded type prevents accidental mixing with other numeric IDs and
|
|
1322
|
+
* makes the intent of numeric values explicit in type signatures.
|
|
1323
|
+
*
|
|
1324
|
+
* Example:
|
|
1325
|
+
* ```typescript
|
|
1326
|
+
* // ✓ Correct: explicitly marked as a frame ID
|
|
1327
|
+
* const frameId: FrameId = getTimestamp() as FrameId;
|
|
1328
|
+
*
|
|
1329
|
+
* // ✗ TypeScript error: number is not assignable to FrameId
|
|
1330
|
+
* const wrongId: FrameId = 12345;
|
|
1331
|
+
* ```
|
|
1332
|
+
*
|
|
1333
|
+
* Benefits:
|
|
1334
|
+
* - Prevents confusion between frame IDs and other numeric identifiers
|
|
1335
|
+
* - Makes it immediately clear in function signatures that a value is a frame ID
|
|
1336
|
+
* - Compiler catches accidental type mismatches at compile time
|
|
1337
|
+
*/
|
|
1338
|
+
declare const FrameIdBrand: unique symbol;
|
|
1339
|
+
type FrameId = number & {
|
|
1340
|
+
readonly [FrameIdBrand]: "FrameId";
|
|
1341
|
+
};
|
|
1342
|
+
/**
|
|
1343
|
+
* Creates a branded FrameId using the current high-resolution timestamp.
|
|
1344
|
+
* @returns A branded FrameId value
|
|
1345
|
+
*/
|
|
1346
|
+
declare function createFrameId(): FrameId;
|
|
1347
|
+
interface FrameCapture {
|
|
1348
|
+
colorType?: ColorType;
|
|
1349
|
+
data: Uint8ClampedArray;
|
|
1350
|
+
frameId: FrameId;
|
|
1351
|
+
height: number;
|
|
1352
|
+
width: number;
|
|
1353
|
+
}
|
|
1354
|
+
declare enum CameraManagerEvent {
|
|
1355
|
+
CAMERA_PROPERTIES = "cameraProperties",
|
|
1356
|
+
CAMERA_ACCESS_ERROR = "cameraAccessError"
|
|
1357
|
+
}
|
|
1358
|
+
type CameraManagerEventParameters<C> = C extends CameraManagerEvent.CAMERA_PROPERTIES ? ReportCameraPropertiesParameters : C extends CameraManagerEvent.CAMERA_ACCESS_ERROR ? any : never;
|
|
1359
|
+
/**
|
|
1360
|
+
* A barcode picker utility class used to handle camera interaction.
|
|
1361
|
+
*/
|
|
1362
|
+
declare class CameraManager {
|
|
1363
|
+
private static readonly autofocusIntervalMs;
|
|
1364
|
+
private static readonly cameraAccessTimeoutMs;
|
|
1365
|
+
private static readonly getCapabilitiesTimeoutMs;
|
|
1366
|
+
private static readonly manualFocusWaitTimeoutMs;
|
|
1367
|
+
private static readonly manualToAutofocusResumeTimeoutMs;
|
|
1368
|
+
private static readonly noCameraErrorParameters;
|
|
1369
|
+
private static readonly notReadableErrorParameters;
|
|
1370
|
+
private static readonly videoMetadataCheckIntervalMs;
|
|
1371
|
+
private static readonly videoMetadataCheckTimeoutMs;
|
|
1372
|
+
private static MIRRORED_CLASS_NAME;
|
|
1373
|
+
private static _instance;
|
|
1374
|
+
activeCamera?: DeviceCamera;
|
|
1375
|
+
activeCameraSettings?: CameraSettings;
|
|
1376
|
+
canvas: HTMLCanvasElement;
|
|
1377
|
+
gui: GUI;
|
|
1378
|
+
selectedCamera?: DeviceCamera;
|
|
1379
|
+
videoElement: HTMLVideoElement;
|
|
1380
|
+
private constraint;
|
|
1381
|
+
private clipArea?;
|
|
1382
|
+
private readonly checkCameraVideoStreamAccessIfVisibleListener;
|
|
1383
|
+
private readonly handleWebGLContextLostListener;
|
|
1384
|
+
private readonly listeners;
|
|
1385
|
+
private readonly mirrorImageOverrides;
|
|
1386
|
+
private readonly postStreamInitializationListener;
|
|
1387
|
+
private readonly triggerFatalError;
|
|
1388
|
+
private readonly triggerManualFocusListener;
|
|
1389
|
+
private readonly videoResizeListener;
|
|
1390
|
+
private readonly videoTrackEndedListener;
|
|
1391
|
+
private readonly videoTrackMuteListener;
|
|
1392
|
+
private _canvas2dContext;
|
|
1393
|
+
private _canvasWebGLContext;
|
|
1394
|
+
private _synchronousFrameHandling;
|
|
1395
|
+
private _frameReaderOptions;
|
|
1396
|
+
private _glFrameReaders;
|
|
1397
|
+
private _frameReaderType;
|
|
1398
|
+
private _mediaStream?;
|
|
1399
|
+
private abortedCameraInitializationResolveCallback?;
|
|
1400
|
+
private autofocusInterval;
|
|
1401
|
+
private cameraAccessRejectCallback?;
|
|
1402
|
+
private cameraAccessTimeout;
|
|
1403
|
+
private cameraInitializationPromise?;
|
|
1404
|
+
private cameraPosition;
|
|
1405
|
+
private cameraSetupPromise?;
|
|
1406
|
+
private getCapabilitiesTimeout;
|
|
1407
|
+
private manualFocusWaitTimeout;
|
|
1408
|
+
private manualToAutofocusResumeTimeout;
|
|
1409
|
+
private mediaTrackCapabilities?;
|
|
1410
|
+
private mediaTrackCapabilitiesPromise?;
|
|
1411
|
+
private mediaTrackCapabilitiesPromiseResolver?;
|
|
1412
|
+
private selectedCameraSettings?;
|
|
1413
|
+
private tapToFocusEnabled;
|
|
1414
|
+
private torchEnabled;
|
|
1415
|
+
private torchToggleEnabled;
|
|
1416
|
+
private videoMetadataCheckInterval;
|
|
1417
|
+
private isWebGLSupported;
|
|
1418
|
+
private clippedFrameRequestID?;
|
|
1419
|
+
private isVideoStreamPaused;
|
|
1420
|
+
private handleVideoPauseHandler;
|
|
1421
|
+
constructor();
|
|
1422
|
+
get mediaStream(): MediaStream | undefined;
|
|
1423
|
+
set mediaStream(stream: MediaStream | undefined);
|
|
1424
|
+
get synchronousFrameHandling(): boolean;
|
|
1425
|
+
private get canvas2dContext();
|
|
1426
|
+
private get canvasWebGLContext();
|
|
1427
|
+
static instance(): CameraManager;
|
|
1428
|
+
dispose(): void;
|
|
1429
|
+
recycle(pixelsData: Uint8ClampedArray): void;
|
|
1430
|
+
getCurrentFrame(): FrameCapture | undefined;
|
|
1431
|
+
requestVideoFrame(scheduledFunction: FrameRequestCallback | VideoFrameRequestCallback, videoElement?: HTMLVideoElement): number;
|
|
1432
|
+
cancelVideoFrame(id: number, videoElement?: HTMLVideoElement): void;
|
|
1433
|
+
addListener<E extends CameraManagerEvent>(event: CameraManagerEvent, listener: (details: CameraManagerEventParameters<E>) => void): void;
|
|
1434
|
+
applyCameraSettings(cameraSettings?: CameraSettings): Promise<void>;
|
|
1435
|
+
captureImage(): FrameCapture | null;
|
|
1436
|
+
initializeCameraWithSettings(camera?: DeviceCamera, cameraSettings?: CameraSettings, desiredTorchState?: TorchState): Promise<void>;
|
|
1437
|
+
isMirrorImageEnabled(): boolean;
|
|
1438
|
+
isTapToFocusEnabled(): boolean;
|
|
1439
|
+
isTorchAvailable(): Promise<boolean>;
|
|
1440
|
+
playVideo(): Promise<void>;
|
|
1441
|
+
reinitializeCamera(): Promise<void>;
|
|
1442
|
+
removeListener<E extends CameraManagerEvent>(event: CameraManagerEvent, listenerToRemove?: (details: CameraManagerEventParameters<E>) => void): void;
|
|
1443
|
+
setCameraPosition(cameraPosition: CameraPosition): Promise<void>;
|
|
1444
|
+
setExposure(exposure: {
|
|
1445
|
+
compensation?: number;
|
|
1446
|
+
time?: number;
|
|
1447
|
+
}): Promise<void>;
|
|
1448
|
+
setFocus(manualLensPosition: number): Promise<void>;
|
|
1449
|
+
setFrameRate(frameRate: {
|
|
1450
|
+
min?: number;
|
|
1451
|
+
max?: number;
|
|
1452
|
+
}): Promise<void>;
|
|
1453
|
+
setInitialCameraPosition(cameraPosition: CameraPosition): void;
|
|
1454
|
+
setInteractionOptions(torchToggleEnabled: boolean, tapToFocusEnabled: boolean): void;
|
|
1455
|
+
setMirrorImageEnabled(enabled: boolean, override: boolean): void;
|
|
1456
|
+
setSelectedCamera(camera?: DeviceCamera): void;
|
|
1457
|
+
setSelectedCameraSettings(cameraSettings?: CameraSettings): void;
|
|
1458
|
+
setTapToFocusEnabled(enabled: boolean): void;
|
|
1459
|
+
setTorchEnabled(enabled: boolean): Promise<void>;
|
|
1460
|
+
setZoom(zoomFactor: number): Promise<void>;
|
|
1461
|
+
setupCameras(): Promise<void>;
|
|
1462
|
+
pauseStream(): void;
|
|
1463
|
+
resumeStream(): void;
|
|
1464
|
+
stopStream(cameraInitializationFailure?: boolean): Promise<void>;
|
|
1465
|
+
stopVideoTracks(): void;
|
|
1466
|
+
toggleTorch(): Promise<void>;
|
|
1467
|
+
updateCanvasVideoImage(): void;
|
|
1468
|
+
waitForCapabilities(): Promise<void>;
|
|
1469
|
+
setFrameReaderType(type: ColorType): void;
|
|
1470
|
+
allowPictureInPicture(allow: boolean): Promise<void>;
|
|
1471
|
+
setFrameHandling(synchronous: boolean): void;
|
|
1472
|
+
setClipArea(clipArea?: Rect): Promise<void>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Converts a rectangle in DataCaptureView coordinates to camera frame coordinates.
|
|
1475
|
+
*/
|
|
1476
|
+
private frameRectFromViewRect;
|
|
1477
|
+
private accessAutoselectedCamera;
|
|
1478
|
+
private getFrameReaderOptions;
|
|
1479
|
+
private getFrameReader;
|
|
1480
|
+
private accessInitialCamera;
|
|
1481
|
+
/**
|
|
1482
|
+
* When a context has been created for a canvas, it is not possible to get another one from another type.
|
|
1483
|
+
* This function re-creates a new canvas based on the existing one.
|
|
1484
|
+
*/
|
|
1485
|
+
private recreateCanvas;
|
|
1486
|
+
private captureImageFor2dContext;
|
|
1487
|
+
private areVideoAndWebGLSizeMismatching;
|
|
1488
|
+
private captureImageForWebGLContext;
|
|
1489
|
+
private checkCameraAccess;
|
|
1490
|
+
private checkCameraVideoStreamAccessIfVisible;
|
|
1491
|
+
private checkVideoMetadata;
|
|
1492
|
+
private disableTapToFocusListeners;
|
|
1493
|
+
private emit;
|
|
1494
|
+
private enableTapToFocusListeners;
|
|
1495
|
+
private getActiveCamera;
|
|
1496
|
+
private getInitialCameraResolutionConstraint;
|
|
1497
|
+
private handleCameraInitializationError;
|
|
1498
|
+
private handleVideoResize;
|
|
1499
|
+
private handleWebGLContextLost;
|
|
1500
|
+
private initializeCameraAndCheckUpdatedSettings;
|
|
1501
|
+
private initializeCameraForResolution;
|
|
1502
|
+
private initializeStreamForResolution;
|
|
1503
|
+
private isVideoAndContextStateValid;
|
|
1504
|
+
private postStreamInitialization;
|
|
1505
|
+
private recoverStreamIfNeeded;
|
|
1506
|
+
private reportCameraProperties;
|
|
1507
|
+
private setCameraAccessTimeout;
|
|
1508
|
+
private setupAutofocus;
|
|
1509
|
+
private setupCameraStreamVideo;
|
|
1510
|
+
private setupCamerasAndStream;
|
|
1511
|
+
private storeStreamCapabilities;
|
|
1512
|
+
private triggerAutoFocus;
|
|
1513
|
+
private triggerFocusMode;
|
|
1514
|
+
private triggerManualFocus;
|
|
1515
|
+
private triggerManualFocusForContinuous;
|
|
1516
|
+
private triggerManualFocusForSingleShot;
|
|
1517
|
+
private updateActiveCameraCurrentResolution;
|
|
1518
|
+
private updateStreamForResolution;
|
|
1519
|
+
private videoTrackEndedRecovery;
|
|
1520
|
+
private videoTrackMuteRecovery;
|
|
1521
|
+
private clipMediaStreamIfNeeded;
|
|
1522
|
+
private drawClippedFrame;
|
|
1523
|
+
private cleanupClippedStream;
|
|
1524
|
+
connectedCallback(mountLocation: HTMLElement): void;
|
|
1525
|
+
disconnectedCallback(): void;
|
|
1526
|
+
getVideoElement(): HTMLVideoElement;
|
|
1527
|
+
private handleVideoPause;
|
|
1528
|
+
}
|
|
1529
|
+
//#endregion
|
|
1530
|
+
//#region src/main/FrameData.d.ts
|
|
1531
|
+
interface FrameData {
|
|
1532
|
+
readonly width: number;
|
|
1533
|
+
readonly height: number;
|
|
1534
|
+
readonly isFrameSourceMirrored: boolean;
|
|
1535
|
+
toBlob(type?: string, quality?: number): Promise<Blob | null>;
|
|
1536
|
+
getData(): Promise<Uint8ClampedArray | null>;
|
|
1537
|
+
}
|
|
1538
|
+
type PrivateLoadableFrameData = Omit<FrameData, "getData" | "toBlob"> & {
|
|
1539
|
+
frameId: FrameId;
|
|
1540
|
+
};
|
|
1541
|
+
/**
|
|
1542
|
+
* Adds some function to the passed frame data object to let the user load the frame data.
|
|
1543
|
+
*/
|
|
1544
|
+
declare function convertToPublicFrameData(loadableFrameData: PrivateLoadableFrameData, context: DataCaptureContext): FrameData;
|
|
1545
|
+
//#endregion
|
|
1546
|
+
//#region src/main/moduleLoader.d.ts
|
|
1547
|
+
interface ModuleLoader {
|
|
1548
|
+
moduleName: string;
|
|
1549
|
+
load(options: ModuleLoaderOptions): Promise<any>;
|
|
1550
|
+
}
|
|
1551
|
+
//#endregion
|
|
1552
|
+
//#region src/main/worker/WorkerMain.d.ts
|
|
1553
|
+
declare class WorkerMain<E extends DataCaptureEngine<M>, M extends Module> {
|
|
1554
|
+
dataCaptureInstance: E;
|
|
1555
|
+
onMessageListener: (event: MessageEvent<AnyDataCaptureActionMessage>) => boolean;
|
|
1556
|
+
private readonly workerSelf;
|
|
1557
|
+
constructor(workerSelf: AugmentedWorker<M>, module: ModuleHandler<M>);
|
|
1558
|
+
listenToMessages(): void;
|
|
1559
|
+
postMessage(message: DataCaptureCallbackMessage, transfer?: Transferable[]): void;
|
|
1560
|
+
getOffscreenCanvas(): OffscreenCanvas | undefined;
|
|
1561
|
+
isOffscreenCanvasSupported(): boolean;
|
|
1562
|
+
hasPayload(result: unknown): result is {
|
|
1563
|
+
payload: unknown;
|
|
1564
|
+
};
|
|
1565
|
+
hasTransferables(result: unknown): result is {
|
|
1566
|
+
transferables: Transferable[];
|
|
1567
|
+
};
|
|
1568
|
+
respondWith<C extends DataCaptureActionMessageKey>(command: C, requestId: number, executor: () => EngineWorkerResponse<C>): Promise<void>;
|
|
1569
|
+
/**
|
|
1570
|
+
* Messages received from the main thread (actions to undertake)
|
|
1571
|
+
*/
|
|
1572
|
+
onMessage(event: MessageEvent<AnyDataCaptureActionMessage>): boolean;
|
|
1573
|
+
}
|
|
1574
|
+
//#endregion
|
|
1575
|
+
//#region src/main/worker/dataCaptureLoader.d.ts
|
|
1576
|
+
type CommandAndPayload<A, C> = A extends {
|
|
1577
|
+
command: C;
|
|
1578
|
+
} ? A : never;
|
|
1579
|
+
type WorkerCommandPayload<C> = Omit<CommandAndPayload<AnyDataCaptureActionMessage, C>, "command" | "id">;
|
|
1580
|
+
type WorkerListener = (event: DataCaptureCallbackMessage) => any;
|
|
1581
|
+
interface DataCaptureLoaderOptions {
|
|
1582
|
+
libraryLocation: string;
|
|
1583
|
+
verifyResponseHash: boolean;
|
|
1584
|
+
loadProgressNotifier?: (info: ProgressInfo) => void;
|
|
1585
|
+
logLevel?: Logger.Level;
|
|
1586
|
+
highEndBlurryRecognition?: boolean;
|
|
1587
|
+
simdSupport: boolean;
|
|
1588
|
+
threadsSupport: boolean;
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* The DataCaptureLoader class is used by the main thread, it instantiates the worker
|
|
1592
|
+
* and sends commands to it. It represents thus the main communication channel
|
|
1593
|
+
* between the main thread and the engine running in the worker.
|
|
1594
|
+
*/
|
|
1595
|
+
declare class DataCaptureLoader {
|
|
1596
|
+
highEndBlurryRecognition?: boolean;
|
|
1597
|
+
protected verifyResponseHash: boolean;
|
|
1598
|
+
protected simdSupport: boolean;
|
|
1599
|
+
protected threadsSupport: boolean;
|
|
1600
|
+
protected _dataCaptureWorker?: DataCaptureWorker;
|
|
1601
|
+
protected readonly libraryLocation: string;
|
|
1602
|
+
protected readonly logLevel: Logger.Level;
|
|
1603
|
+
protected workerCommandId: number;
|
|
1604
|
+
protected readonly workerTasks: Map<number, {
|
|
1605
|
+
resolve: (...arguments_: any[]) => any;
|
|
1606
|
+
reject: (...arguments_: any[]) => any;
|
|
1607
|
+
command: string;
|
|
1608
|
+
}>;
|
|
1609
|
+
protected readonly workerListeners: WorkerListener[];
|
|
1610
|
+
protected workerMessageListener: (event_: MessageEvent<DataCaptureCallbackMessage>) => void;
|
|
1611
|
+
protected constructor(options: DataCaptureLoaderOptions);
|
|
1612
|
+
protected addWorkerMessageListener(): void;
|
|
1613
|
+
get dataCaptureWorker(): DataCaptureWorker;
|
|
1614
|
+
protected get name(): string;
|
|
1615
|
+
protected get fixedWasmMemory(): number | null;
|
|
1616
|
+
static create(options: DataCaptureLoaderOptions): Promise<DataCaptureLoader>;
|
|
1617
|
+
/**
|
|
1618
|
+
* Instantiate the worker for this loader. Each subclass overrides this so its own
|
|
1619
|
+
* `?worker` bundle is used; the base can't do it because the core package doesn't
|
|
1620
|
+
* invoke ExternalWorkerPlugin (each capture mode owns its own worker file). This is
|
|
1621
|
+
* the single point where the worker is created, so the BlockedIndexedDB retry path
|
|
1622
|
+
* in `load()` re-creates the worker of the correct subtype after terminating.
|
|
1623
|
+
*/
|
|
1624
|
+
protected createDataCaptureWorker(): Promise<DataCaptureWorker>;
|
|
1625
|
+
private getIndexedDBTimeoutMs;
|
|
1626
|
+
load(): Promise<WorkerResponse<"loadLibrary">>;
|
|
1627
|
+
/**
|
|
1628
|
+
* Send a task (i.e. a command) to the worker. Every task sent has a corresponding Promise object which
|
|
1629
|
+
* gets resolved when the worker has processed the request. The tasks are identified by an id which is
|
|
1630
|
+
* sent along with the data by both sides.
|
|
1631
|
+
*/
|
|
1632
|
+
workerCommand<C extends DataCaptureActionMessageKey>(command: C, payload: WorkerCommandPayload<C>, transferables?: Transferable[]): Promise<WorkerResponse<C>>;
|
|
1633
|
+
terminateDataCaptureWorker(disposeContext?: boolean): Promise<void>;
|
|
1634
|
+
addWorkerListener(listener: WorkerListener): void;
|
|
1635
|
+
removeWorkerListener(listener: WorkerListener): void;
|
|
1636
|
+
getOptions(): Pick<DataCaptureLoaderOptions, "libraryLocation" | "simdSupport" | "threadsSupport" | "verifyResponseHash">;
|
|
1637
|
+
protected onWorkerMessage(event_: MessageEvent<DataCaptureCallbackMessage>): void;
|
|
1638
|
+
}
|
|
1639
|
+
//#endregion
|
|
1640
|
+
//#region src/main/private/ui/molecules/HintPresenter.d.ts
|
|
1641
|
+
declare enum HintPresenterEvents {
|
|
1642
|
+
Update = "hintpresenterupdate",
|
|
1643
|
+
ViewFinderUpdateRequested = "hintpresenterviewfinderupdaterequested"
|
|
1644
|
+
}
|
|
1645
|
+
declare class HintPresenter extends ScanditHTMLElement {
|
|
1646
|
+
static readonly tag: "scandit-hints";
|
|
1647
|
+
private intervalId;
|
|
1648
|
+
private root;
|
|
1649
|
+
private _viewFinderRect;
|
|
1650
|
+
private onDidToastHideHandler;
|
|
1651
|
+
constructor();
|
|
1652
|
+
private static createStyleElement;
|
|
1653
|
+
static register(): void;
|
|
1654
|
+
static create(): HintPresenter;
|
|
1655
|
+
connectedCallback(): void;
|
|
1656
|
+
disconnectedCallback(): void;
|
|
1657
|
+
setViewFinderRect(rect: Rect | null): void;
|
|
1658
|
+
handleMessage(message: DataCaptureCallbackMessage): Promise<void>;
|
|
1659
|
+
private setHintStyleToToast;
|
|
1660
|
+
private onDidToastHide;
|
|
1661
|
+
private getToastElementFromIdOrTag;
|
|
1662
|
+
showToast(toast: GenericHint): Promise<void>;
|
|
1663
|
+
showToastWithCustomIcon(hintStyle: GenericHint, icon: ScanditIcon): Promise<void>;
|
|
1664
|
+
hideToast(hintStyle: GenericHint): Promise<void>;
|
|
1665
|
+
private showGuidance;
|
|
1666
|
+
private hideGuidance;
|
|
1667
|
+
private startUpdateTimer;
|
|
1668
|
+
private stopUpdateTimer;
|
|
1669
|
+
/**
|
|
1670
|
+
* Whenever a toast is shown, we need to ensure that the view finder rect is set. If not, we dispatch an event to
|
|
1671
|
+
* let the view know about it.
|
|
1672
|
+
*/
|
|
1673
|
+
private ensureViewFinderRectIsSet;
|
|
1674
|
+
private idFromHint;
|
|
1675
|
+
}
|
|
1676
|
+
declare global {
|
|
1677
|
+
interface HTMLElementTagNameMap {
|
|
1678
|
+
[HintPresenter.tag]: HintPresenter;
|
|
1679
|
+
}
|
|
1680
|
+
interface HTMLElementEventMap {
|
|
1681
|
+
[HintPresenterEvents.Update]: CustomEvent<void>;
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
//#endregion
|
|
1685
|
+
//#region src/main/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts
|
|
1686
|
+
declare class ConcreteNotificationPresenter implements NotificationPresenter {
|
|
1687
|
+
private _hintPresenter;
|
|
1688
|
+
constructor(hintPresenter: HintPresenter);
|
|
1689
|
+
showNotification(notificationConfiguration: NotificationConfiguration): Promise<void>;
|
|
1690
|
+
hideNotification(notificationConfiguration: NotificationConfiguration): Promise<void>;
|
|
1691
|
+
}
|
|
1692
|
+
//#endregion
|
|
1693
|
+
//#region src/main/index.d.ts
|
|
1694
|
+
type PrivateCaptureModuleName = "BarcodeCapture" | "IdCapture" | "Parser" | "LabelCapture";
|
|
1695
|
+
//#endregion
|
|
1696
|
+
//#region src/main/DataCaptureContextRelated.d.ts
|
|
1697
|
+
interface DataCaptureContextListener {
|
|
1698
|
+
didChangeStatus?: (context: DataCaptureContext, contextStatus: ContextStatus) => void;
|
|
1699
|
+
didStartObservingContext?: (context: DataCaptureContext) => void;
|
|
1700
|
+
didChangeFrameSource?: (context: DataCaptureContext, frameSource: FrameSource | null) => void;
|
|
1701
|
+
}
|
|
1702
|
+
interface ContextStatusJSON {
|
|
1703
|
+
code: number;
|
|
1704
|
+
isValid: boolean;
|
|
1705
|
+
message: string;
|
|
1706
|
+
}
|
|
1707
|
+
declare class ContextStatus {
|
|
1708
|
+
private _message;
|
|
1709
|
+
private _code;
|
|
1710
|
+
private _isValid;
|
|
1711
|
+
private static fromJSON;
|
|
1712
|
+
get message(): string;
|
|
1713
|
+
get code(): number;
|
|
1714
|
+
get isValid(): boolean;
|
|
1715
|
+
}
|
|
1716
|
+
declare enum PrivateMirrorAxis {
|
|
1717
|
+
None = "None",
|
|
1718
|
+
X = "X",
|
|
1719
|
+
Y = "Y"
|
|
1720
|
+
}
|
|
1721
|
+
//#endregion
|
|
1722
|
+
//#region src/main/DataCaptureContext.d.ts
|
|
1723
|
+
type DataCaptureContextState = "unconfigured" | "configuring" | "configured" | "creating-context" | "ready";
|
|
1724
|
+
type Change = {
|
|
1725
|
+
type: "modeEnabled";
|
|
1726
|
+
newValue: boolean;
|
|
1727
|
+
} | {
|
|
1728
|
+
type: "addControl";
|
|
1729
|
+
newValue: any;
|
|
1730
|
+
} | {
|
|
1731
|
+
type: "addOverlay";
|
|
1732
|
+
newValue: DataCaptureOverlay;
|
|
1733
|
+
view: DataCaptureView$1;
|
|
1734
|
+
} | {
|
|
1735
|
+
type: "cameraSettings";
|
|
1736
|
+
newValue: any;
|
|
1737
|
+
} | {
|
|
1738
|
+
type: "frameSourceState";
|
|
1739
|
+
newValue: any;
|
|
1740
|
+
} | {
|
|
1741
|
+
type: "removeControl";
|
|
1742
|
+
newValue: any;
|
|
1743
|
+
} | {
|
|
1744
|
+
type: "removeOverlay";
|
|
1745
|
+
newValue: DataCaptureOverlay;
|
|
1746
|
+
view: DataCaptureView$1;
|
|
1747
|
+
} | {
|
|
1748
|
+
type: "singleImageModeUploaderSettings";
|
|
1749
|
+
newValue: any;
|
|
1750
|
+
} | {
|
|
1751
|
+
type: "torchState";
|
|
1752
|
+
newValue: any;
|
|
1753
|
+
} | {
|
|
1754
|
+
type: "viewChange";
|
|
1755
|
+
newValue: {
|
|
1756
|
+
orientation: Orientation;
|
|
1757
|
+
} & Partial<HTMLElementStateJSON>;
|
|
1758
|
+
} | {
|
|
1759
|
+
type: "viewSet";
|
|
1760
|
+
newValue: DataCaptureView$1 | null;
|
|
1761
|
+
};
|
|
1762
|
+
type PrivateChangeSet = Change[];
|
|
1763
|
+
interface DataCaptureMode extends Serializable {
|
|
1764
|
+
isEnabled(): boolean;
|
|
1765
|
+
setEnabled(enabled: boolean): Promise<void>;
|
|
1766
|
+
context: Optional<DataCaptureContext>;
|
|
1767
|
+
}
|
|
1768
|
+
interface PrivateDataCaptureMode extends DataCaptureMode {
|
|
1769
|
+
type: "barcodeCapture" | "idCapture";
|
|
1770
|
+
skipSerialization?: boolean;
|
|
1771
|
+
[nativeHandle]?: symbol;
|
|
1772
|
+
_context: Optional<DataCaptureContext>;
|
|
1773
|
+
attachedToContext: (context: DataCaptureContext) => Promise<void>;
|
|
1774
|
+
detachedFromContext: () => Promise<void>;
|
|
1775
|
+
_synchronousFrameFlow?: boolean;
|
|
1776
|
+
}
|
|
1777
|
+
interface DataCaptureModeJSON<S = JSONType> {
|
|
1778
|
+
type: "barcodeCapture" | "barcodeTracking" | "idCapture" | "parser" | "sparkScan" | "barcodeFind" | "barcodeAr" | "labelCapture";
|
|
1779
|
+
enabled: boolean;
|
|
1780
|
+
settings: S;
|
|
1781
|
+
}
|
|
1782
|
+
interface PrivateDataCaptureComponent {
|
|
1783
|
+
_context: DataCaptureContext;
|
|
1784
|
+
}
|
|
1785
|
+
type DataCaptureComponentJSON = JSONType;
|
|
1786
|
+
interface DataCaptureComponent extends Serializable<DataCaptureComponentJSON> {
|
|
1787
|
+
readonly id: string;
|
|
1788
|
+
}
|
|
1789
|
+
interface PrivateDataCaptureContextOptions {
|
|
1790
|
+
deviceName?: string | null;
|
|
1791
|
+
dataCaptureInstance?: DataCaptureLoader;
|
|
1792
|
+
delayedRegistration?: boolean;
|
|
1793
|
+
licenseKey?: string;
|
|
1794
|
+
settings?: DataCaptureContextSettings;
|
|
1795
|
+
}
|
|
1796
|
+
interface PrivateDataCaptureContext<W extends (...parameters: any[]) => unknown = DataCaptureLoader["workerCommand"]> {
|
|
1797
|
+
_frameSource?: FrameSource | null;
|
|
1798
|
+
_useSynchronousFrameFlow: boolean;
|
|
1799
|
+
capabilityInfo: PrivateCapabilityInfo;
|
|
1800
|
+
modes: Set<DataCaptureMode>;
|
|
1801
|
+
components: DataCaptureComponent[];
|
|
1802
|
+
createContext: () => Promise<void>;
|
|
1803
|
+
update: (changeSet?: PrivateChangeSet, {
|
|
1804
|
+
updateContext
|
|
1805
|
+
}?: {
|
|
1806
|
+
updateContext?: boolean;
|
|
1807
|
+
}) => Promise<void>;
|
|
1808
|
+
addNativeOverlay: (overlay: DataCaptureOverlay) => Promise<void>;
|
|
1809
|
+
removeNativeOverlay: (overlay: DataCaptureOverlay) => Promise<void>;
|
|
1810
|
+
addComponent: (component: DataCaptureComponent) => Promise<void>;
|
|
1811
|
+
dataCaptureInstance: DataCaptureLoader;
|
|
1812
|
+
sendFrameToProcessor: (capture: FrameCapture) => Promise<WorkerResponse<"processFrame">>;
|
|
1813
|
+
subscribeToWorkerMessages: (listener: (message: DataCaptureCallbackMessage) => void) => void;
|
|
1814
|
+
unsubscribeToWorkerMessages: (listener: (message: DataCaptureCallbackMessage) => void) => void;
|
|
1815
|
+
hasEnabledMode: () => boolean;
|
|
1816
|
+
workerCommand: MethodSignature<W>;
|
|
1817
|
+
performanceMark: MethodSignature<DataCaptureContext["performanceMark"]>;
|
|
1818
|
+
isFeatureSupported: (feature: LicensedFeature) => Promise<boolean>;
|
|
1819
|
+
new (): DataCaptureContext;
|
|
1820
|
+
updateListeners: Set<(change: Change) => void>;
|
|
1821
|
+
updateCameraFrameFlow: (synchronous: boolean) => void;
|
|
1822
|
+
getView: () => DataCaptureView$1 | null;
|
|
1823
|
+
}
|
|
1824
|
+
interface DataCaptureContextCreationOptions {
|
|
1825
|
+
libraryLocation: string;
|
|
1826
|
+
moduleLoaders: ModuleLoader[];
|
|
1827
|
+
deviceName?: string;
|
|
1828
|
+
settings?: DataCaptureContextSettings;
|
|
1829
|
+
logLevel?: Logger.Level;
|
|
1830
|
+
}
|
|
1831
|
+
/**
|
|
1832
|
+
* Configuration options for initializing the DataCapture SDK.
|
|
1833
|
+
*
|
|
1834
|
+
* @public
|
|
1835
|
+
*/
|
|
1836
|
+
interface ModuleLoaderOptions {
|
|
1837
|
+
licenseKey: string;
|
|
1838
|
+
libraryLocation: string;
|
|
1839
|
+
moduleLoaders: ModuleLoader[];
|
|
1840
|
+
logLevel: Logger.Level;
|
|
1841
|
+
}
|
|
1842
|
+
interface RuntimeEnvironment {
|
|
1843
|
+
deviceOS: string;
|
|
1844
|
+
browser: string;
|
|
1845
|
+
browserVersion: string;
|
|
1846
|
+
deviceModelName: string;
|
|
1847
|
+
}
|
|
1848
|
+
interface PrivateCapabilityInfo {
|
|
1849
|
+
simdSupport: boolean;
|
|
1850
|
+
threadsSupport: boolean;
|
|
1851
|
+
}
|
|
1852
|
+
interface DataCaptureContextJSON extends RuntimeEnvironment {
|
|
1853
|
+
framework: string;
|
|
1854
|
+
settings: DataCaptureContextSettingsJSON;
|
|
1855
|
+
licenseKey: string;
|
|
1856
|
+
deviceName: string;
|
|
1857
|
+
frameSource: FrameSourceJSON | null;
|
|
1858
|
+
modes: DataCaptureModeJSON[];
|
|
1859
|
+
components: DataCaptureComponentJSON[];
|
|
1860
|
+
view: DataCaptureViewJSON | null;
|
|
1861
|
+
}
|
|
1862
|
+
type PrivateFrameHandlerResponse = {
|
|
1863
|
+
action: "continue" | "skip";
|
|
1864
|
+
frame: FrameCapture;
|
|
1865
|
+
};
|
|
1866
|
+
type PrivateFrameHandler = (frame: FrameCapture) => Promise<PrivateFrameHandlerResponse>;
|
|
1867
|
+
declare class DataCaptureContext implements Serializable<DataCaptureContextJSON> {
|
|
1868
|
+
static deviceID: string;
|
|
1869
|
+
protected static stateMachine: AsyncStateMachine<DataCaptureContextState>;
|
|
1870
|
+
protected static mainDataCaptureLoader: DataCaptureLoader | undefined;
|
|
1871
|
+
protected static dataCaptureLoaders: Map<string, DataCaptureLoader>;
|
|
1872
|
+
protected static libraryLocation: string | undefined;
|
|
1873
|
+
private static userLicenseKey;
|
|
1874
|
+
/**
|
|
1875
|
+
* Threads and SIMD support detected during initialization
|
|
1876
|
+
*/
|
|
1877
|
+
protected static capabilityInfo: PrivateCapabilityInfo | undefined;
|
|
1878
|
+
private _asyncImageConverterInstance;
|
|
1879
|
+
private static get moduleLicenseTextProviders();
|
|
1880
|
+
private readonly framework;
|
|
1881
|
+
private readonly runtimeEnvironment;
|
|
1882
|
+
private settings;
|
|
1883
|
+
private licenseKey;
|
|
1884
|
+
private deviceName;
|
|
1885
|
+
private _frameSource;
|
|
1886
|
+
private _view;
|
|
1887
|
+
private readonly modes;
|
|
1888
|
+
private readonly components;
|
|
1889
|
+
private listeners;
|
|
1890
|
+
private readonly updateListeners;
|
|
1891
|
+
private readonly cameraPropertiesReportListener;
|
|
1892
|
+
private readonly cameraAccessErrorListener;
|
|
1893
|
+
private readonly onWorkerMessageListener;
|
|
1894
|
+
private readonly onVisibilityChangeListener;
|
|
1895
|
+
private readonly batteryChangeListener;
|
|
1896
|
+
private dataCaptureInstance;
|
|
1897
|
+
private readonly pendingWorkerMessageListeners;
|
|
1898
|
+
private delayedRegistration;
|
|
1899
|
+
private highEndBlurryRecognition;
|
|
1900
|
+
private webBatteryInterface;
|
|
1901
|
+
private readonly _frameHandlers;
|
|
1902
|
+
/**
|
|
1903
|
+
* When synchronous, only one frame is processed at a time by the capture mode, the frame source will wait until the
|
|
1904
|
+
* frame data is back to send the next frame.
|
|
1905
|
+
*
|
|
1906
|
+
* IdCapture uses the synchronous flow because BlinkID only processes one frame at a time.
|
|
1907
|
+
* MatrixScan and other barcode modes usually use the asynchronous flow because they can use multi-threading.
|
|
1908
|
+
*/
|
|
1909
|
+
private _useSynchronousFrameFlow;
|
|
1910
|
+
[INTERNAL_ACCESS]: {
|
|
1911
|
+
hasModes: () => boolean;
|
|
1912
|
+
};
|
|
1913
|
+
private static _sharedInstance;
|
|
1914
|
+
static get sharedInstance(): DataCaptureContext;
|
|
1915
|
+
/**
|
|
1916
|
+
* Get the current state of the DataCaptureContext initialization
|
|
1917
|
+
*/
|
|
1918
|
+
protected static get currentState(): DataCaptureContextState;
|
|
1919
|
+
/**
|
|
1920
|
+
* Check if the context is ready for use
|
|
1921
|
+
*/
|
|
1922
|
+
protected static get isReady(): boolean;
|
|
1923
|
+
/**
|
|
1924
|
+
* Check if initialization is in progress
|
|
1925
|
+
*/
|
|
1926
|
+
protected static get isInitializing(): boolean;
|
|
1927
|
+
/**
|
|
1928
|
+
* Add a listener to state changes
|
|
1929
|
+
*/
|
|
1930
|
+
protected static addStateListener(listener: (currentState: DataCaptureContextState, previousState: DataCaptureContextState, context?: any) => void): void;
|
|
1931
|
+
/**
|
|
1932
|
+
* Remove a state change listener
|
|
1933
|
+
*/
|
|
1934
|
+
protected static removeStateListener(listener: (currentState: DataCaptureContextState, previousState: DataCaptureContextState, context?: any) => void): void;
|
|
1935
|
+
private initializeWithOptions;
|
|
1936
|
+
get frameSource(): FrameSource | null;
|
|
1937
|
+
private get workerCommand();
|
|
1938
|
+
static forLicenseKey(licenseKey: string, options: DataCaptureContextCreationOptions): Promise<DataCaptureContext>;
|
|
1939
|
+
private static internalConfigure;
|
|
1940
|
+
/**
|
|
1941
|
+
* Initialize the DataCapture SDK for Electron applications using a license data path.
|
|
1942
|
+
* This method handles the Electron-specific license key retrieval logic.
|
|
1943
|
+
*
|
|
1944
|
+
* @param licenseDataPath - Path to the license data file in the Electron app
|
|
1945
|
+
* @param options - Configuration options for the DataCapture SDK
|
|
1946
|
+
* @returns Promise resolving to the DataCaptureContext instance
|
|
1947
|
+
*/
|
|
1948
|
+
static forLicenseKeyInElectronPath(licenseDataPath: string, options: DataCaptureContextCreationOptions): Promise<DataCaptureContext>;
|
|
1949
|
+
private static updateViewsWithProgress;
|
|
1950
|
+
private static getOverridesFromQueryString;
|
|
1951
|
+
private static validateOptions;
|
|
1952
|
+
private static loadModules;
|
|
1953
|
+
static getOpenSourceSoftwareLicenseInfo(): Promise<OpenSourceSoftwareLicenseInfo>;
|
|
1954
|
+
/**
|
|
1955
|
+
* Disconnect the current frame source from the context and connect the new one. This process can happen multiple
|
|
1956
|
+
* times for the same frame source because of its initialisation (The mirroring info of a camera is only available
|
|
1957
|
+
* when it has started for example).
|
|
1958
|
+
* Trigger the "didChangeFrameSource" listeners only if the new frame source is different than the old one.
|
|
1959
|
+
*/
|
|
1960
|
+
setFrameSource(frameSource: FrameSource | null): Promise<void>;
|
|
1961
|
+
addListener(listener: DataCaptureContextListener): void;
|
|
1962
|
+
flushAnalytics(): Promise<void>;
|
|
1963
|
+
removeListener(listener: DataCaptureContextListener): void;
|
|
1964
|
+
addMode(mode: DataCaptureMode): Promise<void>;
|
|
1965
|
+
removeMode(mode: DataCaptureMode): Promise<void>;
|
|
1966
|
+
setMode(mode: DataCaptureMode): Promise<void>;
|
|
1967
|
+
removeCurrentMode(): Promise<void>;
|
|
1968
|
+
removeAllModes(): Promise<void>;
|
|
1969
|
+
private hasModes;
|
|
1970
|
+
dispose(): Promise<void>;
|
|
1971
|
+
applySettings(settings: DataCaptureContextSettings): Promise<void>;
|
|
1972
|
+
toJSONObject(): DataCaptureContextJSON;
|
|
1973
|
+
private getView;
|
|
1974
|
+
private setView;
|
|
1975
|
+
private getAppName;
|
|
1976
|
+
private urlToHostname;
|
|
1977
|
+
private getParentDomain;
|
|
1978
|
+
private createContext;
|
|
1979
|
+
private subscribeToVisibilityChange;
|
|
1980
|
+
private unsubscribeToVisibilityChange;
|
|
1981
|
+
private requestFrameData;
|
|
1982
|
+
private performanceMark;
|
|
1983
|
+
private sendFrameToProcessor;
|
|
1984
|
+
private sendFrameToHandlers;
|
|
1985
|
+
private sendFrameToSDC;
|
|
1986
|
+
private registerFrameHandler;
|
|
1987
|
+
private unregisterFrameHandler;
|
|
1988
|
+
private onBatteryChange;
|
|
1989
|
+
private onVisibilityChange;
|
|
1990
|
+
private getImageConverterInstance;
|
|
1991
|
+
private onWorkerMessage;
|
|
1992
|
+
/**
|
|
1993
|
+
* This method is only called from the worker thread when OffscreenCanvas is not available there.
|
|
1994
|
+
*/
|
|
1995
|
+
private convertImageToJPEG;
|
|
1996
|
+
private subscribeToCameraManagerEvents;
|
|
1997
|
+
private reportCameraProperties;
|
|
1998
|
+
private onCameraAccessError;
|
|
1999
|
+
private update;
|
|
2000
|
+
private updateContext;
|
|
2001
|
+
private getViewInfo;
|
|
2002
|
+
private getMirrorAxisForFrameSource;
|
|
2003
|
+
private addComponent;
|
|
2004
|
+
private addNativeOverlay;
|
|
2005
|
+
private removeNativeOverlay;
|
|
2006
|
+
private subscribeToWorkerMessages;
|
|
2007
|
+
private unsubscribeToWorkerMessages;
|
|
2008
|
+
private hasEnabledMode;
|
|
2009
|
+
/**
|
|
2010
|
+
* Some capture modes process frames synchronously, like IdCapture. Other can process multiple frames
|
|
2011
|
+
* in parallel, like MatrixScan. We inform the CameraManager how to process frames.
|
|
2012
|
+
*/
|
|
2013
|
+
private updateCameraFrameFlow;
|
|
2014
|
+
protected isFeatureSupported(feature: LicensedFeature): Promise<boolean>;
|
|
2015
|
+
}
|
|
2016
|
+
//#endregion
|
|
2017
|
+
export { AddNativeOverlayAction as $, LoadLibraryDataCaptureAction as $t, ModuleLoader as A, ViewInfo as An, GetViewfinderInfoAction as At, FrameCapture as B, ZoomSwitchControl as Bn, HintFont as Bt, PrivateCaptureModuleName as C, SuccessFeedbackWorkerMessage as Cn, ExtractCentaurusLicenseResponse as Ct, DataCaptureLoader as D, UpdateContextDataCaptureAction as Dn, GestureRecognizer as Dt, HintPresenterEvents as E, UpdateBatteryInfoDataCaptureAction as En, GestureListener as Et, CameraManagerEvent as F, WorkerResponse as Fn, HideGuidanceMessage as Ft, CreateContextParameters as G, ControlType as Gn, HintStyle as Gt, GUI as H, CameraSwitchControl as Hn, HintIcon as Ht, CameraManagerEventParameters as I, GrayScaleFrameReader as In, HideHintWorkerMessage as It, ProcessFrameParameters as J, DataCaptureOverlay as Jn, IsFeatureSupportedAction as Jt, DataCaptureEngine as K, PrivateBaseControl as Kn, HintTextAlignment as Kt, CameraResolutionConstraint as L, FrameReader as Ln, HideToastMessage as Lt, PrivateLoadableFrameData as M, VisibilityChangeAction as Mn, GuidanceHint as Mt, convertToPublicFrameData as N, WasmFeedback as Nn, GuidanceHintAnchor as Nt, DataCaptureLoaderOptions as O, UpdateHintWorkerMessage as On, GetOpenSourceSoftwareLicenseInfoAction as Ot, CameraManager as P, WasmFrameData as Pn, GuidanceHintStyle as Pt, WorkerFunctions as Q, DataCaptureViewListener as Qn, LicensedFeature as Qt, ExtendedMediaTrackCapabilities as R, FrameReaderAbstract as Rn, HintAnchor as Rt, PrivateMirrorAxis as S, StopUpdateTimerMessage as Sn, ExtractCentaurusLicenseDataCaptureAction as St, HintPresenter as T, ToastHintStyle as Tn, GenericHint as Tt, MeteringMode as U, CameraFOVSwitchControl as Un, HintPresenterV2 as Ut, FrameId as V, TorchSwitchControl as Vn, HintHeight as Vt, createFrameId as W, Control as Wn, HintPresenterV2updateAction as Wt, SetFrameSourceParameters as X, DataCaptureViewConnectOptions as Xn, IsFeatureSupportedResponse as Xt, ReportCameraPropertiesParameters as Y, DataCaptureView$1 as Yn, IsFeatureSupportedMessage as Yt, UpdateContextParameters as Z, DataCaptureViewJSON as Zn, JSONParseable as Zt, PrivateFrameHandler as _, SetLogLevelDataCaptureAction as _n, DidTapTrackedBarcode as _t, DataCaptureContextCreationOptions as a, OnFrameSkippedMessage as an, CreateContextDataCaptureAction as at, ContextStatusJSON as b, ShowToastMessage as bn, EmscriptenDataCaptureOverlay as bt, DataCaptureMode as c, PerformanceMetrics as cn, DataCaptureCallbackMessageKeys as ct, PrivateCapabilityInfo as d, ProcessFrameDataCaptureAction as dn, DataCaptureContextDeserializerResult as dt, Module as en, AnyDataCaptureActionMessage as et, PrivateChangeSet as f, RemoveNativeOverlayAction as fn, DataCaptureImageBufferFrameSource as ft, PrivateDataCaptureMode as g, SetFrameSourceDataCaptureAction as gn, DeviceInterfaceInstance as gt, PrivateDataCaptureContextOptions as h, RequestFrameDataResponse as hn, DeleteFrameDataDataCaptureAction as ht, DataCaptureContext as i, OnFrameProcessingStartedMessage as in, ConvertToJPEGResultDataCaptureAction as it, FrameData as j, ViewSizeChangedMessage as jn, GetViewfinderInfoResponse as jt, WorkerMain as k, Vector as kn, GetOpenSourceSoftwareLicenseInfoResponse as kt, DataCaptureModeJSON as l, PerformanceMetricsReportMessage as ln, DataCaptureContext$1 as lt, PrivateDataCaptureContext as m, RequestFrameDataDataCaptureAction as mn, DataCaptureWorker as mt, DataCaptureComponent as n, ModuleMirrorAxis as nn, BatteryData as nt, DataCaptureContextJSON as o, OnTapAction as on, DataCaptureActionMessageKey as ot, PrivateDataCaptureComponent as p, ReportCameraPropertiesDataCaptureAction as pn, DataCaptureView as pt, LoadLibraryParameters as q, PrivateControl as qn, HintWidth as qt, DataCaptureComponentJSON as r, OnFrameProcessingFinishedMessage as rn, CaptureModeDeserializerInstance as rt, DataCaptureContextState as s, PayloadForCommand as sn, DataCaptureCallbackMessage as st, Change as t, ModuleHandler as tn, AugmentedWorker as tt, ModuleLoaderOptions as u, PlatformHintPresenter as un, DataCaptureContextDeserializer as ut, PrivateFrameHandlerResponse as v, ShowGuidanceMessage as vn, DisposeDataCaptureAction as vt, ConcreteNotificationPresenter as w, ToastHint as wn, FlushAnalyticsDataCaptureAction as wt, DataCaptureContextListener as x, StartUpdateTimerMessage as xn, EngineWorkerResponse as xt, ContextStatus as y, ShowHintWorkerMessage as yn, EmscriptenClassHandle as yt, ExtendedMediaTrackConstraintSet as z, PoolCapacityOptions as zn, HintCornerStyle as zt };
|