@scandit/web-datacapture-core 7.0.2 → 7.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/js/AimerViewfinder.js +1 -1
- package/build/js/Brush.js +1 -1
- package/build/js/{Camera-ZV7WBiWy.d.ts → Camera-Dpk6E99b.d.ts} +8 -12
- package/build/js/Camera.d.ts +1 -1
- package/build/js/Camera.js +1 -1
- package/build/js/CameraAccess.d.ts +1 -1
- package/build/js/CameraAccess.js +1 -1
- package/build/js/CameraRelated.d.ts +1 -1
- package/build/js/CameraRelated.js +1 -1
- package/build/js/Common.d.ts +1 -0
- package/build/js/Common.js +1 -1
- package/build/js/DataCaptureContext.d.ts +1 -1
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +1 -1
- package/build/js/DataCaptureContextRelated.js +1 -1
- package/build/js/DataCaptureContextSettings.js +1 -1
- package/build/js/DataCaptureError.js +1 -1
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +1 -1
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/DataCaptureViewPlusRelated.js +1 -1
- package/build/js/DefaultViewClassnames.js +1 -1
- package/build/js/Defaults.d.ts +1 -1
- package/build/js/Defaults.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +1 -1
- package/build/js/FrameData.js +1 -1
- package/build/js/ImageFrameSource.d.ts +1 -1
- package/build/js/ImageFrameSource.js +1 -1
- package/build/js/LoadingStatus.js +1 -1
- package/build/js/Localization.js +1 -1
- package/build/js/LocationSelection.js +1 -1
- package/build/js/RectangularViewfinder.js +1 -1
- package/build/js/SingleImageUploader.d.ts +1 -1
- package/build/js/SingleImageUploader.js +1 -1
- package/build/js/SingleImageUploaderSettings.js +1 -1
- package/build/js/Sound.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/ViewControls.js +1 -1
- package/build/js/Viewfinder.js +1 -1
- package/build/js/ViewfinderPlusRelated.js +1 -1
- package/build/js/assets/beepSound.js +1 -1
- package/build/js/assets/folderImage.js +1 -1
- package/build/js/assets/index.d.js +0 -1
- package/build/js/assets/index.js +1 -1
- package/build/js/assets/scanningByScandit.js +1 -1
- package/build/js/assets/transparentPixelImage.js +1 -1
- package/build/js/browserCompatibility.js +1 -1
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/chunk-2DXPVHBJ.js +0 -1
- package/build/js/chunks/chunk-2Q5FZVGV.js +1 -3
- package/build/js/chunks/chunk-2WN7BGOB.js +1 -6
- package/build/js/chunks/chunk-3A4KLILV.js +1 -3
- package/build/js/chunks/chunk-3BMXPFN5.js +1 -0
- package/build/js/chunks/chunk-457L5N2F.js +1 -6
- package/build/js/chunks/chunk-46WJFV3I.js +1 -8
- package/build/js/chunks/{chunk-GWI2ZHMO.js → chunk-4BDVHW3U.js} +2 -11
- package/build/js/chunks/chunk-4ZMCJXZS.js +1 -3
- package/build/js/chunks/chunk-5DETRQ7Y.js +1 -0
- package/build/js/chunks/chunk-5IVFVUF4.js +2 -8
- package/build/js/chunks/chunk-5LIWL2C4.js +1 -3
- package/build/js/chunks/chunk-5PHKPYK6.js +1 -0
- package/build/js/chunks/chunk-5RW5274G.js +0 -1
- package/build/js/chunks/chunk-5S537AFM.js +1 -3
- package/build/js/chunks/chunk-5TKCHVG2.js +1 -5
- package/build/js/chunks/chunk-6H6FKGVE.js +1 -3
- package/build/js/chunks/chunk-6MF4F3EH.js +1 -0
- package/build/js/chunks/chunk-6OQQP3SM.js +2 -9
- package/build/js/chunks/chunk-6W7FX6LD.js +1 -3
- package/build/js/chunks/chunk-72DAONJI.js +1 -5
- package/build/js/chunks/chunk-7JX43F4O.js +1 -0
- package/build/js/chunks/chunk-7SW2PEHB.js +1 -3
- package/build/js/chunks/chunk-7XQ3GHYH.js +1 -3
- package/build/js/chunks/chunk-AIRWHLJH.js +1 -5
- package/build/js/chunks/chunk-B5JOQVFY.js +2 -6
- package/build/js/chunks/chunk-BDLLVGRH.js +1 -3
- package/build/js/chunks/chunk-BIGR7VVJ.js +1 -8
- package/build/js/chunks/chunk-BYRUZJLS.js +5 -0
- package/build/js/chunks/chunk-CAIEX6BZ.js +1 -0
- package/build/js/chunks/chunk-DMOXDUF6.js +1 -6
- package/build/js/chunks/chunk-EHMSDFH7.js +1 -5
- package/build/js/chunks/chunk-EP3GI7KA.js +1 -3
- package/build/js/chunks/chunk-EQRBQJYM.js +1 -3
- package/build/js/chunks/chunk-EV4OEANA.js +1 -3
- package/build/js/chunks/{chunk-TBCW7RDM.js → chunk-FE5V34QK.js} +2 -12
- package/build/js/chunks/chunk-FGCJ3ZLG.js +1 -2
- package/build/js/chunks/chunk-FGO2SSRS.js +1 -3
- package/build/js/chunks/chunk-FJCUED6E.js +21 -0
- package/build/js/chunks/chunk-FNFCPBQI.js +1 -0
- package/build/js/chunks/chunk-FQK2YWUZ.js +1 -0
- package/build/js/chunks/chunk-FTD535WI.js +1 -3
- package/build/js/chunks/{chunk-T7URG4IQ.js → chunk-FTMRPIKJ.js} +2 -10
- package/build/js/chunks/chunk-G33OCZIN.js +1 -0
- package/build/js/chunks/chunk-GAVFMG2G.js +1 -0
- package/build/js/chunks/chunk-GE4CBD4E.js +1 -3
- package/build/js/chunks/chunk-GMM3ROKD.js +1 -0
- package/build/js/chunks/chunk-GPJEB376.js +1 -5
- package/build/js/chunks/chunk-GSJH2EXJ.js +2 -6
- package/build/js/chunks/chunk-GX4YCYCH.js +1 -3
- package/build/js/chunks/chunk-H4TH4342.js +1 -3
- package/build/js/chunks/{chunk-3FDT22IX.js → chunk-HC2AMLBI.js} +1 -3
- package/build/js/chunks/chunk-IGJQFAQU.js +1 -3
- package/build/js/chunks/chunk-J2UL6U3I.js +1 -3
- package/build/js/chunks/chunk-JFRSUCMO.js +1 -3
- package/build/js/chunks/chunk-JKL2W65E.js +1 -3
- package/build/js/chunks/chunk-JO2MKLMM.js +1 -0
- package/build/js/chunks/chunk-JRBLEJMD.js +1 -0
- package/build/js/chunks/chunk-JS3T7K2Z.js +1 -3
- package/build/js/chunks/chunk-JXJQSWYG.js +1 -3
- package/build/js/chunks/chunk-KCNXUTBL.js +2 -7
- package/build/js/chunks/chunk-KJS3Z56B.js +1 -0
- package/build/js/chunks/chunk-KYNYQBNF.js +1 -3
- package/build/js/chunks/chunk-L2STPTEN.js +1 -3
- package/build/js/chunks/chunk-LA6TM76R.js +1 -3
- package/build/js/chunks/chunk-LDJ53PEJ.js +1 -0
- package/build/js/chunks/chunk-LFWLFZZA.js +1 -0
- package/build/js/chunks/chunk-M46MIHI5.js +2 -8
- package/build/js/chunks/chunk-MAMZS5CH.js +1 -7
- package/build/js/chunks/chunk-MU4VAJIM.js +2 -6
- package/build/js/chunks/chunk-MW5PTAU7.js +1 -3
- package/build/js/chunks/chunk-N5YZEC56.js +1 -3
- package/build/js/chunks/chunk-NMROJLGQ.js +1 -5
- package/build/js/chunks/chunk-NMX4VHW2.js +1 -5
- package/build/js/chunks/chunk-NQC64CT7.js +1 -0
- package/build/js/chunks/chunk-O7TZTIHO.js +1 -3
- package/build/js/chunks/chunk-PWRWWFPG.js +1 -0
- package/build/js/chunks/chunk-PZEOQRCA.js +1 -0
- package/build/js/chunks/chunk-Q7JWDX4U.js +1 -3
- package/build/js/chunks/chunk-Q7NDC6TJ.js +1 -6
- package/build/js/chunks/chunk-QBDQQMQ5.js +1 -5
- package/build/js/chunks/chunk-QCRFVRSS.js +1 -3
- package/build/js/chunks/chunk-QCZSSQAQ.js +1 -3
- package/build/js/chunks/chunk-QHBIT2WY.js +1 -3
- package/build/js/chunks/chunk-R2VJDRLZ.js +1 -0
- package/build/js/chunks/chunk-R6E4CT22.js +1 -3
- package/build/js/chunks/chunk-RIMH6UPR.js +1 -0
- package/build/js/chunks/chunk-RQQK6Z5F.js +1 -2
- package/build/js/chunks/chunk-SK6L34IF.js +1 -5
- package/build/js/chunks/chunk-SKRKDAFC.js +1 -13
- package/build/js/chunks/chunk-T3AOBMAS.js +1 -3
- package/build/js/chunks/chunk-T5EUB6UG.js +1 -6
- package/build/js/chunks/chunk-T5QHKJ2U.js +1 -0
- package/build/js/chunks/chunk-TCJPGGHY.js +2 -8
- package/build/js/chunks/chunk-TM7QAJVA.js +1 -0
- package/build/js/chunks/chunk-U6BTTEV6.js +1 -3
- package/build/js/chunks/{chunk-ARJASUTK.js → chunk-UGYFPSXM.js} +2 -15
- package/build/js/chunks/chunk-UHFABUTI.js +1 -3
- package/build/js/chunks/chunk-ULRY4SXF.js +1 -7
- package/build/js/chunks/chunk-UZWBB65W.js +1 -3
- package/build/js/chunks/chunk-VJB527QZ.js +1 -3
- package/build/js/chunks/chunk-WUHKODFA.js +1 -3
- package/build/js/chunks/chunk-XR65N6EG.js +1 -3
- package/build/js/chunks/chunk-YEMIFGKZ.js +1 -0
- package/build/js/chunks/chunk-YGFWA4WG.js +1 -6
- package/build/js/chunks/chunk-YRNH7TIR.js +0 -1
- package/build/js/chunks/chunk-ZDYFZYVT.js +1 -0
- package/build/js/chunks/chunk-ZKROZLQ4.js +1 -2
- package/build/js/chunks/chunk-ZVBD3EW5.js +1 -3
- package/build/js/global.d.js +0 -1
- package/build/js/index.d.ts +3 -3
- package/build/js/index.js +2 -50
- package/build/js/license/OpenSourceSoftwareLicenseInfo.js +1 -1
- package/build/js/logger.js +1 -1
- package/build/js/private/AnchorPositions.d.ts +13 -0
- package/build/js/private/AnchorPositions.js +1 -1
- package/build/js/private/CameraAccess.d.ts +1 -1
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +1 -1
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CanvasDrawer.js +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.js +1 -1
- package/build/js/private/CavansDrawerAbstract.js +1 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +1 -1
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/CustomLocationsView.js +1 -1
- package/build/js/private/CustomLocationsViewStyles.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +1 -1
- package/build/js/private/DataCaptureContextRelated.js +0 -1
- package/build/js/private/DrawCommandBuffer.js +1 -1
- package/build/js/private/EventManager.d.ts +1 -1
- package/build/js/private/EventManager.js +1 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +1 -1
- package/build/js/private/FrameReaders/FrameReader.js +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.js +1 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +1 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/WatermarkStack.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +1 -1
- package/build/js/private/FrameReaders/index.js +1 -2
- package/build/js/private/FrameReaders/webglUtilities.js +1 -1
- package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
- package/build/js/private/GestureRecognizer/PointerEventsDetector.js +1 -1
- package/build/js/private/GestureRecognizer/index.js +1 -1
- package/build/js/private/Helper.js +1 -1
- package/build/js/private/HtmlElementState.js +1 -1
- package/build/js/private/ModuleLicenseTextProvider.js +0 -1
- package/build/js/private/NormalizedConfigureOptions.d.ts +1 -1
- package/build/js/private/NormalizedConfigureOptions.js +0 -1
- package/build/js/private/OrientationObserver.js +1 -1
- package/build/js/private/Serializable.js +0 -1
- package/build/js/private/SingleImageUploaderView.js +1 -1
- package/build/js/private/SingleImageUploaderViewStyles.js +1 -1
- package/build/js/private/View.js +0 -1
- package/build/js/private/ViewClassNames.js +1 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +1 -1
- package/build/js/private/ViewStyles.js +1 -1
- package/build/js/private/ViewsRegistry.d.ts +1 -1
- package/build/js/private/ViewsRegistry.js +1 -1
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/multithreadSimdHelper.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/BoxArrowDownSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/BoxArrowDownSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/BoxWithCrossSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/BoxWithCrossSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +19 -0
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +27 -0
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +27 -0
- package/build/js/private/ui/atoms/CheckSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/CheckSvgIcon.js +15 -0
- package/build/js/private/ui/atoms/CrossSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/CrossSvgIcon.js +15 -0
- package/build/js/private/ui/atoms/Dot5xSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +21 -0
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +17 -0
- package/build/js/private/ui/atoms/GlassSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/GlassSvgIcon.js +15 -0
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +24 -0
- package/build/js/private/ui/atoms/OnexSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/OnexSvgIcon.js +13 -0
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +26 -0
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.js +2 -9
- package/build/js/private/ui/atoms/StarFilledSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +13 -0
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +32 -0
- package/build/js/private/ui/atoms/StarSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/StarSvgIcon.js +14 -0
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +27 -0
- package/build/js/private/ui/atoms/Toast.d.ts +1 -1
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.d.ts +17 -0
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +14 -0
- package/build/js/private/ui/colors.d.ts +2 -1
- package/build/js/private/ui/colors.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +1 -1
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/unsupportedBrowserError.js +1 -1
- package/build/js/private/utils/ScanditHTMLElement.js +1 -1
- package/build/js/private/utils/clamp.js +1 -1
- package/build/js/private/utils/css.js +1 -1
- package/build/js/private/utils/debounce.js +1 -1
- package/build/js/private/utils/deferred.js +1 -1
- package/build/js/private/utils/defineCustomElements.js +1 -1
- package/build/js/private/utils/html.js +1 -1
- package/build/js/private/utils/index.js +1 -15
- package/build/js/private/utils/isObject.js +1 -1
- package/build/js/private/utils/isWorkerScope.js +1 -1
- package/build/js/private/utils/match.js +1 -1
- package/build/js/private/utils/quadrilateralUtils.d.ts +8 -0
- package/build/js/private/utils/quadrilateralUtils.js +1 -0
- package/build/js/private/utils/throttle.js +1 -1
- package/build/js/private/utils/timeout.js +1 -1
- package/build/js/private/utils/unknownErrorToString.js +1 -1
- package/build/js/private/utils/wait.js +1 -1
- package/build/js/private/utils/waitTransitionEndForElement.js +1 -1
- package/build/js/sdk.d.ts +1 -1
- package/build/js/sdk.js +1 -1
- package/build/js/translations.js +1 -1
- package/build/js/tsHelper.js +1 -1
- package/build/js/worker/OverrideState.js +1 -1
- package/build/js/worker/WorkerMain.d.ts +1 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/dataCapture.inlineWorker.d.ts +1 -1
- package/build/js/worker/dataCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +1 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +1 -1
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
- package/build/js/worker/helper.js +1 -1
- package/build/js/worker/helperFetch.js +1 -1
- package/build/js/worker/helperFs.d.ts +0 -2
- package/build/js/worker/helperFs.js +1 -1
- package/build/js/worker/importWasmScript.js +1 -1
- package/build/js/worker/index.d.ts +1 -1
- package/build/js/worker/index.js +1 -4
- package/build/js/worker/inlineWorker.d.js +0 -1
- package/package.json +2 -2
- package/build/js/chunks/chunk-2WQHYCZC.js +0 -6
- package/build/js/chunks/chunk-34FEFSCI.js +0 -6
- package/build/js/chunks/chunk-3V7ZD6JQ.js +0 -14
- package/build/js/chunks/chunk-44B7Z6ZZ.js +0 -5
- package/build/js/chunks/chunk-6O3B7VJJ.js +0 -6
- package/build/js/chunks/chunk-ABRFVD7T.js +0 -5
- package/build/js/chunks/chunk-E2VUMNY4.js +0 -16
- package/build/js/chunks/chunk-EFJGQ4BT.js +0 -3
- package/build/js/chunks/chunk-HNMM5VR6.js +0 -6
- package/build/js/chunks/chunk-J6Q5HITP.js +0 -47
- package/build/js/chunks/chunk-KAZWF3JC.js +0 -5
- package/build/js/chunks/chunk-KW3YSGJX.js +0 -5
- package/build/js/chunks/chunk-MKHBE7BB.js +0 -6
- package/build/js/chunks/chunk-MOKCZFZV.js +0 -10
- package/build/js/chunks/chunk-MSPQDVWJ.js +0 -5
- package/build/js/chunks/chunk-N4NOODAT.js +0 -3
- package/build/js/chunks/chunk-N5F43TUJ.js +0 -5
- package/build/js/chunks/chunk-NNLX5HO4.js +0 -10
- package/build/js/chunks/chunk-PXXUQXGB.js +0 -7
- package/build/js/chunks/chunk-TVDFY6ME.js +0 -5
- package/build/js/chunks/chunk-TWBD6OC5.js +0 -9
- package/build/js/chunks/chunk-UPUPKPEP.js +0 -8
- package/build/js/chunks/chunk-V76YCTVB.js +0 -5
- package/build/js/chunks/chunk-W7LJM2QO.js +0 -5
- package/build/js/chunks/chunk-WSG6WSZN.js +0 -6
- package/build/js/chunks/chunk-XVLYCDJL.js +0 -7
- package/build/js/chunks/chunk-ZSYUKWWL.js +0 -5
- /package/{THIRD-PARTY.txt → THIRD_PARTY.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as AimerViewfinder}from'./chunks/chunk-PWRWWFPG.js';
|
package/build/js/Brush.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as Brush}from'./chunks/chunk-G33OCZIN.js';
|
|
@@ -489,7 +489,6 @@ type WorkerListener = (event: DataCaptureCallbackMessage) => any;
|
|
|
489
489
|
interface DataCaptureLoaderOptions {
|
|
490
490
|
libraryLocation: string;
|
|
491
491
|
verifyResponseHash: boolean;
|
|
492
|
-
preloadEngine?: boolean;
|
|
493
492
|
loadProgressNotifier?: (info: ProgressInfo) => void;
|
|
494
493
|
logLevel?: Logger.Level;
|
|
495
494
|
overrideSimdSupport: OverrideState;
|
|
@@ -508,10 +507,6 @@ declare class DataCaptureLoader {
|
|
|
508
507
|
protected verifyResponseHash: boolean;
|
|
509
508
|
protected _dataCaptureWorker?: DataCaptureWorker;
|
|
510
509
|
protected readonly libraryLocation: string;
|
|
511
|
-
/**
|
|
512
|
-
* Mainly useful for FS when merging preloaded data (blurry tables preloading).
|
|
513
|
-
*/
|
|
514
|
-
protected readonly isPreloadEngine: boolean;
|
|
515
510
|
protected workerCommandId: number;
|
|
516
511
|
protected readonly workerTasks: Map<number, {
|
|
517
512
|
resolve: (...arguments_: any[]) => any;
|
|
@@ -590,7 +585,7 @@ interface DataCaptureMode extends Serializable {
|
|
|
590
585
|
context: Optional<DataCaptureContext$1>;
|
|
591
586
|
}
|
|
592
587
|
interface DataCaptureModeJSON<S = JSONType> {
|
|
593
|
-
type: "barcodeCapture" | "barcodeTracking" | "idCapture" | "parser" | "sparkScan" | "barcodeFind";
|
|
588
|
+
type: "barcodeCapture" | "barcodeTracking" | "idCapture" | "parser" | "sparkScan" | "barcodeFind" | "barcodeCheck";
|
|
594
589
|
enabled: boolean;
|
|
595
590
|
settings: S;
|
|
596
591
|
}
|
|
@@ -983,7 +978,7 @@ interface DataCaptureView extends EmscriptenClassHandle {
|
|
|
983
978
|
addOverlay: (overlay: EmscriptenClassHandle) => void;
|
|
984
979
|
removeOverlay: (overlay: EmscriptenClassHandle) => void;
|
|
985
980
|
}
|
|
986
|
-
interface JSONParseable {
|
|
981
|
+
interface JSONParseable extends EmscriptenClassHandle {
|
|
987
982
|
toJson: () => string;
|
|
988
983
|
}
|
|
989
984
|
interface DataCaptureContextDeserializerResult extends EmscriptenClassHandle {
|
|
@@ -1008,7 +1003,7 @@ interface Vector<T = unknown> {
|
|
|
1008
1003
|
get: (index: number) => T;
|
|
1009
1004
|
size: () => number;
|
|
1010
1005
|
}
|
|
1011
|
-
interface WasmFrameData {
|
|
1006
|
+
interface WasmFrameData extends EmscriptenClassHandle {
|
|
1012
1007
|
getFrameData: () => Uint8ClampedArray;
|
|
1013
1008
|
getWidth: () => number;
|
|
1014
1009
|
getHeight: () => number;
|
|
@@ -1183,7 +1178,7 @@ interface PlatformHintPresenter extends EmscriptenClassHandle {
|
|
|
1183
1178
|
interface Module extends EmscriptenModule {
|
|
1184
1179
|
callMain: () => void;
|
|
1185
1180
|
canvas: OffscreenCanvas | undefined;
|
|
1186
|
-
|
|
1181
|
+
__emscripten_proxy_main?: Record<number | string | symbol, unknown>;
|
|
1187
1182
|
mainScriptUrlOrBlob: string;
|
|
1188
1183
|
DataCaptureContextDeserializer: new (fsFolderPath: string, deviceId: string, deviceModel: string, domain: string, parentDomain: string, modeDeserializer: Vector, delayedRegistration: boolean, highEndBlurryRecognition: boolean, resourcePath: string) => DataCaptureContextDeserializer;
|
|
1189
1184
|
DataCaptureContextListener: {
|
|
@@ -1192,6 +1187,7 @@ interface Module extends EmscriptenModule {
|
|
|
1192
1187
|
toJson: () => string;
|
|
1193
1188
|
}) => void;
|
|
1194
1189
|
didStartObservingContext: (context: DataCaptureContext) => void;
|
|
1190
|
+
didStopObservingContext: (context: DataCaptureContext) => void;
|
|
1195
1191
|
}) => new () => EmscriptenClassHandle;
|
|
1196
1192
|
};
|
|
1197
1193
|
DataCaptureContextFrameListener: {
|
|
@@ -1262,6 +1258,8 @@ interface Module extends EmscriptenModule {
|
|
|
1262
1258
|
removeBarcodeFindFromContext: (context: DataCaptureContext, mode: EmscriptenClassHandle) => void;
|
|
1263
1259
|
addBarcodeFindBasicOverlayToView: (view: DataCaptureView, overlay: EmscriptenClassHandle) => void;
|
|
1264
1260
|
removeBarcodeFindBasicOverlayFromView: (view: DataCaptureView, overlay: EmscriptenClassHandle) => void;
|
|
1261
|
+
addBarcodeCheckToContext: (context: DataCaptureContext, mode: EmscriptenClassHandle) => void;
|
|
1262
|
+
removeBarcodeCheckFromContext: (context: DataCaptureContext, mode: EmscriptenClassHandle) => void;
|
|
1265
1263
|
OpenSourceSoftwareLicenseInfo: {
|
|
1266
1264
|
getLicenseText(): string;
|
|
1267
1265
|
};
|
|
@@ -1297,7 +1295,6 @@ declare function convertToPublicFrameData(loadableFrameData: PrivateLoadableFram
|
|
|
1297
1295
|
interface LoadLibraryParameters {
|
|
1298
1296
|
libraryLocation: string;
|
|
1299
1297
|
locationPath: string;
|
|
1300
|
-
preloadEngine: boolean;
|
|
1301
1298
|
writableDataPathOverride?: string;
|
|
1302
1299
|
overrideSimdSupport: OverrideState;
|
|
1303
1300
|
overrideThreadsSupport: OverrideState;
|
|
@@ -1363,7 +1360,6 @@ declare class DataCaptureEngine<M extends Module> {
|
|
|
1363
1360
|
protected writableDataPath: string;
|
|
1364
1361
|
protected poorMansBenchmarkLogs: boolean;
|
|
1365
1362
|
protected parentDomain: string;
|
|
1366
|
-
protected readonly writableDataPathPreload: string;
|
|
1367
1363
|
protected readonly writableDataPathStandard: string;
|
|
1368
1364
|
protected readonly resourceFilesSubfolder: string;
|
|
1369
1365
|
protected performanceMetricsReporterTimer: ReturnType<typeof setTimeout> | undefined;
|
|
@@ -1721,4 +1717,4 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
|
|
|
1721
1717
|
private isZoomAvailable;
|
|
1722
1718
|
}
|
|
1723
1719
|
|
|
1724
|
-
export { type ModuleHandler as $, type PrivateFrameHandler as A, DataCaptureContext$1 as B, CameraPosition as C, DataCaptureLoader as D, type DataCaptureContextListener as E, FocusGestureStrategy as F, type ContextStatusJSON as G, ContextStatus as H, PrivateMirrorAxis as I, type DataCaptureOverlay as J, type DataCaptureViewListener as K, type DataCaptureViewJSON as L, DataCaptureView$1 as M, type FrameData as N, type PrivateLoadableFrameData as O, type PrivateChangeSet as P, convertToPublicFrameData as Q, type DataCaptureLoaderOptions as R,
|
|
1720
|
+
export { type ModuleHandler as $, type PrivateFrameHandler as A, DataCaptureContext$1 as B, CameraPosition as C, DataCaptureLoader as D, type DataCaptureContextListener as E, FocusGestureStrategy as F, type ContextStatusJSON as G, ContextStatus as H, PrivateMirrorAxis as I, type DataCaptureOverlay as J, type DataCaptureViewListener as K, type DataCaptureViewJSON as L, DataCaptureView$1 as M, type FrameData as N, type PrivateLoadableFrameData as O, type PrivateChangeSet as P, convertToPublicFrameData as Q, type DataCaptureLoaderOptions as R, type PerformanceMetrics as S, TorchState as T, DataCaptureEngine as U, VideoResolution as V, type Module as W, type DataCaptureCallbackMessage as X, type GenericHint as Y, type AnyDataCaptureActionMessage as Z, type AugmentedWorker as _, type FrameSource as a, HintIcon as a$, type DataCaptureActionMessageKey as a0, type EngineWorkerResponse as a1, type ExtractCentaurusLicenseResponse as a2, type RequestFrameDataResponse as a3, type IsFeatureSupportedResponse as a4, type GetViewfinderInfo as a5, type GetOpenSourceSoftwareLicenseInfoResponse as a6, type WorkerResponse as a7, type LoadLibraryDataCaptureAction as a8, type CreateContextDataCaptureAction as a9, type OnFrameSkippedMessage as aA, type ShowToastMessage as aB, type HideToastMessage as aC, type ShowGuidanceMessage as aD, type HideGuidanceMessage as aE, type StartUpdateTimerMessage as aF, type StopUpdateTimerMessage as aG, type PayloadForCommand as aH, type DataCaptureWorker as aI, type EmscriptenClassHandle as aJ, type DataCaptureContext as aK, type DataCaptureImageBufferFrameSource as aL, type GestureListener as aM, type GestureRecognizer as aN, type DataCaptureView as aO, type JSONParseable as aP, type DataCaptureContextDeserializerResult as aQ, type DataCaptureContextDeserializer as aR, type CaptureModeDeserializerInstance as aS, type ModuleMirrorAxis as aT, type Vector as aU, type WasmFrameData as aV, HintFont as aW, HintTextAlignment as aX, HintWidth as aY, HintHeight as aZ, HintCornerStyle as a_, type SetFrameSourceDataCaptureAction as aa, type ProcessFrameDataCaptureAction as ab, type RequestFrameDataDataCaptureAction as ac, type DeleteFrameDataDataCaptureAction as ad, type VisibilityChangeAction as ae, type IsFeatureSupportedAction as af, type UpdateContextDataCaptureAction as ag, type DisposeDataCaptureAction as ah, type FlushAnalyticsDataCaptureAction as ai, type ReportCameraPropertiesDataCaptureAction as aj, type SetLogLevelDataCaptureAction as ak, type ExtractCentaurusLicenseDataCaptureAction as al, type OnTapAction as am, type HintPresenterV2updateAction as an, type GetViewfinderInfoAction as ao, type GetOpenSourceSoftwareLicenseInfoAction as ap, type DataCaptureCallbackMessageKeys as aq, type SuccessFeedbackWorkerMessage as ar, type ShowHintWorkerMessage as as, type UpdateHintWorkerMessage as at, type IsFeatureSupportedMessage as au, type HideHintWorkerMessage as av, type PerformanceMetricsReportMessage as aw, type DidTapTrackedBarcode as ax, type OnFrameProcessingStartedMessage as ay, type OnFrameProcessingFinishedMessage as az, FrameSourceState as b, HintAnchor as b0, type HintStyle as b1, GuidanceHintAnchor as b2, GuidanceHintStyle as b3, type GuidanceHint as b4, ToastHintStyle as b5, type ToastHint as b6, LicensedFeature as b7, type HintPresenterV2 as b8, type PlatformHintPresenter as b9, type LoadLibraryParameters as ba, type CreateContextParameters as bb, type UpdateContextParameters as bc, type SetFrameSourceParameters as bd, type ProcessFrameParameters as be, type ReportCameraPropertiesParameters as bf, type WorkerFunctions as bg, FrameReaderAbstract as bh, ColorType as bi, type PoolCapacityOptions as bj, type FrameCapture as bk, FrameReader as bl, CameraPosition$1 as bm, CameraResolutionConstraint$1 as bn, AspectRatio as bo, type DeviceCamera$1 as bp, CameraAccess$1 as bq, MeteringMode as br, CameraResolutionConstraint as bs, type ExtendedMediaTrackCapabilities as bt, type ExtendedMediaTrackConstraintSet as bu, type GUI as bv, CameraManagerEvent as bw, type CameraManagerEventParameters as bx, CameraManager as by, type FrameSourceListener as c, type FrameSourceJSON as d, type CameraJSON as e, type VideoFrameResolution as f, Camera as g, type CameraSettingsJSONBase as h, type CameraSettingsFromJSON as i, type CameraSettingsJSON as j, isCameraFrameSource as k, CameraSettings as l, CameraAccess as m, type DeviceCamera as n, type Change as o, type PrivateDataCaptureMode as p, type DataCaptureMode as q, type DataCaptureModeJSON as r, type PrivateDataCaptureComponent as s, type DataCaptureComponentJSON as t, type DataCaptureComponent as u, type PrivateDataCaptureContextOptions as v, type PrivateDataCaptureContext as w, type DataCaptureContextCreationOptions as x, type DataCaptureContextJSON as y, type PrivateFrameHandlerResponse as z };
|
package/build/js/Camera.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { g as Camera, e as CameraJSON, f as VideoFrameResolution } from './Camera-
|
|
2
|
+
export { g as Camera, e as CameraJSON, f as VideoFrameResolution } from './Camera-Dpk6E99b.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import './tsHelper.js';
|
package/build/js/Camera.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as Camera}from'./chunks/chunk-GMM3ROKD.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { m as CameraAccess, n as DeviceCamera } from './Camera-
|
|
2
|
+
export { m as CameraAccess, n as DeviceCamera } from './Camera-Dpk6E99b.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import './tsHelper.js';
|
package/build/js/CameraAccess.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as CameraAccess}from'./chunks/chunk-5TKCHVG2.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { C as CameraPosition, l as CameraSettings, i as CameraSettingsFromJSON, j as CameraSettingsJSON, h as CameraSettingsJSONBase, F as FocusGestureStrategy, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, T as TorchState, V as VideoResolution, k as isCameraFrameSource } from './Camera-
|
|
2
|
+
export { C as CameraPosition, l as CameraSettings, i as CameraSettingsFromJSON, j as CameraSettingsJSON, h as CameraSettingsJSONBase, F as FocusGestureStrategy, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, T as TorchState, V as VideoResolution, k as isCameraFrameSource } from './Camera-Dpk6E99b.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import './tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
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-NQC64CT7.js';
|
package/build/js/Common.d.ts
CHANGED
package/build/js/Common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
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-LDJ53PEJ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { o as Change, u as DataCaptureComponent, t as DataCaptureComponentJSON, B as DataCaptureContext, x as DataCaptureContextCreationOptions, y as DataCaptureContextJSON, q as DataCaptureMode, r as DataCaptureModeJSON, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, p as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse } from './Camera-
|
|
2
|
+
export { o as Change, u as DataCaptureComponent, t as DataCaptureComponentJSON, B as DataCaptureContext, x as DataCaptureContextCreationOptions, y as DataCaptureContextJSON, q as DataCaptureMode, r as DataCaptureModeJSON, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, p as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse } from './Camera-Dpk6E99b.js';
|
|
3
3
|
import './Common.js';
|
|
4
4
|
import './DataCaptureContextSettings.js';
|
|
5
5
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as DataCaptureContext}from'./chunks/chunk-UGYFPSXM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { H as ContextStatus, G as ContextStatusJSON, E as DataCaptureContextListener, I as PrivateMirrorAxis } from './Camera-
|
|
2
|
+
export { H as ContextStatus, G as ContextStatusJSON, E as DataCaptureContextListener, I as PrivateMirrorAxis } from './Camera-Dpk6E99b.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import './tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as ContextStatus,b as PrivateMirrorAxis}from'./chunks/chunk-WUHKODFA.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as DataCaptureContextSettings}from'./chunks/chunk-7SW2PEHB.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as DataCaptureError}from'./chunks/chunk-QCZSSQAQ.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as DataCaptureVersion}from'./chunks/chunk-3BMXPFN5.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import './Common.js';
|
|
3
|
-
export { J as DataCaptureOverlay, M as DataCaptureView, L as DataCaptureViewJSON, K as DataCaptureViewListener } from './Camera-
|
|
3
|
+
export { J as DataCaptureOverlay, M as DataCaptureView, L as DataCaptureViewJSON, K as DataCaptureViewListener } from './Camera-Dpk6E99b.js';
|
|
4
4
|
import './DataCaptureViewPlusRelated.js';
|
|
5
5
|
import './ViewControls.js';
|
|
6
6
|
import './private/CustomLocationsView.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as DataCaptureView}from'./chunks/chunk-FJCUED6E.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as LogoStyle,c as SwipeToZoom,b as TapToFocus}from'./chunks/chunk-GX4YCYCH.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as defaultViewClassnames}from'./chunks/chunk-JKL2W65E.js';
|
package/build/js/Defaults.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import * as CSS from 'csstype';
|
|
3
|
-
import { V as VideoResolution, F as FocusGestureStrategy, C as CameraPosition } from './Camera-
|
|
3
|
+
import { V as VideoResolution, F as FocusGestureStrategy, C as CameraPosition } from './Camera-Dpk6E99b.js';
|
|
4
4
|
import { MarginsWithUnit, PointWithUnit, Anchor, Color } from './Common.js';
|
|
5
5
|
import { FocusGestureJSON, FocusGesture, ZoomGestureJSON, ZoomGesture, LogoStyle } from './DataCaptureViewPlusRelated.js';
|
|
6
6
|
import { RectangularViewfinderStyle, PrivateRectangularViewfinderDefault } from './ViewfinderPlusRelated.js';
|
package/build/js/Defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as PrivateFocusGestureDeserializer,b as PrivateZoomGestureDeserializer,d as defaultValues,c as defaultsFromJSON,e as setDefaults}from'./chunks/chunk-CAIEX6BZ.js';
|
package/build/js/Feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as Feedback}from'./chunks/chunk-R2VJDRLZ.js';
|
package/build/js/FrameData.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { N as FrameData, O as PrivateLoadableFrameData, Q as convertToPublicFrameData } from './Camera-
|
|
2
|
+
export { N as FrameData, O as PrivateLoadableFrameData, Q as convertToPublicFrameData } from './Camera-Dpk6E99b.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import './tsHelper.js';
|
package/build/js/FrameData.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as convertToPublicFrameData}from'./chunks/chunk-UHFABUTI.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { a as FrameSource, b as FrameSourceState, c as FrameSourceListener } from './Camera-
|
|
2
|
+
import { a as FrameSource, b as FrameSourceState, c as FrameSourceListener } from './Camera-Dpk6E99b.js';
|
|
3
3
|
import { Serializable } from './private/Serializable.js';
|
|
4
4
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import './tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as ImageFrameSource}from'./chunks/chunk-Q7NDC6TJ.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as LoadingStatus,b as default}from'./chunks/chunk-6H6FKGVE.js';
|
package/build/js/Localization.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as Localization}from'./chunks/chunk-7XQ3GHYH.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as PrivateNoneLocationSelection,b as RadiusLocationSelection,c as RectangularLocationSelection}from'./chunks/chunk-ZDYFZYVT.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as RectangularViewfinder}from'./chunks/chunk-YEMIFGKZ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { d as FrameSourceJSON, b as FrameSourceState, a as FrameSource, c as FrameSourceListener } from './Camera-
|
|
2
|
+
import { d as FrameSourceJSON, b as FrameSourceState, a as FrameSource, c as FrameSourceListener } from './Camera-Dpk6E99b.js';
|
|
3
3
|
import { SingleImageUploaderSettingsJSON, SingleImageUploaderSettings } from './SingleImageUploaderSettings.js';
|
|
4
4
|
import { Serializable } from './private/Serializable.js';
|
|
5
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as SingleImageUploader}from'./chunks/chunk-5PHKPYK6.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as SingleImageUploaderSettings}from'./chunks/chunk-7JX43F4O.js';
|
package/build/js/Sound.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as Sound}from'./chunks/chunk-GSJH2EXJ.js';
|
package/build/js/Vibration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as Vibration}from'./chunks/chunk-JO2MKLMM.js';
|
package/build/js/ViewControls.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{c as CameraFOVSwitchControl,b as CameraSwitchControl,a as TorchSwitchControl}from'./chunks/chunk-T5EUB6UG.js';
|
package/build/js/Viewfinder.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as NoViewfinder}from'./chunks/chunk-4ZMCJXZS.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{c as RectangularViewfinderAnimation,b as RectangularViewfinderLineStyle,a as RectangularViewfinderStyle}from'./chunks/chunk-J2UL6U3I.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as beepSound}from'../chunks/chunk-JXJQSWYG.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as folderImage}from'../chunks/chunk-BDLLVGRH.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
package/build/js/assets/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{g as IconCamera,c as IconCameraFOVUltraWide,a as IconCameraFOVUltraWidePressed,e as IconCameraFOVWide,b as IconCameraFOVWidePressed,d as IconCameraPressed,i as IconFlashOff,f as IconFlashOffPressed,j as IconFlashOn,h as IconFlashOnPressed}from'../chunks/chunk-FGCJ3ZLG.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as scanningByScandit}from'../chunks/chunk-EQRBQJYM.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as transparentPixelImage}from'../chunks/chunk-ZKROZLQ4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as Feature}from'./chunks/chunk-5LIWL2C4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{a as BrowserHelper}from'./chunks/chunk-MU4VAJIM.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
var q=Object.create;var o=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var t=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var l=(a,b)=>(b=Symbol[a])?b:Symbol.for("Symbol."+a);var x=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var v=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of s(b))!u.call(a,d)&&d!==c&&o(a,d,{get:()=>b[d],enumerable:!(e=r(b,d))||e.enumerable});return a};var y=(a,b,c)=>(c=a!=null?q(t(a)):{},v(b||!a||!a.__esModule?o(c,"default",{value:a,enumerable:!0}):c,a));var w=function(a,b){this[0]=a,this[1]=b;},z=(a,b,c)=>{var e=(h,g,i,k)=>{try{var m=c[h](g),n=(g=m.value)instanceof w,p=m.done;Promise.resolve(n?g[0]:g).then(j=>n?e(h==="return"?h:"next",g[1]?{done:j.done,value:j.value}:j,i,k):i({value:j,done:p})).catch(j=>e("throw",j,i,k));}catch(j){k(j);}},d=h=>f[h]=g=>new Promise((i,k)=>e(h,g,i,k)),f={};return c=c.apply(a,b),f[l("asyncIterator")]=()=>f,d("next"),d("throw"),d("return"),f};var A=(a,b,c)=>(b=a[l("asyncIterator")])?b.call(a):(a=a[l("iterator")](),b={},c=(e,d)=>(d=a[e])&&(b[e]=f=>new Promise((h,g,i)=>(f=d.call(a,f),i=f.done,Promise.resolve(f.value).then(k=>h({value:k,done:i}),g)))),c("next"),c("return"),b);
|
|
2
|
-
|
|
3
|
-
export { x as a, y as b, w as c, z as d, A as e };
|
|
1
|
+
var q=Object.create;var o=Object.defineProperty;var r=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var t=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var l=(a,b)=>(b=Symbol[a])?b:Symbol.for("Symbol."+a);var x=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var v=(a,b,c,e)=>{if(b&&typeof b=="object"||typeof b=="function")for(let d of s(b))!u.call(a,d)&&d!==c&&o(a,d,{get:()=>b[d],enumerable:!(e=r(b,d))||e.enumerable});return a};var y=(a,b,c)=>(c=a!=null?q(t(a)):{},v(b||!a||!a.__esModule?o(c,"default",{value:a,enumerable:!0}):c,a));var w=function(a,b){this[0]=a,this[1]=b;},z=(a,b,c)=>{var e=(h,g,i,k)=>{try{var m=c[h](g),n=(g=m.value)instanceof w,p=m.done;Promise.resolve(n?g[0]:g).then(j=>n?e(h==="return"?h:"next",g[1]?{done:j.done,value:j.value}:j,i,k):i({value:j,done:p})).catch(j=>e("throw",j,i,k));}catch(j){k(j);}},d=h=>f[h]=g=>new Promise((i,k)=>e(h,g,i,k)),f={};return c=c.apply(a,b),f[l("asyncIterator")]=()=>f,d("next"),d("throw"),d("return"),f};var A=(a,b,c)=>(b=a[l("asyncIterator")])?b.call(a):(a=a[l("iterator")](),b={},c=(e,d)=>(d=a[e])&&(b[e]=f=>new Promise((h,g,i)=>(f=d.call(a,f),i=f.done,Promise.resolve(f.value).then(k=>h({value:k,done:i}),g)))),c("next"),c("return"),b);export{x as a,y as b,w as c,z as d,A as e};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a } from './chunk-XR65N6EG.js';
|
|
3
|
-
|
|
4
|
-
function p({wasmURI:e,expectedHash:t,verifyResponseHash:i,progressCallback:s,successCallback:a$1,importObject:l,referredOrigin:m}){async function b(r){try{let o=await f({wasmURI:e,expectedHash:t,verifyResponseHash:i,onProgress:s,referredOrigin:m}),y=await(r!=null?r:o).arrayBuffer(),g=await globalThis.WebAssembly.instantiate(y,l);a$1(g.instance,g.module);}catch(o){a.log(a.Level.Error,o),a.log(a.Level.Error,`Couldn't instantiate Scandit SDK DataCapture library at ${e}, did you configure the path for it correctly?`);}}async function u(){let r;try{r=await f({wasmURI:e,expectedHash:t,verifyResponseHash:i,onProgress:s,referredOrigin:m});let o=await globalThis.WebAssembly.instantiateStreaming(r,l);a$1(o.instance,o.module);}catch(o){a.log(a.Level.Warn,o),a.log(a.Level.Warn,"WebAssembly streaming compile failed. Falling back to ArrayBuffer instantiation (this will make things slower)"),b((r==null?void 0:r.bodyUsed)===!0?void 0:r);}}typeof globalThis.WebAssembly.instantiateStreaming=="function"?u():b();}async function h(e,t,i,s){return new Promise((a,l)=>{e().then(a).catch(m=>{let b=t*2;if(b>i){l(m);return}s(m),globalThis.setTimeout(()=>{h(e,b,i,s).then(a).catch(l);},t);});})}function v(e){var i,s;let t="";if((i=e.href)!=null&&i.startsWith("blob:null/"))t="localhost";else {let a=((s=e.pathname)==null?void 0:s.length)>1&&!e.pathname.startsWith("/");t=new URL(a?e.pathname:e.origin).hostname;}return t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1)),t}
|
|
5
|
-
|
|
6
|
-
export { p as a, h as b, v as c };
|
|
1
|
+
import {f}from'./chunk-B5JOQVFY.js';import {a}from'./chunk-XR65N6EG.js';function p({wasmURI:e,expectedHash:t,verifyResponseHash:i,progressCallback:s,successCallback:a$1,importObject:l,referredOrigin:m}){async function b(r){try{let o=await f({wasmURI:e,expectedHash:t,verifyResponseHash:i,onProgress:s,referredOrigin:m}),y=await(r!=null?r:o).arrayBuffer(),g=await globalThis.WebAssembly.instantiate(y,l);a$1(g.instance,g.module);}catch(o){a.log(a.Level.Error,o),a.log(a.Level.Error,`Couldn't instantiate Scandit SDK DataCapture library at ${e}, did you configure the path for it correctly?`);}}async function u(){let r;try{r=await f({wasmURI:e,expectedHash:t,verifyResponseHash:i,onProgress:s,referredOrigin:m});let o=await globalThis.WebAssembly.instantiateStreaming(r,l);a$1(o.instance,o.module);}catch(o){a.log(a.Level.Warn,o),a.log(a.Level.Warn,"WebAssembly streaming compile failed. Falling back to ArrayBuffer instantiation (this will make things slower)"),b((r==null?void 0:r.bodyUsed)===!0?void 0:r);}}typeof globalThis.WebAssembly.instantiateStreaming=="function"?u():b();}async function h(e,t,i,s){return new Promise((a,l)=>{e().then(a).catch(m=>{let b=t*2;if(b>i){l(m);return}s(m),globalThis.setTimeout(()=>{h(e,b,i,s).then(a).catch(l);},t);});})}function v(e){var i,s;let t="";if((i=e.href)!=null&&i.startsWith("blob:null/"))t="localhost";else {let a=((s=e.pathname)==null?void 0:s.length)>1&&!e.pathname.startsWith("/");t=new URL(a?e.pathname:e.origin).hostname;}return t.startsWith("[")&&t.endsWith("]")&&(t=t.slice(1,-1)),t}export{p as a,h as b,v as c};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
function n(t){if("customElements"in globalThis)for(let[e,o]of Object.entries(t))customElements.get(e)||customElements.define(e,o);}
|
|
2
|
-
|
|
3
|
-
export { n as a };
|
|
1
|
+
function n(t){if("customElements"in globalThis)for(let[e,o]of Object.entries(t))customElements.get(e)||customElements.define(e,o);}export{n as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e;(o=>{function i(){let r="7.1.0-beta.1";return r}o.sdkVersion=i;})(e||(e={}));export{e as a};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
import { b }
|
|
2
|
-
import { b as b$1 } from './chunk-LA6TM76R.js';
|
|
3
|
-
|
|
4
|
-
var d=(e=>(e.Nonzero="nonzero",e.Evenodd="evenodd",e))(d||{}),n=class n extends b{constructor(e){super();this._context=null;this.isNextDrawPending=!1;this.latestCommands=new Uint8Array([]);this.canvas=e,this.doDrawLoop=this.doDraw.bind(this);}get context(){if(!this._context&&(this._context=this.canvas.getContext("2d"),!this._context))throw new TypeError("CanvasRenderingContext cannot be retrieved.");return this._context}draw(e){if(this.latestCommands=e,!this.isCanvasReady()){this.postponeDraw();return}this.isNextDrawPending||(this.isNextDrawPending=!0,requestAnimationFrame(this.doDrawLoop));}updateCanvasSizeAttributes(e,s,t=window.devicePixelRatio){let i=Math.round(e*t),r=Math.round(s*t);(i!==this.canvas.width||r!==this.canvas.height)&&(this.canvas.width=i,this.canvas.height=r,this.context.scale(t,t));}startObservingCanvasResize(){if(!this.resizeObserver){if(!n.ResizeObserver)throw new Error("PrivateCanvasDrawer.ResizeObserver is not set");this.resizeObserver=new n.ResizeObserver(e=>{var r;let[s]=e,{width:t,height:i}=(r=s.contentRect)!=null?r:this.canvas;t===0||i===0||(this.updateCanvasSizeAttributes(t,i),this.latestCommands.length!==0&&(this.draw(this.latestCommands),this.latestCommands=new Uint8Array([])));}),this.resizeObserver.observe(this.canvas);}}endObservingCanvasResize(){this.resizeObserver&&this.resizeObserver.unobserve(this.canvas);}doDraw(){this.context.clearRect(0,0,this.canvas.width,this.canvas.height);let e=new b$1(this.latestCommands);for(;!e.isConsumed();){let s=e.extractCommandType();this.drawSingleCommand(s,e);}this.isNextDrawPending=!1;}postponeDraw(){this.startObservingCanvasResize();}isCanvasReady(){return this.canvas.width>0&&this.canvas.height>0}};n.ResizeObserver="ResizeObserver"in globalThis?globalThis.ResizeObserver:void 0;var h=n;
|
|
5
|
-
|
|
6
|
-
export { d as a, h as b };
|
|
1
|
+
import {b}from'./chunk-QBDQQMQ5.js';import {b as b$1}from'./chunk-LA6TM76R.js';var d=(e=>(e.Nonzero="nonzero",e.Evenodd="evenodd",e))(d||{}),n=class n extends b{constructor(e){super();this._context=null;this.isNextDrawPending=!1;this.latestCommands=new Uint8Array([]);this.canvas=e,this.doDrawLoop=this.doDraw.bind(this);}get context(){if(!this._context&&(this._context=this.canvas.getContext("2d"),!this._context))throw new TypeError("CanvasRenderingContext cannot be retrieved.");return this._context}draw(e){if(this.latestCommands=e,!this.isCanvasReady()){this.postponeDraw();return}this.isNextDrawPending||(this.isNextDrawPending=!0,requestAnimationFrame(this.doDrawLoop));}updateCanvasSizeAttributes(e,s,t=window.devicePixelRatio){let i=Math.round(e*t),r=Math.round(s*t);(i!==this.canvas.width||r!==this.canvas.height)&&(this.canvas.width=i,this.canvas.height=r,this.context.scale(t,t));}startObservingCanvasResize(){if(!this.resizeObserver){if(!n.ResizeObserver)throw new Error("PrivateCanvasDrawer.ResizeObserver is not set");this.resizeObserver=new n.ResizeObserver(e=>{var r;let[s]=e,{width:t,height:i}=(r=s.contentRect)!=null?r:this.canvas;t===0||i===0||(this.updateCanvasSizeAttributes(t,i),this.latestCommands.length!==0&&(this.draw(this.latestCommands),this.latestCommands=new Uint8Array([])));}),this.resizeObserver.observe(this.canvas);}}endObservingCanvasResize(){this.resizeObserver&&this.resizeObserver.unobserve(this.canvas);}doDraw(){this.context.clearRect(0,0,this.canvas.width,this.canvas.height);let e=new b$1(this.latestCommands);for(;!e.isConsumed();){let s=e.extractCommandType();this.drawSingleCommand(s,e);}this.isNextDrawPending=!1;}postponeDraw(){this.startObservingCanvasResize();}isCanvasReady(){return this.canvas.width>0&&this.canvas.height>0}};n.ResizeObserver="ResizeObserver"in globalThis?globalThis.ResizeObserver:void 0;var h=n;export{d as a,h as b};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as a$2 } from './chunk-EQRBQJYM.js';
|
|
3
|
-
import { a as a$1 } from './chunk-7XQ3GHYH.js';
|
|
4
|
-
import { a as a$3 } from './chunk-XR65N6EG.js';
|
|
5
|
-
|
|
6
|
-
var s=class s{constructor(e){this.canUploadFile=!1;this._mounted=!1;this._loading=!1;this._htmlRoot=void 0;this._canvas=void 0;this._onInputCheck=void 0;this._onBeforeFileRead=void 0;this._onImageLoadError=void 0;this._onFileReaderError=void 0;this._onCaptureReady=void 0;this._resizedImageSizeLimit=1440;this._inputElement=void 0;this._buttonElement=void 0;this._chooseImageText="";this._settings=e;}get canvas(){return this._canvas||(this._canvas=document.createElement("canvas")),this._canvas}get canvasContext(){return this._canvasContext||(this._canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0})),this._canvasContext}mount(e){var E;if(this._mounted)return;if(!document.head.querySelector(`[data-component=${s.componentName}]`)){let o=document.createElement("style");o.dataset.component=s.componentName,o.textContent=c,document.head.append(o);}let t=document.createElement("div");t.className=a.SINGLE_IMAGE_UPLOADER_CONTAINER,Object.assign(t.style,b.SINGLE_IMAGE_UPLOADER_CONTAINER_STYLE,this._settings.containerStyle),e.append(t);let{iconElement:n,iconStyle:d,informationElement:i,informationStyle:u,buttonElement:r,buttonStyle:p,onlyCameraCapture:b$1}=this._settings;Object.assign(n.style,b.SINGLE_IMAGE_UPLOADER_ICON_STYLE,d,{maxWidth:"100px",maxHeight:"100px"}),t.append(n),i.hasAttribute(s.DEFAULT_DOM_ATTRIBUTE)&&(Object.assign(i.style,b.SINGLE_IMAGE_UPLOADER_INFORMATION_STYLE,u),i.textContent=a$1.getInstance().get("core.singleImageUploader.title")),t.append(i);let a$3=document.createElement("input");a$3.type="file",a$3.accept="image/*",b$1&&(a$3.capture="environment",a$3.dataset.onlyCaptureOnMobile="environment"),a$3.addEventListener("change",o=>{this.onFileUpload(o);}),a$3.addEventListener("click",o=>{var l;(l=this._onInputCheck)==null||l.call(this,o);}),a$3.addEventListener("keydown",o=>{var l;(l=this._onInputCheck)==null||l.call(this,o);});let c$1=document.createElement("label");c$1.append(a$3),r.hasAttribute(s.DEFAULT_DOM_ATTRIBUTE)&&(Object.assign(r.style,b.SINGLE_IMAGE_UPLOADER_BUTTON_STYLE,p),r.textContent=a$1.getInstance().get("core.singleImageUploader.button")),c$1.append(r),t.append(c$1);let v=document.createRange().createContextualFragment(atob(a$2)).firstElementChild;Object.assign(v.style,{position:"absolute",bottom:"1em",right:"1em",width:"10em"}),t.append(v),this._htmlRoot=t,this._mounted=!0,this._inputElement=a$3,this._buttonElement=r,this._chooseImageText=(E=r.textContent)!=null?E:"";}unmount(){var e,t;this._mounted&&((e=this._htmlRoot)==null||e.remove(),(t=document.head.querySelector(`[data-component=${s.componentName}]`))==null||t.remove(),this._mounted=!1);}setButtonState(e){this._inputElement&&(this._inputElement.disabled=e==="disabled");}getButtonState(){return this._inputElement?this._inputElement.disabled?"disabled":"enabled":"disabled"}onInputCheck(e){this._onInputCheck=e;}onBeforeFileRead(e){this._onBeforeFileRead=e;}onImageLoadError(e){this._onImageLoadError=e;}onFileReaderError(e){this._onFileReaderError=e;}onCaptureReady(e){this._onCaptureReady=e;}onAfterImageProcessed(){this.setLoading(!1);}setLoading(e){this._buttonElement&&(this.setButtonState(e?"disabled":"enabled"),this._buttonElement.textContent=e?"...":this._chooseImageText,this._loading=e);}getResizedImageDimensions(e,t){return e<=this._resizedImageSizeLimit&&t<=this._resizedImageSizeLimit?{width:e,height:t}:e>t?{width:this._resizedImageSizeLimit,height:Math.round(t/e*this._resizedImageSizeLimit)}:{width:Math.round(e/t*this._resizedImageSizeLimit),height:this._resizedImageSizeLimit}}onImageLoad(e){var i;let{height:t,width:n}=this.getResizedImageDimensions(e.naturalWidth,e.naturalHeight);this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=t,this.canvasContext.drawImage(e,0,0,n,t);let d={data:this.canvasContext.getImageData(0,0,n,t).data,width:n,height:t};(i=this._onCaptureReady)==null||i.call(this,d);}onFileReaderLoad(e,t,n){e.value="",t.result!=null&&(n.addEventListener("load",()=>{this.onImageLoad(n);},{once:!0}),n.addEventListener("error",d=>{var i;(i=this._onImageLoadError)==null||i.call(this,d),this.setLoading(!1);},{once:!0}),n.src=t.result);}onFileUpload(e){var u;this.setLoading(!0);let t=e.currentTarget,{files:n}=t;if(n==null||n.length===0){this.setLoading(!1);return}if((u=this._onBeforeFileRead)==null||u.call(this,e),!this.canUploadFile){t.value="",a$3.log(a$3.Level.Warn,"Can't upload file, no capture mode enabled."),this.setLoading(!1);return}let d=new Image,i=new FileReader;i.addEventListener("load",()=>{this.onFileReaderLoad(t,i,d);}),i.addEventListener("error",r=>{var p;(p=this._onFileReaderError)==null||p.call(this,r),this.setLoading(!1);}),i.readAsDataURL(n[0]);}};s.componentName="SingleImageUploaderView",s.DEFAULT_DOM_ATTRIBUTE="data-scandit-default";var I=s;
|
|
7
|
-
|
|
8
|
-
export { I as a };
|
|
1
|
+
import {c,a,b}from'./chunk-JFRSUCMO.js';import {a as a$2}from'./chunk-EQRBQJYM.js';import {a as a$1}from'./chunk-7XQ3GHYH.js';import {a as a$3}from'./chunk-XR65N6EG.js';var s=class s{constructor(e){this.canUploadFile=!1;this._mounted=!1;this._loading=!1;this._htmlRoot=void 0;this._canvas=void 0;this._onInputCheck=void 0;this._onBeforeFileRead=void 0;this._onImageLoadError=void 0;this._onFileReaderError=void 0;this._onCaptureReady=void 0;this._resizedImageSizeLimit=1440;this._inputElement=void 0;this._buttonElement=void 0;this._chooseImageText="";this._settings=e;}get canvas(){return this._canvas||(this._canvas=document.createElement("canvas")),this._canvas}get canvasContext(){return this._canvasContext||(this._canvasContext=this.canvas.getContext("2d",{willReadFrequently:!0})),this._canvasContext}mount(e){var E;if(this._mounted)return;if(!document.head.querySelector(`[data-component=${s.componentName}]`)){let o=document.createElement("style");o.dataset.component=s.componentName,o.textContent=c,document.head.append(o);}let t=document.createElement("div");t.className=a.SINGLE_IMAGE_UPLOADER_CONTAINER,Object.assign(t.style,b.SINGLE_IMAGE_UPLOADER_CONTAINER_STYLE,this._settings.containerStyle),e.append(t);let{iconElement:n,iconStyle:d,informationElement:i,informationStyle:u,buttonElement:r,buttonStyle:p,onlyCameraCapture:b$1}=this._settings;Object.assign(n.style,b.SINGLE_IMAGE_UPLOADER_ICON_STYLE,d,{maxWidth:"100px",maxHeight:"100px"}),t.append(n),i.hasAttribute(s.DEFAULT_DOM_ATTRIBUTE)&&(Object.assign(i.style,b.SINGLE_IMAGE_UPLOADER_INFORMATION_STYLE,u),i.textContent=a$1.getInstance().get("core.singleImageUploader.title")),t.append(i);let a$3=document.createElement("input");a$3.type="file",a$3.accept="image/*",b$1&&(a$3.capture="environment",a$3.dataset.onlyCaptureOnMobile="environment"),a$3.addEventListener("change",o=>{this.onFileUpload(o);}),a$3.addEventListener("click",o=>{var l;(l=this._onInputCheck)==null||l.call(this,o);}),a$3.addEventListener("keydown",o=>{var l;(l=this._onInputCheck)==null||l.call(this,o);});let c$1=document.createElement("label");c$1.append(a$3),r.hasAttribute(s.DEFAULT_DOM_ATTRIBUTE)&&(Object.assign(r.style,b.SINGLE_IMAGE_UPLOADER_BUTTON_STYLE,p),r.textContent=a$1.getInstance().get("core.singleImageUploader.button")),c$1.append(r),t.append(c$1);let v=document.createRange().createContextualFragment(atob(a$2)).firstElementChild;Object.assign(v.style,{position:"absolute",bottom:"1em",right:"1em",width:"10em"}),t.append(v),this._htmlRoot=t,this._mounted=!0,this._inputElement=a$3,this._buttonElement=r,this._chooseImageText=(E=r.textContent)!=null?E:"";}unmount(){var e,t;this._mounted&&((e=this._htmlRoot)==null||e.remove(),(t=document.head.querySelector(`[data-component=${s.componentName}]`))==null||t.remove(),this._mounted=!1);}setButtonState(e){this._inputElement&&(this._inputElement.disabled=e==="disabled");}getButtonState(){return this._inputElement?this._inputElement.disabled?"disabled":"enabled":"disabled"}onInputCheck(e){this._onInputCheck=e;}onBeforeFileRead(e){this._onBeforeFileRead=e;}onImageLoadError(e){this._onImageLoadError=e;}onFileReaderError(e){this._onFileReaderError=e;}onCaptureReady(e){this._onCaptureReady=e;}onAfterImageProcessed(){this.setLoading(!1);}setLoading(e){this._buttonElement&&(this.setButtonState(e?"disabled":"enabled"),this._buttonElement.textContent=e?"...":this._chooseImageText,this._loading=e);}getResizedImageDimensions(e,t){return e<=this._resizedImageSizeLimit&&t<=this._resizedImageSizeLimit?{width:e,height:t}:e>t?{width:this._resizedImageSizeLimit,height:Math.round(t/e*this._resizedImageSizeLimit)}:{width:Math.round(e/t*this._resizedImageSizeLimit),height:this._resizedImageSizeLimit}}onImageLoad(e){var i;let{height:t,width:n}=this.getResizedImageDimensions(e.naturalWidth,e.naturalHeight);this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=t,this.canvasContext.drawImage(e,0,0,n,t);let d={data:this.canvasContext.getImageData(0,0,n,t).data,width:n,height:t};(i=this._onCaptureReady)==null||i.call(this,d);}onFileReaderLoad(e,t,n){e.value="",t.result!=null&&(n.addEventListener("load",()=>{this.onImageLoad(n);},{once:!0}),n.addEventListener("error",d=>{var i;(i=this._onImageLoadError)==null||i.call(this,d),this.setLoading(!1);},{once:!0}),n.src=t.result);}onFileUpload(e){var u;this.setLoading(!0);let t=e.currentTarget,{files:n}=t;if(n==null||n.length===0){this.setLoading(!1);return}if((u=this._onBeforeFileRead)==null||u.call(this,e),!this.canUploadFile){t.value="",a$3.log(a$3.Level.Warn,"Can't upload file, no capture mode enabled."),this.setLoading(!1);return}let d=new Image,i=new FileReader;i.addEventListener("load",()=>{this.onFileReaderLoad(t,i,d);}),i.addEventListener("error",r=>{var p;(p=this._onFileReaderError)==null||p.call(this,r),this.setLoading(!1);}),i.readAsDataURL(n[0]);}};s.componentName="SingleImageUploaderView",s.DEFAULT_DOM_ATTRIBUTE="data-scandit-default";var I=s;export{I as a};
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as a$6 } from './chunk-7XQ3GHYH.js';
|
|
3
|
-
import { a as a$3 } from './chunk-3A4KLILV.js';
|
|
4
|
-
import { a as a$2 } from './chunk-U6BTTEV6.js';
|
|
5
|
-
import { a as a$1 } from './chunk-EV4OEANA.js';
|
|
6
|
-
import { a as a$4 } from './chunk-GE4CBD4E.js';
|
|
7
|
-
|
|
8
|
-
var d="scandit-loading-overlay",t=class t extends a$1{constructor(){super();this._progressBar=null;this._label=null;let e=this.attachShadow({mode:"open"});e.innerHTML=a$2`
|
|
1
|
+
import {a as a$5}from'./chunk-FTMRPIKJ.js';import {a as a$6}from'./chunk-7XQ3GHYH.js';import {a as a$3}from'./chunk-3A4KLILV.js';import {a as a$2}from'./chunk-U6BTTEV6.js';import {a as a$1}from'./chunk-EV4OEANA.js';import {a as a$4}from'./chunk-GE4CBD4E.js';var d="scandit-loading-overlay",t=class t extends a$1{constructor(){super();this._progressBar=null;this._label=null;let e=this.attachShadow({mode:"open"});e.innerHTML=a$2`
|
|
9
2
|
<div class="loading-overlay">
|
|
10
3
|
<label for="scandit-progress" class="message">Loading...</label>
|
|
11
4
|
<scandit-progress-bar id="scandit-progress" min="0" max="100"></scandit-progress-bar>
|
|
12
5
|
</div>
|
|
13
|
-
`,e.append(t.createStyleElement().cloneNode(!0));}set progress(e){this._progressBar&&(this._progressBar.value=e);}set message(e){this._label&&(this._label.textContent=e);}get message(){var e,r;return (r=(e=this._label)==null?void 0:e.textContent)!=null?r:""}static create(){return document.createElement(t.tag)}static register(){a$3({[d]:t});}static createStyleElement(){return a$4`@media (prefers-color-scheme:dark){.loading-overlay{--foreground-color:#fff;--background-color:#000}}@media (prefers-color-scheme:light){.loading-overlay{--foreground-color:#000;--background-color:#fff}}${a$5.tag}{max-width:15rem}.loading-overlay{align-items:center;background-color:var(--background-color);display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;width:100%;z-index:1}:host([hidden]){display:none}.loading-overlay .message{color:var(--foreground-color);font-family:Open Sans,sans-serif;margin-bottom:1rem;text-align:center}`}connectedCallback(){var e,r;this._progressBar=(e=this.shadowRoot)==null?void 0:e.querySelector(a$5.tag),this._label=(r=this.shadowRoot)==null?void 0:r.querySelector("label"),this.message=a$6.getInstance().get("core.view.loading");}show(){this.removeAttribute("hidden");}hide(){this.setAttribute("hidden","");}};t.tag=d;var a=t;a.register();
|
|
14
|
-
|
|
15
|
-
export { a };
|
|
6
|
+
`,e.append(t.createStyleElement().cloneNode(!0));}set progress(e){this._progressBar&&(this._progressBar.value=e);}set message(e){this._label&&(this._label.textContent=e);}get message(){var e,r;return (r=(e=this._label)==null?void 0:e.textContent)!=null?r:""}static create(){return document.createElement(t.tag)}static register(){a$3({[d]:t});}static createStyleElement(){return a$4`@media (prefers-color-scheme:dark){.loading-overlay{--foreground-color:#fff;--background-color:#000}}@media (prefers-color-scheme:light){.loading-overlay{--foreground-color:#000;--background-color:#fff}}${a$5.tag}{max-width:15rem}.loading-overlay{align-items:center;background-color:var(--background-color);display:flex;flex-direction:column;height:100%;justify-content:center;position:absolute;width:100%;z-index:1}:host([hidden]){display:none}.loading-overlay .message{color:var(--foreground-color);font-family:Open Sans,sans-serif;margin-bottom:1rem;text-align:center}`}connectedCallback(){var e,r;this._progressBar=(e=this.shadowRoot)==null?void 0:e.querySelector(a$5.tag),this._label=(r=this.shadowRoot)==null?void 0:r.querySelector("label"),this.message=a$6.getInstance().get("core.view.loading");}show(){this.removeAttribute("hidden");}hide(){this.setAttribute("hidden","");}};t.tag=d;var a=t;a.register();export{a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-XR65N6EG.js';var n=class{constructor(e){this.overrideThreadsSupport="auto";this.overrideSimdSupport="auto";this.workerCommandId=1;this.workerTasks=new Map;this.workerListeners=[];var r;this.libraryLocation=e.libraryLocation,this.workerMessageListener=this.onWorkerMessage.bind(this),this.dataCaptureWorker.addEventListener("message",this.workerMessageListener),this.overrideThreadsSupport=e.overrideThreadsSupport,this.overrideSimdSupport=e.overrideSimdSupport,this.verifyResponseHash=e.verifyResponseHash,this.highEndBlurryRecognition=(r=e.highEndBlurryRecognition)!=null?r:!1,typeof e.loadProgressNotifier=="function"&&this.addWorkerListener(a=>{var o;a.type==="loadLibraryProgress"&&((o=e.loadProgressNotifier)==null||o.call(e,a.payload));});}get dataCaptureWorker(){return (this._dataCaptureWorker)!=null||(this._dataCaptureWorker=(void 0)),this._dataCaptureWorker}get name(){return "CoreLoader"}get fixedWasmMemory(){return null}static async create(e){var a$1;let r=new this(e);return await r.workerCommand("setLogLevel",{level:(a$1=e.logLevel)!=null?a$1:a.Level.Debug}),await r.load(),r}async load(){var e;try{await this.workerCommand("loadLibrary",{libraryLocation:this.libraryLocation,locationPath:window.location.pathname,referredOrigin:window.location.origin,writableDataPathOverride:(e=localStorage.getItem("scanditWritableDataPathOverride"))!=null?e:void 0,overrideThreadsSupport:this.overrideThreadsSupport,overrideSimdSupport:this.overrideSimdSupport,verifyResponseHash:this.verifyResponseHash,fixedWasmMemory:this.fixedWasmMemory});}catch(r){if(r!=null&&typeof r=="object"&&typeof r.error=="string"&&r.error.includes("BlockedIndexedDB"))return await this.terminateDataCaptureWorker(!1),this.dataCaptureWorker.addEventListener("message",this.workerMessageListener),localStorage.setItem("scanditWritableDataPathOverride",`/scandit_sync_folder_${[...crypto.getRandomValues(new Uint32Array(2))].map(a=>a.toString(32)).join("")}`),this.load();throw r}}async workerCommand(e,r,a){return new Promise((o,i)=>{let t=this.workerCommandId++;this.workerTasks.set(t,{resolve:o,reject:i,command:e});let d={...r,command:e,id:t};this.dataCaptureWorker.postMessage(d,a);})}async terminateDataCaptureWorker(e=!0){var r,a;e&&await this.workerCommand("dispose",{}),(r=this._dataCaptureWorker)==null||r.removeEventListener("message",this.workerMessageListener),(a=this._dataCaptureWorker)==null||a.terminate(),this._dataCaptureWorker=void 0;}addWorkerListener(e){this.workerListeners.push(e);}removeWorkerListener(e){this.workerListeners.includes(e)&&this.workerListeners.splice(this.workerListeners.indexOf(e),1);}getOptions(){return {libraryLocation:this.libraryLocation,overrideThreadsSupport:this.overrideThreadsSupport,overrideSimdSupport:this.overrideSimdSupport,verifyResponseHash:this.verifyResponseHash}}onWorkerMessage(e){let r=e.data;if(r.type==="workerTaskId"&&typeof r.id=="number"){let{id:a,error:o,payload:i}=r,t=this.workerTasks.get(a);o==null?t==null||t.resolve(i):t==null||t.reject(r),this.workerTasks.delete(a);}else for(let a of this.workerListeners)a(r);}};export{n as a};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { a } from
|
|
2
|
-
import { a as a$1 } from './chunk-3A4KLILV.js';
|
|
3
|
-
import { a as a$2 } from './chunk-U6BTTEV6.js';
|
|
4
|
-
|
|
5
|
-
var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
1
|
+
import {a}from'./chunk-MAMZS5CH.js';import {a as a$1}from'./chunk-3A4KLILV.js';import {a as a$2}from'./chunk-U6BTTEV6.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
6
2
|
<style>
|
|
7
3
|
${e.tag} {
|
|
8
4
|
display: flex;
|
|
@@ -16,6 +12,4 @@ var e=class e extends a{static create(){return document.createElement(e.tag)}sta
|
|
|
16
12
|
fill="${this.fill}"
|
|
17
13
|
/>
|
|
18
14
|
</svg>
|
|
19
|
-
`}};e.tag="scandit-rounded-exclamation-mark-icon";var t=e;t.register();
|
|
20
|
-
|
|
21
|
-
export { t as a };
|
|
15
|
+
`}};e.tag="scandit-rounded-exclamation-mark-icon";var t=e;t.register();export{t as a};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
var r=(e=>(e.Blob="blob",e.MediaDevices="mediaDevices",e.OffscreenCanvas="offscreenCanvas",e.HttpProtocol="httpProtocol",e.SecureContext="secureContext",e.UrlObject="urlObject",e.WebWorkers="webWorkers",e.WebAssembly="webAssembly",e.WebAssemblyErrorFree="webAssemblyErrorFree",e.WebGL="webGL",e.SharedArrayBuffer="sharedArrayBuffer",e.CrossOriginIsolated="crossOriginIsolated",e))(r||{});
|
|
2
|
-
|
|
3
|
-
export { r as a };
|
|
1
|
+
var r=(e=>(e.Blob="blob",e.MediaDevices="mediaDevices",e.OffscreenCanvas="offscreenCanvas",e.HttpProtocol="httpProtocol",e.SecureContext="secureContext",e.UrlObject="urlObject",e.WebWorkers="webWorkers",e.WebAssembly="webAssembly",e.WebAssemblyErrorFree="webAssemblyErrorFree",e.WebGL="webGL",e.SharedArrayBuffer="sharedArrayBuffer",e.CrossOriginIsolated="crossOriginIsolated",e))(r||{});export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-7JX43F4O.js';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;}};export{a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
var a="orientationchange",n={"portrait-primary":{type:"portrait-primary",angle:0,value:"portrait"},"portrait-secondary":{type:"portrait-secondary",angle:180,value:"portraitUpsideDown"},"landscape-primary":{type:"landscape-primary",angle:90,value:"landscapeLeft"},"landscape-secondary":{type:"landscape-secondary",angle:270,value:"landscapeRight"}},t=class extends EventTarget{constructor(){super(...arguments);this.orientation={value:"portrait",type:"portrait-primary",angle:0};this.landscapeOrientationMediaQuery=matchMedia("(orientation: landscape)");this.screenOrientationChangeListener=this.onScreenOrientationChange.bind(this);this.landscapeOrientationMediaQueryChangeListener=this.onLandscapeOrientationMediaQueryChange.bind(this);}register(){this.isScreenOrientationApiSupported()?(screen.orientation.addEventListener("change",this.screenOrientationChangeListener),this.onScreenOrientationChange()):(this.landscapeOrientationMediaQuery.addEventListener("change",this.landscapeOrientationMediaQueryChangeListener),this.onLandscapeOrientationMediaQueryChange(new MediaQueryListEvent("change",{matches:this.landscapeOrientationMediaQuery.matches})));}unregister(){this.isScreenOrientationApiSupported()?screen.orientation.removeEventListener("change",this.screenOrientationChangeListener):this.landscapeOrientationMediaQuery.removeEventListener("change",this.landscapeOrientationMediaQueryChangeListener);}isScreenOrientationApiSupported(){return "screen"in window&&"orientation"in screen&&typeof screen.orientation.addEventListener=="function"}dispatchOrientationChangeEvent(e){this.dispatchEvent(new CustomEvent(a,{detail:e}));}onScreenOrientationChange(){this.orientation=n[screen.orientation.type],this.dispatchOrientationChangeEvent(this.orientation);}onLandscapeOrientationMediaQueryChange(e){let i=e;this.orientation=i.matches?n["landscape-primary"]:n["portrait-primary"],this.dispatchOrientationChangeEvent(this.orientation);}};
|
|
2
|
-
|
|
3
|
-
export { a, t as b };
|
|
1
|
+
var a="orientationchange",n={"portrait-primary":{type:"portrait-primary",angle:0,value:"portrait"},"portrait-secondary":{type:"portrait-secondary",angle:180,value:"portraitUpsideDown"},"landscape-primary":{type:"landscape-primary",angle:90,value:"landscapeLeft"},"landscape-secondary":{type:"landscape-secondary",angle:270,value:"landscapeRight"}},t=class extends EventTarget{constructor(){super(...arguments);this.orientation={value:"portrait",type:"portrait-primary",angle:0};this.landscapeOrientationMediaQuery=matchMedia("(orientation: landscape)");this.screenOrientationChangeListener=this.onScreenOrientationChange.bind(this);this.landscapeOrientationMediaQueryChangeListener=this.onLandscapeOrientationMediaQueryChange.bind(this);}register(){this.isScreenOrientationApiSupported()?(screen.orientation.addEventListener("change",this.screenOrientationChangeListener),this.onScreenOrientationChange()):(this.landscapeOrientationMediaQuery.addEventListener("change",this.landscapeOrientationMediaQueryChangeListener),this.onLandscapeOrientationMediaQueryChange(new MediaQueryListEvent("change",{matches:this.landscapeOrientationMediaQuery.matches})));}unregister(){this.isScreenOrientationApiSupported()?screen.orientation.removeEventListener("change",this.screenOrientationChangeListener):this.landscapeOrientationMediaQuery.removeEventListener("change",this.landscapeOrientationMediaQueryChangeListener);}isScreenOrientationApiSupported(){return "screen"in window&&"orientation"in screen&&typeof screen.orientation.addEventListener=="function"}dispatchOrientationChangeEvent(e){this.dispatchEvent(new CustomEvent(a,{detail:e}));}onScreenOrientationChange(){this.orientation=n[screen.orientation.type],this.dispatchOrientationChangeEvent(this.orientation);}onLandscapeOrientationMediaQueryChange(e){let i=e;this.orientation=i.matches?n["landscape-primary"]:n["portrait-primary"],this.dispatchOrientationChangeEvent(this.orientation);}};export{a,t as b};
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
var i;(m=>{async function n(o,t){return d.getCameras(o!=null?o:!1,t!=null?t:!1)}m.getCameras=n;})(i||(i={}));
|
|
4
|
-
|
|
5
|
-
export { i as a };
|
|
1
|
+
import {d}from'./chunk-BIGR7VVJ.js';var i;(m=>{async function n(o,t){return d.getCameras(o!=null?o:!1,t!=null?t:!1)}m.getCameras=n;})(i||(i={}));export{i as a};
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
var r=class{constructor(){this.subscribers=new Set;}subscribe(s){this.subscribers.add(s);}unsubscribe(s){this.subscribers.has(s)&&this.subscribers.delete(s);}notify(s){for(let e of this.subscribers)e(s);}},i=new r,b=i;
|
|
2
|
-
|
|
3
|
-
export { r as a, b };
|
|
1
|
+
var r=class{constructor(){this.subscribers=new Set;}subscribe(s){this.subscribers.add(s);}unsubscribe(s){this.subscribers.has(s)&&this.subscribers.delete(s);}notify(s){for(let e of this.subscribers)e(s);}},i=new r,b=i;export{r as a,b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b,a as a$1}from'./chunk-LDJ53PEJ.js';var a=class m extends b{constructor(r,n,i,e,t,h,p,s,c){super(r,n,i,e),this._centerLeft=t,this._topCenter=h,this._centerRight=p,this._bottomCenter=s,this._center=c;}get centerRight(){return this._centerRight}get center(){return this._center}get centerLeft(){return this._centerLeft}get topCenter(){return this._topCenter}get bottomCenter(){return this._bottomCenter}static fromJSON(r){let{topLeft:n,topRight:i,bottomRight:e,bottomLeft:t,centerLeft:h,topCenter:p,centerRight:s,bottomCenter:c,center:P}=r,b=a$1.fromJSON(n),O=a$1.fromJSON(i),l=a$1.fromJSON(e),y=a$1.fromJSON(t),S=a$1.fromJSON(h),x=a$1.fromJSON(p),J=a$1.fromJSON(s),N=a$1.fromJSON(c),g=a$1.fromJSON(P);return new m(b,O,l,y,S,x,J,N,g)}toJSONObject(){return {...super.toJSONObject(),center:this._center.toJSONObject(),bottomCenter:this._bottomCenter.toJSONObject(),topCenter:this._topCenter.toJSONObject(),centerLeft:this._centerLeft.toJSONObject(),centerRight:this._centerRight.toJSONObject()}}orderVerticesByPosition(){let r=[[this.topLeft,this.topRight],[this.topRight,this.bottomRight],[this.bottomRight,this.bottomLeft],[this.bottomLeft,this.topLeft]],n=r.reduce((s,c)=>{let P=new a$1((s[0].x+s[1].x)/2,(s[0].y+s[1].y)/2),b=new a$1((c[0].x+c[1].x)/2,(c[0].y+c[1].y)/2);return P.y<b.y?s:c},r[0]),i=n[0].x<=n[1].x?n[0]:n[1],e=n[0].x>n[1].x?n[0]:n[1],t=[this.topLeft,this.topRight,this.bottomLeft,this.bottomRight].filter(s=>!s.equals(i)&&!s.equals(e)),h=new m(i,e,t[0],t[1],new a$1((i.x+t[1].x)/2,(i.y+t[1].y)/2),new a$1((i.x+e.x)/2,(i.y+e.y)/2),new a$1((e.x+t[0].x)/2,(e.y+t[0].y)/2),new a$1((t[1].x+t[0].x)/2,(t[1].y+t[0].y)/2),this.center),p=new m(i,e,t[1],t[0],new a$1((i.x+t[0].x)/2,(i.y+t[0].y)/2),new a$1((i.x+e.x)/2,(i.y+e.y)/2),new a$1((e.x+t[1].x)/2,(e.y+t[1].y)/2),new a$1((t[0].x+t[1].x)/2,(t[0].y+t[1].y)/2),this.center);return this.getArea(h)>=this.getArea(p)?h:p}getArea(r){let n=[r.topLeft,r.topRight,r.bottomRight,r.bottomLeft,r.topLeft],i=0;for(let e=0;e<n.length-1;e++)i+=n[e].x*n[e+1].y-n[e+1].x*n[e].y;return Math.abs(i)/2}};export{a};
|