@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.
Files changed (780) hide show
  1. package/THIRD_PARTY.txt +2 -28
  2. package/build/electron/constants-D5Av3xIA.js +1 -0
  3. package/build/electron/constants-Tq_qHFkh.cjs +1 -0
  4. package/build/electron/main.cjs +1 -1
  5. package/build/electron/main.d.cts +12 -21
  6. package/build/electron/main.d.ts +12 -21
  7. package/build/electron/main.js +1 -1
  8. package/build/electron/preload.cjs +1 -1
  9. package/build/electron/preload.d.cts +4 -4
  10. package/build/electron/preload.d.ts +4 -4
  11. package/build/electron/preload.js +1 -1
  12. package/build/js/AdditionalLayerPosition-D_ouQ8wn.d.ts +7 -0
  13. package/build/js/AimerViewfinder-bCf_UrQu.d.ts +15 -0
  14. package/build/js/AimerViewfinder.d.ts +2 -22
  15. package/build/js/AimerViewfinder.js +1 -1
  16. package/build/js/Anchor-DxO9CbHk.d.ts +14 -0
  17. package/build/js/AnchorPositions-4M8lB28_.d.ts +42 -0
  18. package/build/js/AsyncStateMachine-gK_htWdT.d.ts +49 -0
  19. package/build/js/AudioCache-D893YEVZ.d.ts +37 -0
  20. package/build/js/BatteryInterface-BYl36ktu.d.ts +81 -0
  21. package/build/js/Brush-D6WUoW36.d.ts +32 -0
  22. package/build/js/Brush.d.ts +2 -32
  23. package/build/js/Brush.js +1 -1
  24. package/build/js/Camera-C7TNwqRo.d.ts +413 -0
  25. package/build/js/Camera.d.ts +2 -7
  26. package/build/js/Camera.js +1 -1
  27. package/build/js/CameraManager-DskA2C7T.js +35 -0
  28. package/build/js/CameraRelated.d.ts +2 -7
  29. package/build/js/CameraRelated.js +1 -1
  30. package/build/js/CavansDrawerAbstract-E_URl3X1.d.ts +37 -0
  31. package/build/js/Color-qNIvVO9c.d.ts +28 -0
  32. package/build/js/ColorType-Dj3_-sLJ.d.ts +7 -0
  33. package/build/js/CustomLocationsView-BmILmaYk.d.ts +59 -0
  34. package/build/js/DataCaptureContext-CYDrBO6_.d.ts +2017 -0
  35. package/build/js/DataCaptureContext-CbQes_57.js +6 -0
  36. package/build/js/DataCaptureContext.d.ts +2 -39
  37. package/build/js/DataCaptureContext.js +1 -1
  38. package/build/js/DataCaptureContextRelated.d.ts +2 -39
  39. package/build/js/DataCaptureContextRelated.js +1 -1
  40. package/build/js/DataCaptureContextSettings-jR9ArFal.d.ts +13 -0
  41. package/build/js/DataCaptureContextSettings.d.ts +2 -13
  42. package/build/js/DataCaptureContextSettings.js +1 -1
  43. package/build/js/DataCaptureError-fm19xgXy.d.ts +13 -0
  44. package/build/js/DataCaptureError.d.ts +2 -13
  45. package/build/js/DataCaptureError.js +1 -1
  46. package/build/js/DataCaptureVersion-CoBugUHX.d.ts +6 -0
  47. package/build/js/DataCaptureVersion.d.ts +2 -6
  48. package/build/js/DataCaptureVersion.js +1 -1
  49. package/build/js/DataCaptureView.d.ts +2 -39
  50. package/build/js/DataCaptureView.js +1 -1
  51. package/build/js/DataCaptureViewPlusRelated-DcAi6mWY.d.ts +50 -0
  52. package/build/js/DataCaptureViewPlusRelated.d.ts +2 -3
  53. package/build/js/DataCaptureViewPlusRelated.js +1 -1
  54. package/build/js/DefaultViewClassnames.d.ts +13 -13
  55. package/build/js/DefaultViewClassnames.js +1 -1
  56. package/build/js/Direction-Cii3d0QY.d.ts +12 -0
  57. package/build/js/DrawCommandBuffer-TbNqWVhj.d.ts +44 -0
  58. package/build/js/EventManager-Cr57hTzG.d.ts +9 -0
  59. package/build/js/Feedback-D4kA2xWA.d.ts +21 -0
  60. package/build/js/Feedback.d.ts +2 -21
  61. package/build/js/Feedback.js +1 -1
  62. package/build/js/FrameData.d.ts +2 -39
  63. package/build/js/FrameData.js +1 -1
  64. package/build/js/HtmlElementState-BeRz5m6o.d.ts +35 -0
  65. package/build/js/ImageFrameSource-YH6FmhqZ.d.ts +43 -0
  66. package/build/js/ImageFrameSource.d.ts +2 -47
  67. package/build/js/ImageFrameSource.js +1 -1
  68. package/build/js/JSONType-BJv7BUtr.d.ts +6 -0
  69. package/build/js/LaserlineViewfinder-Dkc264QQ.d.ts +17 -0
  70. package/build/js/LaserlineViewfinder.d.ts +2 -23
  71. package/build/js/LaserlineViewfinder.js +1 -1
  72. package/build/js/LoadingStatus-0KzcUFiY.d.ts +23 -0
  73. package/build/js/LoadingStatus.d.ts +2 -23
  74. package/build/js/LoadingStatus.js +1 -1
  75. package/build/js/Localization-LoX2FWJO.d.ts +44 -0
  76. package/build/js/Localization.d.ts +2 -44
  77. package/build/js/Localization.js +1 -1
  78. package/build/js/LocationSelection-BXqyUc16.d.ts +41 -0
  79. package/build/js/LocationSelection.d.ts +2 -44
  80. package/build/js/LocationSelection.js +1 -1
  81. package/build/js/MarginsWithUnit-BHhnV4t0.d.ts +38 -0
  82. package/build/js/MeasureUnit-D14sZoRp.d.ts +7 -0
  83. package/build/js/NotificationBuilder-B3uY_ZbG.d.ts +23 -0
  84. package/build/js/NotificationConfiguration-C-1Vhrpo.d.ts +22 -0
  85. package/build/js/NotificationPresenter/NotificationBuilder.d.ts +2 -25
  86. package/build/js/NotificationPresenter/NotificationBuilder.js +1 -1
  87. package/build/js/NotificationPresenter/NotificationConfiguration.d.ts +2 -24
  88. package/build/js/NotificationPresenter/NotificationConfiguration.js +1 -1
  89. package/build/js/NotificationPresenter/NotificationPresenter.d.ts +2 -14
  90. package/build/js/NotificationPresenter/NotificationStyle.d.ts +2 -9
  91. package/build/js/NotificationPresenter/NotificationStyle.js +1 -1
  92. package/build/js/NotificationPresenter/index.d.ts +6 -41
  93. package/build/js/NotificationPresenter/index.js +1 -1
  94. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +2 -48
  95. package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.js +1 -1
  96. package/build/js/NotificationPresenter/private/presets.d.ts +5 -41
  97. package/build/js/NotificationPresenter/private/presets.js +1 -1
  98. package/build/js/NotificationPresenter-D0g_arAJ.d.ts +9 -0
  99. package/build/js/NotificationStyle-COZXqLGO.d.ts +9 -0
  100. package/build/js/NumberWithUnit-UGwoucuQ.d.ts +19 -0
  101. package/build/js/OpenSourceSoftwareLicenseInfo-CpjUKTrl.d.ts +8 -0
  102. package/build/js/Orientation-BNtNH3yS.d.ts +10 -0
  103. package/build/js/OverrideState-CGTOUAyb.d.ts +8 -0
  104. package/build/js/Point-CD9Qi9ID.d.ts +20 -0
  105. package/build/js/PointWithUnit-C_e8HUvk.d.ts +26 -0
  106. package/build/js/Quadrilateral-DbJ7LU2U.d.ts +25 -0
  107. package/build/js/Rect-BVo37EKG.d.ts +19 -0
  108. package/build/js/RectWithUnit-OJ1xPlBN.d.ts +19 -0
  109. package/build/js/RectangularViewfinder-j93qfYTd.d.ts +36 -0
  110. package/build/js/RectangularViewfinder.d.ts +2 -40
  111. package/build/js/RectangularViewfinder.js +1 -1
  112. package/build/js/ScanditHTMLElement-CrbGsFpn.d.ts +5 -0
  113. package/build/js/ScanditIcon-FRMSos7x.d.ts +49 -0
  114. package/build/js/ScanditIcon.d.ts +2 -50
  115. package/build/js/ScanditIcon.js +1 -1
  116. package/build/js/ScanditIconBuilder-BtnTaVeJ.d.ts +66 -0
  117. package/build/js/ScanditIconBuilder.d.ts +3 -68
  118. package/build/js/ScanditIconBuilder.js +1 -1
  119. package/build/js/Serializable-Dbturs7d.d.ts +9 -0
  120. package/build/js/SingleImageUploader-CRDpQ9PA.d.ts +43 -0
  121. package/build/js/SingleImageUploader.d.ts +2 -48
  122. package/build/js/SingleImageUploader.js +1 -1
  123. package/build/js/SingleImageUploaderSettings-Y-cG1lpl.d.ts +33 -0
  124. package/build/js/SingleImageUploaderSettings.d.ts +2 -33
  125. package/build/js/SingleImageUploaderSettings.js +1 -1
  126. package/build/js/Size-i8Zhfc5b.d.ts +18 -0
  127. package/build/js/SizeMode-CkAAaxIg.d.ts +9 -0
  128. package/build/js/SizeWithAspect-Dg-YCV1Q.d.ts +12 -0
  129. package/build/js/SizeWithUnit-CNgvxsVj.d.ts +26 -0
  130. package/build/js/SizeWithUnitAndAspect-BrtiXpsG.d.ts +40 -0
  131. package/build/js/Sound-ByTzZ3ia.d.ts +21 -0
  132. package/build/js/Sound.d.ts +2 -21
  133. package/build/js/Sound.js +1 -1
  134. package/build/js/SvgIcon-CAR8Tf7x.d.ts +23 -0
  135. package/build/js/Vibration-B1J9JMda.d.ts +21 -0
  136. package/build/js/Vibration.d.ts +2 -21
  137. package/build/js/Vibration.js +1 -1
  138. package/build/js/View-BvEw8Q1D.d.ts +7 -0
  139. package/build/js/Viewfinder-DTjfkI0v.d.ts +19 -0
  140. package/build/js/Viewfinder.d.ts +2 -26
  141. package/build/js/Viewfinder.js +1 -1
  142. package/build/js/ViewfinderPlusRelated-CuUarlQb.d.ts +72 -0
  143. package/build/js/ViewfinderPlusRelated.d.ts +2 -76
  144. package/build/js/ViewfinderPlusRelated.js +1 -1
  145. package/build/js/WatermarkStack-CDKo8wBr.d.ts +41 -0
  146. package/build/js/ZoomGestureListener.d.ts +2 -3
  147. package/build/js/ZoomListener.d.ts +2 -7
  148. package/build/js/ZoomSwitchOrientation-Deylpp5l.d.ts +8 -0
  149. package/build/js/ZoomSwitchOrientation.d.ts +2 -8
  150. package/build/js/ZoomSwitchOrientation.js +1 -1
  151. package/build/js/areEqualArrays-BpuDaVrU.d.ts +4 -0
  152. package/build/js/assets/beepSound.d.ts +3 -3
  153. package/build/js/assets/beepSound.js +1 -1
  154. package/build/js/assets/folderImage.d.ts +3 -3
  155. package/build/js/assets/folderImage.js +1 -1
  156. package/build/js/assets/scanningByScandit.d.ts +3 -3
  157. package/build/js/assets/scanningByScandit.js +1 -1
  158. package/build/js/assets/transparentPixelImage.d.ts +3 -3
  159. package/build/js/assets/transparentPixelImage.js +1 -1
  160. package/build/js/browserCompatibility-DD4Tvtlv.d.ts +88 -0
  161. package/build/js/browserCompatibility.d.ts +2 -88
  162. package/build/js/browserCompatibility.js +1 -1
  163. package/build/js/browserHelper-BQPnAZ2Y.js +1 -0
  164. package/build/js/browserHelper-Dno5no9Z.d.ts +224 -0
  165. package/build/js/browserHelper.d.ts +2 -224
  166. package/build/js/browserHelper.js +1 -1
  167. package/build/js/clamp-B71RA4rG.d.ts +4 -0
  168. package/build/js/common-BisNSU4o.d.ts +25 -0
  169. package/build/js/commons/Anchor.d.ts +2 -14
  170. package/build/js/commons/Anchor.js +1 -1
  171. package/build/js/commons/Color.d.ts +2 -28
  172. package/build/js/commons/Color.js +1 -1
  173. package/build/js/commons/Direction.d.ts +2 -12
  174. package/build/js/commons/Direction.js +1 -1
  175. package/build/js/commons/JSONType.d.ts +2 -6
  176. package/build/js/commons/MarginsWithUnit.d.ts +2 -39
  177. package/build/js/commons/MarginsWithUnit.js +1 -1
  178. package/build/js/commons/MeasureUnit.d.ts +2 -7
  179. package/build/js/commons/MeasureUnit.js +1 -1
  180. package/build/js/commons/NumberWithUnit.d.ts +2 -19
  181. package/build/js/commons/NumberWithUnit.js +1 -1
  182. package/build/js/commons/Orientation.d.ts +2 -10
  183. package/build/js/commons/Orientation.js +1 -1
  184. package/build/js/commons/Point.d.ts +2 -20
  185. package/build/js/commons/Point.js +1 -1
  186. package/build/js/commons/PointWithUnit.d.ts +2 -27
  187. package/build/js/commons/PointWithUnit.js +1 -1
  188. package/build/js/commons/Quadrilateral.d.ts +2 -25
  189. package/build/js/commons/Quadrilateral.js +1 -1
  190. package/build/js/commons/Rect.d.ts +2 -19
  191. package/build/js/commons/Rect.js +1 -1
  192. package/build/js/commons/RectWithUnit.d.ts +2 -21
  193. package/build/js/commons/RectWithUnit.js +1 -1
  194. package/build/js/commons/Size.d.ts +2 -18
  195. package/build/js/commons/Size.js +1 -1
  196. package/build/js/commons/SizeMode.d.ts +2 -9
  197. package/build/js/commons/SizeMode.js +1 -1
  198. package/build/js/commons/SizeWithAspect.d.ts +2 -14
  199. package/build/js/commons/SizeWithAspect.js +1 -1
  200. package/build/js/commons/SizeWithUnit.d.ts +2 -27
  201. package/build/js/commons/SizeWithUnit.js +1 -1
  202. package/build/js/commons/SizeWithUnitAndAspect.d.ts +2 -42
  203. package/build/js/commons/SizeWithUnitAndAspect.js +1 -1
  204. package/build/js/controls/CameraFOVSwitchControl.d.ts +2 -76
  205. package/build/js/controls/CameraFOVSwitchControl.js +1 -1
  206. package/build/js/controls/CameraSwitchControl.d.ts +2 -66
  207. package/build/js/controls/CameraSwitchControl.js +1 -1
  208. package/build/js/controls/TorchSwitchControl.d.ts +2 -67
  209. package/build/js/controls/TorchSwitchControl.js +1 -1
  210. package/build/js/controls/ZoomSwitchControl.d.ts +2 -97
  211. package/build/js/controls/ZoomSwitchControl.js +1 -1
  212. package/build/js/controls/common.d.ts +2 -39
  213. package/build/js/controls/index.d.ts +2 -44
  214. package/build/js/controls/index.js +1 -1
  215. package/build/js/css-DUhStyMA.d.ts +4 -0
  216. package/build/js/debounce-B1bV6NXR.d.ts +4 -0
  217. package/build/js/defaults/DefaultsBrush.d.ts +4 -6
  218. package/build/js/defaults/DefaultsBrush.js +1 -1
  219. package/build/js/defaults/DefaultsCamera.d.ts +13 -51
  220. package/build/js/defaults/DefaultsCamera.js +1 -1
  221. package/build/js/defaults/DefaultsCameraSettings.d.ts +9 -14
  222. package/build/js/defaults/DefaultsCameraSettings.js +1 -1
  223. package/build/js/defaults/DefaultsDataCaptureView.d.ts +15 -18
  224. package/build/js/defaults/DefaultsDataCaptureView.js +1 -1
  225. package/build/js/defaults/DefaultsDeserializers.d.ts +6 -7
  226. package/build/js/defaults/DefaultsDeserializers.js +1 -1
  227. package/build/js/defaults/DefaultsFeedback.d.ts +4 -4
  228. package/build/js/defaults/DefaultsFeedback.js +1 -1
  229. package/build/js/defaults/DefaultsSingleImageUploader.d.ts +13 -13
  230. package/build/js/defaults/DefaultsSingleImageUploader.js +1 -1
  231. package/build/js/defaults/DefaultsViewfinders.d.ts +36 -41
  232. package/build/js/defaults/DefaultsViewfinders.js +1 -1
  233. package/build/js/deferred-BAgaHYOv.d.ts +9 -0
  234. package/build/js/defineCustomElements-D-wGrRhB.d.ts +4 -0
  235. package/build/js/domIdFromValues-i9GfVUED.d.ts +18 -0
  236. package/build/js/fromEntries-ByUS4mw-.d.ts +14 -0
  237. package/build/js/{global.d.d.ts → global.d.ts} +8 -11
  238. package/build/js/html-D92h5xTe.d.ts +60 -0
  239. package/build/js/hybridDesktopPlatformHelpers-DPAJQLcX.js +1 -0
  240. package/build/js/index-CBqIEC2q.d.ts +1 -0
  241. package/build/js/index-Cpl5B5iN.d.ts +58 -0
  242. package/build/js/index-PiddVj70.d.ts +9769 -0
  243. package/build/js/index.d.ts +57 -78
  244. package/build/js/index.js +1 -1
  245. package/build/js/isObject-DqOU8mxL.d.ts +4 -0
  246. package/build/js/isWorkerScope-CBqhEpK_.d.ts +4 -0
  247. package/build/js/license/OpenSourceSoftwareLicenseInfo.d.ts +2 -8
  248. package/build/js/license/OpenSourceSoftwareLicenseInfo.js +1 -1
  249. package/build/js/logger-D9wplwND.d.ts +30 -0
  250. package/build/js/logger.d.ts +2 -30
  251. package/build/js/logger.js +1 -1
  252. package/build/js/moduleLoader.d.ts +2 -39
  253. package/build/js/multithreadSimdHelper-BrYdWJgw.js +1 -0
  254. package/build/js/nativeHandle-DlljYL22.d.ts +4 -0
  255. package/build/js/private/AdditionalLayerPosition.d.ts +2 -6
  256. package/build/js/private/AdditionalLayerPosition.js +1 -1
  257. package/build/js/private/AnchorPositions.d.ts +2 -42
  258. package/build/js/private/AnchorPositions.js +1 -1
  259. package/build/js/private/BatteryInterface.d.ts +2 -81
  260. package/build/js/private/BatteryInterface.js +1 -1
  261. package/build/js/private/CameraAccess.d.ts +2 -7
  262. package/build/js/private/CameraAccess.js +1 -1
  263. package/build/js/private/CameraManager.d.ts +2 -39
  264. package/build/js/private/CameraManager.js +1 -1
  265. package/build/js/private/CameraPool.d.ts +76 -114
  266. package/build/js/private/CameraPool.js +1 -1
  267. package/build/js/private/CanvasDrawer.d.ts +30 -31
  268. package/build/js/private/CanvasDrawer.js +1 -1
  269. package/build/js/private/CanvasDrawerWithMetrics.d.ts +27 -66
  270. package/build/js/private/CanvasDrawerWithMetrics.js +1 -1
  271. package/build/js/private/CavansDrawerAbstract.d.ts +2 -37
  272. package/build/js/private/CavansDrawerAbstract.js +1 -1
  273. package/build/js/private/CoreModuleLicenseTextProvider.d.ts +13 -49
  274. package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
  275. package/build/js/private/CustomLocationsView.d.ts +2 -64
  276. package/build/js/private/CustomLocationsView.js +1 -1
  277. package/build/js/private/CustomLocationsViewStyles.d.ts +4 -4
  278. package/build/js/private/CustomLocationsViewStyles.js +17 -1
  279. package/build/js/private/DataCaptureContextRelated.d.ts +7 -44
  280. package/build/js/private/DrawCommandBuffer.d.ts +2 -44
  281. package/build/js/private/DrawCommandBuffer.js +1 -1
  282. package/build/js/private/EventManager.d.ts +2 -9
  283. package/build/js/private/EventManager.js +1 -1
  284. package/build/js/private/FrameReaders/ColorType.d.ts +2 -7
  285. package/build/js/private/FrameReaders/ColorType.js +1 -1
  286. package/build/js/private/FrameReaders/FrameReader.d.ts +2 -54
  287. package/build/js/private/FrameReaders/FrameReader.js +1 -1
  288. package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +2 -69
  289. package/build/js/private/FrameReaders/FrameReaderAbstract.js +1 -1
  290. package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +2 -74
  291. package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
  292. package/build/js/private/FrameReaders/WatermarkStack.d.ts +2 -41
  293. package/build/js/private/FrameReaders/WatermarkStack.js +1 -1
  294. package/build/js/private/FrameReaders/index.d.ts +3 -43
  295. package/build/js/private/FrameReaders/index.js +1 -1
  296. package/build/js/private/FrameReaders/webglUtilities.d.ts +3 -3
  297. package/build/js/private/FrameReaders/webglUtilities.js +1 -1
  298. package/build/js/private/GestureRecognizer/GestureRecognizer.d.ts +65 -66
  299. package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
  300. package/build/js/private/GestureRecognizer/PointerEventsDetector.d.ts +11 -15
  301. package/build/js/private/GestureRecognizer/PointerEventsDetector.js +1 -1
  302. package/build/js/private/GestureRecognizer/index.d.ts +2 -5
  303. package/build/js/private/GestureRecognizer/index.js +1 -1
  304. package/build/js/private/Helper.d.ts +7 -7
  305. package/build/js/private/Helper.js +1 -1
  306. package/build/js/private/HtmlElementState.d.ts +2 -37
  307. package/build/js/private/HtmlElementState.js +1 -1
  308. package/build/js/private/ImageConverterBase.d.ts +40 -40
  309. package/build/js/private/ImageConverterBase.js +1 -1
  310. package/build/js/private/ImageConverterMainThread.d.ts +6 -7
  311. package/build/js/private/ImageConverterMainThread.js +1 -1
  312. package/build/js/private/ModuleLicenseTextProvider.d.ts +4 -4
  313. package/build/js/private/NormalizedModuleLoaderOptions.d.ts +10 -46
  314. package/build/js/private/OrientationObserver.d.ts +26 -26
  315. package/build/js/private/OrientationObserver.js +1 -1
  316. package/build/js/private/Serializable.d.ts +2 -9
  317. package/build/js/private/SingleImageUploaderView.d.ts +52 -89
  318. package/build/js/private/SingleImageUploaderView.js +1 -1
  319. package/build/js/private/SingleImageUploaderViewStyles.d.ts +23 -23
  320. package/build/js/private/SingleImageUploaderViewStyles.js +31 -1
  321. package/build/js/private/View.d.ts +2 -7
  322. package/build/js/private/ViewClassNames.d.ts +13 -13
  323. package/build/js/private/ViewClassNames.js +1 -1
  324. package/build/js/private/ViewControls_related.d.ts +82 -121
  325. package/build/js/private/ViewControls_related.js +1 -0
  326. package/build/js/private/ViewStyles.d.ts +3 -3
  327. package/build/js/private/ViewStyles.js +1 -1
  328. package/build/js/private/ViewsRegistry.d.ts +4 -41
  329. package/build/js/private/ViewsRegistry.js +1 -1
  330. package/build/js/private/customHowler/AudioCache.d.ts +2 -37
  331. package/build/js/private/customHowler/AudioCache.js +1 -1
  332. package/build/js/private/customHowler/Howl.d.ts +141 -141
  333. package/build/js/private/customHowler/Howl.js +1 -1
  334. package/build/js/private/customHowler/HowlRegistry.d.ts +3 -3
  335. package/build/js/private/customHowler/HowlRegistry.js +1 -1
  336. package/build/js/private/customHowler/Html5Sound.d.ts +45 -45
  337. package/build/js/private/customHowler/Html5Sound.js +1 -1
  338. package/build/js/private/customHowler/UnlockManager.d.ts +32 -32
  339. package/build/js/private/customHowler/UnlockManager.js +1 -1
  340. package/build/js/private/customHowler/WebAudioContextManager.d.ts +127 -127
  341. package/build/js/private/customHowler/WebAudioContextManager.js +1 -1
  342. package/build/js/private/customHowler/debug.d.ts +3 -3
  343. package/build/js/private/customHowler/debug.js +1 -1
  344. package/build/js/private/customHowler/index.d.ts +2 -2
  345. package/build/js/private/customHowler/index.js +1 -1
  346. package/build/js/private/customHowler/setup.d.ts +4 -5
  347. package/build/js/private/customHowler/setup.js +1 -1
  348. package/build/js/private/djinni-types/index.d.ts +2 -57
  349. package/build/js/private/djinni-types/index.js +1 -1
  350. package/build/js/private/hybridDesktopPlatformHelpers.d.ts +5 -5
  351. package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
  352. package/build/js/private/multithreadSimdHelper.d.ts +3 -3
  353. package/build/js/private/multithreadSimdHelper.js +1 -1
  354. package/build/js/private/nativeHandle.d.ts +2 -4
  355. package/build/js/private/nativeHandle.js +1 -1
  356. package/build/js/private/privateAccess.d.ts +2 -8
  357. package/build/js/private/privateAccess.js +1 -1
  358. package/build/js/private/ui/atoms/AimerSvgIcon.d.ts +11 -12
  359. package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
  360. package/build/js/private/ui/atoms/ArrowDownSvgIcon.d.ts +11 -12
  361. package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -2
  362. package/build/js/private/ui/atoms/ArrowLeftSvgIcon.d.ts +11 -12
  363. package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -2
  364. package/build/js/private/ui/atoms/ArrowRightSvgIcon.d.ts +11 -12
  365. package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -2
  366. package/build/js/private/ui/atoms/ArrowUpSvgIcon.d.ts +11 -12
  367. package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -2
  368. package/build/js/private/ui/atoms/ArrowsUp.d.ts +13 -13
  369. package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
  370. package/build/js/private/ui/atoms/Backdrop.d.ts +29 -23
  371. package/build/js/private/ui/atoms/Backdrop.js +1 -1
  372. package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.d.ts +11 -12
  373. package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
  374. package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.d.ts +11 -12
  375. package/build/js/private/ui/atoms/CameraFOVUltrawideSvgIcon.js +1 -1
  376. package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.d.ts +11 -12
  377. package/build/js/private/ui/atoms/CameraFOVWideSvgIcon.js +1 -1
  378. package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.d.ts +11 -12
  379. package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
  380. package/build/js/private/ui/atoms/CameraSwitchSvgIcon.d.ts +11 -12
  381. package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
  382. package/build/js/private/ui/atoms/Card.d.ts +21 -22
  383. package/build/js/private/ui/atoms/Card.js +1 -1
  384. package/build/js/private/ui/atoms/CardList.d.ts +49 -51
  385. package/build/js/private/ui/atoms/CardList.js +1 -1
  386. package/build/js/private/ui/atoms/CheckSvgIcon.d.ts +11 -12
  387. package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
  388. package/build/js/private/ui/atoms/ChevronDownSvgIcon.d.ts +11 -12
  389. package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -2
  390. package/build/js/private/ui/atoms/ChevronLeftSvgIcon.d.ts +11 -12
  391. package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -2
  392. package/build/js/private/ui/atoms/ChevronRightSvgIcon.d.ts +11 -12
  393. package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -2
  394. package/build/js/private/ui/atoms/ChevronUpSvgIcon.d.ts +11 -12
  395. package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -2
  396. package/build/js/private/ui/atoms/CrossSvgIcon.d.ts +11 -12
  397. package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
  398. package/build/js/private/ui/atoms/DeleteSvgIcon.d.ts +11 -12
  399. package/build/js/private/ui/atoms/DeleteSvgIcon.js +1 -1
  400. package/build/js/private/ui/atoms/Dot5xSvgIcon.d.ts +11 -12
  401. package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
  402. package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.d.ts +11 -12
  403. package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
  404. package/build/js/private/ui/atoms/GlassSvgIcon.d.ts +11 -12
  405. package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
  406. package/build/js/private/ui/atoms/HandLensCheckSvgIcon.d.ts +11 -12
  407. package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
  408. package/build/js/private/ui/atoms/KeyboardSvgIcon.d.ts +11 -12
  409. package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
  410. package/build/js/private/ui/atoms/LowStockSvgIcon.d.ts +11 -12
  411. package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
  412. package/build/js/private/ui/atoms/OnexSvgIcon.d.ts +11 -12
  413. package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
  414. package/build/js/private/ui/atoms/PauseSvgIcon.d.ts +11 -12
  415. package/build/js/private/ui/atoms/PauseSvgIcon.js +1 -1
  416. package/build/js/private/ui/atoms/PrinterSvgIcon.d.ts +11 -12
  417. package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -2
  418. package/build/js/private/ui/atoms/ProgressBar.d.ts +22 -22
  419. package/build/js/private/ui/atoms/ProgressBar.js +1 -1
  420. package/build/js/private/ui/atoms/QuestionMarkSvgIcon.d.ts +11 -12
  421. package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
  422. package/build/js/private/ui/atoms/RestartSvgIcon.d.ts +11 -12
  423. package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
  424. package/build/js/private/ui/atoms/RoundedCheckSvgIcon.d.ts +11 -12
  425. package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
  426. package/build/js/private/ui/atoms/RoundedCrossSvgIcon.d.ts +11 -12
  427. package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
  428. package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.d.ts +11 -12
  429. package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
  430. package/build/js/private/ui/atoms/ScanSvgIcon.d.ts +11 -12
  431. package/build/js/private/ui/atoms/ScanSvgIcon.js +1 -1
  432. package/build/js/private/ui/atoms/ShutterButton.d.ts +34 -34
  433. package/build/js/private/ui/atoms/ShutterButton.js +1 -1
  434. package/build/js/private/ui/atoms/SlashSvgIcon.d.ts +11 -12
  435. package/build/js/private/ui/atoms/SlashSvgIcon.js +1 -1
  436. package/build/js/private/ui/atoms/StarFilledSvgIcon.d.ts +11 -12
  437. package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
  438. package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.d.ts +11 -12
  439. package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -2
  440. package/build/js/private/ui/atoms/StarOutlinedSvgIcon.d.ts +11 -12
  441. package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
  442. package/build/js/private/ui/atoms/SvgIcon.d.ts +2 -23
  443. package/build/js/private/ui/atoms/SvgIcon.js +1 -1
  444. package/build/js/private/ui/atoms/ToPickSvgIcon.d.ts +11 -12
  445. package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
  446. package/build/js/private/ui/atoms/Toast.d.ts +41 -76
  447. package/build/js/private/ui/atoms/Toast.js +1 -1
  448. package/build/js/private/ui/atoms/TorchOffSvgIcon.d.ts +11 -12
  449. package/build/js/private/ui/atoms/TorchOffSvgIcon.js +1 -1
  450. package/build/js/private/ui/atoms/TorchOnSvgIcon.d.ts +11 -12
  451. package/build/js/private/ui/atoms/TorchOnSvgIcon.js +1 -1
  452. package/build/js/private/ui/atoms/TwoxSvgIcon.d.ts +11 -12
  453. package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
  454. package/build/js/private/ui/atoms/WrongItemSvgIcon.d.ts +11 -12
  455. package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
  456. package/build/js/private/ui/colors.d.ts +4 -5
  457. package/build/js/private/ui/colors.js +1 -1
  458. package/build/js/private/ui/molecules/ButtonEvents.d.ts +18 -18
  459. package/build/js/private/ui/molecules/ButtonEvents.js +1 -1
  460. package/build/js/private/ui/molecules/CameraFOVSwitchButton.d.ts +54 -57
  461. package/build/js/private/ui/molecules/CameraFOVSwitchButton.js +1 -1
  462. package/build/js/private/ui/molecules/CameraSwitchButton.d.ts +47 -50
  463. package/build/js/private/ui/molecules/CameraSwitchButton.js +1 -1
  464. package/build/js/private/ui/molecules/ControlsLayout.d.ts +12 -12
  465. package/build/js/private/ui/molecules/ControlsLayout.js +1 -1
  466. package/build/js/private/ui/molecules/HintPresenter.d.ts +2 -39
  467. package/build/js/private/ui/molecules/HintPresenter.js +1 -1
  468. package/build/js/private/ui/molecules/LoadingOverlay.d.ts +20 -20
  469. package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
  470. package/build/js/private/ui/molecules/TorchSwitchIconButton.d.ts +54 -60
  471. package/build/js/private/ui/molecules/TorchSwitchIconButton.js +1 -1
  472. package/build/js/private/ui/molecules/ZoomSwitchPill.d.ts +62 -65
  473. package/build/js/private/ui/molecules/ZoomSwitchPill.js +1 -1
  474. package/build/js/private/unsupportedBrowserError.d.ts +7 -7
  475. package/build/js/private/unsupportedBrowserError.js +1 -1
  476. package/build/js/private/utils/AnimationSimplePolyfill.d.ts +54 -54
  477. package/build/js/private/utils/AnimationSimplePolyfill.js +1 -1
  478. package/build/js/private/utils/AsyncStateMachine.d.ts +2 -49
  479. package/build/js/private/utils/AsyncStateMachine.js +1 -1
  480. package/build/js/private/utils/ScanditHTMLElement.d.ts +2 -6
  481. package/build/js/private/utils/ScanditHTMLElement.js +1 -1
  482. package/build/js/private/utils/areEqualArrays.d.ts +2 -4
  483. package/build/js/private/utils/areEqualArrays.js +1 -1
  484. package/build/js/private/utils/clamp.d.ts +2 -4
  485. package/build/js/private/utils/clamp.js +1 -1
  486. package/build/js/private/utils/cookieStore.d.ts +3 -3
  487. package/build/js/private/utils/cookieStore.js +1 -1
  488. package/build/js/private/utils/cookieStorePolyfill.d.ts +16 -16
  489. package/build/js/private/utils/cookieStorePolyfill.js +1 -1
  490. package/build/js/private/utils/css.d.ts +2 -4
  491. package/build/js/private/utils/css.js +1 -1
  492. package/build/js/private/utils/debounce.d.ts +2 -4
  493. package/build/js/private/utils/debounce.js +1 -1
  494. package/build/js/private/utils/deferred.d.ts +2 -9
  495. package/build/js/private/utils/deferred.js +1 -1
  496. package/build/js/private/utils/defineCustomElements.d.ts +2 -4
  497. package/build/js/private/utils/defineCustomElements.js +1 -1
  498. package/build/js/private/utils/domIdFromValues.d.ts +2 -18
  499. package/build/js/private/utils/domIdFromValues.js +1 -1
  500. package/build/js/private/utils/finalizationRegistryPolyfill.d.ts +3 -3
  501. package/build/js/private/utils/finalizationRegistryPolyfill.js +1 -1
  502. package/build/js/private/utils/fromEntries.d.ts +2 -14
  503. package/build/js/private/utils/fromEntries.js +1 -1
  504. package/build/js/private/utils/fromGrayScaleToRgba.d.ts +3 -3
  505. package/build/js/private/utils/fromGrayScaleToRgba.js +1 -1
  506. package/build/js/private/utils/getTimestamp.d.ts +3 -3
  507. package/build/js/private/utils/getTimestamp.js +1 -1
  508. package/build/js/private/utils/globalThisPolyfill.d.ts +3 -3
  509. package/build/js/private/utils/globalThisPolyfill.js +1 -1
  510. package/build/js/private/utils/html.d.ts +2 -60
  511. package/build/js/private/utils/html.js +1 -1
  512. package/build/js/private/utils/index.d.ts +21 -21
  513. package/build/js/private/utils/index.js +1 -1
  514. package/build/js/private/utils/isObject.d.ts +2 -4
  515. package/build/js/private/utils/isObject.js +1 -1
  516. package/build/js/private/utils/isPointerTouchEvent.d.ts +3 -3
  517. package/build/js/private/utils/isPointerTouchEvent.js +1 -1
  518. package/build/js/private/utils/isWorkerScope.d.ts +2 -4
  519. package/build/js/private/utils/isWorkerScope.js +1 -1
  520. package/build/js/private/utils/polyfillLoader.d.ts +11 -11
  521. package/build/js/private/utils/polyfillLoader.js +1 -1
  522. package/build/js/private/utils/quadrilateralUtils.d.ts +4 -6
  523. package/build/js/private/utils/quadrilateralUtils.js +1 -1
  524. package/build/js/private/utils/replaceImagesInViewUtils.d.ts +7 -43
  525. package/build/js/private/utils/replaceImagesInViewUtils.js +1 -1
  526. package/build/js/private/utils/safeCancelAnimation.d.ts +2 -53
  527. package/build/js/private/utils/safeCancelAnimation.js +1 -1
  528. package/build/js/private/utils/safeRequestAnimationFrame.d.ts +2 -23
  529. package/build/js/private/utils/safeRequestAnimationFrame.js +1 -1
  530. package/build/js/private/utils/safeStorage.d.ts +17 -17
  531. package/build/js/private/utils/safeStorage.js +1 -1
  532. package/build/js/private/utils/structuredClonePolyfill.d.ts +3 -3
  533. package/build/js/private/utils/structuredClonePolyfill.js +1 -1
  534. package/build/js/private/utils/throttle.d.ts +2 -4
  535. package/build/js/private/utils/throttle.js +1 -1
  536. package/build/js/private/utils/timeout.d.ts +2 -14
  537. package/build/js/private/utils/timeout.js +1 -1
  538. package/build/js/private/utils/unknownErrorToString.d.ts +2 -4
  539. package/build/js/private/utils/unknownErrorToString.js +1 -1
  540. package/build/js/private/utils/wait.d.ts +2 -4
  541. package/build/js/private/utils/wait.js +1 -1
  542. package/build/js/private/utils/waitTransitionEndForElement.d.ts +2 -4
  543. package/build/js/private/utils/waitTransitionEndForElement.js +1 -1
  544. package/build/js/private/utils/warnMultithreadingUnavailable.d.ts +3 -3
  545. package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -2
  546. package/build/js/privateAccess-Cy_yPta4.d.ts +8 -0
  547. package/build/js/safeCancelAnimation-C9SG0625.d.ts +53 -0
  548. package/build/js/safeRequestAnimationFrame-CrVl8FPa.d.ts +23 -0
  549. package/build/js/throttle-ICpoGeaZ.d.ts +4 -0
  550. package/build/js/timeout-CHMzurwd.d.ts +14 -0
  551. package/build/js/translations-Bqx7KLdt.d.ts +12 -0
  552. package/build/js/translations.d.ts +2 -12
  553. package/build/js/translations.js +1 -1
  554. package/build/js/tsHelper-N1CSjsuN.d.ts +18 -0
  555. package/build/js/tsHelper.d.ts +2 -26
  556. package/build/js/tsHelper.js +1 -1
  557. package/build/js/unknownErrorToString-BGDQCTvQ.d.ts +4 -0
  558. package/build/js/wait-CRu1G76q.d.ts +4 -0
  559. package/build/js/waitTransitionEndForElement-BrVosj17.d.ts +4 -0
  560. package/build/js/worker/ImageConverterForwarder.d.ts +21 -57
  561. package/build/js/worker/ImageConverterForwarder.js +1 -1
  562. package/build/js/worker/ImageConverterWorker.d.ts +6 -7
  563. package/build/js/worker/ImageConverterWorker.js +1 -1
  564. package/build/js/worker/OverrideState.d.ts +2 -8
  565. package/build/js/worker/OverrideState.js +1 -1
  566. package/build/js/worker/ViewInfoHelper.d.ts +9 -46
  567. package/build/js/worker/ViewInfoHelper.js +1 -1
  568. package/build/js/worker/WorkerMain.d.ts +2 -63
  569. package/build/js/worker/WorkerMain.js +1 -1
  570. package/build/js/worker/dataCaptureEngine.d.ts +2 -39
  571. package/build/js/worker/dataCaptureEngine.js +1 -1
  572. package/build/js/worker/dataCaptureLoader.d.ts +2 -39
  573. package/build/js/worker/dataCaptureLoader.js +1 -1
  574. package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -39
  575. package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
  576. package/build/js/worker/helper.d.ts +22 -13
  577. package/build/js/worker/helper.js +1 -1
  578. package/build/js/worker/helperFetch.d.ts +36 -22
  579. package/build/js/worker/helperFetch.js +1 -1
  580. package/build/js/worker/helperFs.d.ts +5 -5
  581. package/build/js/worker/helperFs.js +1 -1
  582. package/build/js/worker/importWasmScript.d.ts +3 -3
  583. package/build/js/worker/importWasmScript.js +1 -1
  584. package/build/js/worker/index.d.ts +2 -40
  585. package/build/js/worker/index.js +1 -1
  586. package/package.json +21 -11
  587. package/build/electron/chunk-6RVAZ75N.js +0 -1
  588. package/build/electron/common.cjs +0 -1
  589. package/build/electron/common.js +0 -0
  590. package/build/electron/constants.cjs +0 -1
  591. package/build/electron/constants.js +0 -1
  592. package/build/js/Camera-HgH6fwnW.d.ts +0 -410
  593. package/build/js/DataCaptureContext-Qg40v7QA.d.ts +0 -1740
  594. package/build/js/DataCaptureViewPlusRelated-BOrDBPHq.d.ts +0 -49
  595. package/build/js/chunks/chunk-24MGHMOY.js +0 -1
  596. package/build/js/chunks/chunk-2HTI5D6Y.js +0 -1
  597. package/build/js/chunks/chunk-2JIATMSD.js +0 -1
  598. package/build/js/chunks/chunk-2LSO6JEZ.js +0 -1
  599. package/build/js/chunks/chunk-3A4KLILV.js +0 -1
  600. package/build/js/chunks/chunk-3A7LM5JG.js +0 -1
  601. package/build/js/chunks/chunk-3KKUZY2T.js +0 -1
  602. package/build/js/chunks/chunk-3MKSI2DV.js +0 -1
  603. package/build/js/chunks/chunk-43GCMDYV.js +0 -1
  604. package/build/js/chunks/chunk-4BP7D26M.js +0 -1
  605. package/build/js/chunks/chunk-4F2Q2P2O.js +0 -1
  606. package/build/js/chunks/chunk-4KLHTKGW.js +0 -1
  607. package/build/js/chunks/chunk-4LGQ66HW.js +0 -1
  608. package/build/js/chunks/chunk-4QJAB4PO.js +0 -1
  609. package/build/js/chunks/chunk-4W2T3TLN.js +0 -1
  610. package/build/js/chunks/chunk-4WA2PCJE.js +0 -1
  611. package/build/js/chunks/chunk-4ZMCJXZS.js +0 -1
  612. package/build/js/chunks/chunk-5LXHD7FZ.js +0 -1
  613. package/build/js/chunks/chunk-5RCWM6NI.js +0 -1
  614. package/build/js/chunks/chunk-6AZW5IIG.js +0 -1
  615. package/build/js/chunks/chunk-6EEMWSEO.js +0 -1
  616. package/build/js/chunks/chunk-6H6FKGVE.js +0 -1
  617. package/build/js/chunks/chunk-6V2N4XHI.js +0 -1
  618. package/build/js/chunks/chunk-6W7FX6LD.js +0 -1
  619. package/build/js/chunks/chunk-76IGNICM.js +0 -1
  620. package/build/js/chunks/chunk-7HYFN4JO.js +0 -1
  621. package/build/js/chunks/chunk-7LTHFX4E.js +0 -1
  622. package/build/js/chunks/chunk-7OFC24NE.js +0 -1
  623. package/build/js/chunks/chunk-7SA74NKD.js +0 -0
  624. package/build/js/chunks/chunk-7SW2PEHB.js +0 -1
  625. package/build/js/chunks/chunk-AAEQZ45T.js +0 -1
  626. package/build/js/chunks/chunk-AAPD5YU3.js +0 -1
  627. package/build/js/chunks/chunk-ACFJP5SR.js +0 -1
  628. package/build/js/chunks/chunk-AE2LWVIB.js +0 -1
  629. package/build/js/chunks/chunk-AIC4H5KG.js +0 -2
  630. package/build/js/chunks/chunk-AIRWHLJH.js +0 -1
  631. package/build/js/chunks/chunk-ALQOQOAM.js +0 -1
  632. package/build/js/chunks/chunk-AZWFNBVA.js +0 -1
  633. package/build/js/chunks/chunk-BA3RP6L2.js +0 -1
  634. package/build/js/chunks/chunk-BDGRWHLY.js +0 -1
  635. package/build/js/chunks/chunk-BDLLVGRH.js +0 -1
  636. package/build/js/chunks/chunk-BZAQMYII.js +0 -1
  637. package/build/js/chunks/chunk-CAHJ3YOV.js +0 -1
  638. package/build/js/chunks/chunk-CAUB35PV.js +0 -1
  639. package/build/js/chunks/chunk-CD2BU66N.js +0 -1
  640. package/build/js/chunks/chunk-CERFU73N.js +0 -1
  641. package/build/js/chunks/chunk-CGK5V6XZ.js +0 -1
  642. package/build/js/chunks/chunk-CRUOVJHW.js +0 -1
  643. package/build/js/chunks/chunk-CX2R2XQK.js +0 -1
  644. package/build/js/chunks/chunk-CZI3JAVS.js +0 -35
  645. package/build/js/chunks/chunk-D222MT4V.js +0 -1
  646. package/build/js/chunks/chunk-DGDPZ73X.js +0 -1
  647. package/build/js/chunks/chunk-DGIQ3GF7.js +0 -1
  648. package/build/js/chunks/chunk-DN32UPQC.js +0 -1
  649. package/build/js/chunks/chunk-DZE2EYSZ.js +0 -1
  650. package/build/js/chunks/chunk-E4XJ4GKD.js +0 -1
  651. package/build/js/chunks/chunk-EMLXDXWN.js +0 -1
  652. package/build/js/chunks/chunk-ENYHCJGH.js +0 -1
  653. package/build/js/chunks/chunk-EP3GI7KA.js +0 -1
  654. package/build/js/chunks/chunk-EQ6V4W5K.js +0 -1
  655. package/build/js/chunks/chunk-EQRBQJYM.js +0 -1
  656. package/build/js/chunks/chunk-EV4OEANA.js +0 -1
  657. package/build/js/chunks/chunk-F2GMW4LP.js +0 -1
  658. package/build/js/chunks/chunk-FGO2SSRS.js +0 -1
  659. package/build/js/chunks/chunk-FHUC75ND.js +0 -1
  660. package/build/js/chunks/chunk-FR24G4R7.js +0 -1
  661. package/build/js/chunks/chunk-FTD535WI.js +0 -1
  662. package/build/js/chunks/chunk-G2BRTVN7.js +0 -1
  663. package/build/js/chunks/chunk-G7ORIX4S.js +0 -1
  664. package/build/js/chunks/chunk-GHR3BSUQ.js +0 -1
  665. package/build/js/chunks/chunk-GHTCNOQN.js +0 -1
  666. package/build/js/chunks/chunk-GPJEB376.js +0 -1
  667. package/build/js/chunks/chunk-GPPCTFZF.js +0 -1
  668. package/build/js/chunks/chunk-GPUTPXQM.js +0 -1
  669. package/build/js/chunks/chunk-GQ7A6533.js +0 -1
  670. package/build/js/chunks/chunk-GULNUBED.js +0 -1
  671. package/build/js/chunks/chunk-GVHXM75D.js +0 -1
  672. package/build/js/chunks/chunk-HBPGHXF2.js +0 -1
  673. package/build/js/chunks/chunk-I6SWF3FQ.js +0 -1
  674. package/build/js/chunks/chunk-IASACVTH.js +0 -1
  675. package/build/js/chunks/chunk-IJQG3OU6.js +0 -1
  676. package/build/js/chunks/chunk-IMXMNDKM.js +0 -1
  677. package/build/js/chunks/chunk-J3HHOJE3.js +0 -1
  678. package/build/js/chunks/chunk-JCKM5IJO.js +0 -0
  679. package/build/js/chunks/chunk-JFRSUCMO.js +0 -31
  680. package/build/js/chunks/chunk-JIGCOX5J.js +0 -1
  681. package/build/js/chunks/chunk-JS3T7K2Z.js +0 -1
  682. package/build/js/chunks/chunk-KAFNKP6O.js +0 -1
  683. package/build/js/chunks/chunk-KSCFPJAW.js +0 -1
  684. package/build/js/chunks/chunk-KXAJHLEO.js +0 -1
  685. package/build/js/chunks/chunk-KYNYQBNF.js +0 -17
  686. package/build/js/chunks/chunk-KZEBJGMU.js +0 -6
  687. package/build/js/chunks/chunk-L2STPTEN.js +0 -1
  688. package/build/js/chunks/chunk-L66S4DN2.js +0 -1
  689. package/build/js/chunks/chunk-LA6TM76R.js +0 -1
  690. package/build/js/chunks/chunk-LFJUGRQV.js +0 -1
  691. package/build/js/chunks/chunk-LSZZVJ6B.js +0 -1
  692. package/build/js/chunks/chunk-LV6LGCDC.js +0 -1
  693. package/build/js/chunks/chunk-LXOZUOZU.js +0 -1
  694. package/build/js/chunks/chunk-MA3GV76P.js +0 -1
  695. package/build/js/chunks/chunk-MA6UDVDJ.js +0 -1
  696. package/build/js/chunks/chunk-MBQZOWWF.js +0 -1
  697. package/build/js/chunks/chunk-N5YZEC56.js +0 -1
  698. package/build/js/chunks/chunk-NIKRAADM.js +0 -1
  699. package/build/js/chunks/chunk-NQF3GUK2.js +0 -1
  700. package/build/js/chunks/chunk-NVK73TNL.js +0 -1
  701. package/build/js/chunks/chunk-NYYGU4ZV.js +0 -1
  702. package/build/js/chunks/chunk-O4HDBWKK.js +0 -1
  703. package/build/js/chunks/chunk-O7EM4VIM.js +0 -1
  704. package/build/js/chunks/chunk-O7TZTIHO.js +0 -1
  705. package/build/js/chunks/chunk-OLUNDJBC.js +0 -1
  706. package/build/js/chunks/chunk-ORP45GHJ.js +0 -1
  707. package/build/js/chunks/chunk-OX64CCOP.js +0 -1
  708. package/build/js/chunks/chunk-Q7JWDX4U.js +0 -1
  709. package/build/js/chunks/chunk-QBDQQMQ5.js +0 -1
  710. package/build/js/chunks/chunk-QCRFVRSS.js +0 -1
  711. package/build/js/chunks/chunk-QCZSSQAQ.js +0 -1
  712. package/build/js/chunks/chunk-QFSNPY5Y.js +0 -1
  713. package/build/js/chunks/chunk-QG3MRQMP.js +0 -1
  714. package/build/js/chunks/chunk-QHBIT2WY.js +0 -1
  715. package/build/js/chunks/chunk-QIWPWOQG.js +0 -1
  716. package/build/js/chunks/chunk-QOCHMKNY.js +0 -1
  717. package/build/js/chunks/chunk-QQEY536Q.js +0 -1
  718. package/build/js/chunks/chunk-QUWP3ILW.js +0 -1
  719. package/build/js/chunks/chunk-R6E4CT22.js +0 -1
  720. package/build/js/chunks/chunk-R6SUMD5F.js +0 -1
  721. package/build/js/chunks/chunk-RG272MAJ.js +0 -1
  722. package/build/js/chunks/chunk-RSQRPDVQ.js +0 -1
  723. package/build/js/chunks/chunk-RXDVYEE5.js +0 -1
  724. package/build/js/chunks/chunk-RXPPTQAB.js +0 -1
  725. package/build/js/chunks/chunk-RXT3JWWR.js +0 -1
  726. package/build/js/chunks/chunk-RZTXUIJ5.js +0 -0
  727. package/build/js/chunks/chunk-SBC5K7IT.js +0 -1
  728. package/build/js/chunks/chunk-SEAVQZN6.js +0 -1
  729. package/build/js/chunks/chunk-SGL5J2CI.js +0 -1
  730. package/build/js/chunks/chunk-SHM7SU3B.js +0 -1
  731. package/build/js/chunks/chunk-SJIN27Q5.js +0 -1
  732. package/build/js/chunks/chunk-SK6L34IF.js +0 -1
  733. package/build/js/chunks/chunk-SNP4G4KV.js +0 -0
  734. package/build/js/chunks/chunk-T3AOBMAS.js +0 -1
  735. package/build/js/chunks/chunk-TKO5JMMS.js +0 -1
  736. package/build/js/chunks/chunk-TMIZ6Z75.js +0 -1
  737. package/build/js/chunks/chunk-TPHGDMKG.js +0 -1
  738. package/build/js/chunks/chunk-TR3NGINC.js +0 -1
  739. package/build/js/chunks/chunk-TTGJAMI2.js +0 -1
  740. package/build/js/chunks/chunk-U2WQ3WDE.js +0 -1
  741. package/build/js/chunks/chunk-U4IMOTYL.js +0 -1
  742. package/build/js/chunks/chunk-U6MFAGMG.js +0 -1
  743. package/build/js/chunks/chunk-U7ETOWGJ.js +0 -1
  744. package/build/js/chunks/chunk-UNO6YIIA.js +0 -1
  745. package/build/js/chunks/chunk-UWBNF47P.js +0 -1
  746. package/build/js/chunks/chunk-UWLAKRB2.js +0 -2
  747. package/build/js/chunks/chunk-UZWBB65W.js +0 -1
  748. package/build/js/chunks/chunk-V2OKMBZD.js +0 -1
  749. package/build/js/chunks/chunk-VJB527QZ.js +0 -1
  750. package/build/js/chunks/chunk-VSROWPI6.js +0 -1
  751. package/build/js/chunks/chunk-W33RVR5M.js +0 -1
  752. package/build/js/chunks/chunk-W3X3ZRQZ.js +0 -1
  753. package/build/js/chunks/chunk-W7VB532D.js +0 -1
  754. package/build/js/chunks/chunk-WARGMW7Z.js +0 -1
  755. package/build/js/chunks/chunk-WFKB322J.js +0 -1
  756. package/build/js/chunks/chunk-WGLHZXRT.js +0 -1
  757. package/build/js/chunks/chunk-WUHKODFA.js +0 -1
  758. package/build/js/chunks/chunk-XFQTFQYR.js +0 -1
  759. package/build/js/chunks/chunk-XR65N6EG.js +0 -1
  760. package/build/js/chunks/chunk-Y3TODCJD.js +0 -1
  761. package/build/js/chunks/chunk-Y7BTRVB4.js +0 -2
  762. package/build/js/chunks/chunk-Y7V35LNT.js +0 -1
  763. package/build/js/chunks/chunk-Y7ZNLVR2.js +0 -1
  764. package/build/js/chunks/chunk-YE2GYNRP.js +0 -1
  765. package/build/js/chunks/chunk-YJNJGCAN.js +0 -1
  766. package/build/js/chunks/chunk-YONR3EGV.js +0 -2
  767. package/build/js/chunks/chunk-YOTQPBO6.js +0 -1
  768. package/build/js/chunks/chunk-YRNH7TIR.js +0 -0
  769. package/build/js/chunks/chunk-YUZDO2PC.js +0 -1
  770. package/build/js/chunks/chunk-Z5LRFYGI.js +0 -1
  771. package/build/js/chunks/chunk-ZAXZRQYF.js +0 -1
  772. package/build/js/chunks/chunk-ZCF62ALL.js +0 -1
  773. package/build/js/chunks/chunk-ZKROZLQ4.js +0 -2
  774. package/build/js/common-4FJYEFaM.d.ts +0 -25
  775. package/build/js/global.d.js +0 -0
  776. package/build/js/private/ViewControls+related.js +0 -1
  777. package/build/js/worker/coreCapture.inlineWorker.d.ts +0 -46
  778. package/build/js/worker/coreCapture.inlineWorker.js +0 -1
  779. package/build/js/worker/inlineWorker.d.d.ts +0 -5
  780. 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,4 @@
1
+ //#region src/main/private/utils/throttle.d.ts
2
+ declare function throttle<T extends (...arguments_: any[]) => any>(function_: T, limit: number): (this: ThisParameterType<T>, ...arguments_: Parameters<T>) => void;
3
+ //#endregion
4
+ export { throttle 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
- /// <reference types="emscripten" />
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
-
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 };
@@ -1 +1 @@
1
- export{a as translations}from'./chunks/chunk-VJB527QZ.js';
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 };
@@ -1,26 +1,2 @@
1
- /// <reference types="emscripten" />
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> = {
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 };
@@ -1 +1 @@
1
- export{a as assert,b as assertUnreachable,c as assertUnreachableThrowException}from'./chunks/chunk-FTD535WI.js';
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};
@@ -0,0 +1,4 @@
1
+ //#region src/main/private/utils/unknownErrorToString.d.ts
2
+ declare function unknownErrorToString(error: unknown): string;
3
+ //#endregion
4
+ export { unknownErrorToString as t };
@@ -0,0 +1,4 @@
1
+ //#region src/main/private/utils/wait.d.ts
2
+ declare function wait(ms?: number): Promise<void>;
3
+ //#endregion
4
+ export { wait as t };
@@ -0,0 +1,4 @@
1
+ //#region src/main/private/utils/waitTransitionEndForElement.d.ts
2
+ declare function waitTransitionEndForElement(element: HTMLElement, propertyName: string): Promise<TransitionEvent>;
3
+ //#endregion
4
+ export { waitTransitionEndForElement as t };
@@ -1,64 +1,28 @@
1
- /// <reference types="emscripten" />
2
- import { ImageConverterInstance, ImageBuffer, BitmapWithFormat } from '../private/djinni-types/index.js';
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
- private readonly workerFunctions;
47
- private options;
48
- private imageIdCounter;
49
- private conversions;
50
- constructor(workerFunctions: WorkerFunctions, options: {
51
- quality: number;
52
- });
53
- /**
54
- * The conversion will be performed in the main thread.
55
- */
56
- convertToJpeg(imageBuffer: ImageBuffer, orientation: number): Promise<Uint8Array>;
57
- convertToBitmap(imageBuffer: ImageBuffer): BitmapWithFormat;
58
- /**
59
- * Called by the main thread when the conversion has finished.
60
- */
61
- onConvertToJPEGResult(imageId: number, result: Uint8Array): void;
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
- export{a as ImageConverterForwarder}from'../chunks/chunk-CAUB35PV.js';
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
- /// <reference types="emscripten" />
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
- protected getNewCanvas(width: number, height: number): OffscreenCanvas;
10
- protected canvasToBlob(canvas: OffscreenCanvas): Promise<Blob | null>;
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
- export{a as ImageConverterWorker}from'../chunks/chunk-QIWPWOQG.js';
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,8 +1,2 @@
1
- /// <reference types="emscripten" />
2
- declare enum OverrideState {
3
- Auto = "auto",
4
- Off = "off",
5
- On = "on"
6
- }
7
-
8
- export { OverrideState };
1
+ import { t as OverrideState } from "../OverrideState-CGTOUAyb.js";
2
+ export { OverrideState };
@@ -1 +1 @@
1
- export{a as OverrideState}from'../chunks/chunk-6W7FX6LD.js';
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
- /// <reference types="emscripten" />
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
- private viewInfo;
43
- constructor(viewInfo: ViewInfo | null);
44
- isSame(other: ViewInfo | null): boolean;
45
- update(viewInfo: ViewInfo | null): void;
46
- private cloneViewInfo;
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{a as ViewInfoHelper}from'../chunks/chunk-GQ7A6533.js';
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
- /// <reference types="emscripten" />
2
- import { I as DataCaptureEngine, J as Module, Q as AnyDataCaptureActionMessage, R as AugmentedWorker, S as ModuleHandler, T as DataCaptureCallbackMessage, U as DataCaptureActionMessageKey, X as EngineWorkerResponse } 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';
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
- export{a as WorkerMain}from'../chunks/chunk-TMIZ6Z75.js';
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
- /// <reference types="emscripten" />
2
- import '../private/BatteryInterface.js';
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
- /// <reference types="emscripten" />
2
- export { k as DataCaptureLoader, l as DataCaptureLoaderOptions } from '../DataCaptureContext-Qg40v7QA.js';
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 };