@scandit/web-datacapture-core 7.0.0-beta.1

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