@scandit/web-datacapture-core 7.0.0-beta.1 → 7.0.0-beta.2
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/{Camera-Cxbduq94.d.ts → Camera-SnHjQ2_l.d.ts} +1 -1
- 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/DataCaptureContext.d.ts +1 -1
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +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/Defaults.d.ts +1 -1
- package/build/js/FrameData.d.ts +1 -1
- package/build/js/ImageFrameSource.d.ts +1 -1
- package/build/js/ImageFrameSource.js +1 -1
- package/build/js/SingleImageUploader.d.ts +1 -1
- package/build/js/chunks/{chunk-HNFNB37O.js → chunk-2WN7BGOB.js} +2 -2
- package/build/js/chunks/{chunk-ZTM7LWVE.js → chunk-2XZA2MFA.js} +2 -2
- package/build/js/chunks/{chunk-EYIDRFHC.js → chunk-34FEFSCI.js} +1 -1
- package/build/js/chunks/{chunk-CREAZBG7.js → chunk-3TNNUKVW.js} +1 -1
- package/build/js/chunks/{chunk-HZY2EBWP.js → chunk-46WJFV3I.js} +1 -1
- package/build/js/chunks/{chunk-SJE4IFCX.js → chunk-4MKLNRV3.js} +3 -3
- package/build/js/chunks/{chunk-2NZR6P45.js → chunk-7DHCGO5J.js} +6 -6
- package/build/js/chunks/chunk-A2ODHD2G.js +3 -0
- package/build/js/chunks/{chunk-J25IZC7J.js → chunk-B5JOQVFY.js} +1 -1
- package/build/js/chunks/{chunk-QR4TEDGM.js → chunk-DMOXDUF6.js} +1 -1
- package/build/js/chunks/{chunk-EC4DRTKR.js → chunk-G4BOCIEZ.js} +1 -1
- package/build/js/chunks/chunk-KCNXUTBL.js +7 -0
- package/build/js/chunks/{chunk-HRS63RFH.js → chunk-LGPSMEF2.js} +7 -7
- package/build/js/chunks/{chunk-7NUUZ7LP.js → chunk-MM6VVG46.js} +1 -1
- package/build/js/chunks/{chunk-DEQ72K2Q.js → chunk-MOF3P7VK.js} +1 -1
- package/build/js/chunks/{chunk-EMHHC6NB.js → chunk-NMROJLGQ.js} +1 -1
- package/build/js/chunks/{chunk-CQ5KZRRX.js → chunk-OX52WM5R.js} +4 -4
- package/build/js/chunks/{chunk-VRVSELOR.js → chunk-Q7NDC6TJ.js} +1 -1
- package/build/js/chunks/{chunk-SZ672BOB.js → chunk-SK6L34IF.js} +1 -1
- package/build/js/chunks/{chunk-BKSPXD6N.js → chunk-SXOL25UA.js} +1 -1
- package/build/js/chunks/{chunk-6XT4BUUR.js → chunk-XM4ZH4L3.js} +3 -3
- package/build/js/chunks/chunk-XR65N6EG.js +3 -0
- package/build/js/chunks/{chunk-D4YDSS77.js → chunk-YGFWA4WG.js} +2 -2
- package/build/js/chunks/{chunk-IZLMNXTH.js → chunk-YGNHN5OT.js} +1 -1
- package/build/js/chunks/{chunk-OTI45AJG.js → chunk-ZR62555L.js} +4 -4
- package/build/js/index.d.ts +2 -2
- package/build/js/index.js +14 -14
- package/build/js/logger.d.ts +5 -1
- package/build/js/logger.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/CanvasDrawerWithMetrics.d.ts +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.js +1 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +4 -2
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +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/GrayScaleFrameReader.d.ts +1 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +1 -1
- package/build/js/private/FrameReaders/index.js +2 -2
- package/build/js/private/FrameReaders/webglUtilities.js +1 -1
- package/build/js/private/NormalizedConfigureOptions.d.ts +1 -1
- package/build/js/private/SingleImageUploaderView.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/ViewsRegistry.d.ts +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +1 -1
- package/build/js/private/utils/index.js +1 -1
- package/build/js/sdk.d.ts +2 -1
- package/build/js/sdk.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/helper.js +1 -1
- package/build/js/worker/helperFetch.js +1 -1
- 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 +3 -3
- package/package.json +1 -1
- package/sdc-lib/license/web-core-license.txt +27 -0
- package/build/js/chunks/chunk-D2EQRTOA.js +0 -6
- package/build/js/chunks/chunk-SP3HSP4K.js +0 -3
- package/build/js/chunks/chunk-YRSVOTNR.js +0 -3
|
@@ -1697,4 +1697,4 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
|
|
|
1697
1697
|
private isZoomAvailable;
|
|
1698
1698
|
}
|
|
1699
1699
|
|
|
1700
|
-
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,
|
|
1700
|
+
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, DataCaptureEngine as S, TorchState as T, type Module as U, VideoResolution as V, type PerformanceMetrics as W, type GenericHint as X, type DataCaptureCallbackMessage 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 FrameCapture as bj, FrameReader as bk, CameraPosition$1 as bl, CameraResolutionConstraint$1 as bm, AspectRatio as bn, type DeviceCamera$1 as bo, CameraAccess$1 as bp, MeteringMode as bq, CameraResolutionConstraint as br, type ExtendedMediaTrackCapabilities as bs, type ExtendedMediaTrackConstraintSet as bt, type GUI as bu, CameraManagerEvent as bv, type CameraManagerEventParameters as bw, CameraManager as bx, 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-SnHjQ2_l.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 { a as Camera } from './chunks/chunk-
|
|
1
|
+
export { a as Camera } from './chunks/chunk-4MKLNRV3.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-SnHjQ2_l.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 { a as CameraAccess } from './chunks/chunk-
|
|
1
|
+
export { a as CameraAccess } from './chunks/chunk-MM6VVG46.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-SnHjQ2_l.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import './tsHelper.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-SnHjQ2_l.js';
|
|
3
3
|
import './Common.js';
|
|
4
4
|
import './DataCaptureContextSettings.js';
|
|
5
5
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as DataCaptureContext } from './chunks/chunk-
|
|
1
|
+
export { a as DataCaptureContext } from './chunks/chunk-OX52WM5R.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-SnHjQ2_l.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import './tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as DataCaptureVersion } from './chunks/chunk-
|
|
1
|
+
export { a as DataCaptureVersion } from './chunks/chunk-A2ODHD2G.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-SnHjQ2_l.js';
|
|
4
4
|
import './DataCaptureViewPlusRelated.js';
|
|
5
5
|
import './ViewControls.js';
|
|
6
6
|
import './private/CustomLocationsView.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as DataCaptureView } from './chunks/chunk-
|
|
1
|
+
export { a as DataCaptureView } from './chunks/chunk-LGPSMEF2.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-SnHjQ2_l.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/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-SnHjQ2_l.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import './tsHelper.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-SnHjQ2_l.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 { a as ImageFrameSource } from './chunks/chunk-
|
|
1
|
+
export { a as ImageFrameSource } from './chunks/chunk-Q7NDC6TJ.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-SnHjQ2_l.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,5 +1,5 @@
|
|
|
1
|
-
import { f } from './chunk-
|
|
2
|
-
import { a } from './chunk-
|
|
1
|
+
import { f } from './chunk-B5JOQVFY.js';
|
|
2
|
+
import { a } from './chunk-XR65N6EG.js';
|
|
3
3
|
|
|
4
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
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-7DHCGO5J.js';
|
|
2
2
|
import { b } from './chunk-FTD535WI.js';
|
|
3
3
|
import { a as a$4 } from './chunk-AIRWHLJH.js';
|
|
4
4
|
import { a as a$3 } from './chunk-FGO2SSRS.js';
|
|
5
5
|
import { a as a$1 } from './chunk-QCRFVRSS.js';
|
|
6
|
-
import { a as a$2 } from './chunk-
|
|
6
|
+
import { a as a$2 } from './chunk-XR65N6EG.js';
|
|
7
7
|
|
|
8
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
9
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-XR65N6EG.js';
|
|
2
2
|
import { a as a$1 } from './chunk-QCZSSQAQ.js';
|
|
3
3
|
|
|
4
4
|
var y=Promise.resolve(),p=!1,h=!1,d,b={writableDataPathPreload:"",writableDataPath:"",preloading:!1};async function T(){let t="FILE_DATA",o,s,e,r,a$2;function n(){clearTimeout(a$2),e.result.close(),r.result.close(),o(0);}function I(){try{let l=[],f=e.result.transaction(t,"readonly");f.addEventListener("error",n),f.addEventListener("abort",n);let m=f.objectStore(t).openCursor();m.onsuccess=()=>{let i=m.result;if(i==null)try{let c=0,u=r.result.transaction(t,"readwrite"),P=u.objectStore(t);u.addEventListener("error",n),u.addEventListener("abort",n),u.oncomplete=()=>{clearTimeout(a$2),e.result.close(),r.result.close(),o(c);};for(let D of l){let g=P.count(D.primaryKey);g.onsuccess=()=>{g.result===0&&(++c,P.add(D.value,D.primaryKey));},clearTimeout(a$2),a$2=globalThis.setTimeout(()=>{a.log(a.Level.Warn,"IndexedDB database is blocked! Resetting Scandit Data Capture library..."),s(new a$1({name:"BlockedIndexedDB",message:"IndexedDB database is blocked"}));},500);}}catch(c){n.call({error:c});}else {let{writableDataPathPreload:c,writableDataPath:u}=b;l.push({value:i.value,primaryKey:i.primaryKey.toString().replace(`${c}/`,`${u}/`)}),i.continue();}},m.onerror=n;}catch(l){n.call({error:l});}}return new Promise((l,f)=>{let{writableDataPathPreload:m,writableDataPath:i}=b;o=l,s=f,e=indexedDB.open(m),e.onupgradeneeded=()=>{try{e.result.createObjectStore(t);}catch(c){}},e.onsuccess=()=>{if(!Array.from(e.result.objectStoreNames).includes(t)){l(0);return}r=indexedDB.open(i),r.onupgradeneeded=()=>{try{r.result.createObjectStore(t);}catch(c){}},r.onsuccess=()=>{I();},r.onblocked=r.onerror=n;},e.onblocked=e.onerror=n;})}async function B(t,o){let{preloading:s}=b;if(d!=null){if(p=!0,!s&&t){let e=await T();if(!o&&e===0){p=!1;return}}await new Promise((e,r)=>{d==null||d(t,a=>{if(p=!1,a!=null){r(a);return}e();});});}}async function w(t,o=!1,s=!1){return (!h||s)&&(p?(h=!0,y=y.then(async()=>(h=!1,B(t,o)))):y=B(t,o)),y}async function O(t){b=t,d=FS.syncfs,FS.syncfs=(o,s)=>{let e=s,r=a=>{e(a);};w(o).then(r).catch(r);};try{FS.mkdir(b.writableDataPath);}catch(o){if(o.code!=="EEXIST")throw d=void 0,o}return FS.mount(IDBFS,{},b.writableDataPath),w(!0,!0)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-XR65N6EG.js';
|
|
2
2
|
|
|
3
3
|
var n=class{constructor(e){this.overrideThreadsSupport="auto";this.overrideSimdSupport="auto";this.workerCommandId=1;this.workerTasks=new Map;this.workerListeners=[];var r,a;this.libraryLocation=e.libraryLocation,this.isPreloadEngine=(r=e.preloadEngine)!=null?r:!1,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=(a=e.highEndBlurryRecognition)!=null?a:!1,typeof e.loadProgressNotifier=="function"&&this.addWorkerListener(o=>{var i;o.type==="loadLibraryProgress"&&((i=e.loadProgressNotifier)==null||i.call(e,o.payload));});}get dataCaptureWorker(){return (this._dataCaptureWorker)!=null||(this._dataCaptureWorker=(void 0)),this._dataCaptureWorker}get name(){return "CoreLoader"}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,preloadEngine:this.isPreloadEngine,writableDataPathOverride:(e=localStorage.getItem("scanditWritableDataPathOverride"))!=null?e:void 0,overrideThreadsSupport:this.overrideThreadsSupport,overrideSimdSupport:this.overrideSimdSupport,verifyResponseHash:this.verifyResponseHash});}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);}};
|
|
4
4
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c, a, b } from './chunk-JFRSUCMO.js';
|
|
2
2
|
import { a as a$2 } from './chunk-EQRBQJYM.js';
|
|
3
3
|
import { a as a$1 } from './chunk-7XQ3GHYH.js';
|
|
4
|
-
import { a as a$3 } from './chunk-
|
|
4
|
+
import { a as a$3 } from './chunk-XR65N6EG.js';
|
|
5
5
|
|
|
6
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
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-
|
|
2
|
-
import { d } from './chunk-
|
|
3
|
-
import { a } from './chunk-
|
|
1
|
+
import { a as a$1 } from './chunk-MM6VVG46.js';
|
|
2
|
+
import { d } from './chunk-ZR62555L.js';
|
|
3
|
+
import { a } from './chunk-XR65N6EG.js';
|
|
4
4
|
import { a as a$2 } from './chunk-4FJRDG6T.js';
|
|
5
5
|
import { g as g$1 } from './chunk-W7LJM2QO.js';
|
|
6
6
|
import { d as d$1 } from './chunk-UPUPKPEP.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as a$4 } from './chunk-EYIDRFHC.js';
|
|
2
|
-
import { a as a$5 } from './chunk-D4YDSS77.js';
|
|
3
|
-
import { c as c$1, a as a$6 } from './chunk-HNFNB37O.js';
|
|
4
|
-
import { c } from './chunk-J25IZC7J.js';
|
|
5
1
|
import { d } from './chunk-RQQK6Z5F.js';
|
|
6
|
-
import { a as a$
|
|
2
|
+
import { a as a$4 } from './chunk-34FEFSCI.js';
|
|
3
|
+
import { a as a$5 } from './chunk-YGFWA4WG.js';
|
|
4
|
+
import { c as c$1, a as a$6 } from './chunk-2WN7BGOB.js';
|
|
5
|
+
import { c } from './chunk-B5JOQVFY.js';
|
|
6
|
+
import { a as a$2 } from './chunk-A2ODHD2G.js';
|
|
7
7
|
import { a as a$1 } from './chunk-O7TZTIHO.js';
|
|
8
|
-
import { a } from './chunk-
|
|
8
|
+
import { a } from './chunk-XR65N6EG.js';
|
|
9
9
|
import { a as a$3 } from './chunk-QCZSSQAQ.js';
|
|
10
10
|
import { c as c$2, e } from './chunk-H4TH4342.js';
|
|
11
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-XR65N6EG.js';
|
|
2
2
|
import { e, d as d$1, c } from './chunk-2Q5FZVGV.js';
|
|
3
3
|
|
|
4
4
|
var b={};function T(e){return [...new Uint8Array(e)].map(r=>{let n=r.toString(16);return n.length===1?`0${n}`:n}).join("")}function I(e){return d$1(this,null,function*(){let r=e.getReader();try{for(;;){let{done:n,value:t}=yield new c(r.read());if(n)return;yield t;}}finally{r.releaseLock();}})}async function L(e$1){let r=[],n=0,t=0;try{for(var s=e(I(e$1)),f,o,l;f=!(o=await s.next()).done;f=!1){let c=o.value;r.push(c),n+=c.length;}}catch(o){l=[o];}finally{try{f&&(o=s.return)&&await o.call(s);}finally{if(l)throw l[0]}}let a=new Uint8Array(n);for(let c of r)a.set(c,t),t+=c.length;return a.buffer}var S=(t=>(t.VALID="VALID",t.INVALID="INVALID",t.NOT_VERIFIABLE="NOT_VERIFIABLE",t))(S||{});async function R(e,r,n){if(typeof crypto.subtle.digest!="function")return a.log(a.Level.Warn,`Insecure context (see https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts): The hash of the Scandit Data Capture library WASM file found at ${n} could not be verified`),"NOT_VERIFIABLE";try{let t=e instanceof Promise?await e:e,a$1=await crypto.subtle.digest("SHA-256",t),s=T(a$1);return r==null?(a.log(a.Level.Warn,"The library hash is not defined or empty, cannot correctly verify integrity."),"NOT_VERIFIABLE"):s===r?(a.log(a.Level.Debug,`Data Capture library WASM integrity found at ${n} has been verified correctly.`),"VALID"):(a.log(a.Level.Warn,`The Scandit Data Capture library WASM file found at ${n} seems invalid: expected file hash doesn't match (received: ${s}, expected: ${r}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),"INVALID")}catch(t){return a.log(a.Level.Warn,"Wasm response could not be verified",t),"NOT_VERIFIABLE"}}var d=new Map([["br",4.4],["gzip",2.9],["none",1]]);function w(e){var t;let r="content-encoding";if(e==null||e.get(r)==null)return d.get("none");let n=new Set(((t=e.get(r))!=null?t:"").split(",").map(a=>a.trim()));for(let[a,s]of d)if(n.has(a))return s;return d.get("none")}function B(e){var t,a;if(e==null)return 0;let r=(t=w(e))!=null?t:1,n=Number.parseInt((a=e.get("content-length"))!=null?a:"0",10);return Number.isNaN(n)?0:Math.floor(n*r*100)/100}function x(e){let{pathname:r}=new URL(e);for(let[n,t]of Object.entries(b))if(r.endsWith(n))return t.bytes;return 0}function V(e){b=e;}var N=(e,r)=>{let n=B(r);return n===0?x(e):n};function W(e,r,n,{onProgress:t,onError:a,onComplete:s}){if(!r.body)return [r];let f=N(e,r.headers),o=0,l=0,[c,A]=n?r.body.tee():[r.body],v=c.pipeThrough(new TransformStream({async transform(u,y){try{o+=u.length,l=Number((o/f*100).toFixed(2)),f>0&&u.length>0&&l<100?t==null||t({percentage:l,loadedBytes:o,privateUri:e}):f===0&&u.length>0&&(t==null||t({percentage:null,loadedBytes:o,privateUri:e})),y.enqueue(u);}catch(m){y.error(m),a==null||a({error:m});}},flush(u){t==null||t({percentage:100,loadedBytes:o,privateUri:e}),s==null||s({percentage:100,loadedBytes:o,privateUri:e}),u.terminate();}}));return [new Response(v,{headers:new Headers(r.headers),status:r.status,statusText:r.statusText}),A]}async function D({wasmURI:e,expectedHash:r,verifyResponseHash:n,onProgress:t,onComplete:a,onError:s,referredOrigin:f}){let o=await fetch(e,{referrerPolicy:"origin",referrer:f!=null?f:""});if(!o.ok)throw new Error(`HTTP status code is not ok: ${o.status}, ${o.statusText}`);let[l,c]=W(e,o,n,{onProgress:t,onError:s,onComplete:a});return c!=null&&R(L(c),r,e),l}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b } from './chunk-457L5N2F.js';
|
|
2
|
-
import { a } from './chunk-
|
|
2
|
+
import { a } from './chunk-XR65N6EG.js';
|
|
3
3
|
|
|
4
4
|
var d={processedFramesCount:{text:"Frames processed by engine",valueSuffix:"/sec"},frameDataPoolSize:{text:"Frame data pool size",valueSuffix:""},redrawRequestsCount:{text:"Engine redraw requests",valueSuffix:"/sec"},actualRedrawsCount:{text:"Actual redraws",valueSuffix:"/sec"},FPS:{text:"Overlay FPS ",valueSuffix:"/sec"}},p=class extends b{constructor(e){var r;super(e);this.drawPerformanceTimer=null;this.drawPerformanceFPSCounter=0;this.lastDrawPerformanceFPSCounter=0;this.performanceCanvasLayer=document.createElement("canvas"),(r=e.parentElement)==null||r.insertBefore(this.performanceCanvasLayer,e);}get performanceLayerContext(){if(!this._performanceLayerContext&&(this._performanceLayerContext=this.performanceCanvasLayer.getContext("2d"),!this._performanceLayerContext))throw new TypeError("CanvasRenderingContext cannot be retrieved.");return this._performanceLayerContext}setupPerformanceLayer(){}setPerformanceMetrics(e){this.performanceMetrics=e,this.drawPerformanceMetrics();}updateCanvasSizeAttributes(e,r,t=window.devicePixelRatio){super.updateCanvasSizeAttributes(e,r,t),this.performanceCanvasLayer.width=this.canvas.width,this.performanceCanvasLayer.height=this.canvas.height,this.performanceLayerContext.scale(t,t);}doDraw(){super.doDraw();}drawPerformanceMetrics(){this.drawPerformanceTimer==null&&(a.log(a.Level.Debug,"Drawing performance monitoring enabled, FPS will be drawn into canvas"),this.drawPerformanceTimer=setInterval(()=>{this.lastDrawPerformanceFPSCounter=this.drawPerformanceFPSCounter,this.drawPerformanceFPSCounter=0;},1e3)),this.drawPerformanceFPSCounter++,this.drawFullPerformanceMetrics();}drawFullPerformanceMetrics(){let e={...this.performanceMetrics,FPS:this.lastDrawPerformanceFPSCounter};this.performanceLayerContext.lineWidth=1,this.performanceLayerContext.fillStyle="white",this.performanceLayerContext.strokeStyle="black";let r=Math.min(Math.max(window.innerWidth/35,13),20),t=1.5*r,s=1.5;this.performanceLayerContext.font=`bold ${r}px sans-serif`;let l=0,n=0,i=[];for(let[a,u]of Object.entries(e)){let c=d[a],f=`${c.text}: ${u}${c.valueSuffix}`;n=Math.max(this.performanceLayerContext.measureText(f).width,n),i.push([f,t,t+r*s*l++]);}this.performanceLayerContext.clearRect(t,t-r,n,Object.values(e).length*r*s);for(let a of i)this.performanceLayerContext.fillText(...a),this.performanceLayerContext.strokeText(...a);}};
|
|
5
5
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a } from './chunk-NMROJLGQ.js';
|
|
2
|
+
import { a as a$1 } from './chunk-XR65N6EG.js';
|
|
3
|
+
|
|
4
|
+
var s=class{constructor(t=a,e=a$1,r=globalThis.fetch.bind(globalThis)){this.sdk=t,this.logger=e,this.fetch=r;}get workerCommand(){var t;return (t=this.sdk.mainDataCaptureLoader)==null?void 0:t.workerCommand.bind(this.sdk.mainDataCaptureLoader)}async getLicenseText(){var o,i;if(this.sdk.configurePhase!=="done")return this.logger.warn('You must call "configure" before retrieving open source license text info.'),"";let t=new URL(`${((o=this.sdk.libraryLocation)!=null?o:"").replace(/\/$/,"")}/license/web-core-license.txt`),[e,r]=await Promise.all([(i=this.workerCommand)==null?void 0:i.call(this,"getOpenSourceSoftwareLicenseInfo",{}),this.fetchWebLicenseText(t.toString())]);return [e==null?void 0:e.licenseText,r].filter(l=>l!=null).join(`
|
|
5
|
+
`)}async fetchWebLicenseText(t){return this.fetch(t,{mode:"cors",credentials:"include",headers:{"Content-Type":"text/plain"}}).then(async e=>{if(!e.ok)throw new Error(`${e.status} ${e.statusText}`);return e.text()}).catch(e=>(this.logger.warn(`Failed to fetch license from ${t}: ${e.toString()}`),null))}};
|
|
6
|
+
|
|
7
|
+
export { s as a };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { b as b$3 } from './chunk-E2VUMNY4.js';
|
|
2
2
|
import { a as a$6 } from './chunk-GWI2ZHMO.js';
|
|
3
|
-
import {
|
|
3
|
+
import { a as a$c } from './chunk-46WJFV3I.js';
|
|
4
|
+
import { d as d$2, c, b as b$4 } from './chunk-XM4ZH4L3.js';
|
|
4
5
|
import { a as a$e } from './chunk-WSG6WSZN.js';
|
|
5
6
|
import { a as a$2 } from './chunk-N5YZEC56.js';
|
|
6
7
|
import { a as a$a } from './chunk-44B7Z6ZZ.js';
|
|
7
8
|
import { b, a as a$3 } from './chunk-5S537AFM.js';
|
|
8
|
-
import { a as a$
|
|
9
|
+
import { a as a$f } from './chunk-DMOXDUF6.js';
|
|
10
|
+
import { b as b$1 } from './chunk-457L5N2F.js';
|
|
9
11
|
import { a as a$7 } from './chunk-PXXUQXGB.js';
|
|
10
12
|
import { a as a$b } from './chunk-XVLYCDJL.js';
|
|
11
13
|
import { a as a$8 } from './chunk-KYNYQBNF.js';
|
|
12
|
-
import { a as a$h } from './chunk-ZKROZLQ4.js';
|
|
13
14
|
import { a as a$5 } from './chunk-N5F43TUJ.js';
|
|
14
|
-
import { a as a$
|
|
15
|
-
import { b as b$1 } from './chunk-457L5N2F.js';
|
|
15
|
+
import { a as a$h } from './chunk-ZKROZLQ4.js';
|
|
16
16
|
import { a as a$1 } from './chunk-VJB527QZ.js';
|
|
17
17
|
import { a as a$9 } from './chunk-NMX4VHW2.js';
|
|
18
18
|
import { a } from './chunk-7XQ3GHYH.js';
|
|
19
|
-
import { d as d$1 } from './chunk-
|
|
20
|
-
import { a as a$d } from './chunk-
|
|
19
|
+
import { d as d$1 } from './chunk-ZR62555L.js';
|
|
20
|
+
import { a as a$d } from './chunk-XR65N6EG.js';
|
|
21
21
|
import { d } from './chunk-UPUPKPEP.js';
|
|
22
22
|
import { a as a$4, b as b$2, i, f } from './chunk-N4NOODAT.js';
|
|
23
23
|
import { a as a$g } from './chunk-WUHKODFA.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a } from './chunk-EK2IIDFY.js';
|
|
2
2
|
import { a as a$2 } from './chunk-76GU6PXK.js';
|
|
3
|
-
import { a as a$1 } from './chunk-
|
|
3
|
+
import { a as a$1 } from './chunk-XR65N6EG.js';
|
|
4
4
|
|
|
5
5
|
var s=(e=>(e.RGBA="RGBA",e.GRAYSCALE="GRAYSCALE",e))(s||{}),n=class extends a{constructor(){super(...arguments);this.colorType="RGBA";}get _initialized(){return this._texture!=null&&this._framebuffer!=null}readFromSource(e){this._initialized||this.setup(),this.updateFrameSizeIfNeeded();let i=this._framePool.pop();return this._contextWebGL.texImage2D(this._contextWebGL.TEXTURE_2D,0,this._contextWebGL.RGBA,this._contextWebGL.RGBA,this._contextWebGL.UNSIGNED_BYTE,e),this._contextWebGL.readPixels(0,0,this._contextWebGL.drawingBufferWidth,this._contextWebGL.drawingBufferHeight,this._contextWebGL.RGBA,this._contextWebGL.UNSIGNED_BYTE,i),{width:this._contextWebGL.drawingBufferWidth,height:this._contextWebGL.drawingBufferHeight,data:i,colorType:this.colorType}}setup(){this._texture=this._contextWebGL.createTexture(),this._texture==null&&a$1.log(a$1.Level.Warn,"Could not create texture from WebGLRenderingContext"),this._contextWebGL.bindTexture(this._contextWebGL.TEXTURE_2D,this._texture),this._framebuffer=this._contextWebGL.createFramebuffer(),this._framebuffer==null&&a$1.log(a$1.Level.Warn,"Could not create frameBuffer from WebGLRenderingContext"),this._contextWebGL.bindFramebuffer(this._contextWebGL.FRAMEBUFFER,this._framebuffer),this._contextWebGL.framebufferTexture2D(this._contextWebGL.FRAMEBUFFER,this._contextWebGL.COLOR_ATTACHMENT0,this._contextWebGL.TEXTURE_2D,this._texture,0),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_WRAP_S,this._contextWebGL.CLAMP_TO_EDGE),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_WRAP_T,this._contextWebGL.CLAMP_TO_EDGE),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_MIN_FILTER,this._contextWebGL.NEAREST),this._contextWebGL.texParameteri(this._contextWebGL.TEXTURE_2D,this._contextWebGL.TEXTURE_MAG_FILTER,this._contextWebGL.NEAREST);}dispose(){var e;this._texture!=null&&(this._contextWebGL.deleteTexture(this._texture),this._texture=null),this._framebuffer!=null&&(this._contextWebGL.deleteFramebuffer(this._framebuffer),this._framebuffer=null),(e=this._framePool)==null||e.empty();}updateFrameSizeIfNeeded(){var o;let{drawingBufferWidth:e,drawingBufferHeight:i}=this._contextWebGL,r=e*i*4;this._frameSize!==r&&(this._frameSize=r,(o=this._framePool)==null||o.empty(),this._framePool=new a$2({capacity:this._maxPoolCapacity,lowWaterMark:this._minPoolCapacity,createItem:()=>new Uint8ClampedArray(this._frameSize)}));}};
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b } from './chunk-6H6FKGVE.js';
|
|
2
2
|
|
|
3
|
-
var r={configurePhase:"unconfigured",configurePromise:void 0,userLicenseKey:void 0,mainDataCaptureLoader:void 0,dataCaptureLoaders:void 0,loadingStatus:b};
|
|
3
|
+
var r={configurePhase:"unconfigured",configurePromise:void 0,userLicenseKey:void 0,mainDataCaptureLoader:void 0,dataCaptureLoaders:void 0,loadingStatus:b,libraryLocation:void 0};
|
|
4
4
|
|
|
5
5
|
export { r as a };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as a$5, b as b$1 } from './chunk-IH7SHTFM.js';
|
|
2
2
|
import { a as a$4 } from './chunk-JS3T7K2Z.js';
|
|
3
|
-
import { a as a$1 } from './chunk-
|
|
4
|
-
import { a as a$3 } from './chunk-
|
|
3
|
+
import { a as a$1 } from './chunk-KCNXUTBL.js';
|
|
4
|
+
import { a as a$3 } from './chunk-NMROJLGQ.js';
|
|
5
5
|
import { a as a$2 } from './chunk-7SW2PEHB.js';
|
|
6
6
|
import { a as a$6 } from './chunk-FGO2SSRS.js';
|
|
7
|
-
import { d } from './chunk-
|
|
8
|
-
import { a as a$7 } from './chunk-
|
|
7
|
+
import { d } from './chunk-ZR62555L.js';
|
|
8
|
+
import { a as a$7 } from './chunk-XR65N6EG.js';
|
|
9
9
|
import { a } from './chunk-4FJRDG6T.js';
|
|
10
10
|
import { f } from './chunk-W7LJM2QO.js';
|
|
11
11
|
import { a as a$8 } from './chunk-WUHKODFA.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-
|
|
1
|
+
import { a as a$1 } from './chunk-XR65N6EG.js';
|
|
2
2
|
import { a } from './chunk-QCZSSQAQ.js';
|
|
3
3
|
|
|
4
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");}};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a } from './chunk-
|
|
1
|
+
import { a } from './chunk-XR65N6EG.js';
|
|
2
2
|
|
|
3
3
|
function d(r,o,t){let e=r.createProgram();if(!e)throw new Error("Cannot create webgl program");return r.attachShader(e,o),r.attachShader(e,t),r.linkProgram(e),r.getProgramParameter(e,r.LINK_STATUS)?e:(a.log(a.Level.Error,"Program linking error:",r.getProgramInfoLog(e)),r.deleteProgram(e),null)}function h(r,o,t){let e=r.createShader(o);if(!e)throw new Error("Cannot create a shader");return r.shaderSource(e,t),r.compileShader(e),r.getShaderParameter(e,r.COMPILE_STATUS)?e:(a.log(a.Level.Error,"Shader compilation error:",r.getShaderInfoLog(e)),r.deleteShader(e),null)}
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as a$1 } from './chunk-
|
|
2
|
-
import { d as d$1 } from './chunk-
|
|
3
|
-
import { a } from './chunk-
|
|
1
|
+
import { a as a$1 } from './chunk-4MKLNRV3.js';
|
|
2
|
+
import { d as d$1 } from './chunk-SXOL25UA.js';
|
|
3
|
+
import { a } from './chunk-XR65N6EG.js';
|
|
4
4
|
import { a as a$2 } from './chunk-4FJRDG6T.js';
|
|
5
5
|
import { f as f$1, g as g$1 } from './chunk-W7LJM2QO.js';
|
|
6
6
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var v;(t=>{(n=>(n.Debug="debug",n.Info="info",n.Warn="warn",n.Error="error",n.Quiet="quiet"))(t.Level||(t.Level={}));let u=new Map([["debug",1],["info",2],["warn",3],["error",4],["quiet",5]]),l="debug";function c(e){l=e;}t.setLevel=c;function o(e,...r){if(!(u.get(l)>u.get(e)))switch(e){case"debug":{console.debug(...r);break}case"info":{console.log(...r);break}case"warn":{console.warn(...r);break}case"error":{console.error(...r);break}}}t.log=o;function b(...e){o("warn",...e);}t.warn=b;function a(...e){o("debug",...e);}t.debug=a;function f(...e){o("info",...e);}t.info=f;function L(...e){o("error",...e);}t.error=L;})(v||(v={}));
|
|
2
|
+
|
|
3
|
+
export { v as a };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b } from './chunk-
|
|
2
|
-
import { a } from './chunk-
|
|
1
|
+
import { b } from './chunk-2WN7BGOB.js';
|
|
2
|
+
import { a } from './chunk-XR65N6EG.js';
|
|
3
3
|
|
|
4
4
|
async function s(e,o){async function a$1(){return importScripts(e)}try{await b(a$1,250,4e3,n=>{a.log(a.Level.Warn,n),a.log(a.Level.Warn,`Couldn't retrieve Scandit Data Capture library at ${e}, retrying...`);}),self.Module.mainScriptUrlOrBlob=e;let t=globalThis.SDC_WASM_JS_VERSION;return t!==o&&a.log(a.Level.Warn,`The Scandit Data Capture library JS file found at ${e} seems invalid: expected version doesn't match (received: ${t}, expected: ${o}). Please ensure the correct Scandit Data Capture file (with correct version) is retrieved.`),!0}catch(t){return a.log(a.Level.Error,t),!1}}
|
|
5
5
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { a as a$1 } from './chunk-R6E4CT22.js';
|
|
2
|
-
import { a as a$4 } from './chunk-
|
|
3
|
-
import { b } from './chunk-
|
|
2
|
+
import { a as a$4 } from './chunk-YGNHN5OT.js';
|
|
3
|
+
import { b } from './chunk-MOF3P7VK.js';
|
|
4
4
|
import { a } from './chunk-JKL2W65E.js';
|
|
5
|
-
import { d } from './chunk-
|
|
6
|
-
import { a as a$3 } from './chunk-
|
|
5
|
+
import { d } from './chunk-SXOL25UA.js';
|
|
6
|
+
import { a as a$3 } from './chunk-XR65N6EG.js';
|
|
7
7
|
import { a as a$5 } from './chunk-QCZSSQAQ.js';
|
|
8
8
|
import { a as a$2 } from './chunk-4FJRDG6T.js';
|
|
9
9
|
|
package/build/js/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { Logger } from './logger.js';
|
|
|
3
3
|
export { WorkerMain } from './worker/WorkerMain.js';
|
|
4
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
5
|
export { OverrideState } from './worker/OverrideState.js';
|
|
6
|
-
import { D as DataCaptureLoader } from './Camera-
|
|
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-
|
|
6
|
+
import { D as DataCaptureLoader } from './Camera-SnHjQ2_l.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-SnHjQ2_l.js';
|
|
8
8
|
export { LoadingStatus, LoadingStatusSubscriber, ProgressInfo, default as loadingStatus } from './LoadingStatus.js';
|
|
9
9
|
export { DeepMutable, DeepPartial, DistributiveKeyOf, MethodSignature, Mutable, Optional, Prettify, assert, assertUnreachable, assertUnreachableThrowException } from './tsHelper.js';
|
|
10
10
|
export { AnchorPositions, AnchorPositionsJSON } from './private/AnchorPositions.js';
|
package/build/js/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { a as DataCaptureLoader } from './chunks/chunk-
|
|
2
|
-
export { a as WorkerMain } from './chunks/chunk-
|
|
3
|
-
export { a as OverrideState } from './chunks/chunk-6W7FX6LD.js';
|
|
1
|
+
export { a as DataCaptureLoader } from './chunks/chunk-3TNNUKVW.js';
|
|
2
|
+
export { a as WorkerMain } from './chunks/chunk-2XZA2MFA.js';
|
|
4
3
|
import { a as a$3 } from './chunks/chunk-RQQK6Z5F.js';
|
|
4
|
+
export { a as OverrideState } from './chunks/chunk-6W7FX6LD.js';
|
|
5
5
|
export { c as CameraFOVSwitchControl, b as CameraSwitchControl, a as TorchSwitchControl } from './chunks/chunk-T5EUB6UG.js';
|
|
6
6
|
export { a as NoViewfinder } from './chunks/chunk-4ZMCJXZS.js';
|
|
7
7
|
export { a as convertToPublicFrameData } from './chunks/chunk-UHFABUTI.js';
|
|
8
|
-
export { a as ImageFrameSource } from './chunks/chunk-
|
|
8
|
+
export { a as ImageFrameSource } from './chunks/chunk-Q7NDC6TJ.js';
|
|
9
9
|
export { a as PrivateNoneLocationSelection, b as RadiusLocationSelection, c as RectangularLocationSelection } from './chunks/chunk-KW3YSGJX.js';
|
|
10
10
|
export { a as RectangularViewfinder } from './chunks/chunk-2WQHYCZC.js';
|
|
11
11
|
export { a as SingleImageUploader } from './chunks/chunk-ZSYUKWWL.js';
|
|
12
12
|
export { a as SingleImageUploaderSettings } from './chunks/chunk-KAZWF3JC.js';
|
|
13
|
-
export { a as DataCaptureVersion } from './chunks/chunk-
|
|
14
|
-
export { a as DataCaptureView } from './chunks/chunk-
|
|
13
|
+
export { a as DataCaptureVersion } from './chunks/chunk-A2ODHD2G.js';
|
|
14
|
+
export { a as DataCaptureView } from './chunks/chunk-LGPSMEF2.js';
|
|
15
15
|
import { a as a$5 } from './chunks/chunk-N5YZEC56.js';
|
|
16
16
|
export { a as AnchorPositions } from './chunks/chunk-N5F43TUJ.js';
|
|
17
17
|
import { a as a$2 } from './chunks/chunk-VJB527QZ.js';
|
|
@@ -23,17 +23,17 @@ export { a as Sound } from './chunks/chunk-GSJH2EXJ.js';
|
|
|
23
23
|
export { a as Vibration } from './chunks/chunk-UA3E3GGM.js';
|
|
24
24
|
export { a as AimerViewfinder } from './chunks/chunk-TVDFY6ME.js';
|
|
25
25
|
export { a as Brush } from './chunks/chunk-MKHBE7BB.js';
|
|
26
|
-
export { a as Camera } from './chunks/chunk-
|
|
27
|
-
export { a as CameraAccess } from './chunks/chunk-
|
|
28
|
-
export { a as DataCaptureContext } from './chunks/chunk-
|
|
26
|
+
export { a as Camera } from './chunks/chunk-4MKLNRV3.js';
|
|
27
|
+
export { a as CameraAccess } from './chunks/chunk-MM6VVG46.js';
|
|
28
|
+
export { a as DataCaptureContext } from './chunks/chunk-OX52WM5R.js';
|
|
29
29
|
import { a as a$6, c } from './chunks/chunk-IH7SHTFM.js';
|
|
30
|
-
import { a } from './chunks/chunk-
|
|
30
|
+
import { a } from './chunks/chunk-NMROJLGQ.js';
|
|
31
31
|
import { b } from './chunks/chunk-6H6FKGVE.js';
|
|
32
32
|
export { b as loadingStatus } from './chunks/chunk-6H6FKGVE.js';
|
|
33
33
|
export { a as DataCaptureContextSettings } from './chunks/chunk-7SW2PEHB.js';
|
|
34
34
|
import { a as a$9 } from './chunks/chunk-GPJEB376.js';
|
|
35
|
-
import { a as a$4 } from './chunks/chunk-
|
|
36
|
-
export { a as Logger } from './chunks/chunk-
|
|
35
|
+
import { a as a$4 } from './chunks/chunk-XR65N6EG.js';
|
|
36
|
+
export { a as Logger } from './chunks/chunk-XR65N6EG.js';
|
|
37
37
|
import { a as a$7 } from './chunks/chunk-QCZSSQAQ.js';
|
|
38
38
|
export { a as DataCaptureError } from './chunks/chunk-QCZSSQAQ.js';
|
|
39
39
|
import { a as a$8 } from './chunks/chunk-4FJRDG6T.js';
|
|
@@ -45,8 +45,8 @@ export { a as LogoStyle, c as SwipeToZoom, b as TapToFocus } from './chunks/chun
|
|
|
45
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
46
|
export { a as ContextStatus, b as PrivateMirrorAxis } from './chunks/chunk-WUHKODFA.js';
|
|
47
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),[
|
|
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),[a="auto",i="auto"]=[(o=r.get("pthreads"))==null?void 0:o.toLowerCase(),(u=r.get("simd"))==null?void 0:u.toLowerCase()];return {overrideThreadsSupport:e(a)?a:"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 a=await c({licenseDataPath:e.licenseDataPath});if(a==null)throw new Error("Cannot retrieve license key for Electron");e.licenseKey=a.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(a=>a.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 a=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)a.set(o,await u);return a}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.libraryLocation=r.libraryLocation,a$4.setLevel(r.logLevel);async function a$5(){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
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=
|
|
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=a$5().catch(o=>{throw S(),b.unsubscribe(l),o}),a.configurePromise}function Qe(e){a.mainDataCaptureLoader=e;}
|
|
51
51
|
|
|
52
52
|
export { Ue as configure, S as resetConfigure, Qe as setMainDataCaptureLoader };
|
package/build/js/logger.d.ts
CHANGED
|
@@ -20,7 +20,11 @@ declare namespace Logger {
|
|
|
20
20
|
* @param level The log level.
|
|
21
21
|
* @param data The log contents.
|
|
22
22
|
*/
|
|
23
|
-
function log(level: Exclude<Level, Level.Quiet>, ...data:
|
|
23
|
+
function log(level: Exclude<Level, Level.Quiet>, ...data: unknown[]): void;
|
|
24
|
+
function warn(...data: unknown[]): void;
|
|
25
|
+
function debug(...data: unknown[]): void;
|
|
26
|
+
function info(...data: unknown[]): void;
|
|
27
|
+
function error(...data: unknown[]): void;
|
|
24
28
|
}
|
|
25
29
|
|
|
26
30
|
export { Logger };
|
package/build/js/logger.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as Logger } from './chunks/chunk-
|
|
1
|
+
export { a as Logger } from './chunks/chunk-XR65N6EG.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { bn as AspectRatio, bp as CameraAccess, bl as CameraPosition, bm as CameraResolutionConstraint, bo as DeviceCamera } from '../Camera-
|
|
2
|
+
export { bn as AspectRatio, bp as CameraAccess, bl as CameraPosition, bm as CameraResolutionConstraint, bo as DeviceCamera } from '../Camera-SnHjQ2_l.js';
|
|
3
3
|
import './Serializable.js';
|
|
4
4
|
import './FrameReaders/WatermarkStack.js';
|
|
5
5
|
import '../tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as AspectRatio, d as CameraAccess, a as CameraPosition, b as CameraResolutionConstraint } from '../chunks/chunk-
|
|
1
|
+
export { c as AspectRatio, d as CameraAccess, a as CameraPosition, b as CameraResolutionConstraint } from '../chunks/chunk-SXOL25UA.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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-SnHjQ2_l.js';
|
|
3
3
|
import './Serializable.js';
|
|
4
4
|
import './FrameReaders/WatermarkStack.js';
|
|
5
5
|
import '../tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { d as CameraManager, c as CameraManagerEvent, b as CameraResolutionConstraint, a as MeteringMode } from '../chunks/chunk-
|
|
1
|
+
export { d as CameraManager, c as CameraManagerEvent, b as CameraResolutionConstraint, a as MeteringMode } from '../chunks/chunk-ZR62555L.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { PrivateCanvasDrawer } from './CanvasDrawer.js';
|
|
3
|
-
import {
|
|
3
|
+
import { W as PerformanceMetrics } from '../Camera-SnHjQ2_l.js';
|
|
4
4
|
import './CavansDrawerAbstract.js';
|
|
5
5
|
import './DrawCommandBuffer.js';
|
|
6
6
|
import './Serializable.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as PrivateCanvasDrawerWithMetrics } from '../chunks/chunk-
|
|
1
|
+
export { a as PrivateCanvasDrawerWithMetrics } from '../chunks/chunk-DMOXDUF6.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ModuleLicenseTextProvider } from './ModuleLicenseTextProvider.js';
|
|
3
3
|
import { Logger } from '../logger.js';
|
|
4
4
|
import { PartialSDKGlobals } from '../sdk.js';
|
|
5
|
-
import '../Camera-
|
|
5
|
+
import '../Camera-SnHjQ2_l.js';
|
|
6
6
|
import './Serializable.js';
|
|
7
7
|
import './FrameReaders/WatermarkStack.js';
|
|
8
8
|
import '../tsHelper.js';
|
|
@@ -21,9 +21,11 @@ import '../LoadingStatus.js';
|
|
|
21
21
|
declare class CoreModuleLicenseTextProvider implements ModuleLicenseTextProvider {
|
|
22
22
|
private sdk;
|
|
23
23
|
private logger;
|
|
24
|
-
|
|
24
|
+
private fetch;
|
|
25
|
+
constructor(sdk?: PartialSDKGlobals, logger?: typeof Logger, fetch?: typeof globalThis.fetch);
|
|
25
26
|
private get workerCommand();
|
|
26
27
|
getLicenseText(): Promise<string>;
|
|
28
|
+
private fetchWebLicenseText;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
export { CoreModuleLicenseTextProvider };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as CoreModuleLicenseTextProvider } from '../chunks/chunk-
|
|
1
|
+
export { a as CoreModuleLicenseTextProvider } from '../chunks/chunk-KCNXUTBL.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { B as DataCaptureContext, N as FrameData } from '../Camera-
|
|
2
|
+
import { B as DataCaptureContext, N as FrameData } from '../Camera-SnHjQ2_l.js';
|
|
3
3
|
import './Serializable.js';
|
|
4
4
|
import './FrameReaders/WatermarkStack.js';
|
|
5
5
|
import '../tsHelper.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { bi as ColorType, bk as FrameReader } from '../../Camera-
|
|
2
|
+
export { bi as ColorType, bk as FrameReader } from '../../Camera-SnHjQ2_l.js';
|
|
3
3
|
import '../Serializable.js';
|
|
4
4
|
import './WatermarkStack.js';
|
|
5
5
|
import '../../tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as ColorType, b as FrameReader } from '../../chunks/chunk-
|
|
1
|
+
export { a as ColorType, b as FrameReader } from '../../chunks/chunk-MOF3P7VK.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { bh as FrameReaderAbstract } from '../../Camera-
|
|
2
|
+
export { bh as FrameReaderAbstract } from '../../Camera-SnHjQ2_l.js';
|
|
3
3
|
import './WatermarkStack.js';
|
|
4
4
|
import '../../tsHelper.js';
|
|
5
5
|
import '../Serializable.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { bh as FrameReaderAbstract, bi as ColorType, bj as FrameCapture } from '../../Camera-
|
|
2
|
+
import { bh as FrameReaderAbstract, bi as ColorType, bj as FrameCapture } from '../../Camera-SnHjQ2_l.js';
|
|
3
3
|
import { WatermarkStack } from './WatermarkStack.js';
|
|
4
4
|
import { Optional } from '../../tsHelper.js';
|
|
5
5
|
import '../Serializable.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as GrayScaleFrameReader } from '../../chunks/chunk-
|
|
1
|
+
export { a as GrayScaleFrameReader } from '../../chunks/chunk-YGNHN5OT.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { bk as FrameReader, bh as FrameReaderAbstract, bi as FrameReaderType } from '../../Camera-
|
|
2
|
+
export { bk as FrameReader, bh as FrameReaderAbstract, bi as FrameReaderType } from '../../Camera-SnHjQ2_l.js';
|
|
3
3
|
export { GrayScaleFrameReader } from './GrayScaleFrameReader.js';
|
|
4
4
|
import '../Serializable.js';
|
|
5
5
|
import './WatermarkStack.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as GrayScaleFrameReader } from '../../chunks/chunk-
|
|
2
|
-
export { b as FrameReader, a as FrameReaderType } from '../../chunks/chunk-
|
|
1
|
+
export { a as GrayScaleFrameReader } from '../../chunks/chunk-YGNHN5OT.js';
|
|
2
|
+
export { b as FrameReader, a as FrameReaderType } from '../../chunks/chunk-MOF3P7VK.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as createProgram, b as createShader } from '../../chunks/chunk-
|
|
1
|
+
export { a as createProgram, b as createShader } from '../../chunks/chunk-SK6L34IF.js';
|
|
@@ -4,7 +4,7 @@ import { ConfigureOptions } from '../index.js';
|
|
|
4
4
|
import { Logger } from '../logger.js';
|
|
5
5
|
import { OverrideState } from '../worker/OverrideState.js';
|
|
6
6
|
import '../worker/WorkerMain.js';
|
|
7
|
-
import '../Camera-
|
|
7
|
+
import '../Camera-SnHjQ2_l.js';
|
|
8
8
|
import './Serializable.js';
|
|
9
9
|
import './FrameReaders/WatermarkStack.js';
|
|
10
10
|
import '../tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as SingleImageUploaderView } from '../chunks/chunk-
|
|
1
|
+
export { a as SingleImageUploaderView } from '../chunks/chunk-46WJFV3I.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as ButtonState, c as CameraSwitchControlWidget, d as PrivateCameraFOVSwitchControlWidget, b as PrivateTorchControlWidget } from '../chunks/chunk-
|
|
1
|
+
export { a as ButtonState, c as CameraSwitchControlWidget, d as PrivateCameraFOVSwitchControlWidget, b as PrivateTorchControlWidget } from '../chunks/chunk-XM4ZH4L3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { M as DataCaptureView, a as FrameSource, B as DataCaptureContext } from '../Camera-
|
|
2
|
+
import { M as DataCaptureView, a as FrameSource, B as DataCaptureContext } from '../Camera-SnHjQ2_l.js';
|
|
3
3
|
import { TorchSwitchControl, CameraSwitchControl, CameraFOVSwitchControl, Control } from '../ViewControls.js';
|
|
4
4
|
import './Serializable.js';
|
|
5
5
|
import './FrameReaders/WatermarkStack.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { ScanditHTMLElement } from '../../utils/ScanditHTMLElement.js';
|
|
3
|
-
import { X as GenericHint } from '../../../Camera-
|
|
3
|
+
import { X as GenericHint } from '../../../Camera-SnHjQ2_l.js';
|
|
4
4
|
import '../../Serializable.js';
|
|
5
5
|
import '../../FrameReaders/WatermarkStack.js';
|
|
6
6
|
import '../../../tsHelper.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { ScanditHTMLElement } from '../../utils/ScanditHTMLElement.js';
|
|
3
3
|
import { Rect } from '../../../Common.js';
|
|
4
|
-
import { Y as DataCaptureCallbackMessage } from '../../../Camera-
|
|
4
|
+
import { Y as DataCaptureCallbackMessage } from '../../../Camera-SnHjQ2_l.js';
|
|
5
5
|
import '../../Serializable.js';
|
|
6
6
|
import '../../FrameReaders/WatermarkStack.js';
|
|
7
7
|
import '../../../tsHelper.js';
|
|
@@ -7,9 +7,9 @@ export { a as defineCustomElements } from '../../chunks/chunk-3A4KLILV.js';
|
|
|
7
7
|
export { a as html } from '../../chunks/chunk-U6BTTEV6.js';
|
|
8
8
|
export { a as ScanditHTMLElement } from '../../chunks/chunk-EV4OEANA.js';
|
|
9
9
|
export { a as clamp } from '../../chunks/chunk-L2STPTEN.js';
|
|
10
|
+
export { a as css } from '../../chunks/chunk-GE4CBD4E.js';
|
|
10
11
|
export { a as unknownErrorToString } from '../../chunks/chunk-AIRWHLJH.js';
|
|
11
12
|
export { a as isObject } from '../../chunks/chunk-FGO2SSRS.js';
|
|
12
13
|
export { a as isWorkerScope } from '../../chunks/chunk-QCRFVRSS.js';
|
|
13
14
|
export { a as Deferred } from '../../chunks/chunk-O7TZTIHO.js';
|
|
14
|
-
export { a as css } from '../../chunks/chunk-GE4CBD4E.js';
|
|
15
15
|
export { a as debounce } from '../../chunks/chunk-R6E4CT22.js';
|
package/build/js/sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { D as DataCaptureLoader } from './Camera-
|
|
2
|
+
import { D as DataCaptureLoader } from './Camera-SnHjQ2_l.js';
|
|
3
3
|
import { LoadingStatus } from './LoadingStatus.js';
|
|
4
4
|
import './private/Serializable.js';
|
|
5
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
@@ -23,6 +23,7 @@ interface SDKGlobals {
|
|
|
23
23
|
mainDataCaptureLoader: DataCaptureLoader;
|
|
24
24
|
dataCaptureLoaders: Map<string, DataCaptureLoader>;
|
|
25
25
|
loadingStatus: LoadingStatus;
|
|
26
|
+
libraryLocation: string | undefined;
|
|
26
27
|
}
|
|
27
28
|
type PartialSDKGlobals = Partial<SDKGlobals>;
|
|
28
29
|
declare const sdk: SDKGlobals;
|
package/build/js/sdk.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as sdk } from './chunks/chunk-
|
|
1
|
+
export { a as sdk } from './chunks/chunk-NMROJLGQ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { S as DataCaptureEngine, U as Module, Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, $ as ModuleHandler, Y as DataCaptureCallbackMessage, a0 as DataCaptureActionMessageKey, a1 as EngineWorkerResponse } from '../Camera-SnHjQ2_l.js';
|
|
3
3
|
import '../private/Serializable.js';
|
|
4
4
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
5
5
|
import '../tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as WorkerMain } from '../chunks/chunk-
|
|
1
|
+
export { a as WorkerMain } from '../chunks/chunk-2XZA2MFA.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { S as DataCaptureEngine, U as Module } from '../Camera-SnHjQ2_l.js';
|
|
3
3
|
import { WorkerMain } from './WorkerMain.js';
|
|
4
4
|
import '../private/Serializable.js';
|
|
5
5
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { b as InlineWorker, a as workerInstance } from '../chunks/chunk-
|
|
1
|
+
export { b as InlineWorker, a as workerInstance } from '../chunks/chunk-G4BOCIEZ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { bb as CreateContextParameters,
|
|
2
|
+
export { bb as CreateContextParameters, S as DataCaptureEngine, ba as LoadLibraryParameters, be as ProcessFrameParameters, bf as ReportCameraPropertiesParameters, bd as SetFrameSourceParameters, bc as UpdateContextParameters, bg as WorkerFunctions } from '../Camera-SnHjQ2_l.js';
|
|
3
3
|
import './OverrideState.js';
|
|
4
4
|
import '../LoadingStatus.js';
|
|
5
5
|
import '../Common.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as DataCaptureEngine } from '../chunks/chunk-
|
|
1
|
+
export { a as DataCaptureEngine } from '../chunks/chunk-7DHCGO5J.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import './OverrideState.js';
|
|
3
|
-
export { D as DataCaptureLoader, R as DataCaptureLoaderOptions } from '../Camera-
|
|
3
|
+
export { D as DataCaptureLoader, R as DataCaptureLoaderOptions } from '../Camera-SnHjQ2_l.js';
|
|
4
4
|
import '../logger.js';
|
|
5
5
|
import '../LoadingStatus.js';
|
|
6
6
|
import '../private/Serializable.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as DataCaptureLoader } from '../chunks/chunk-
|
|
1
|
+
export { a as DataCaptureLoader } from '../chunks/chunk-3TNNUKVW.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import '../Common.js';
|
|
3
|
-
export { Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, aS as CaptureModeDeserializerInstance, a9 as CreateContextDataCaptureAction, a0 as DataCaptureActionMessageKey, Y as DataCaptureCallbackMessage, aq as DataCaptureCallbackMessageKeys, aK as DataCaptureContext, aR as DataCaptureContextDeserializer, aQ as DataCaptureContextDeserializerResult, aL as DataCaptureImageBufferFrameSource, aO as DataCaptureView, aI as DataCaptureWorker, ad as DeleteFrameDataDataCaptureAction, ax as DidTapTrackedBarcode, ah as DisposeDataCaptureAction, aJ as EmscriptenClassHandle, a1 as EngineWorkerResponse, al as ExtractCentaurusLicenseDataCaptureAction, a2 as ExtractCentaurusLicenseResponse, ai as FlushAnalyticsDataCaptureAction, X as GenericHint, aM as GestureListener, aN as GestureRecognizer, ap as GetOpenSourceSoftwareLicenseInfoAction, a6 as GetOpenSourceSoftwareLicenseInfoResponse, a5 as GetViewfinderInfo, ao as GetViewfinderInfoAction, b4 as GuidanceHint, b2 as GuidanceHintAnchor, b3 as GuidanceHintStyle, aE as HideGuidanceMessage, av as HideHintWorkerMessage, aC as HideToastMessage, b0 as HintAnchor, a_ as HintCornerStyle, aW as HintFont, aZ as HintHeight, a$ as HintIcon, b8 as HintPresenterV2, an as HintPresenterV2updateAction, b1 as HintStyle, aX as HintTextAlignment, aY as HintWidth, af as IsFeatureSupportedAction, au as IsFeatureSupportedMessage, a4 as IsFeatureSupportedResponse, aP as JSONParseable, b7 as LicensedFeature, a8 as LoadLibraryDataCaptureAction,
|
|
3
|
+
export { Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, aS as CaptureModeDeserializerInstance, a9 as CreateContextDataCaptureAction, a0 as DataCaptureActionMessageKey, Y as DataCaptureCallbackMessage, aq as DataCaptureCallbackMessageKeys, aK as DataCaptureContext, aR as DataCaptureContextDeserializer, aQ as DataCaptureContextDeserializerResult, aL as DataCaptureImageBufferFrameSource, aO as DataCaptureView, aI as DataCaptureWorker, ad as DeleteFrameDataDataCaptureAction, ax as DidTapTrackedBarcode, ah as DisposeDataCaptureAction, aJ as EmscriptenClassHandle, a1 as EngineWorkerResponse, al as ExtractCentaurusLicenseDataCaptureAction, a2 as ExtractCentaurusLicenseResponse, ai as FlushAnalyticsDataCaptureAction, X as GenericHint, aM as GestureListener, aN as GestureRecognizer, ap as GetOpenSourceSoftwareLicenseInfoAction, a6 as GetOpenSourceSoftwareLicenseInfoResponse, a5 as GetViewfinderInfo, ao as GetViewfinderInfoAction, b4 as GuidanceHint, b2 as GuidanceHintAnchor, b3 as GuidanceHintStyle, aE as HideGuidanceMessage, av as HideHintWorkerMessage, aC as HideToastMessage, b0 as HintAnchor, a_ as HintCornerStyle, aW as HintFont, aZ as HintHeight, a$ as HintIcon, b8 as HintPresenterV2, an as HintPresenterV2updateAction, b1 as HintStyle, aX as HintTextAlignment, aY as HintWidth, af as IsFeatureSupportedAction, au as IsFeatureSupportedMessage, a4 as IsFeatureSupportedResponse, aP as JSONParseable, b7 as LicensedFeature, a8 as LoadLibraryDataCaptureAction, U as Module, $ as ModuleHandler, aT as ModuleMirrorAxis, az as OnFrameProcessingFinishedMessage, ay as OnFrameProcessingStartedMessage, aA as OnFrameSkippedMessage, am as OnTapAction, aH as PayloadForCommand, W as PerformanceMetrics, aw as PerformanceMetricsReportMessage, b9 as PlatformHintPresenter, ab as ProcessFrameDataCaptureAction, aj as ReportCameraPropertiesDataCaptureAction, ac as RequestFrameDataDataCaptureAction, a3 as RequestFrameDataResponse, aa as SetFrameSourceDataCaptureAction, ak as SetLogLevelDataCaptureAction, aD as ShowGuidanceMessage, as as ShowHintWorkerMessage, aB as ShowToastMessage, aF as StartUpdateTimerMessage, aG as StopUpdateTimerMessage, ar as SuccessFeedbackWorkerMessage, b6 as ToastHint, b5 as ToastHintStyle, ag as UpdateContextDataCaptureAction, at as UpdateHintWorkerMessage, aU as Vector, ae as VisibilityChangeAction, aV as WasmFrameData, a7 as WorkerResponse } from '../Camera-SnHjQ2_l.js';
|
|
4
4
|
import '../LoadingStatus.js';
|
|
5
5
|
import '../logger.js';
|
|
6
6
|
import '../private/Serializable.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { c as getDomain, a as instantiateWebAssembly, b as retryWithExponentialBackoff } from '../chunks/chunk-
|
|
1
|
+
export { c as getDomain, a as instantiateWebAssembly, b as retryWithExponentialBackoff } from '../chunks/chunk-2WN7BGOB.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as ResponseValidity, e as createResponseWithProgress, f as fetchWasm, d as getTotalInBytes, c as setWasmMetadata, b as verifyResponseData } from '../chunks/chunk-
|
|
1
|
+
export { a as ResponseValidity, e as createResponseWithProgress, f as fetchWasm, d as getTotalInBytes, c as setWasmMetadata, b as verifyResponseData } from '../chunks/chunk-B5JOQVFY.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as setupFS } from '../chunks/chunk-
|
|
1
|
+
export { a as setupFS } from '../chunks/chunk-34FEFSCI.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { a as importWasmScript } from '../chunks/chunk-
|
|
1
|
+
export { a as importWasmScript } from '../chunks/chunk-YGFWA4WG.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
export { WorkerMain } from './WorkerMain.js';
|
|
3
|
-
export { Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, aS as CaptureModeDeserializerInstance, a9 as CreateContextDataCaptureAction, bb as CreateContextParameters, a0 as DataCaptureActionMessageKey, Y as DataCaptureCallbackMessage, aq as DataCaptureCallbackMessageKeys, aK as DataCaptureContext, aR as DataCaptureContextDeserializer, aQ as DataCaptureContextDeserializerResult,
|
|
3
|
+
export { Z as AnyDataCaptureActionMessage, _ as AugmentedWorker, aS as CaptureModeDeserializerInstance, a9 as CreateContextDataCaptureAction, bb as CreateContextParameters, a0 as DataCaptureActionMessageKey, Y as DataCaptureCallbackMessage, aq as DataCaptureCallbackMessageKeys, aK as DataCaptureContext, aR as DataCaptureContextDeserializer, aQ as DataCaptureContextDeserializerResult, S as DataCaptureEngine, aL as DataCaptureImageBufferFrameSource, D as DataCaptureLoader, R as DataCaptureLoaderOptions, aO as DataCaptureView, aI as DataCaptureWorker, ad as DeleteFrameDataDataCaptureAction, ax as DidTapTrackedBarcode, ah as DisposeDataCaptureAction, aJ as EmscriptenClassHandle, a1 as EngineWorkerResponse, al as ExtractCentaurusLicenseDataCaptureAction, a2 as ExtractCentaurusLicenseResponse, ai as FlushAnalyticsDataCaptureAction, X as GenericHint, aM as GestureListener, aN as GestureRecognizer, ap as GetOpenSourceSoftwareLicenseInfoAction, a6 as GetOpenSourceSoftwareLicenseInfoResponse, a5 as GetViewfinderInfo, ao as GetViewfinderInfoAction, b4 as GuidanceHint, b2 as GuidanceHintAnchor, b3 as GuidanceHintStyle, aE as HideGuidanceMessage, av as HideHintWorkerMessage, aC as HideToastMessage, b0 as HintAnchor, a_ as HintCornerStyle, aW as HintFont, aZ as HintHeight, a$ as HintIcon, b8 as HintPresenterV2, an as HintPresenterV2updateAction, b1 as HintStyle, aX as HintTextAlignment, aY as HintWidth, af as IsFeatureSupportedAction, au as IsFeatureSupportedMessage, a4 as IsFeatureSupportedResponse, aP as JSONParseable, b7 as LicensedFeature, a8 as LoadLibraryDataCaptureAction, ba as LoadLibraryParameters, U as Module, $ as ModuleHandler, aT as ModuleMirrorAxis, az as OnFrameProcessingFinishedMessage, ay as OnFrameProcessingStartedMessage, aA as OnFrameSkippedMessage, am as OnTapAction, aH as PayloadForCommand, W as PerformanceMetrics, aw as PerformanceMetricsReportMessage, b9 as PlatformHintPresenter, ab as ProcessFrameDataCaptureAction, be as ProcessFrameParameters, aj as ReportCameraPropertiesDataCaptureAction, bf as ReportCameraPropertiesParameters, ac as RequestFrameDataDataCaptureAction, a3 as RequestFrameDataResponse, aa as SetFrameSourceDataCaptureAction, bd as SetFrameSourceParameters, ak as SetLogLevelDataCaptureAction, aD as ShowGuidanceMessage, as as ShowHintWorkerMessage, aB as ShowToastMessage, aF as StartUpdateTimerMessage, aG as StopUpdateTimerMessage, ar as SuccessFeedbackWorkerMessage, b6 as ToastHint, b5 as ToastHintStyle, ag as UpdateContextDataCaptureAction, bc as UpdateContextParameters, at as UpdateHintWorkerMessage, aU as Vector, ae as VisibilityChangeAction, aV as WasmFrameData, bg as WorkerFunctions, a7 as WorkerResponse } from '../Camera-SnHjQ2_l.js';
|
|
4
4
|
import '../private/Serializable.js';
|
|
5
5
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
6
6
|
import '../tsHelper.js';
|
package/build/js/worker/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a as DataCaptureLoader } from '../chunks/chunk-
|
|
2
|
-
export { a as WorkerMain } from '../chunks/chunk-
|
|
3
|
-
export { a as DataCaptureEngine } from '../chunks/chunk-
|
|
1
|
+
export { a as DataCaptureLoader } from '../chunks/chunk-3TNNUKVW.js';
|
|
2
|
+
export { a as WorkerMain } from '../chunks/chunk-2XZA2MFA.js';
|
|
3
|
+
export { a as DataCaptureEngine } from '../chunks/chunk-7DHCGO5J.js';
|
|
4
4
|
export { h as GuidanceHintAnchor, i as GuidanceHintStyle, g as HintAnchor, e as HintCornerStyle, a as HintFont, d as HintHeight, f as HintIcon, b as HintTextAlignment, c as HintWidth, k as LicensedFeature, j as ToastHintStyle } from '../chunks/chunk-3FDT22IX.js';
|
package/package.json
CHANGED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
Copyright (c) 2014 Arnout Kazemier
|
|
2
|
+
Copyright (c) 2018 Copyright 2018 Klaus Hartl, Fagner Brack, GitHub Contributors
|
|
3
|
+
Copyright (c) 2013-2020 James Simpson and GoldFire Studios, Inc.
|
|
4
|
+
Copyright (c) 2012-2024 Faisal Salman <f@faisalman.com>
|
|
5
|
+
Copyright (c) 2017-2018 Fredrik Nicol
|
|
6
|
+
Copyright (c) 2005-2014 Rich Felker, et al.
|
|
7
|
+
Copyright (c) 2010-2014 Emscripten authors, see AUTHORS file.
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person
|
|
10
|
+
obtaining a copy of this software and associated documentation
|
|
11
|
+
files (the "Software"), to deal in the Software without
|
|
12
|
+
restriction, including without limitation the rights to use, copy,
|
|
13
|
+
modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
14
|
+
of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be
|
|
18
|
+
included in all copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
21
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
22
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
23
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
|
24
|
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
|
25
|
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
26
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { a } from './chunk-EMHHC6NB.js';
|
|
2
|
-
import { a as a$1 } from './chunk-SP3HSP4K.js';
|
|
3
|
-
|
|
4
|
-
var i=class{constructor(e=a,r=a$1){this.sdk=e,this.logger=r;}get workerCommand(){var e;return this.sdk.configurePhase!=="done"&&this.logger.log(this.logger.Level.Warn,'You must call "configure" before retrieving open source license text info.'),(e=this.sdk.mainDataCaptureLoader)==null?void 0:e.workerCommand.bind(this.sdk.mainDataCaptureLoader)}async getLicenseText(){var r,o;let e=await((r=this.workerCommand)==null?void 0:r.call(this,"getOpenSourceSoftwareLicenseInfo",{}));return (o=e==null?void 0:e.licenseText)!=null?o:""}};
|
|
5
|
-
|
|
6
|
-
export { i as a };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var t;(u=>{(e=>(e.Debug="debug",e.Info="info",e.Warn="warn",e.Error="error",e.Quiet="quiet"))(u.Level||(u.Level={}));let n=new Map([["debug",1],["info",2],["warn",3],["error",4],["quiet",5]]),l="debug";function a(r){l=r;}u.setLevel=a;function v(r,...o){if(!(n.get(l)>n.get(r)))switch(r){case"debug":console.debug(...o);break;case"info":console.log(...o);break;case"warn":console.warn(...o);break;case"error":console.error(...o);break;}}u.log=v;})(t||(t={}));
|
|
2
|
-
|
|
3
|
-
export { t as a };
|