@scandit/web-datacapture-core 7.5.1 → 7.6.0
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/electron/common.cjs +1 -1
- package/build/electron/constants.cjs +1 -1
- package/build/electron/main.cjs +1 -1
- package/build/electron/preload.cjs +1 -1
- package/build/js/AimerViewfinder.js +1 -1
- package/build/js/Brush.js +1 -1
- package/build/js/{Camera-bxDEtlUu.d.ts → Camera-Bpnu6h9d.d.ts} +46 -38
- package/build/js/Camera.d.ts +1 -1
- package/build/js/Camera.js +1 -1
- package/build/js/CameraAccess.d.ts +1 -1
- package/build/js/CameraAccess.js +1 -1
- package/build/js/CameraRelated.d.ts +1 -1
- package/build/js/CameraRelated.js +1 -1
- package/build/js/Common.d.ts +1 -0
- package/build/js/Common.js +1 -1
- package/build/js/DataCaptureContext.d.ts +2 -2
- 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/DefaultViewClassnames.d.ts +0 -2
- package/build/js/DefaultViewClassnames.js +1 -1
- package/build/js/Defaults.d.ts +1 -1
- package/build/js/Defaults.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +1 -1
- package/build/js/ImageFrameSource.d.ts +1 -1
- package/build/js/LaserlineViewfinder.js +1 -1
- package/build/js/LocationSelection.js +1 -1
- package/build/js/NotificationPresenter/NotificationBuilder.js +1 -1
- package/build/js/NotificationPresenter/index.d.ts +1 -1
- package/build/js/NotificationPresenter/index.js +1 -1
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +1 -1
- package/build/js/NotificationPresenter/private/presets.d.ts +1 -1
- package/build/js/RectangularViewfinder.js +1 -1
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/SingleImageUploader.d.ts +1 -1
- package/build/js/SingleImageUploader.js +1 -1
- package/build/js/SingleImageUploaderSettings.js +1 -1
- package/build/js/Sound.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/ViewControls.js +1 -1
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/{chunk-O4TEQJ6H.js → chunk-26DQPDMK.js} +1 -1
- package/build/js/chunks/{chunk-BHIFOHFI.js → chunk-27Z5CYJL.js} +1 -1
- package/build/js/chunks/{chunk-3BBG6EVS.js → chunk-2HL2IEE2.js} +1 -1
- package/build/js/chunks/{chunk-WKTLU3L4.js → chunk-33ZLQAZS.js} +2 -2
- package/build/js/chunks/{chunk-KCNXUTBL.js → chunk-34HLD6AY.js} +1 -1
- package/build/js/chunks/{chunk-7WQXUZB4.js → chunk-4TDWWHP2.js} +1 -1
- package/build/js/chunks/chunk-4XTOUXDD.js +1 -0
- package/build/js/chunks/{chunk-DAFXSVRW.js → chunk-5S5BT5PK.js} +1 -1
- package/build/js/chunks/{chunk-LEE5JACK.js → chunk-6NVWG2LP.js} +1 -1
- package/build/js/chunks/{chunk-OPX62GWU.js → chunk-7ELPJFJV.js} +1 -1
- package/build/js/chunks/{chunk-JVZYXEYO.js → chunk-7TQID6JJ.js} +1 -1
- package/build/js/chunks/{chunk-MDC2G4SQ.js → chunk-AJE43LJ5.js} +1 -1
- package/build/js/chunks/{chunk-DCZONWJ2.js → chunk-AKDTQZ73.js} +1 -1
- package/build/js/chunks/{chunk-2AJGK77F.js → chunk-AUWF33RB.js} +1 -1
- package/build/js/chunks/chunk-DFFYK2ZZ.js +1 -0
- package/build/js/chunks/chunk-EKOWJS3E.js +1 -0
- package/build/js/chunks/{chunk-QEWYPYNF.js → chunk-ESVB4WW6.js} +1 -1
- package/build/js/chunks/{chunk-T5EUB6UG.js → chunk-FS52JIW4.js} +1 -1
- package/build/js/chunks/chunk-GC2ECHKL.js +2 -0
- package/build/js/chunks/{chunk-TTGWNLNK.js → chunk-GYQMVT7L.js} +1 -1
- package/build/js/chunks/chunk-GYSREBEJ.js +1 -0
- package/build/js/chunks/{chunk-TSOWSKE3.js → chunk-H75G3H4R.js} +1 -1
- package/build/js/chunks/chunk-HJXLUUA6.js +18 -0
- package/build/js/chunks/chunk-JBX2RBUT.js +1 -0
- package/build/js/chunks/{chunk-FSWALUUO.js → chunk-K7MUTJWB.js} +1 -1
- package/build/js/chunks/{chunk-GPKU5XMS.js → chunk-KXSW5F3G.js} +1 -1
- package/build/js/chunks/chunk-L3BBOGIY.js +4 -0
- package/build/js/chunks/{chunk-ZXA6VEK2.js → chunk-LISC6VSM.js} +1 -1
- package/build/js/chunks/chunk-MQ6H2ORR.js +1 -0
- package/build/js/chunks/{chunk-NFB6DO6C.js → chunk-N2GWO3EX.js} +1 -1
- package/build/js/chunks/chunk-NKCR7VPO.js +1 -0
- package/build/js/chunks/chunk-OARD7KIC.js +11 -0
- package/build/js/chunks/{chunk-UOEN3RFJ.js → chunk-OQ4XCKFQ.js} +1 -1
- package/build/js/chunks/{chunk-EUZWZFRQ.js → chunk-PUP3NNKU.js} +1 -1
- package/build/js/chunks/{chunk-SP777KFV.js → chunk-Q5DQ3FTE.js} +1 -1
- package/build/js/chunks/chunk-QR3AOFAD.js +5 -0
- package/build/js/chunks/{chunk-HHMOVH27.js → chunk-R3XUWVHG.js} +2 -2
- package/build/js/chunks/chunk-SFJIWITJ.js +1 -0
- package/build/js/chunks/{chunk-DDYEOOSY.js → chunk-SJJGHQ52.js} +1 -1
- package/build/js/chunks/{chunk-IVDD7PCI.js → chunk-TB4UKDDI.js} +1 -1
- package/build/js/chunks/chunk-TPQTY3KB.js +1 -0
- package/build/js/chunks/chunk-TR3NGINC.js +1 -0
- package/build/js/chunks/{chunk-RX2673AX.js → chunk-U7Z5PR2O.js} +1 -1
- package/build/js/chunks/{chunk-6VWIJ62O.js → chunk-UCD6YLP3.js} +1 -1
- package/build/js/chunks/chunk-UUD3OXOZ.js +1 -0
- package/build/js/chunks/{chunk-6YZS76QW.js → chunk-VBRTZG3W.js} +1 -1
- package/build/js/chunks/chunk-VQ7LLVHQ.js +1 -0
- package/build/js/chunks/{chunk-QM37NXPY.js → chunk-VW3DMTE7.js} +1 -1
- package/build/js/index.d.ts +5 -4
- package/build/js/index.js +3 -3
- package/build/js/private/AnchorPositions.js +1 -1
- package/build/js/private/CameraAccess.d.ts +1 -1
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +1 -1
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +1 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +1 -1
- package/build/js/private/CoreModuleLicenseTextProvider.js +1 -1
- package/build/js/private/CustomLocationsView.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +1 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +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/index.d.ts +1 -1
- package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
- package/build/js/private/GestureRecognizer/index.js +1 -1
- package/build/js/private/HtmlElementState.js +1 -1
- package/build/js/private/NormalizedConfigureOptions.d.ts +6 -5
- package/build/js/private/SingleImageUploaderView.d.ts +1 -1
- package/build/js/private/SingleImageUploaderView.js +1 -1
- package/build/js/private/ViewClassNames.d.ts +0 -2
- package/build/js/private/ViewClassNames.js +1 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +1 -1
- package/build/js/private/ViewStyles.js +1 -1
- package/build/js/private/ViewsRegistry.d.ts +1 -1
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/ui/atoms/Card.d.ts +2 -0
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +3 -2
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/colors.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +1 -1
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/utils/finalizationRegistryPolyfill.d.ts +0 -5
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/polyfillLoader.d.ts +25 -0
- package/build/js/private/utils/polyfillLoader.js +1 -0
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +1 -1
- package/build/js/private/utils/structuredClonePolyfill.d.ts +15 -0
- package/build/js/private/utils/structuredClonePolyfill.js +1 -0
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
- package/build/js/sdk.d.ts +22 -7
- 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/coreCapture.inlineWorker.d.ts +1 -1
- package/build/js/worker/coreCapture.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/dataCaptureWorkerRelated.d.ts +1 -1
- package/build/js/worker/index.d.ts +1 -1
- package/build/js/worker/index.js +1 -1
- package/package.json +1 -1
- package/build/js/chunks/chunk-55IMEHJS.js +0 -1
- package/build/js/chunks/chunk-5FUZURCZ.js +0 -1
- package/build/js/chunks/chunk-7452WLDM.js +0 -1
- package/build/js/chunks/chunk-77BBIAZE.js +0 -1
- package/build/js/chunks/chunk-CXX2ZE7M.js +0 -1
- package/build/js/chunks/chunk-DUPLHZRJ.js +0 -1
- package/build/js/chunks/chunk-F2YB7OLE.js +0 -5
- package/build/js/chunks/chunk-GSFBVAUZ.js +0 -1
- package/build/js/chunks/chunk-JKL2W65E.js +0 -1
- package/build/js/chunks/chunk-KC74WR2Q.js +0 -4
- package/build/js/chunks/chunk-MUJ7NKAY.js +0 -1
- package/build/js/chunks/chunk-NMROJLGQ.js +0 -1
- package/build/js/chunks/chunk-NMX4VHW2.js +0 -1
- package/build/js/chunks/chunk-QMWVSPM5.js +0 -21
- package/build/js/chunks/chunk-TVQ54DA3.js +0 -11
- package/build/js/chunks/chunk-Y6SLVHK3.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty;module.exports=(e={},((e,n,
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty;module.exports=(e={},((e,c,n,l)=>{if(c&&"object"==typeof c||"function"==typeof c)for(let u of o(c))p.call(e,u)||u===n||t(e,u,{get:()=>c[u],enumerable:!(l=r(c,u))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,p={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(p,{CHN:()=>y,Id:()=>i,K:()=>l}),module.exports=(e=p,((e,p,a,l)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of o(p))n.call(e,i)||i===a||t(e,i,{get:()=>p[i],enumerable:!(l=r(p,i))||l.enumerable});return e})(t({},"__esModule",{value:!0}),e));var a=String.fromCodePoint,l=a.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),i=a.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),y=a.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);
|
package/build/electron/main.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,n=Object.defineProperty,t=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,p={};((e,t)=>{for(var a in t)n(e,a,{get:t[a],enumerable:!0})})(p,{register:()=>u,unregister:()=>f}),module.exports=(e=p,((e,p,o
|
|
1
|
+
"use strict";var e,n=Object.defineProperty,t=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,p={};((e,t)=>{for(var a in t)n(e,a,{get:t[a],enumerable:!0})})(p,{register:()=>u,unregister:()=>f}),module.exports=(e=p,((e,p,s,o)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let i of a(p))r.call(e,i)||i===s||n(e,i,{get:()=>p[i],enumerable:!(o=t(p,i))||o.enumerable});return e})(n({},"__esModule",{value:!0}),e));var s=String.fromCodePoint,o=(s.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),s.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57])),i=s.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function l(e,n){return async function(t,a){var r,p,s;if(function(e,n){if(null==e)return!1;const t=new URL(e.url);return n.senderId===o&&"localhost"===t.hostname||""===t.hostname}(t.senderFrame,a))switch(a.type){case"get-license-key":if(null!=a.payload)try{const r=await async function(e,n){const{fs:t,crypto:a,path:r,app:p}=e,[s,o]=n.publicKey.split(":"),i=r.join(p.getAppPath(),n.licenseDataPath);return function(e,n,t){const r=a.createDecipheriv("aes-256-cbc",n,t);let p=r.update(e,"hex","utf8");return p+=r.final("utf8"),p}((await t.readFile(i)).toString("utf8"),Buffer.from(s,"base64"),Buffer.from(o,"base64"))}(e,{licenseDataPath:a.payload.licenseDataPath,publicKey:n});t.sender.send(i,{type:a.type,senderId:a.senderId,payload:{licenseKey:null!=r?r:""}})}catch(e){t.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}break;case"get-app-info":try{const n=await async function(e){var n,t;const{fs:a,path:r,app:p}=e;let s=process.cwd();p.isPackaged&&(s=p.getAppPath());const o=await a.readFile(r.join(s,"package.json"),"utf8"),i=JSON.parse(o);return{appId:null!=(t=null==(n=i.build)?void 0:n.appId)?t:i.appId,name:i.name,version:i.version}}(e);t.sender.send(i,{type:a.type,senderId:a.senderId,payload:{isPackaged:e.app.isPackaged,version:null!=(r=n.version)?r:e.app.getVersion(),appName:null!=(p=n.name)?p:e.app.getName(),appId:null!=(s=n.appId)?s:""}})}catch(e){t.sender.send(i,{type:a.type,senderId:a.senderId,payload:{error:e}})}}}}var c=null,d=null;function u(e,n){d=e,c=l(e,n),d.ipcMain.on(i,c)}function f(){null!=c&&null!=d&&d.ipcMain.off(i,c)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,r=Object.defineProperty,
|
|
1
|
+
"use strict";var e,r=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,p={};((e,t)=>{for(var n in t)r(e,n,{get:t[n],enumerable:!0})})(p,{preloadBindings:()=>s}),module.exports=(e=p,((e,p,a,i)=>{if(p&&"object"==typeof p||"function"==typeof p)for(let l of n(p))o.call(e,l)||l===a||r(e,l,{get:()=>p[l],enumerable:!(i=t(p,l))||i.enumerable});return e})(r({},"__esModule",{value:!0}),e));var a=require("electron"),i=String.fromCodePoint,l=i.apply(String,[119,101,98,107,105,116,84,114,97,110,115,112,111,114,116,68,117,112,108,101,120,67,104,97,110,110,101,108]),y=i.apply(String,[53,65,41,124,75,47,108,120,50,48,115,62,66,60,107,57]),c=i.apply(String,[111,74,88,52,51,101,51,112,66,79,38,88,40,65,36,94]);function d(e){return null!=e.payload.error}function s(e){a.contextBridge.exposeInMainWorld(l,Object.freeze(function(e){return{getAppInfo:async()=>new Promise(((r,t)=>{e.once(c,((e,n)=>{d(n)&&t(n.payload.error),"get-app-info"===n.type&&r(n.payload)})),e.send(c,{type:"get-app-info",senderId:y})})),getKey:async r=>new Promise(((t,n)=>{e.once(c,((e,r)=>{d(r)&&n(r.payload.error),"get-license-key"===r.type&&t(r.payload)})),e.send(c,{type:"get-license-key",senderId:y,payload:r})}))}}(e)))}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as AimerViewfinder}from'./chunks/chunk-
|
|
1
|
+
export{a as AimerViewfinder}from'./chunks/chunk-26DQPDMK.js';
|
package/build/js/Brush.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Brush}from'./chunks/chunk-
|
|
1
|
+
export{a as Brush}from'./chunks/chunk-PUP3NNKU.js';
|
|
@@ -355,6 +355,9 @@ interface DataCaptureViewJSON {
|
|
|
355
355
|
focusGesture: FocusGestureJSON | null;
|
|
356
356
|
zoomGesture: ZoomGestureJSON | null;
|
|
357
357
|
}
|
|
358
|
+
interface DataCaptureViewConnectOptions {
|
|
359
|
+
camera?: Camera;
|
|
360
|
+
}
|
|
358
361
|
declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
|
|
359
362
|
focusGesture: FocusGesture | null;
|
|
360
363
|
zoomGesture: ZoomGesture | null;
|
|
@@ -371,15 +374,14 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
|
|
|
371
374
|
private containerElement;
|
|
372
375
|
private cameraPaintboardElement?;
|
|
373
376
|
private singleImageUploaderPaintboardElement?;
|
|
374
|
-
private
|
|
377
|
+
private frameSourceListener;
|
|
378
|
+
private _previewCamera;
|
|
379
|
+
private get videoElement();
|
|
375
380
|
private visibilityListener;
|
|
376
|
-
private videoPauseListener;
|
|
377
381
|
private cameraRecoveryListener;
|
|
378
382
|
private controlsElement;
|
|
379
383
|
private cameraRecoveryElement;
|
|
380
384
|
private errorElement;
|
|
381
|
-
private hintContainerElement;
|
|
382
|
-
private hintElement;
|
|
383
385
|
private canvasElement;
|
|
384
386
|
private frozenFrame;
|
|
385
387
|
private frozenFrameCanvas;
|
|
@@ -431,7 +433,7 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
|
|
|
431
433
|
setProgressBarMessage(message: string): void;
|
|
432
434
|
getContext(): DataCaptureContext$1 | null;
|
|
433
435
|
setContext(context: DataCaptureContext$1 | null): Promise<void>;
|
|
434
|
-
connectToElement(element: HTMLElement): void;
|
|
436
|
+
connectToElement(element: HTMLElement, options?: DataCaptureViewConnectOptions): void;
|
|
435
437
|
detachFromElement(): void;
|
|
436
438
|
addOverlay(overlay: DataCaptureOverlay): Promise<void>;
|
|
437
439
|
removeOverlay(overlay: DataCaptureOverlay): Promise<void>;
|
|
@@ -470,10 +472,6 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
|
|
|
470
472
|
private drawEngineCommands;
|
|
471
473
|
private displayError;
|
|
472
474
|
private clearError;
|
|
473
|
-
private displayHint;
|
|
474
|
-
private hideHint;
|
|
475
|
-
private updateHint;
|
|
476
|
-
private updateAnchor;
|
|
477
475
|
private controlsUpdated;
|
|
478
476
|
private redrawControls;
|
|
479
477
|
/**
|
|
@@ -485,7 +483,6 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
|
|
|
485
483
|
private onCameraStateChanged;
|
|
486
484
|
private setVideoElementOpacity;
|
|
487
485
|
private onSingleImageUploaderSettingsChange;
|
|
488
|
-
private handleVideoPause;
|
|
489
486
|
private setHiddenProperty;
|
|
490
487
|
private onVisibilityChange;
|
|
491
488
|
private cameraRecovery;
|
|
@@ -583,22 +580,19 @@ type Change = {
|
|
|
583
580
|
newValue: DataCaptureView$1 | null;
|
|
584
581
|
};
|
|
585
582
|
type PrivateChangeSet = Change[];
|
|
586
|
-
interface PrivateDataCaptureMode {
|
|
587
|
-
type: "barcodeCapture" | "idCapture";
|
|
588
|
-
skipSerialization: boolean;
|
|
589
|
-
_context: Optional<DataCaptureContext$1>;
|
|
590
|
-
attachedToContext: (context: DataCaptureContext$1) => Promise<void>;
|
|
591
|
-
detachedFromContext: () => Promise<void>;
|
|
592
|
-
_synchronousFrameFlow?: boolean;
|
|
593
|
-
}
|
|
594
583
|
interface DataCaptureMode extends Serializable {
|
|
595
584
|
isEnabled(): boolean;
|
|
596
585
|
setEnabled(enabled: boolean): Promise<void>;
|
|
597
586
|
context: Optional<DataCaptureContext$1>;
|
|
598
587
|
}
|
|
599
|
-
interface
|
|
600
|
-
|
|
601
|
-
|
|
588
|
+
interface PrivateDataCaptureMode extends DataCaptureMode {
|
|
589
|
+
type: "barcodeCapture" | "idCapture";
|
|
590
|
+
skipSerialization?: boolean;
|
|
591
|
+
[nativeHandle]?: symbol;
|
|
592
|
+
_context: Optional<DataCaptureContext$1>;
|
|
593
|
+
attachedToContext: (context: DataCaptureContext$1) => Promise<void>;
|
|
594
|
+
detachedFromContext: () => Promise<void>;
|
|
595
|
+
_synchronousFrameFlow?: boolean;
|
|
602
596
|
}
|
|
603
597
|
interface DataCaptureModeJSON<S = JSONType> {
|
|
604
598
|
type: "barcodeCapture" | "barcodeTracking" | "idCapture" | "parser" | "sparkScan" | "barcodeFind" | "barcodeAr" | "labelCapture";
|
|
@@ -616,14 +610,18 @@ interface PrivateDataCaptureContextOptions {
|
|
|
616
610
|
deviceName?: string | null;
|
|
617
611
|
dataCaptureInstance?: DataCaptureLoader;
|
|
618
612
|
delayedRegistration?: boolean;
|
|
613
|
+
licenseKey?: string;
|
|
614
|
+
settings?: DataCaptureContextSettings;
|
|
619
615
|
}
|
|
620
616
|
interface PrivateDataCaptureContext<W extends (...parameters: any[]) => unknown = DataCaptureLoader["workerCommand"]> {
|
|
621
617
|
_frameSource?: FrameSource | null;
|
|
622
618
|
_useSynchronousFrameFlow: boolean;
|
|
623
619
|
modes: Set<DataCaptureMode>;
|
|
624
620
|
components: DataCaptureComponent[];
|
|
625
|
-
|
|
626
|
-
update: (changeSet?: PrivateChangeSet
|
|
621
|
+
createContext: (subscribeToCameraManagerAndVisibilityEvents?: boolean) => Promise<void>;
|
|
622
|
+
update: (changeSet?: PrivateChangeSet, { updateContext }?: {
|
|
623
|
+
updateContext?: boolean;
|
|
624
|
+
}) => Promise<void>;
|
|
627
625
|
addNativeOverlay: (overlay: DataCaptureOverlay) => Promise<void>;
|
|
628
626
|
removeNativeOverlay: (overlay: DataCaptureOverlay) => Promise<void>;
|
|
629
627
|
addComponent: (component: DataCaptureComponent) => Promise<void>;
|
|
@@ -632,13 +630,14 @@ interface PrivateDataCaptureContext<W extends (...parameters: any[]) => unknown
|
|
|
632
630
|
subscribeToWorkerMessages: (listener: (message: DataCaptureCallbackMessage) => void) => void;
|
|
633
631
|
unsubscribeToWorkerMessages: (listener: (message: DataCaptureCallbackMessage) => void) => void;
|
|
634
632
|
hasEnabledMode: () => boolean;
|
|
635
|
-
|
|
633
|
+
hasModes: () => boolean;
|
|
636
634
|
workerCommand: MethodSignature<W>;
|
|
637
635
|
performanceMark: MethodSignature<DataCaptureContext$1["performanceMark"]>;
|
|
638
636
|
isFeatureSupported: (feature: LicensedFeature) => Promise<boolean>;
|
|
639
|
-
new (
|
|
637
|
+
new (): DataCaptureContext$1;
|
|
640
638
|
updateListeners: Set<(change: Change) => void>;
|
|
641
639
|
updateCameraFrameFlow: (synchronous: boolean) => void;
|
|
640
|
+
getView: () => DataCaptureView$1 | null;
|
|
642
641
|
}
|
|
643
642
|
interface DataCaptureContextCreationOptions {
|
|
644
643
|
deviceName?: string;
|
|
@@ -672,22 +671,22 @@ declare class DataCaptureContext$1 implements Serializable<DataCaptureContextJSO
|
|
|
672
671
|
private readonly framework;
|
|
673
672
|
private readonly runtimeEnvironment;
|
|
674
673
|
private settings;
|
|
675
|
-
private
|
|
676
|
-
private
|
|
674
|
+
private licenseKey;
|
|
675
|
+
private deviceName;
|
|
677
676
|
private _frameSource;
|
|
678
677
|
private _view;
|
|
679
678
|
private readonly modes;
|
|
680
|
-
private readonly nativeModes;
|
|
681
679
|
private readonly components;
|
|
682
|
-
private
|
|
680
|
+
private listeners;
|
|
683
681
|
private readonly updateListeners;
|
|
684
682
|
private readonly cameraPropertiesReportListener;
|
|
685
683
|
private readonly cameraAccessErrorListener;
|
|
686
684
|
private readonly onWorkerMessageListener;
|
|
687
685
|
private readonly onVisibilityChangeListener;
|
|
688
|
-
private
|
|
689
|
-
private readonly
|
|
690
|
-
private
|
|
686
|
+
private dataCaptureInstance;
|
|
687
|
+
private readonly pendingWorkerMessageListeners;
|
|
688
|
+
private delayedRegistration;
|
|
689
|
+
private highEndBlurryRecognition;
|
|
691
690
|
private readonly _frameHandlers;
|
|
692
691
|
/**
|
|
693
692
|
* When synchronous, only one frame is processed at a time by the capture mode, the frame source will wait until the
|
|
@@ -697,7 +696,9 @@ declare class DataCaptureContext$1 implements Serializable<DataCaptureContextJSO
|
|
|
697
696
|
* MatrixScan and other barcode modes usually use the asynchronous flow because they can use multi-threading.
|
|
698
697
|
*/
|
|
699
698
|
private _useSynchronousFrameFlow;
|
|
700
|
-
private
|
|
699
|
+
private static _sharedInstance;
|
|
700
|
+
static get sharedInstance(): DataCaptureContext$1;
|
|
701
|
+
private initializeWithOptions;
|
|
701
702
|
get frameSource(): FrameSource | null;
|
|
702
703
|
private get workerCommand();
|
|
703
704
|
static create(): Promise<DataCaptureContext$1>;
|
|
@@ -715,6 +716,11 @@ declare class DataCaptureContext$1 implements Serializable<DataCaptureContextJSO
|
|
|
715
716
|
removeListener(listener: DataCaptureContextListener): void;
|
|
716
717
|
addMode(mode: DataCaptureMode): Promise<void>;
|
|
717
718
|
removeMode(mode: DataCaptureMode): Promise<void>;
|
|
719
|
+
setMode(mode: DataCaptureMode): Promise<void>;
|
|
720
|
+
removeCurrentMode(): Promise<void>;
|
|
721
|
+
/**
|
|
722
|
+
* @deprecated Use removeCurrentMode instead.
|
|
723
|
+
*/
|
|
718
724
|
removeAllModes(): Promise<void>;
|
|
719
725
|
dispose(): Promise<void>;
|
|
720
726
|
applySettings(settings: DataCaptureContextSettings): Promise<void>;
|
|
@@ -724,7 +730,7 @@ declare class DataCaptureContext$1 implements Serializable<DataCaptureContextJSO
|
|
|
724
730
|
private getAppName;
|
|
725
731
|
private urlToHostname;
|
|
726
732
|
private getParentDomain;
|
|
727
|
-
private
|
|
733
|
+
private createContext;
|
|
728
734
|
private subscribeToVisibilityChange;
|
|
729
735
|
private unsubscribeToVisibilityChange;
|
|
730
736
|
private requestFrameData;
|
|
@@ -744,14 +750,11 @@ declare class DataCaptureContext$1 implements Serializable<DataCaptureContextJSO
|
|
|
744
750
|
private getViewInfo;
|
|
745
751
|
private getMirrorAxisForFrameSource;
|
|
746
752
|
private addComponent;
|
|
747
|
-
private addNativeMode;
|
|
748
|
-
private removeNativeMode;
|
|
749
753
|
private addNativeOverlay;
|
|
750
754
|
private removeNativeOverlay;
|
|
751
755
|
private subscribeToWorkerMessages;
|
|
752
756
|
private unsubscribeToWorkerMessages;
|
|
753
757
|
private hasEnabledMode;
|
|
754
|
-
private hasEnabledNativeMode;
|
|
755
758
|
/**
|
|
756
759
|
* Some capture modes process frames synchronously, like IdCapture. Other can process multiple frames
|
|
757
760
|
* in parallel, like MatrixScan. We inform the CameraManager how to process frames.
|
|
@@ -1643,6 +1646,7 @@ declare class CameraManager {
|
|
|
1643
1646
|
private isWebGLSupported;
|
|
1644
1647
|
private clippedFrameRequestID?;
|
|
1645
1648
|
private isVideoStreamPaused;
|
|
1649
|
+
private handleVideoPauseHandler;
|
|
1646
1650
|
constructor();
|
|
1647
1651
|
get mediaStream(): MediaStream | undefined;
|
|
1648
1652
|
set mediaStream(stream: MediaStream | undefined);
|
|
@@ -1751,6 +1755,10 @@ declare class CameraManager {
|
|
|
1751
1755
|
private clipMediaStreamIfNeeded;
|
|
1752
1756
|
private drawClippedFrame;
|
|
1753
1757
|
private cleanupClippedStream;
|
|
1758
|
+
connectedCallback(mountLocation: HTMLElement): void;
|
|
1759
|
+
disconnectedCallback(): void;
|
|
1760
|
+
getVideoElement(): HTMLVideoElement;
|
|
1761
|
+
private handleVideoPause;
|
|
1754
1762
|
}
|
|
1755
1763
|
|
|
1756
1764
|
interface CameraJSON extends FrameSourceJSON {
|
|
@@ -1834,4 +1842,4 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
|
|
|
1834
1842
|
private isZoomAvailable;
|
|
1835
1843
|
}
|
|
1836
1844
|
|
|
1837
|
-
export { type AugmentedWorker 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,
|
|
1845
|
+
export { type AugmentedWorker 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, type DataCaptureViewConnectOptions as M, DataCaptureView$1 as N, type FrameData as O, type PrivateChangeSet as P, type PrivateLoadableFrameData as Q, convertToPublicFrameData as R, type DataCaptureLoaderOptions as S, TorchState as T, HintPresenter as U, VideoResolution as V, type PerformanceMetrics as W, DataCaptureEngine as X, type Module as Y, type GenericHint as Z, type AnyDataCaptureActionMessage as _, type FrameSource as a, HintTextAlignment as a$, type ModuleHandler as a0, type DataCaptureCallbackMessage as a1, type DataCaptureActionMessageKey as a2, type EngineWorkerResponse as a3, type ExtractCentaurusLicenseResponse as a4, type RequestFrameDataResponse as a5, type IsFeatureSupportedResponse as a6, type GetViewfinderInfo as a7, type GetOpenSourceSoftwareLicenseInfoResponse as a8, type WorkerResponse as a9, type PerformanceMetricsReportMessage as aA, type DidTapTrackedBarcode as aB, type OnFrameProcessingStartedMessage as aC, type OnFrameProcessingFinishedMessage as aD, type OnFrameSkippedMessage as aE, type ShowToastMessage as aF, type HideToastMessage as aG, type ShowGuidanceMessage as aH, type HideGuidanceMessage as aI, type StartUpdateTimerMessage as aJ, type StopUpdateTimerMessage as aK, type PayloadForCommand as aL, type DataCaptureWorker as aM, type EmscriptenClassHandle as aN, type DataCaptureContext as aO, type DataCaptureImageBufferFrameSource as aP, type GestureListener as aQ, type GestureRecognizer as aR, type DataCaptureView as aS, type JSONParseable as aT, type DataCaptureContextDeserializerResult as aU, type DataCaptureContextDeserializer as aV, type CaptureModeDeserializerInstance as aW, type ModuleMirrorAxis as aX, type Vector as aY, type WasmFrameData as aZ, HintFont as a_, type LoadLibraryDataCaptureAction as aa, type CreateContextDataCaptureAction as ab, type SetFrameSourceDataCaptureAction as ac, type ProcessFrameDataCaptureAction as ad, type RequestFrameDataDataCaptureAction as ae, type DeleteFrameDataDataCaptureAction as af, type VisibilityChangeAction as ag, type IsFeatureSupportedAction as ah, type UpdateContextDataCaptureAction as ai, type DisposeDataCaptureAction as aj, type FlushAnalyticsDataCaptureAction as ak, type ReportCameraPropertiesDataCaptureAction as al, type SetLogLevelDataCaptureAction as am, type ExtractCentaurusLicenseDataCaptureAction as an, type OnTapAction as ao, type HintPresenterV2updateAction as ap, type GetViewfinderInfoAction as aq, type GetOpenSourceSoftwareLicenseInfoAction as ar, type AddNativeOverlayAction as as, type RemoveNativeOverlayAction as at, type DataCaptureCallbackMessageKeys as au, type SuccessFeedbackWorkerMessage as av, type ShowHintWorkerMessage as aw, type UpdateHintWorkerMessage as ax, type IsFeatureSupportedMessage as ay, type HideHintWorkerMessage as az, FrameSourceState as b, HintWidth as b0, HintHeight as b1, HintCornerStyle as b2, HintIcon as b3, HintAnchor as b4, type HintStyle as b5, GuidanceHintAnchor as b6, GuidanceHintStyle as b7, type GuidanceHint as b8, ToastHintStyle as b9, type GUI as bA, CameraManagerEvent as bB, type CameraManagerEventParameters as bC, CameraManager as bD, type ToastHint as ba, LicensedFeature as bb, type HintPresenterV2 as bc, type PlatformHintPresenter as bd, type LoadLibraryParameters as be, type CreateContextParameters as bf, type UpdateContextParameters as bg, type SetFrameSourceParameters as bh, type ProcessFrameParameters as bi, type ReportCameraPropertiesParameters as bj, type WorkerFunctions as bk, FrameReaderAbstract as bl, ColorType as bm, type PoolCapacityOptions as bn, type FrameCapture as bo, FrameReader as bp, CameraPosition$1 as bq, CameraResolutionConstraint$1 as br, AspectRatio as bs, type DeviceCamera$1 as bt, CameraAccess$1 as bu, HintPresenterEvents as bv, MeteringMode as bw, CameraResolutionConstraint as bx, type ExtendedMediaTrackCapabilities as by, type ExtendedMediaTrackConstraintSet as bz, type FrameSourceListener as c, type FrameSourceJSON as d, type CameraJSON as e, type VideoFrameResolution as f, Camera as g, CameraAccess as h, type DeviceCamera as i, type CameraSettingsJSONBase as j, type CameraSettingsFromJSON as k, type CameraSettingsJSON as l, isCameraFrameSource as m, CameraSettings as n, type Change as o, type DataCaptureMode as p, type PrivateDataCaptureMode 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-Bpnu6h9d.js';
|
|
3
3
|
import './Common.js';
|
|
4
4
|
import './private/Serializable.js';
|
|
5
5
|
import './private/FrameReaders/WatermarkStack.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-Q5DQ3FTE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { h as CameraAccess, i as DeviceCamera } from './Camera-
|
|
2
|
+
export { h as CameraAccess, i as DeviceCamera } from './Camera-Bpnu6h9d.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './Common.js';
|
|
5
5
|
import './private/FrameReaders/WatermarkStack.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-DFFYK2ZZ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { C as CameraPosition, n as CameraSettings, k as CameraSettingsFromJSON, l as CameraSettingsJSON, j as CameraSettingsJSONBase, F as FocusGestureStrategy, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, T as TorchState, V as VideoResolution, m as isCameraFrameSource } from './Camera-
|
|
2
|
+
export { C as CameraPosition, n as CameraSettings, k as CameraSettingsFromJSON, l as CameraSettingsJSON, j as CameraSettingsJSONBase, F as FocusGestureStrategy, a as FrameSource, d as FrameSourceJSON, c as FrameSourceListener, b as FrameSourceState, T as TorchState, V as VideoResolution, m as isCameraFrameSource } from './Camera-Bpnu6h9d.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
4
|
import './Common.js';
|
|
5
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as CameraPosition,g as CameraSettings,e as FocusGestureStrategy,a as FrameSourceState,b as TorchState,d as VideoResolution,f as isCameraFrameSource}from'./chunks/chunk-
|
|
1
|
+
export{c as CameraPosition,g as CameraSettings,e as FocusGestureStrategy,a as FrameSourceState,b as TorchState,d as VideoResolution,f as isCameraFrameSource}from'./chunks/chunk-7ELPJFJV.js';
|
package/build/js/Common.d.ts
CHANGED
package/build/js/Common.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{q as Anchor,n as Color,p as Direction,m as MarginsWithUnit,c as MeasureUnit,d as NumberWithUnit,o as Orientation,a as Point,e as PointWithUnit,b as Quadrilateral,f as Rect,g as RectWithUnit,i as Size,j as SizeWithAspect,h as SizeWithUnit,l as SizeWithUnitAndAspect,k as SizingMode}from'./chunks/chunk-
|
|
1
|
+
export{q as Anchor,n as Color,p as Direction,m as MarginsWithUnit,c as MeasureUnit,d as NumberWithUnit,o as Orientation,a as Point,e as PointWithUnit,b as Quadrilateral,f as Rect,g as RectWithUnit,i as Size,j as SizeWithAspect,h as SizeWithUnit,l as SizeWithUnitAndAspect,k as SizingMode}from'./chunks/chunk-TPQTY3KB.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
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,
|
|
2
|
+
export { o as Change, u as DataCaptureComponent, t as DataCaptureComponentJSON, B as DataCaptureContext, x as DataCaptureContextCreationOptions, y as DataCaptureContextJSON, p as DataCaptureMode, r as DataCaptureModeJSON, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, q as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse } from './Camera-Bpnu6h9d.js';
|
|
3
3
|
import './Common.js';
|
|
4
4
|
import './DataCaptureContextSettings.js';
|
|
5
5
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
6
6
|
import './private/HtmlElementState.js';
|
|
7
7
|
import './private/Serializable.js';
|
|
8
|
+
import './private/nativeHandle.js';
|
|
8
9
|
import './tsHelper.js';
|
|
9
10
|
import './private/FrameReaders/WatermarkStack.js';
|
|
10
11
|
import './ScanditIcon.js';
|
|
@@ -17,7 +18,6 @@ import './ViewControls.js';
|
|
|
17
18
|
import './private/CustomLocationsView.js';
|
|
18
19
|
import './private/View.js';
|
|
19
20
|
import './private/AnchorPositions.js';
|
|
20
|
-
import './private/nativeHandle.js';
|
|
21
21
|
import './worker/OverrideState.js';
|
|
22
22
|
import './logger.js';
|
|
23
23
|
import './LoadingStatus.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureContext}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureContext}from'./chunks/chunk-L3BBOGIY.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-Bpnu6h9d.js';
|
|
3
3
|
import './ScanditIcon.js';
|
|
4
4
|
import './private/Serializable.js';
|
|
5
5
|
import './Common.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureVersion}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureVersion}from'./chunks/chunk-JBX2RBUT.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
+
export { J as DataCaptureOverlay, N as DataCaptureView, M as DataCaptureViewConnectOptions, L as DataCaptureViewJSON, K as DataCaptureViewListener } from './Camera-Bpnu6h9d.js';
|
|
2
3
|
import './Common.js';
|
|
3
|
-
export { J as DataCaptureOverlay, M as DataCaptureView, L as DataCaptureViewJSON, K as DataCaptureViewListener } from './Camera-bxDEtlUu.js';
|
|
4
4
|
import './DataCaptureViewPlusRelated.js';
|
|
5
5
|
import './NotificationPresenter/NotificationPresenter.js';
|
|
6
6
|
import './ViewControls.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureView}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureView}from'./chunks/chunk-HJXLUUA6.js';
|
|
@@ -9,8 +9,6 @@ declare const defaultViewClassnames: {
|
|
|
9
9
|
MIRRORED_CLASS_NAME: string;
|
|
10
10
|
CAMERA_RECOVERY_CLASS_NAME: string;
|
|
11
11
|
ERROR_CLASS_NAME: string;
|
|
12
|
-
HINT_CONTAINER_CLASS_NAME: string;
|
|
13
|
-
HINT_CLASS_NAME: string;
|
|
14
12
|
SINGLE_IMAGE_UPLOADER_CONTAINER_CLASS_NAME: string;
|
|
15
13
|
CANVAS_VIDEO_PREVIEW_CLASS_NAME: string;
|
|
16
14
|
TORCH_SWITCH_CONTROL_CLASS_NAME: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as defaultViewClassnames}from'./chunks/chunk-
|
|
1
|
+
export{a as defaultViewClassnames}from'./chunks/chunk-VQ7LLVHQ.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-Bpnu6h9d.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 { PrivateLaserlineViewfinderDefault, RectangularViewfinderStyle, PrivateRectangularViewfinderDefault } from './ViewfinderPlusRelated.js';
|
package/build/js/Defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as PrivateFocusGestureDeserializer,b as PrivateZoomGestureDeserializer,d as defaultValues,c as defaultsFromJSON,e as setDefaults}from'./chunks/chunk-
|
|
1
|
+
export{a as PrivateFocusGestureDeserializer,b as PrivateZoomGestureDeserializer,d as defaultValues,c as defaultsFromJSON,e as setDefaults}from'./chunks/chunk-VW3DMTE7.js';
|
package/build/js/Feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Feedback}from'./chunks/chunk-
|
|
1
|
+
export{a as Feedback}from'./chunks/chunk-N2GWO3EX.js';
|
package/build/js/FrameData.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { O as FrameData, Q as PrivateLoadableFrameData, R as convertToPublicFrameData } from './Camera-
|
|
2
|
+
export { O as FrameData, Q as PrivateLoadableFrameData, R as convertToPublicFrameData } from './Camera-Bpnu6h9d.js';
|
|
3
3
|
import './ScanditIcon.js';
|
|
4
4
|
import './private/Serializable.js';
|
|
5
5
|
import './Common.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-Bpnu6h9d.js';
|
|
3
3
|
import { Serializable } from './private/Serializable.js';
|
|
4
4
|
import './Common.js';
|
|
5
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LaserlineViewfinder}from'./chunks/chunk-
|
|
1
|
+
export{a as LaserlineViewfinder}from'./chunks/chunk-H75G3H4R.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as PrivateNoneLocationSelection,b as RadiusLocationSelection,c as RectangularLocationSelection}from'./chunks/chunk-
|
|
1
|
+
export{a as PrivateNoneLocationSelection,b as RadiusLocationSelection,c as RectangularLocationSelection}from'./chunks/chunk-AKDTQZ73.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as NotificationBuilder}from'../chunks/chunk-
|
|
1
|
+
export{a as NotificationBuilder}from'../chunks/chunk-VBRTZG3W.js';
|
|
@@ -8,7 +8,7 @@ import '../Common.js';
|
|
|
8
8
|
import '../private/Serializable.js';
|
|
9
9
|
import '../ScanditIcon.js';
|
|
10
10
|
import '../private/utils/ScanditHTMLElement.js';
|
|
11
|
-
import '../Camera-
|
|
11
|
+
import '../Camera-Bpnu6h9d.js';
|
|
12
12
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
13
13
|
import '../tsHelper.js';
|
|
14
14
|
import '../DataCaptureContextSettings.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as NotificationBuilder}from'../chunks/chunk-
|
|
1
|
+
export{a as NotificationBuilder}from'../chunks/chunk-VBRTZG3W.js';export{a as ConcreteNotificationPresenter}from'../chunks/chunk-3MEGNPVU.js';export{a as NotificationConfiguration}from'../chunks/chunk-KUVVZN66.js';export{a as NotificationStyle}from'../chunks/chunk-RXT3JWWR.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { U as HintPresenter } from '../../Camera-
|
|
2
|
+
import { U as HintPresenter } from '../../Camera-Bpnu6h9d.js';
|
|
3
3
|
import { NotificationConfiguration } from '../NotificationConfiguration.js';
|
|
4
4
|
import { NotificationPresenter } from '../NotificationPresenter.js';
|
|
5
5
|
import '../../private/Serializable.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import { Z as GenericHint } from '../../Camera-
|
|
2
|
+
import { Z as GenericHint } from '../../Camera-Bpnu6h9d.js';
|
|
3
3
|
import { NotificationConfiguration } from '../NotificationConfiguration.js';
|
|
4
4
|
import '../../private/Serializable.js';
|
|
5
5
|
import '../../Common.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as RectangularViewfinder}from'./chunks/chunk-
|
|
1
|
+
export{a as RectangularViewfinder}from'./chunks/chunk-6NVWG2LP.js';
|
package/build/js/ScanditIcon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-
|
|
1
|
+
export{b as ScanditIcon,a as ScanditIconShape}from'./chunks/chunk-27Z5CYJL.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-
|
|
1
|
+
export{c as ScanditIconBuilder,b as ScanditIconForIconType,a as ScanditIconType}from'./chunks/chunk-U7Z5PR2O.js';export{a as ScanditIconShape}from'./chunks/chunk-27Z5CYJL.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-Bpnu6h9d.js';
|
|
3
3
|
import { SingleImageUploaderSettingsJSON, SingleImageUploaderSettings } from './SingleImageUploaderSettings.js';
|
|
4
4
|
import { Serializable } from './private/Serializable.js';
|
|
5
5
|
import './Common.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SingleImageUploader}from'./chunks/chunk-
|
|
1
|
+
export{a as SingleImageUploader}from'./chunks/chunk-4TDWWHP2.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SingleImageUploaderSettings}from'./chunks/chunk-
|
|
1
|
+
export{a as SingleImageUploaderSettings}from'./chunks/chunk-5S5BT5PK.js';
|
package/build/js/Sound.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Sound}from'./chunks/chunk-
|
|
1
|
+
export{a as Sound}from'./chunks/chunk-AUWF33RB.js';
|
package/build/js/Vibration.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Vibration}from'./chunks/chunk-
|
|
1
|
+
export{a as Vibration}from'./chunks/chunk-SJJGHQ52.js';
|
package/build/js/ViewControls.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as CameraFOVSwitchControl,b as CameraSwitchControl,a as TorchSwitchControl}from'./chunks/chunk-
|
|
1
|
+
export{c as CameraFOVSwitchControl,b as CameraSwitchControl,a as TorchSwitchControl}from'./chunks/chunk-FS52JIW4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BrowserHelper}from'./chunks/chunk-
|
|
1
|
+
export{a as BrowserHelper}from'./chunks/chunk-UCD6YLP3.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {d}from'./chunk-
|
|
1
|
+
import {d}from'./chunk-VW3DMTE7.js';var r=class{constructor(){this.frameColor=d.AimerViewfinder.frameColor;this.dotColor=d.AimerViewfinder.dotColor;this.type="aimer";}toJSONObject(){return {type:this.type,frameColor:this.frameColor.toJSON(),dotColor:this.dotColor.toJSON()}}};export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {e}from'./chunk-
|
|
1
|
+
import {e}from'./chunk-TB4UKDDI.js';import {a as a$2}from'./chunk-3A4KLILV.js';import {a as a$1}from'./chunk-MU6SADSF.js';import {a}from'./chunk-EV4OEANA.js';import {a as a$3}from'./chunk-LSZZVJ6B.js';import {n as n$1}from'./chunk-TPQTY3KB.js';var v=(e=>(e.Circle="circle",e.Square="square",e))(v||{}),c="--width",l="--height",h="--background-color",d="--stroke-color",p="--stroke-width",n=class n extends a{constructor(){super();this.onSlotChangeListener=this.onSlotChange.bind(this);let e=this.attachShadow({mode:"open"});e.innerHTML=a$1`<div class="container shape-none"><slot /></div>`,this.containerElement=e.querySelector(".container"),this.setStylePropertyValue(c,"32px"),this.setStylePropertyValue(l,"32px"),this.setStylePropertyValue(h,"transparent"),this.setStylePropertyValue(d,"#fff"),this.setStylePropertyValue(p,"0px"),e.append(n.createStyleElement().cloneNode(true));}get iconColor(){var o,r;let e=(o=this.shadowRoot)==null?void 0:o.querySelector("slot"),t=(r=e==null?void 0:e.assignedElements())!=null?r:[];return n$1.fromHex(t[0].fill)}set iconColor(e){this.render({propChanged:"iconcolor",value:`#${e.toJSON()}`});}get backgroundColor(){return n$1.fromHex(this.getStylePropertyValue(h))}set backgroundColor(e){this.render({propChanged:"backgroundcolor",value:`#${e.toJSON()}`});}get backgroundStrokeColor(){return n$1.fromHex(this.getStylePropertyValue(d))}set backgroundStrokeColor(e){this.render({propChanged:"backgroundstrokecolor",value:`#${e.toJSON()}`});}get backgroundStrokeWidth(){let e=this.getStylePropertyValue(p);return Number.parseInt(e,10)}set backgroundStrokeWidth(e){this.render({propChanged:"backgroundstrokewidth",value:String(e)});}get backgroundShape(){var t;let e=(t=/shape-(.*)/.exec(this.containerElement.classList.value))==null?void 0:t[1];return e!=null&&e!=="none"?e:null}set backgroundShape(e){this.render({propChanged:"backgroundshape",value:e!=null?e:"none"});}set width(e){this.render({propChanged:"width",value:String(e)}),this.updateIconSizeProperty(e,this.height);}get width(){let e=this.getStylePropertyValue(c).replace("px","");return Number.parseInt(e,10)}set height(e){this.render({propChanged:"height",value:String(e)}),this.updateIconSizeProperty(this.width,e);}get height(){let e=this.getStylePropertyValue(l).replace("px","");return Number.parseInt(e,10)}static create(){return n.register(),document.createElement(n.tag)}static register(){a$2({[n.tag]:n});}static createStyleElement(){return a$3`:host{display:inline-block;--width:32px;--height:32px;--background-color:#0000;--stroke-color:#fff;--stroke-width:0px}:host([hidden]){display:none}.container{background-color:var(--background-color);box-shadow:0 1px 2px 0 #${e.withAlpha(.3).toJSON()};height:calc(var(--height) - var(--stroke-width));outline:var(--stroke-width) solid var(--stroke-color);position:relative;width:calc(var(--width) - var(--stroke-width))}.container.shape-${"circle"}{border-radius:50%}.container.shape-${"square"}{border-radius:0}.container.shape-none{box-shadow:unset}::slotted(*){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}`}onSlotChange(){this.updateIconSizeProperty(this.width,this.height);}connectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.addEventListener("slotchange",this.onSlotChangeListener);}disconnectedCallback(){var t;let e=(t=this.shadowRoot)==null?void 0:t.querySelector("slot");e==null||e.removeEventListener("slotchange",this.onSlotChangeListener);}render({propChanged:e,value:t}){switch(e){case "width":{this.setStylePropertyValue(c,`${t}px`);break}case "height":{this.setStylePropertyValue(l,`${t}px`);break}case "backgroundstrokewidth":{this.setStylePropertyValue(p,`${t}px`);break}case "backgroundstrokecolor":{this.setStylePropertyValue(d,t);break}case "backgroundcolor":{this.setStylePropertyValue(h,t);break}case "iconcolor":{this.updateFillIconColor(n$1.fromHex(t));break}case "backgroundshape":{let o=t;this.containerElement.classList.toggle("shape-circle",o==="circle"),this.containerElement.classList.toggle("shape-square",o==="square"),this.containerElement.classList.toggle("shape-none",o==="none");break}}}attributeChangedCallback(e,t,o){this.render({propChanged:e,value:o});}getStylePropertyValue(e){return this.containerElement.style.getPropertyValue(e)}setStylePropertyValue(e,t){this.containerElement.style.setProperty(e,t);}updateIconSizeProperty(e,t){var s,u;let o=(s=this.shadowRoot)==null?void 0:s.querySelector("slot"),r=(u=o==null?void 0:o.assignedElements())!=null?u:[],a=Math.min(e,t);for(let C of r)C.size=a/2;}setIconSize(e){var r,a;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(a=t==null?void 0:t.assignedElements())!=null?a:[];for(let s of o)s.size=e;}updateFillIconColor(e){var r,a;let t=(r=this.shadowRoot)==null?void 0:r.querySelector("slot"),o=(a=t==null?void 0:t.assignedElements())!=null?a:[];for(let s of o)s.fill=`#${e.toJSON()}`;}};n.tag="scandit-barcode-icon-container",n.observedAttributes=["width","height","backgroundstrokecolor","backgroundcolor","backgroundstrokewidth","iconcolor","backgroundshape"];var y=n;export{v as a,y as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-IGJQFAQU.js';import {a}from'./chunk-EP3GI7KA.js';import {a as a$2}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-IGJQFAQU.js';import {a}from'./chunk-EP3GI7KA.js';import {a as a$2}from'./chunk-TPQTY3KB.js';var v=class extends a{constructor(e){super();this._onTouchStart=this.onTouchStart.bind(this);this._onPointerDown=this.onPointerDown.bind(this);a$1.detect(),this.element=e,this.addPointerDownListener();}removeAllListeners(){this.element.removeEventListener("touchend",this._onTouchStart),this.element.removeEventListener("mousedown",this._onPointerDown),this.element.removeEventListener("pointerdown",this._onPointerDown);}addPointerDownListener(){a$1.hasApi?this.element.addEventListener(a$1.prefixIfNeeded("pointerdown"),this._onPointerDown):a$1.hasTouch?this.element.addEventListener("touchstart",this._onTouchStart):this.element.addEventListener("mousedown",this._onPointerDown);}onPointerDown(e){let{clientX:n,clientY:t,button:o,currentTarget:a=this.element}=e;o===0&&this.onTap(this.pointRelativeToElement({clientX:n,clientY:t,rect:a.getBoundingClientRect()}),e);}onTouchStart(e){let[n]=e.touches,{clientX:t,clientY:o}=n;this.onTap(this.pointRelativeToElement({clientX:t,clientY:o,rect:this.element.getBoundingClientRect()}),e);}pointRelativeToElement({clientX:e,clientY:n,rect:t}){return new a$2(e-t.left,n-t.top)}onTap(e,n){var t;for(let o of this.listeners)(t=o.onTap)==null||t.call(o,e,n);}};export{v as a};
|