@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,53 @@
|
|
|
1
|
+
//#region src/main/private/utils/safeCancelAnimation.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Web Animations API Robust Animation Utilities
|
|
4
|
+
*
|
|
5
|
+
* This module provides safe ways to work with Web Animations API animations,
|
|
6
|
+
* handling compatibility differences between different polyfills and native implementations.
|
|
7
|
+
*
|
|
8
|
+
* ## Background: Polyfill Compatibility Issues
|
|
9
|
+
*
|
|
10
|
+
* Different polyfills behave differently when cancelling animations:
|
|
11
|
+
* - **Our AnimationSimplePolyfill**: Resolves promises, no errors (permissive)
|
|
12
|
+
* - **web-animations-js**: Rejects promises, throws AbortError (strict spec)
|
|
13
|
+
* - **Native browsers**: Varies - some silent, some throw errors
|
|
14
|
+
*
|
|
15
|
+
* ## Our Solution: Handle All Scenarios
|
|
16
|
+
*
|
|
17
|
+
* Instead of assuming one behavior, we handle all possible outcomes:
|
|
18
|
+
* - Try to cancel animations and handle any errors
|
|
19
|
+
* - Safely await animation.finished promises with proper error handling
|
|
20
|
+
* - Ensure elements are always in a good state after operations
|
|
21
|
+
*
|
|
22
|
+
* ## Technical Details
|
|
23
|
+
*
|
|
24
|
+
* According to the Web Animations API specification:
|
|
25
|
+
* - An animation can be in one of several states: "idle", "running", "paused", "finished"
|
|
26
|
+
* - Calling `cancel()` on an animation in "idle" or "finished" state may throw AbortError
|
|
27
|
+
* - The `finished` promise may be rejected with AbortError when animations are cancelled
|
|
28
|
+
* - Different polyfills enforce this to varying degrees
|
|
29
|
+
* - Our utilities ensure compatibility across all implementations
|
|
30
|
+
*
|
|
31
|
+
* ## References
|
|
32
|
+
* - Web Animations API Specification: https://www.w3.org/TR/web-animations-1/
|
|
33
|
+
* - MDN Web Animations API: https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API
|
|
34
|
+
* - MDN Animation.cancel(): https://developer.mozilla.org/en-US/docs/Web/API/Animation/cancel
|
|
35
|
+
* - AbortError: https://developer.mozilla.org/en-US/docs/Web/API/AbortError
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* Safely cancels a Web Animation, handling any errors that may be thrown by strict polyfills.
|
|
39
|
+
*
|
|
40
|
+
* @param animation - The animation to cancel
|
|
41
|
+
* @returns true if the animation was successfully cancelled, false if it failed or was already finished
|
|
42
|
+
*/
|
|
43
|
+
declare function safeCancelAnimation(animation: Animation | null | undefined): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Safely awaits an animation's finished promise, handling potential AbortError rejections
|
|
46
|
+
* from strict polyfills when animations are cancelled.
|
|
47
|
+
*
|
|
48
|
+
* @param animation - The animation to await
|
|
49
|
+
* @returns Promise that resolves when animation completes or is cancelled (never rejects)
|
|
50
|
+
*/
|
|
51
|
+
declare function safeAwaitAnimation(animation: Animation | null | undefined): Promise<void>;
|
|
52
|
+
//#endregion
|
|
53
|
+
export { safeCancelAnimation as n, safeAwaitAnimation as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/main/private/utils/safeRequestAnimationFrame.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Safely schedules a callback to be called after layout calculations are complete.
|
|
4
|
+
* Uses requestAnimationFrame if available, otherwise falls back to setTimeout.
|
|
5
|
+
*
|
|
6
|
+
* This ensures that DOM measurements (like getBoundingClientRect()) return accurate values,
|
|
7
|
+
* with graceful fallback for devices where requestAnimationFrame is unavailable or unreliable.
|
|
8
|
+
*
|
|
9
|
+
* @param callback - Function to call after layout is complete
|
|
10
|
+
* @returns Handle that can be used with cancelSafeRequestAnimationFrame to cancel
|
|
11
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
|
|
12
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/window/setTimeout
|
|
13
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/window/cancelAnimationFrame
|
|
14
|
+
*/
|
|
15
|
+
declare function safeRequestAnimationFrame(callback: FrameRequestCallback): number;
|
|
16
|
+
/**
|
|
17
|
+
* Cancels a previously scheduled safeRequestAnimationFrame callback.
|
|
18
|
+
*
|
|
19
|
+
* @param id - The handle returned by safeRequestAnimationFrame
|
|
20
|
+
*/
|
|
21
|
+
declare function cancelSafeRequestAnimationFrame(id: number): void;
|
|
22
|
+
//#endregion
|
|
23
|
+
export { safeRequestAnimationFrame as n, cancelSafeRequestAnimationFrame as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/main/private/utils/timeout.d.ts
|
|
2
|
+
declare class Timeout {
|
|
3
|
+
private static readonly maxDurationAllowedByJSEngines;
|
|
4
|
+
private duration;
|
|
5
|
+
private callback;
|
|
6
|
+
private timeout?;
|
|
7
|
+
private _running;
|
|
8
|
+
constructor(duration: number, callback: VoidFunction);
|
|
9
|
+
get running(): boolean;
|
|
10
|
+
start(): void;
|
|
11
|
+
stop(): void;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { Timeout as t };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/main/translations.d.ts
|
|
2
|
+
declare const translations: {
|
|
3
|
+
"core.view.loading": string;
|
|
4
|
+
"core.singleImageUploader.title": string;
|
|
5
|
+
"core.singleImageUploader.button": string;
|
|
6
|
+
"core.camera.recovery": string;
|
|
7
|
+
"barcode.find.view.textForCollapseCardsButton": string;
|
|
8
|
+
};
|
|
9
|
+
type Translations = typeof translations;
|
|
10
|
+
type TranslationKey = keyof Translations;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Translations as n, translations as r, TranslationKey as t };
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
"core.view.loading": string;
|
|
4
|
-
"core.singleImageUploader.title": string;
|
|
5
|
-
"core.singleImageUploader.button": string;
|
|
6
|
-
"core.camera.recovery": string;
|
|
7
|
-
"barcode.find.view.textForCollapseCardsButton": string;
|
|
8
|
-
};
|
|
9
|
-
type Translations = typeof translations;
|
|
10
|
-
type TranslationKey = keyof Translations;
|
|
11
|
-
|
|
12
|
-
export { type TranslationKey, type Translations, translations };
|
|
1
|
+
import { n as Translations, r as translations, t as TranslationKey } from "./translations-Bqx7KLdt.js";
|
|
2
|
+
export { TranslationKey, Translations, translations };
|
package/build/js/translations.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
const e={"core.view.loading":`Loading the Scandit SDK...`,"core.singleImageUploader.title":`Analyze an image from your device.`,"core.singleImageUploader.button":`Choose an Image`,"core.camera.recovery":`Tap/click to resume scanning`,"barcode.find.view.textForCollapseCardsButton":`Collapse Cards`};export{e as translations};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
//#region src/main/tsHelper.d.ts
|
|
2
|
+
declare function assert(condition: unknown, message?: string): asserts condition;
|
|
3
|
+
declare function assertUnreachable(_: never): void;
|
|
4
|
+
declare function assertUnreachableThrowException(_: never): never;
|
|
5
|
+
type Mutable<T> = { -readonly [k in keyof T]: T[k] };
|
|
6
|
+
type DeepMutable<T> = { -readonly [k in keyof T]: DeepMutable<T[k]> };
|
|
7
|
+
type DeepPartial<T> = T extends any[] ? T : T extends Record<string, any> ? { [P in keyof T]?: DeepPartial<T[P]> } : T;
|
|
8
|
+
type MethodSignature<M extends (...arguments_: any[]) => any> = (...arguments_: Parameters<M>) => ReturnType<M>;
|
|
9
|
+
type Optional<T> = T | null | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* When given a union of objects, extracts all the keys of the union.
|
|
12
|
+
*
|
|
13
|
+
* "keyof ({a: string} | {b: string})" returns the never type.
|
|
14
|
+
*/
|
|
15
|
+
type DistributiveKeyOf<T> = T extends object ? keyof T : never;
|
|
16
|
+
type Prettify<T> = { [K in keyof T]: T[K] extends Record<string, unknown> ? Prettify<T[K]> : T[K] } & {};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { Mutable as a, assert as c, MethodSignature as i, assertUnreachable as l, DeepPartial as n, Optional as o, DistributiveKeyOf as r, Prettify as s, DeepMutable as t, assertUnreachableThrowException as u };
|
package/build/js/tsHelper.d.ts
CHANGED
|
@@ -1,26 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare function assertUnreachable(_: never): void;
|
|
4
|
-
declare function assertUnreachableThrowException(_: never): never;
|
|
5
|
-
type Mutable<T> = {
|
|
6
|
-
-readonly [k in keyof T]: T[k];
|
|
7
|
-
};
|
|
8
|
-
type DeepMutable<T> = {
|
|
9
|
-
-readonly [k in keyof T]: DeepMutable<T[k]>;
|
|
10
|
-
};
|
|
11
|
-
type DeepPartial<T> = T extends any[] ? T : T extends Record<string, any> ? {
|
|
12
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
|
13
|
-
} : T;
|
|
14
|
-
type MethodSignature<M extends (...arguments_: any[]) => any> = (...arguments_: Parameters<M>) => ReturnType<M>;
|
|
15
|
-
type Optional<T> = T | null | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* When given a union of objects, extracts all the keys of the union.
|
|
18
|
-
*
|
|
19
|
-
* "keyof ({a: string} | {b: string})" returns the never type.
|
|
20
|
-
*/
|
|
21
|
-
type DistributiveKeyOf<T> = T extends object ? keyof T : never;
|
|
22
|
-
type Prettify<T> = {
|
|
23
|
-
[K in keyof T]: T[K] extends Record<string, unknown> ? Prettify<T[K]> : T[K];
|
|
24
|
-
} & {};
|
|
25
|
-
|
|
26
|
-
export { type DeepMutable, type DeepPartial, type DistributiveKeyOf, type MethodSignature, type Mutable, type Optional, type Prettify, assert, assertUnreachable, assertUnreachableThrowException };
|
|
1
|
+
import { a as Mutable, c as assert, i as MethodSignature, l as assertUnreachable, n as DeepPartial, o as Optional, r as DistributiveKeyOf, s as Prettify, t as DeepMutable, u as assertUnreachableThrowException } from "./tsHelper-N1CSjsuN.js";
|
|
2
|
+
export { DeepMutable, DeepPartial, DistributiveKeyOf, MethodSignature, Mutable, Optional, Prettify, assert, assertUnreachable, assertUnreachableThrowException };
|
package/build/js/tsHelper.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
function e(e,t){if(e===!1)throw Error(t)}function t(e){console.warn(`Reached unexpected case`,e)}function n(e){throw Error(`Reached unexpected case`)}export{e as assert,t as assertUnreachable,n as assertUnreachableThrowException};
|
|
@@ -1,64 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { W as WorkerFunctions } from '../DataCaptureContext-Qg40v7QA.js';
|
|
4
|
-
import '../Camera-HgH6fwnW.js';
|
|
5
|
-
import '../commons/Rect.js';
|
|
6
|
-
import '../private/Serializable.js';
|
|
7
|
-
import '../commons/Point.js';
|
|
8
|
-
import '../commons/Size.js';
|
|
9
|
-
import '../private/privateAccess.js';
|
|
10
|
-
import '../DataCaptureContextSettings.js';
|
|
11
|
-
import '../commons/JSONType.js';
|
|
12
|
-
import '../DataCaptureViewPlusRelated-BOrDBPHq.js';
|
|
13
|
-
import '../NotificationPresenter/NotificationPresenter.js';
|
|
14
|
-
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
15
|
-
import '../commons/Color.js';
|
|
16
|
-
import '../ScanditIcon.js';
|
|
17
|
-
import '../private/utils/ScanditHTMLElement.js';
|
|
18
|
-
import '../NotificationPresenter/NotificationStyle.js';
|
|
19
|
-
import '../commons/Anchor.js';
|
|
20
|
-
import '../commons/MarginsWithUnit.js';
|
|
21
|
-
import '../commons/NumberWithUnit.js';
|
|
22
|
-
import '../commons/MeasureUnit.js';
|
|
23
|
-
import '../commons/Orientation.js';
|
|
24
|
-
import '../commons/PointWithUnit.js';
|
|
25
|
-
import '../commons/Quadrilateral.js';
|
|
26
|
-
import '../private/CustomLocationsView.js';
|
|
27
|
-
import '../private/View.js';
|
|
28
|
-
import '../private/AnchorPositions.js';
|
|
29
|
-
import '../private/nativeHandle.js';
|
|
30
|
-
import '../private/AdditionalLayerPosition.js';
|
|
31
|
-
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
32
|
-
import '../logger.js';
|
|
33
|
-
import '../private/FrameReaders/ColorType.js';
|
|
34
|
-
import '../private/BatteryInterface.js';
|
|
35
|
-
import '../LoadingStatus.js';
|
|
36
|
-
import '../private/HtmlElementState.js';
|
|
37
|
-
import '../commons/SizeWithUnit.js';
|
|
38
|
-
import '../private/utils/AsyncStateMachine.js';
|
|
39
|
-
import '../tsHelper.js';
|
|
1
|
+
import { Q as WorkerFunctions } from "../DataCaptureContext-CYDrBO6_.js";
|
|
2
|
+
import { i as ImageBuffer, n as BitmapWithFormat, o as ImageConverterInstance } from "../index-Cpl5B5iN.js";
|
|
40
3
|
|
|
4
|
+
//#region src/main/worker/ImageConverterForwarder.d.ts
|
|
41
5
|
/**
|
|
42
6
|
* This class is just forwards conversion request to the main thread.
|
|
43
7
|
* It is meant to be used when OffscreenCanvas is not available in the worker thread.
|
|
44
8
|
*/
|
|
45
9
|
declare class ImageConverterForwarder implements ImageConverterInstance {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
10
|
+
private readonly workerFunctions;
|
|
11
|
+
private options;
|
|
12
|
+
private imageIdCounter;
|
|
13
|
+
private conversions;
|
|
14
|
+
constructor(workerFunctions: WorkerFunctions, options: {
|
|
15
|
+
quality: number;
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* The conversion will be performed in the main thread.
|
|
19
|
+
*/
|
|
20
|
+
convertToJpeg(imageBuffer: ImageBuffer, orientation: number): Promise<Uint8Array>;
|
|
21
|
+
convertToBitmap(imageBuffer: ImageBuffer): BitmapWithFormat;
|
|
22
|
+
/**
|
|
23
|
+
* Called by the main thread when the conversion has finished.
|
|
24
|
+
*/
|
|
25
|
+
onConvertToJPEGResult(imageId: number, result: Uint8Array): void;
|
|
62
26
|
}
|
|
63
|
-
|
|
64
|
-
export { ImageConverterForwarder };
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ImageConverterForwarder };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Logger as e}from"../logger.js";import"../private/djinni-types/index.js";import{Deferred as t}from"../private/utils/deferred.js";var n=class{constructor(e,t){this.workerFunctions=e,this.options=t,this.imageIdCounter=0,this.conversions=new Map}convertToJpeg(e,n){let r=this.imageIdCounter++,i=new t;this.conversions.set(r,i);let a=e.toBitmap();return this.workerFunctions.postMessage({type:`convertToJPEG`,imageId:r,width:e.getWidth(),height:e.getHeight(),data:a,planes:e.getPlanes(),orientation:n,quality:this.options.quality},Array.from(new Set([a.buffer]))),i.promise}convertToBitmap(e){return{data:e.toBitmap(),byteOrder:1}}onConvertToJPEGResult(t,n){let r=this.conversions.get(t);r?(r.resolve(n),this.conversions.delete(t)):e.warn(`ImageConverterForwarder: Conversion for imageId ${t} not found in Map`)}};export{n as ImageConverterForwarder};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import { ImageConverterBase } from '../private/ImageConverterBase.js';
|
|
3
|
-
import '../private/djinni-types/index.js';
|
|
1
|
+
import { ImageConverterBase } from "../private/ImageConverterBase.js";
|
|
4
2
|
|
|
3
|
+
//#region src/main/worker/ImageConverterWorker.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* A converter safe to be used in the worker thread.
|
|
7
6
|
*/
|
|
8
7
|
declare class ImageConverterWorker extends ImageConverterBase {
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
protected getNewCanvas(width: number, height: number): OffscreenCanvas;
|
|
9
|
+
protected canvasToBlob(canvas: OffscreenCanvas): Promise<Blob | null>;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
export { ImageConverterWorker };
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ImageConverterWorker };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{ImageConverterBase as e}from"../private/ImageConverterBase.js";var t=class extends e{getNewCanvas(e,t){return new OffscreenCanvas(e,t)}canvasToBlob(t){return t.convertToBlob({type:e.JPEG_IMAGE_MIME_TYPE,quality:this.options.quality})}};export{t as ImageConverterWorker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
let e=function(e){return e.Auto=`auto`,e.Off=`off`,e.On=`on`,e}({});export{e as OverrideState};
|
|
@@ -1,49 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import { V as ViewInfo } from '../DataCaptureContext-Qg40v7QA.js';
|
|
3
|
-
import '../Camera-HgH6fwnW.js';
|
|
4
|
-
import '../commons/Rect.js';
|
|
5
|
-
import '../private/Serializable.js';
|
|
6
|
-
import '../commons/Point.js';
|
|
7
|
-
import '../commons/Size.js';
|
|
8
|
-
import '../private/privateAccess.js';
|
|
9
|
-
import '../DataCaptureContextSettings.js';
|
|
10
|
-
import '../commons/JSONType.js';
|
|
11
|
-
import '../DataCaptureViewPlusRelated-BOrDBPHq.js';
|
|
12
|
-
import '../NotificationPresenter/NotificationPresenter.js';
|
|
13
|
-
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
14
|
-
import '../commons/Color.js';
|
|
15
|
-
import '../ScanditIcon.js';
|
|
16
|
-
import '../private/utils/ScanditHTMLElement.js';
|
|
17
|
-
import '../NotificationPresenter/NotificationStyle.js';
|
|
18
|
-
import '../commons/Anchor.js';
|
|
19
|
-
import '../commons/MarginsWithUnit.js';
|
|
20
|
-
import '../commons/NumberWithUnit.js';
|
|
21
|
-
import '../commons/MeasureUnit.js';
|
|
22
|
-
import '../commons/Orientation.js';
|
|
23
|
-
import '../commons/PointWithUnit.js';
|
|
24
|
-
import '../commons/Quadrilateral.js';
|
|
25
|
-
import '../private/CustomLocationsView.js';
|
|
26
|
-
import '../private/View.js';
|
|
27
|
-
import '../private/AnchorPositions.js';
|
|
28
|
-
import '../private/nativeHandle.js';
|
|
29
|
-
import '../private/AdditionalLayerPosition.js';
|
|
30
|
-
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
31
|
-
import '../logger.js';
|
|
32
|
-
import '../private/FrameReaders/ColorType.js';
|
|
33
|
-
import '../private/BatteryInterface.js';
|
|
34
|
-
import '../LoadingStatus.js';
|
|
35
|
-
import '../private/djinni-types/index.js';
|
|
36
|
-
import '../private/HtmlElementState.js';
|
|
37
|
-
import '../commons/SizeWithUnit.js';
|
|
38
|
-
import '../private/utils/AsyncStateMachine.js';
|
|
39
|
-
import '../tsHelper.js';
|
|
1
|
+
import { An as ViewInfo } from "../DataCaptureContext-CYDrBO6_.js";
|
|
40
2
|
|
|
3
|
+
//#region src/main/worker/ViewInfoHelper.d.ts
|
|
41
4
|
declare class ViewInfoHelper {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
5
|
+
private viewInfo;
|
|
6
|
+
constructor(viewInfo: ViewInfo | null);
|
|
7
|
+
isSame(other: ViewInfo | null): boolean;
|
|
8
|
+
update(viewInfo: ViewInfo | null): void;
|
|
9
|
+
private cloneViewInfo;
|
|
47
10
|
}
|
|
48
|
-
|
|
49
|
-
export { ViewInfoHelper };
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ViewInfoHelper };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
var e=class{constructor(e){this.viewInfo=null,this.viewInfo=this.cloneViewInfo(e)}isSame(e){return this.viewInfo==null&&e==null?!0:this.viewInfo==null&&e!=null||this.viewInfo!=null&&e==null?!1:this.viewInfo.width===e.width&&this.viewInfo.height===e.height&&this.viewInfo.orientation===e.orientation&&this.viewInfo.viewFinderRect.origin.x===e.viewFinderRect.origin.x&&this.viewInfo.viewFinderRect.origin.y===e.viewFinderRect.origin.y&&this.viewInfo.viewFinderRect.size.width===e.viewFinderRect.size.width&&this.viewInfo.viewFinderRect.size.height===e.viewFinderRect.size.height}update(e){this.viewInfo=this.cloneViewInfo(e)}cloneViewInfo(e){return e?{...e,viewFinderRect:{origin:{...e.viewFinderRect.origin},size:{...e.viewFinderRect.size}}}:null}};export{e as ViewInfoHelper};
|
|
@@ -1,63 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import '../Camera-HgH6fwnW.js';
|
|
4
|
-
import '../commons/Rect.js';
|
|
5
|
-
import '../private/Serializable.js';
|
|
6
|
-
import '../commons/Point.js';
|
|
7
|
-
import '../commons/Size.js';
|
|
8
|
-
import '../private/privateAccess.js';
|
|
9
|
-
import '../DataCaptureContextSettings.js';
|
|
10
|
-
import '../commons/JSONType.js';
|
|
11
|
-
import '../DataCaptureViewPlusRelated-BOrDBPHq.js';
|
|
12
|
-
import '../NotificationPresenter/NotificationPresenter.js';
|
|
13
|
-
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
14
|
-
import '../commons/Color.js';
|
|
15
|
-
import '../ScanditIcon.js';
|
|
16
|
-
import '../private/utils/ScanditHTMLElement.js';
|
|
17
|
-
import '../NotificationPresenter/NotificationStyle.js';
|
|
18
|
-
import '../commons/Anchor.js';
|
|
19
|
-
import '../commons/MarginsWithUnit.js';
|
|
20
|
-
import '../commons/NumberWithUnit.js';
|
|
21
|
-
import '../commons/MeasureUnit.js';
|
|
22
|
-
import '../commons/Orientation.js';
|
|
23
|
-
import '../commons/PointWithUnit.js';
|
|
24
|
-
import '../commons/Quadrilateral.js';
|
|
25
|
-
import '../private/CustomLocationsView.js';
|
|
26
|
-
import '../private/View.js';
|
|
27
|
-
import '../private/AnchorPositions.js';
|
|
28
|
-
import '../private/nativeHandle.js';
|
|
29
|
-
import '../private/AdditionalLayerPosition.js';
|
|
30
|
-
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
31
|
-
import '../logger.js';
|
|
32
|
-
import '../private/FrameReaders/ColorType.js';
|
|
33
|
-
import '../private/BatteryInterface.js';
|
|
34
|
-
import '../LoadingStatus.js';
|
|
35
|
-
import '../private/djinni-types/index.js';
|
|
36
|
-
import '../private/HtmlElementState.js';
|
|
37
|
-
import '../commons/SizeWithUnit.js';
|
|
38
|
-
import '../private/utils/AsyncStateMachine.js';
|
|
39
|
-
import '../tsHelper.js';
|
|
40
|
-
|
|
41
|
-
declare class WorkerMain<E extends DataCaptureEngine<M>, M extends Module> {
|
|
42
|
-
dataCaptureInstance: E;
|
|
43
|
-
onMessageListener: (event: MessageEvent<AnyDataCaptureActionMessage>) => boolean;
|
|
44
|
-
private readonly workerSelf;
|
|
45
|
-
constructor(workerSelf: AugmentedWorker<M>, module: ModuleHandler<M>);
|
|
46
|
-
listenToMessages(): void;
|
|
47
|
-
postMessage(message: DataCaptureCallbackMessage, transfer?: Transferable[]): void;
|
|
48
|
-
getOffscreenCanvas(): OffscreenCanvas | undefined;
|
|
49
|
-
isOffscreenCanvasSupported(): boolean;
|
|
50
|
-
hasPayload(result: unknown): result is {
|
|
51
|
-
payload: unknown;
|
|
52
|
-
};
|
|
53
|
-
hasTransferables(result: unknown): result is {
|
|
54
|
-
transferables: Transferable[];
|
|
55
|
-
};
|
|
56
|
-
respondWith<C extends DataCaptureActionMessageKey>(command: C, requestId: number, executor: () => EngineWorkerResponse<C>): Promise<void>;
|
|
57
|
-
/**
|
|
58
|
-
* Messages received from the main thread (actions to undertake)
|
|
59
|
-
*/
|
|
60
|
-
onMessage(event: MessageEvent<AnyDataCaptureActionMessage>): boolean;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export { WorkerMain };
|
|
1
|
+
import { k as WorkerMain } from "../DataCaptureContext-CYDrBO6_.js";
|
|
2
|
+
export { WorkerMain };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{Logger as e}from"../logger.js";import{assertUnreachable as t}from"../tsHelper.js";import{isObject as n}from"../private/utils/isObject.js";import{unknownErrorToString as r}from"../private/utils/unknownErrorToString.js";import{isWorkerScope as i}from"../private/utils/isWorkerScope.js";import{ensureFinalizationRegistry as a}from"../private/utils/finalizationRegistryPolyfill.js";import{DataCaptureEngine as o}from"./dataCaptureEngine.js";var s=class{constructor(e,t){this.onMessageListener=this.onMessage.bind(this),this.workerSelf=e,this.dataCaptureInstance=new o(t,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)}),i(e)&&(a(e),this.listenToMessages())}listenToMessages(){this.workerSelf.addEventListener(`message`,this.onMessageListener),this.workerSelf.addEventListener(`error`,t=>{e.log(e.Level.Error,t)}),this.workerSelf.addEventListener(`messageerror`,t=>{e.log(e.Level.Error,t)})}postMessage(e,t){this.workerSelf.postMessage(e,t??[])}getOffscreenCanvas(){if(this.isOffscreenCanvasSupported())return new this.workerSelf.OffscreenCanvas(32,32)}isOffscreenCanvasSupported(){return typeof this.workerSelf.OffscreenCanvas==`function`}hasPayload(e){return n(e)&&`payload`in e}hasTransferables(e){return n(e)&&Array.isArray(e.transferables)}async respondWith(e,t,n){let i=null,a;try{a=n(),a instanceof Promise&&(a=await a)}catch(e){a=void 0,i=r(e)}let o={type:`workerTaskId`,command:e,id:t,payload:this.hasPayload(a)?a.payload:void 0};i!=null&&(o.error=i),this.postMessage(o,this.hasTransferables(a)?a.transferables:[])}onMessage(n){switch(n.data.command){case`loadLibrary`:{let{data:e}=n;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.loadLibrary({libraryLocation:e.libraryLocation,locationPath:e.locationPath,referredOrigin:e.referredOrigin,writableDataPathOverride:e.writableDataPathOverride,threadsSupport:e.threadsSupport,simdSupport:e.simdSupport,verifyResponseHash:e.verifyResponseHash,fixedWasmMemory:e.fixedWasmMemory,indexedDBTimeoutMs:e.indexedDBTimeoutMs}))}break;case`onTap`:{let{data:e}=n;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.onTap(e.point)})}break;case`hintPresenterV2update`:{let{data:e}=n;this.respondWith(e.command,e.id,async()=>{this.dataCaptureInstance.hintPresenterV2Update()})}break;case`createContext`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.createContext({context:e.context,deviceId:e.deviceId,delayedRegistration:e.delayedRegistration,highEndBlurryRecognition:e.highEndBlurryRecognition,appName:e.appName,parentDomain:e.parentDomain,isTablet:e.isTablet,batteryInfo:e.batteryInfo}))}break;case`setFrameSource`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.setFrameSource(e.mirrorAxis,e.isCameraFrameSource))}break;case`processFrame`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.processFrame({data:e.data,frameId:e.frameId,width:e.width,height:e.height,colorType:e.colorType}))}break;case`requestFrameData`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.requestFrameData(e.frameId))}break;case`deleteFrameData`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.deleteFrameData(e.frameId)})}break;case`updateContext`:{let{data:e}=n;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.updateContext(e))}break;case`dispose`:this.respondWith(n.data.command,n.data.id,()=>this.dataCaptureInstance.dispose());break;case`flushAnalytics`:this.respondWith(n.data.command,n.data.id,()=>{this.dataCaptureInstance.flushAnalytics()});break;case`reportCameraProperties`:{let{data:e}=n;this.respondWith(e.command,e.id,async()=>this.dataCaptureInstance.reportCameraProperties(e))}break;case`setLogLevel`:{let{data:t}=n;this.respondWith(t.command,t.id,()=>{e.setLevel(t.level)})}break;case`updateBatteryInfo`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.updateBatteryInfo(e.batteryInfo)})}break;case`extractCentaurusLicense`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.extractCentaurusLicense(e.licenseKey))}break;case`documentVisibility`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>{this.dataCaptureInstance.onDocumentVisibilityChange(e.state)})}break;case`isFeatureSupported`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.isFeatureSupported(e.feature))}break;case`getViewfinderInfo`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getViewfinderInfo())}break;case`getOpenSourceSoftwareLicenseInfo`:{let{data:e}=n;this.respondWith(e.command,e.id,()=>this.dataCaptureInstance.getOpenSourceSoftwareLicenseInfo())}break;case`addNativeOverlay`:this.dataCaptureInstance.addNativeOverlay(n);break;case`removeNativeOverlay`:this.dataCaptureInstance.removeNativeOverlay(n);break;case`convertToJPEGResult`:{let{data:e}=n;this.dataCaptureInstance.convertToJPEGResult(e.imageId,e.result)}break;default:return t(n.data),!1}return!0}};export{s as WorkerMain};
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import '../LoadingStatus.js';
|
|
4
|
-
import '../commons/Point.js';
|
|
5
|
-
import '../commons/Orientation.js';
|
|
6
|
-
export { a1 as CreateContextParameters, I as DataCaptureEngine, aJ as LoadLibraryParameters, aT as ProcessFrameParameters, aW as ReportCameraPropertiesParameters, a_ as SetFrameSourceParameters, ba as UpdateContextParameters, W as WorkerFunctions } from '../DataCaptureContext-Qg40v7QA.js';
|
|
7
|
-
import '../ScanditIcon.js';
|
|
8
|
-
import '../private/FrameReaders/ColorType.js';
|
|
9
|
-
import '../private/djinni-types/index.js';
|
|
10
|
-
import '../private/Serializable.js';
|
|
11
|
-
import '../Camera-HgH6fwnW.js';
|
|
12
|
-
import '../commons/Rect.js';
|
|
13
|
-
import '../commons/Size.js';
|
|
14
|
-
import '../private/privateAccess.js';
|
|
15
|
-
import '../DataCaptureContextSettings.js';
|
|
16
|
-
import '../commons/JSONType.js';
|
|
17
|
-
import '../DataCaptureViewPlusRelated-BOrDBPHq.js';
|
|
18
|
-
import '../NotificationPresenter/NotificationPresenter.js';
|
|
19
|
-
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
20
|
-
import '../commons/Color.js';
|
|
21
|
-
import '../NotificationPresenter/NotificationStyle.js';
|
|
22
|
-
import '../private/utils/ScanditHTMLElement.js';
|
|
23
|
-
import '../commons/Anchor.js';
|
|
24
|
-
import '../commons/MarginsWithUnit.js';
|
|
25
|
-
import '../commons/NumberWithUnit.js';
|
|
26
|
-
import '../commons/MeasureUnit.js';
|
|
27
|
-
import '../commons/PointWithUnit.js';
|
|
28
|
-
import '../commons/Quadrilateral.js';
|
|
29
|
-
import '../private/CustomLocationsView.js';
|
|
30
|
-
import '../private/View.js';
|
|
31
|
-
import '../private/AnchorPositions.js';
|
|
32
|
-
import '../private/nativeHandle.js';
|
|
33
|
-
import '../private/AdditionalLayerPosition.js';
|
|
34
|
-
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
35
|
-
import '../logger.js';
|
|
36
|
-
import '../private/HtmlElementState.js';
|
|
37
|
-
import '../commons/SizeWithUnit.js';
|
|
38
|
-
import '../private/utils/AsyncStateMachine.js';
|
|
39
|
-
import '../tsHelper.js';
|
|
1
|
+
import { G as CreateContextParameters, J as ProcessFrameParameters, K as DataCaptureEngine, Q as WorkerFunctions, X as SetFrameSourceParameters, Y as ReportCameraPropertiesParameters, Z as UpdateContextParameters, q as LoadLibraryParameters } from "../DataCaptureContext-CYDrBO6_.js";
|
|
2
|
+
export { CreateContextParameters, DataCaptureEngine, LoadLibraryParameters, ProcessFrameParameters, ReportCameraPropertiesParameters, SetFrameSourceParameters, UpdateContextParameters, WorkerFunctions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureEngine}from'../chunks/chunk-DGDPZ73X.js';
|
|
1
|
+
import{Logger as e}from"../logger.js";import{DataCaptureError as t}from"../DataCaptureError.js";import"../private/FrameReaders/ColorType.js";import"../DataCaptureContextRelated.js";import{getLibraryLocationURIs as n}from"../private/Helper.js";import{Deferred as r}from"../private/utils/deferred.js";import{DataCaptureVersion as i}from"../DataCaptureVersion.js";import"../commons/Orientation.js";import{setWasmMetadata as a}from"./helperFetch.js";import{getDomain as o,instantiateWebAssembly as s}from"./helper.js";import{setupFS as c}from"./helperFs.js";import{importWasmScript as l}from"./importWasmScript.js";import{fromGrayscaleToRgba as u}from"../private/utils/fromGrayScaleToRgba.js";import{ImageConverterForwarder as d}from"./ImageConverterForwarder.js";import{ImageConverterWorker as f}from"./ImageConverterWorker.js";import{ViewInfoHelper as p}from"./ViewInfoHelper.js";var m=class m{constructor(e,t){this.hintPresenterV2=null,this.MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL=5,this.redrawInterval=1e3/30,this.redrawRequests=[],this._isDrawLoopRunning=!1,this.frameDataPool=new Map,this.lastFrameColorType=`RGBA`,this.lastFrameId=null,this.poorMansBenchmarkLogs=!1,this.writableDataPathStandard=`/scandit_sync_folder`,this.resourceFilesSubfolder=`resources`,this.performanceMetricsReporterTimer=void 0,this.lastMetricsReportTime=0,this.metricsReportInterval=1e3,this.performanceMetrics={frameDataPoolSize:0,cameraOutputFrames:0,redrawRequestsCount:0,actualRedrawsCount:0,frameProcessingStartedCount:0,frameProcessedCount:0,frameSkippedCount:0},this.frameProcessingStartedCount=0,this.frameProcessingFinishedCount=0,this.gestureListener=null,this.webPlatformHintPresenter=null,this.deviceInstance=null,this.deviceInfo=null,this.lastViewInfo=new p(null),this.lastFrameProcessingStartedCount=0,this.lastFrameProcessingFinishedCount=0,this.moduleHandler=e,this.workerFunctions=t,this._loadProgressCallback=this._loadProgressCallback.bind(this),a(this.getWasmMetadata())}get Module(){return this.moduleHandler.get()}set isDrawLoopRunning(e){this._isDrawLoopRunning=e,!e&&typeof this.loopTimeoutId==`number`&&(clearTimeout(this.loopTimeoutId),this.loopTimeoutId=void 0)}get isDrawLoopRunning(){return this._isDrawLoopRunning}prepareFrameForListener(e){let t=this.lastFrameId;if(this.frameDataPool.size>=this.MAX_NUMBER_OF_IMAGES_IN_FRAME_DATA_POOL){let e=this.frameDataPool.keys().next().value;e!=null&&this.frameDataPool.delete(e)}let n=e.getFrameData(),r=new Uint8ClampedArray(n);this.frameDataPool.set(t,{data:r,colorType:this.lastFrameColorType,frameId:t,width:e.getWidth(),height:e.getHeight()});let i=this.lastUsedModuleMirrorAxis==null?!1:this.lastUsedModuleMirrorAxis!==this.Module.Axis.None;return{frameId:t,width:e.getWidth(),height:e.getHeight(),isFrameSourceMirrored:i,colorType:this.lastFrameColorType}}createContext(e){var t,n,r,i;let a=this.getModeDeserializers(),s=o(location);(s===`localhost`||s===`127.0.0.1`)&&navigator.userAgent.includes(`Electron`)&&e.appName!=null&&(s+=`-${e.appName}`),this.parentDomain=e.parentDomain,this.contextDeserializer=new this.Module.DataCaptureContextDeserializer(this.writableDataPath,e.deviceId,e.context.deviceModelName,s,this.parentDomain,a,e.delayedRegistration,e.highEndBlurryRecognition,this.resourcePath);let c=this.contextDeserializer.contextFromJson(JSON.stringify(e.context));if(c==null){let e=this.contextDeserializer.getLastError();throw Error(`Could not create the context: ${e}`)}let l=c.getView();this.context=c.getContext(),c.delete(),this.setupDeviceInterface(e.isTablet,e.batteryInfo);let u=this.Module.DataCaptureContextListener.extend(`DataCaptureContextListener`,{didChangeStatus:(e,t)=>{this.contextDidChangeStatus(JSON.parse(t.toJson())),e.delete()},didStartObservingContext:e=>{this.didStartObservingContext(),e.delete()},didStopObservingContext:e=>{e.delete()}}),d=this.Module.DataCaptureContextFrameListener.extend(`DataCaptureContextFrameListener`,{onObservationStarted:e=>{e.delete()},onObservationStopped:e=>{e.delete()},onFrameProcessingStarted:(e,t)=>{this.workerFunctions.postMessage({type:`onFrameProcessingStarted`}),t.delete(),e.delete()},onFrameProcessingFinished:(e,t)=>{this.workerFunctions.postMessage({type:`onFrameProcessingFinished`}),t.delete(),e.delete()},onFrameSkipped:(e,t)=>{this.workerFunctions.postMessage({type:`onFrameSkipped`}),t.delete(),e.delete()}}),f=this.Module.GestureRecognizer.extend(`GestureRecognizer`,{setGestureListener:(e,t)=>{var n;(n=this.gestureListener)==null||n.delete(),this.gestureListener=e.clone(),e.delete()}});(t=this.gestureRecognizer)==null||t.delete(),this.gestureRecognizer=new f;let p=new u;this.context.addListener(p),p.delete();let m=new d;this.context.addFrameListener(m),m.delete(),this.setView(l),(n=this.view)==null||n.setGestureRecognizer(this.gestureRecognizer);let h=this.Module.PlatformHintPresenter.extend(`PlatformHintPresenter`,{setHintPresenter:e=>{e.delete()},showToast:e=>{this.workerFunctions.postMessage({type:`showToast`,payload:JSON.parse(e)})},hideToast:e=>{this.workerFunctions.postMessage({type:`hideToast`,payload:JSON.parse(e)})},showGuidance:e=>{this.workerFunctions.postMessage({type:`showGuidance`,payload:JSON.parse(e)})},hideGuidance:e=>{this.workerFunctions.postMessage({type:`hideGuidance`,payload:JSON.parse(e)})},startUpdateTimer:e=>{this.workerFunctions.postMessage({type:`startUpdateTimer`,payload:{duration:{unit:`ms`,value:e}}})},stopUpdateTimer:()=>{this.workerFunctions.postMessage({type:`stopUpdateTimer`})}});if((r=this.hintPresenterV2)==null||r.delete(),this.hintPresenterV2=null,(i=this.webPlatformHintPresenter)==null||i.delete(),this.webPlatformHintPresenter=null,this.webPlatformHintPresenter=new h,this.view){var g;this.hintPresenterV2=new this.Module.HintPresenterV2(this.webPlatformHintPresenter),(g=this.view)==null||g.setHintPresenterV2(this.hintPresenterV2)}this.webImageConverterInstance=this.getImageConverterInstance({quality:1}),this.Module.ImageConverter.setInstance(this.webImageConverterInstance)}convertToJPEGResult(e,t){this.webImageConverterInstance instanceof d&&this.webImageConverterInstance.onConvertToJPEGResult(e,t)}getImageConverterInstance(e){return this.workerFunctions.getOffscreenCanvas()==null?new d(this.workerFunctions,e):new f(e)}onTap(e){var t;(t=this.gestureListener)==null||t.onTap(JSON.stringify(e))}hintPresenterV2Update(){var e;(e=this.hintPresenterV2)==null||e.update()}startReportingPerformanceMetrics(){this.performanceMetricsReporterTimer??(this.lastMetricsReportTime=performance.now(),this.scheduleMetricsReporting())}scheduleMetricsReporting(){this.performanceMetricsReporterTimer=setTimeout(()=>{this.checkAndReportMetrics()},100)}checkAndReportMetrics(){let e=performance.now();e-this.lastMetricsReportTime>=this.metricsReportInterval&&(this.reportPerformanceMetrics(),this.performanceMetrics.cameraOutputFrames=0,this.performanceMetrics.redrawRequestsCount=0,this.performanceMetrics.actualRedrawsCount=0,this.lastMetricsReportTime=e),this._isDrawLoopRunning&&this.scheduleMetricsReporting()}async reportPerformanceMetrics(){let e=this.frameProcessingStartedCount-this.lastFrameProcessingStartedCount,t=this.frameProcessingFinishedCount-this.lastFrameProcessingFinishedCount;this.lastFrameProcessingStartedCount=this.frameProcessingStartedCount,this.lastFrameProcessingFinishedCount=this.frameProcessingFinishedCount;let n={cameraOutputFrames:this.performanceMetrics.cameraOutputFrames,redrawRequestsCount:this.performanceMetrics.redrawRequestsCount,actualRedrawsCount:this.performanceMetrics.actualRedrawsCount,frameDataPoolSize:this.performanceMetrics.frameDataPoolSize,frameProcessingStartedCount:e,frameProcessedCount:t,frameSkippedCount:this.performanceMetrics.frameSkippedCount};this.workerFunctions.postMessage({type:`performanceMetricsReport`,payload:n})}deleteFrameData(e){this.frameDataPool.delete(e)}dispose(){var e,t,n,r,i;this.context.dispose(),this.frameDataPool.clear(),this.isDrawLoopRunning=!1,this.cleanupMetricsReporting(),(e=this.gestureRecognizer)==null||e.delete(),this.gestureRecognizer=null,(t=this.gestureListener)==null||t.delete(),this.gestureListener=null,(n=this.hintPresenterV2)==null||n.delete(),this.hintPresenterV2=null,(r=this.webPlatformHintPresenter)==null||r.delete(),this.webPlatformHintPresenter=null,(i=this.deviceInstance)==null||i.delete(),this.deviceInstance=null,this.deviceInfo=null}cleanupMetricsReporting(){this.performanceMetricsReporterTimer!=null&&(typeof this.performanceMetricsReporterTimer==`number`?cancelAnimationFrame(this.performanceMetricsReporterTimer):clearTimeout(this.performanceMetricsReporterTimer),this.performanceMetricsReporterTimer=void 0)}flushAnalytics(){this.context.flushAnalytics()}extractCentaurusLicense(e){return{payload:{centaurus:{licenseKey:this.Module.LicenseUtils[m.get3dPartyLicenseKeyMethodName](e)}}}}getModeDeserializers(){return new this.Module.VectorDataCaptureModeDeserializer}loadLibrary(e){return this.libraryLoadingPromise??=this.setup(e),this.libraryLoadingPromise}processFrame(t){var n;if(this.context==null)return e.debug(`[processFrame] Context is null, returning frame without processing`),{payload:t,transferables:[t.data.buffer]};this.lastFrameId=t.frameId;let r=t.data,i=t.colorType===`GRAYSCALE`?this.Module.ImageBufferFormat.Grayscale8:this.Module.ImageBufferFormat.Rgba8888;this.lastFrameColorType=t.colorType===`GRAYSCALE`?`GRAYSCALE`:`RGBA`;let a=this.Module.allocateUint8Array(r.byteLength);return this.Module.HEAPU8.set(r,a),(n=this.imageFrameSource)==null||n.outputFrame(a,t.width,t.height,i),{payload:t,transferables:[t.data.buffer]}}reportCameraProperties(e){this.context.setCameraProperties(e.deviceId,e.isFrontFacing,e.hasAutofocus)}requestFrameData(e){let t=this.frameDataPool.get(e);if(t==null)return{payload:{data:null,frameId:null,colorType:null}};if(t.data.buffer.byteLength===0)return this.frameDataPool.delete(e),{payload:{data:null,frameId:null,colorType:null}};let n=t.data;t.colorType===`GRAYSCALE`&&(n=u(t.data,t.width,t.height));let r={payload:{data:n,frameId:t.frameId,colorType:t.colorType},transferables:[n.buffer]};return this.frameDataPool.delete(e),r}scheduleRedraw(e,t){this.addRedrawRequest(t),this.isDrawLoopRunning||this.startDrawLoop(e)}sendViewRefreshCommands(e){this.workerFunctions.postMessage({type:`draw`,payload:e},[e.buffer])}setFrameSource(e,t){var n;this.lastUsedModuleMirrorAxis=this.mapMirrorAxisOnModule(e),(n=this.imageFrameSource)==null||n.delete(),this.imageFrameSource=new this.Module.ImageBufferFrameSource(this.lastUsedModuleMirrorAxis,t,0),this.context.setFrameSource(this.imageFrameSource)}startDrawLoop(e){this.isDrawLoopRunning=!0;let t=e=>this.redrawRequests.length>0&&this.redrawRequests[0]<=e,n=e=>{for(;this.redrawRequests.length>0&&this.redrawRequests[0]<=e;)this.redrawRequests.shift()},r=()=>{this.loopTimeoutId=setTimeout(()=>{if(!this.isDrawLoopRunning)return;let i=performance.now();if(t(i)){n(i),e.draw();let t=e.getDrawCommands();this.sendViewRefreshCommands(new Uint8Array(t))}r()},this.redrawInterval)};r()}updateContext(t){if(this.context!=null&&this.contextDeserializer!=null){t.view!=null&&!t.view.visible&&this.context.flushAnalytics();let n=this.onBeforeUpdateContextHook(t),r=this.contextDeserializer.updateContextFromJson(this.context,this.view,JSON.stringify(n.context));if(r==null){let e=this.contextDeserializer.getLastError();throw Error(`Could not update the context: ${e}`)}this.context.delete(),this.context=r.getContext();let i=r.getView();r.delete(),i!=null&&n.view!=null&&(i.setViewSize(n.view.width,n.view.height,n.view.orientation),i.draw()),!this.hintPresenterV2&&this.webPlatformHintPresenter&&(this.hintPresenterV2=new this.Module.HintPresenterV2(this.webPlatformHintPresenter)),i!=null&&this.hintPresenterV2&&i.setHintPresenterV2(this.hintPresenterV2),this.gestureRecognizer!=null&&(i==null||i.setGestureRecognizer(this.gestureRecognizer)),this.setView(i),this.notifyMainThreadOnViewInfoChanged(i),e.debug(`context updated`,n)}}notifyMainThreadOnViewInfoChanged(e){let t=this.getViewInfo(e);this.lastViewInfo.isSame(t)||(this.lastViewInfo.update(t),this.workerFunctions.postMessage({type:`viewSizeChanged`,payload:t}))}getViewInfo(t){if(t!=null)try{let e=JSON.parse(t.getViewInfo());if(e!=null){let t=this.getOrientationFromNumber(e.orientation);return{...e,orientation:t}}}catch(t){e.error(`Failed to get view size`,t)}return null}getOrientationFromNumber(e){switch(e){case 90:return`landscapeRight`;case 180:return`portraitUpsideDown`;case 270:return`landscapeLeft`;default:return`portrait`}}onBeforeUpdateContextHook(e){return e}onDocumentVisibilityChange(e){e===`hidden`&&this.context.flushAnalytics()}isFeatureSupported(e){return{payload:{supported:this.context.isFeatureSupported(e)}}}getViewfinderInfo(){var e;return{payload:{isDisplayingViewfinder:((e=this.view)==null?void 0:e.isDisplayingViewfinder())??!1,rect:JSON.parse(this.view.getViewfinderRect())}}}getOpenSourceSoftwareLicenseInfo(){return{payload:{licenseText:this.Module.OpenSourceSoftwareLicenseInfo.getLicenseText()}}}getWasmDynamicLibraries(e){return this.getWasmSideModuleFileName()==null?[]:[`${e.replace(/\/[^/]*$/,`/`)}${this.getWasmSideModuleFileName()}`]}getWasmCoreExpectedHash(e,t){return t?e?globalThis.SDC_WASM_CORE_MT_SIMD_HASH:globalThis.SDC_WASM_CORE_MT_HASH:e?globalThis.SDC_WASM_CORE_SIMD_HASH:``}getWasmCoreFileName(e,t){return t?e?globalThis.SDC_WASM_CORE_MT_SIMD_FILE_NAME:globalThis.SDC_WASM_CORE_MT_FILE_NAME:e?globalThis.SDC_WASM_CORE_SIMD_FILE_NAME:``}getWasmMetadata(){return globalThis.WASM_METADATA}getWasmSideModuleFileName(){return``}_loadProgressCallback(e){this.workerFunctions.postMessage({type:`loadLibraryProgress`,payload:e})}addRedrawRequest(e){this.redrawRequests.push(Math.round(performance.now())+e),this.redrawRequests.sort((e,t)=>e-t)}contextDidChangeStatus(e){e.code===260?e.message=e.message.replace(`domain name`,`domain name (${o(location)})`):e.code===265&&(e.message=e.message.replace(`domain name`,`domain name (${this.parentDomain})`)),this.workerFunctions.postMessage({type:`contextDidChangeStatus`,payload:e})}didStartObservingContext(){this.workerFunctions.postMessage({type:`didStartObservingContext`})}mapMirrorAxisOnModule(e){switch(e){case`None`:return this.Module.Axis.None;case`X`:return this.Module.Axis.X;case`Y`:return this.Module.Axis.Y;default:return this.Module.Axis.None}}setView(e){this.view=e,this.setViewRefreshHandler(e),e??(this.isDrawLoopRunning=!1,this.sendViewRefreshCommands(new Uint8Array([])))}addNativeOverlay(t){e.warn(`addNativeOverlay has not been implemented for this module`,t)}removeNativeOverlay(t){e.warn(`removeNativeOverlay has not been implemented for this module`,t)}setViewRefreshHandler(e){if(e==null||e.isViewRefreshHandlerSet)return;let t=new(this.Module.NeedsRedrawDelegate.extend(`NeedsRedrawDelegate`,{setNeedsRedrawIn:this.scheduleRedraw.bind(this,e)}));e.setNeedsRedrawDelegate(t),e.isViewRefreshHandlerSet=!0}setupDataDecoding(){let e=this.moduleHandler.get(),t=e.DataDecoding.extend(`DataDecoding`,{decode(e,t){try{let n=JSON.parse(t),r=[];for(let t of n){let n=new TextDecoder(t.ianaName,{fatal:!0});r.push(n.decode(e.slice(t.startIndex,t.endIndex)))}return r.join(``)}catch{return``}}});e.setDataDecoding(new t)}getBatteryData(){var e;let t=(e=this.deviceInfo)==null||(e=e.batteryInfo)==null?void 0:e.percentage;if(t!=null)return{percentage:t}}isTablet(){var e;return((e=this.deviceInfo)==null?void 0:e.isTablet)??!1}setupDeviceInterface(e,t){this.deviceInfo={isTablet:e,batteryInfo:t};let n=this.moduleHandler.get(),r=n.DeviceInterface.extend(`DeviceInterface`,{getBatteryData:this.getBatteryData.bind(this),isTablet:this.isTablet.bind(this)});this.deviceInstance=new r,n.DeviceHolder.setCurrentDevice(this.deviceInstance)}updateBatteryInfo(e){this.deviceInfo&&(this.deviceInfo.batteryInfo=e)}start(e,t,n){e&&t&&(this.setupDataDecoding(),this.moduleHandler.get().callMain(),this.moduleHandler.get().__emscripten_proxy_main===void 0&&n())}getWritableDataPath(t){return t==null?this.writableDataPathStandard:(e.debug(`IndexedDB database name override in use to recover from blocked standard database: ${t}`),t)}numOfMBToPages(e){return Math.ceil(1024*e*1024/64/1024)}async setup({libraryLocation:a,locationPath:o,writableDataPathOverride:u,indexedDBTimeoutMs:d,verifyResponseHash:f,referredOrigin:p,fixedWasmMemory:m,simdSupport:h,threadsSupport:g}){let _=!1,v=!1;this.writableDataPath=this.getWritableDataPath(u),this.resourcePath=`${a}${this.resourceFilesSubfolder}/`,globalThis.path=o;let{resolve:y,reject:b,promise:x}=new r,S=i.sdkVersion();if(S===``)throw new t({name:`Invalid library version`,message:`Library version is not defined or empty, cannot generate proper path to library files.`});let{jsURI:C,wasmURI:w}=n(S,a,this.getWasmCoreFileName(h,g)),T={instantiateWasm:(e,t)=>(s({importObject:e,wasmURI:w,expectedHash:this.getWasmCoreExpectedHash(h,g),verifyResponseHash:f,successCallback:t,progressCallback:this._loadProgressCallback,errorCallback:e=>{b(e)},referredOrigin:p}),{})},E=m===null?null:new WebAssembly.Memory({initial:this.numOfMBToPages(m),maximum:this.numOfMBToPages(300),shared:g});return E!==null&&e.log(e.Level.Debug,`Fixed wasmMemory set`,E),this.moduleHandler.set({...E?{wasmMemory:E}:{},mainScriptUrlOrBlob:C,canvas:this.workerFunctions.getOffscreenCanvas()??{getContext:()=>null},...T,dynamicLibraries:this.getWasmDynamicLibraries(w),locateFile:e=>a+e,noInitialRun:!0,preRun:[async()=>{try{await c({writableDataPath:this.writableDataPath,indexedDBTimeoutMs:d})}catch(t){if(t.name===`BlockedIndexedDB`){b(t.toString());return}e.log(e.Level.Debug,`No IndexedDB support, some data will not be persisted:`,t)}v=!0,this.start(v,_,y)}],onMainComplete:()=>{if([_,v].includes(!1)){e.log(e.Level.Warn,{runtimeLoaded:_,fileSystemSynced:v},`Both runtimeLoaded and fileSystemSynced should be true when calling onMainComplete`),b(`onMainComplete has been called but runtime or file system was not ready.`);return}y()},onRuntimeInitialized:()=>{_=!0,this.start(v,_,y)},print:t=>{e.info(t)}}),await l(C,S)||b(`Couldn't retrieve Scandit Data Capture library at ${C}, did you configure the path for it correctly?`),x}};m.get3dPartyLicenseKeyMethodName=atob(`Z2V0QmxpbmtJZExpY2Vuc2VLZXk=`);export{m as DataCaptureEngine};
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
import '../LoadingStatus.js';
|
|
4
|
-
import '../logger.js';
|
|
5
|
-
import '../ScanditIcon.js';
|
|
6
|
-
import '../Camera-HgH6fwnW.js';
|
|
7
|
-
import '../commons/Rect.js';
|
|
8
|
-
import '../private/Serializable.js';
|
|
9
|
-
import '../commons/Point.js';
|
|
10
|
-
import '../commons/Size.js';
|
|
11
|
-
import '../private/privateAccess.js';
|
|
12
|
-
import '../DataCaptureContextSettings.js';
|
|
13
|
-
import '../commons/JSONType.js';
|
|
14
|
-
import '../DataCaptureViewPlusRelated-BOrDBPHq.js';
|
|
15
|
-
import '../NotificationPresenter/NotificationPresenter.js';
|
|
16
|
-
import '../NotificationPresenter/NotificationConfiguration.js';
|
|
17
|
-
import '../commons/Color.js';
|
|
18
|
-
import '../NotificationPresenter/NotificationStyle.js';
|
|
19
|
-
import '../private/utils/ScanditHTMLElement.js';
|
|
20
|
-
import '../commons/Anchor.js';
|
|
21
|
-
import '../commons/MarginsWithUnit.js';
|
|
22
|
-
import '../commons/NumberWithUnit.js';
|
|
23
|
-
import '../commons/MeasureUnit.js';
|
|
24
|
-
import '../commons/Orientation.js';
|
|
25
|
-
import '../commons/PointWithUnit.js';
|
|
26
|
-
import '../commons/Quadrilateral.js';
|
|
27
|
-
import '../private/CustomLocationsView.js';
|
|
28
|
-
import '../private/View.js';
|
|
29
|
-
import '../private/AnchorPositions.js';
|
|
30
|
-
import '../private/nativeHandle.js';
|
|
31
|
-
import '../private/AdditionalLayerPosition.js';
|
|
32
|
-
import '../license/OpenSourceSoftwareLicenseInfo.js';
|
|
33
|
-
import '../private/FrameReaders/ColorType.js';
|
|
34
|
-
import '../private/BatteryInterface.js';
|
|
35
|
-
import '../private/djinni-types/index.js';
|
|
36
|
-
import '../private/HtmlElementState.js';
|
|
37
|
-
import '../commons/SizeWithUnit.js';
|
|
38
|
-
import '../private/utils/AsyncStateMachine.js';
|
|
39
|
-
import '../tsHelper.js';
|
|
1
|
+
import { D as DataCaptureLoader, O as DataCaptureLoaderOptions } from "../DataCaptureContext-CYDrBO6_.js";
|
|
2
|
+
export { DataCaptureLoader, DataCaptureLoaderOptions };
|