@scandit/web-datacapture-core 7.1.1 → 7.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/js/AimerViewfinder.d.ts +1 -0
- package/build/js/AimerViewfinder.js +1 -1
- package/build/js/Brush.d.ts +1 -0
- package/build/js/Brush.js +1 -1
- package/build/js/{Camera-Ds4oKYkb.d.ts → Camera-BbwZV9Lu.d.ts} +77 -12
- package/build/js/Camera.d.ts +3 -2
- package/build/js/Camera.js +1 -1
- package/build/js/CameraAccess.d.ts +3 -2
- package/build/js/CameraRelated.d.ts +3 -2
- package/build/js/CameraRelated.js +1 -1
- package/build/js/Common.js +1 -1
- package/build/js/DataCaptureContext.d.ts +2 -1
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +3 -2
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +2 -1
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Defaults.d.ts +2 -1
- package/build/js/Defaults.js +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +3 -2
- package/build/js/ImageFrameSource.d.ts +3 -2
- package/build/js/LocationSelection.js +1 -1
- package/build/js/RectangularViewfinder.d.ts +1 -0
- 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 +3 -2
- package/build/js/SingleImageUploader.js +1 -1
- package/build/js/SingleImageUploaderSettings.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/Viewfinder.d.ts +5 -0
- package/build/js/chunks/chunk-2IAGUFM2.js +1 -0
- package/build/js/chunks/{chunk-RIMH6UPR.js → chunk-3BBG6EVS.js} +1 -1
- package/build/js/chunks/{chunk-AD3CNBDO.js → chunk-3OBWS6CO.js} +1 -1
- package/build/js/chunks/{chunk-PWRWWFPG.js → chunk-4QDKNW3V.js} +1 -1
- package/build/js/chunks/{chunk-6MF4F3EH.js → chunk-5FUZURCZ.js} +1 -1
- package/build/js/chunks/{chunk-76CQG6HG.js → chunk-6FPW3MIJ.js} +1 -1
- package/build/js/chunks/chunk-6HLE7FER.js +4 -0
- package/build/js/chunks/chunk-77BBIAZE.js +1 -0
- package/build/js/chunks/chunk-ACXIZNMK.js +1 -0
- package/build/js/chunks/chunk-AIC4H5KG.js +2 -0
- package/build/js/chunks/chunk-AOSR5K23.js +1 -0
- package/build/js/chunks/{chunk-YGFWA4WG.js → chunk-AYWOZOZP.js} +1 -1
- package/build/js/chunks/chunk-BA3RP6L2.js +1 -0
- package/build/js/chunks/chunk-BYMYBEMT.js +1 -0
- package/build/js/chunks/{chunk-R2VJDRLZ.js → chunk-CBF2PLFL.js} +1 -1
- package/build/js/chunks/chunk-CWOHXN5B.js +1 -0
- package/build/js/chunks/chunk-CXBLYHGE.js +1 -0
- package/build/js/chunks/{chunk-JO2MKLMM.js → chunk-DCVQRKUG.js} +1 -1
- package/build/js/chunks/{chunk-ZDYFZYVT.js → chunk-DCZONWJ2.js} +1 -1
- package/build/js/chunks/{chunk-CAIEX6BZ.js → chunk-E3TDSWVQ.js} +1 -1
- package/build/js/chunks/{chunk-64US32RY.js → chunk-EXY5MS5K.js} +1 -1
- package/build/js/chunks/{chunk-JRBLEJMD.js → chunk-FSWALUUO.js} +1 -1
- package/build/js/chunks/chunk-IHTCYPDZ.js +1 -0
- package/build/js/chunks/chunk-JVZYXEYO.js +1 -0
- package/build/js/chunks/{chunk-BWOCR6MD.js → chunk-KRIYEHHW.js} +1 -1
- package/build/js/chunks/{chunk-HC2AMLBI.js → chunk-L7TY4UEP.js} +1 -1
- package/build/js/chunks/{chunk-YEMIFGKZ.js → chunk-LU4WMIH5.js} +1 -1
- package/build/js/chunks/{chunk-WVACJ2EI.js → chunk-ORCTCIRE.js} +2 -2
- package/build/js/chunks/{chunk-NNPSKKZQ.js → chunk-PGNGNB6M.js} +1 -1
- package/build/js/chunks/{chunk-4YVKSEZS.js → chunk-SEAKJV3R.js} +1 -1
- package/build/js/chunks/chunk-SH2KZV6C.js +1 -0
- package/build/js/chunks/{chunk-7ALHRD5L.js → chunk-T5FGQOCF.js} +1 -1
- package/build/js/chunks/{chunk-7B2VPGLP.js → chunk-TCJPGGHY.js} +1 -1
- package/build/js/chunks/{chunk-NQC64CT7.js → chunk-UD3Z45BT.js} +1 -1
- package/build/js/chunks/{chunk-MQZX6XEF.js → chunk-WSR7IH2J.js} +1 -1
- package/build/js/chunks/{chunk-7JX43F4O.js → chunk-Y6NN3VBO.js} +1 -1
- package/build/js/chunks/{chunk-T5QHKJ2U.js → chunk-YKP6UYCY.js} +1 -1
- package/build/js/chunks/chunk-ZE2WH3AH.js +1 -0
- package/build/js/chunks/{chunk-5PHKPYK6.js → chunk-ZG2DNH5P.js} +1 -1
- package/build/js/index.d.ts +3 -2
- package/build/js/index.js +1 -1
- package/build/js/private/AnchorPositions.js +1 -1
- package/build/js/private/CameraAccess.d.ts +3 -2
- package/build/js/private/CameraManager.d.ts +3 -2
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +3 -2
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +3 -2
- package/build/js/private/CustomLocationsView.d.ts +12 -1
- package/build/js/private/CustomLocationsView.js +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +3 -2
- package/build/js/private/FrameReaders/FrameReader.d.ts +3 -2
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +2 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +2 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +3 -2
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/GestureRecognizer/GestureRecognizer.js +1 -1
- package/build/js/private/GestureRecognizer/index.js +1 -1
- package/build/js/private/Helper.js +1 -1
- package/build/js/private/HtmlElementState.js +1 -1
- package/build/js/private/NormalizedConfigureOptions.d.ts +3 -2
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +3 -2
- package/build/js/private/ViewsRegistry.d.ts +3 -2
- package/build/js/private/nativeHandle.d.ts +4 -0
- package/build/js/private/nativeHandle.js +1 -0
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.d.ts +1 -1
- package/build/js/private/ui/atoms/ShutterButton.js +22 -6
- 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 +2 -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/index.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +21 -0
- package/build/js/private/utils/replaceImagesInViewUtils.js +1 -0
- package/build/js/private/utils/symbols.d.ts +7 -0
- package/build/js/private/utils/symbols.js +1 -0
- package/build/js/private/utils/warnMultithreadingUnavailable.d.ts +4 -0
- package/build/js/private/utils/warnMultithreadingUnavailable.js +2 -0
- package/build/js/sdk.d.ts +3 -2
- package/build/js/worker/WorkerMain.d.ts +3 -2
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/dataCapture.inlineWorker.d.ts +4 -3
- package/build/js/worker/dataCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +2 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +3 -2
- package/build/js/worker/dataCaptureLoader.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -1
- package/build/js/worker/dataCaptureWorkerRelated.js +1 -1
- package/build/js/worker/helper.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 +3 -2
- package/build/js/worker/index.js +1 -1
- package/package.json +2 -11
- package/build/js/chunks/chunk-2WN7BGOB.js +0 -1
- package/build/js/chunks/chunk-5DETRQ7Y.js +0 -1
- package/build/js/chunks/chunk-6TRS6KRD.js +0 -1
- package/build/js/chunks/chunk-B2N7H3LV.js +0 -1
- package/build/js/chunks/chunk-G33OCZIN.js +0 -1
- package/build/js/chunks/chunk-GAVFMG2G.js +0 -1
- package/build/js/chunks/chunk-GZ4F55TI.js +0 -1
- package/build/js/chunks/chunk-JIEUHBCL.js +0 -1
- package/build/js/chunks/chunk-KRWPFM7Z.js +0 -1
- package/build/js/chunks/chunk-LDJ53PEJ.js +0 -1
- package/build/js/chunks/chunk-RQQK6Z5F.js +0 -2
- package/build/js/chunks/chunk-TM7QAJVA.js +0 -1
- package/build/js/chunks/chunk-XDO6Q3H4.js +0 -4
|
@@ -3,6 +3,7 @@ import { Color } from './Common.js';
|
|
|
3
3
|
import { Viewfinder } from './Viewfinder.js';
|
|
4
4
|
import { AimerViewfinderJSON } from './ViewfinderPlusRelated.js';
|
|
5
5
|
import { Serializable } from './private/Serializable.js';
|
|
6
|
+
import './private/nativeHandle.js';
|
|
6
7
|
|
|
7
8
|
declare class AimerViewfinder implements Viewfinder, Serializable<AimerViewfinderJSON> {
|
|
8
9
|
frameColor: Color;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as AimerViewfinder}from'./chunks/chunk-
|
|
1
|
+
export{a as AimerViewfinder}from'./chunks/chunk-4QDKNW3V.js';
|
package/build/js/Brush.d.ts
CHANGED
package/build/js/Brush.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Brush}from'./chunks/chunk-
|
|
1
|
+
export{a as Brush}from'./chunks/chunk-ACXIZNMK.js';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { Serializable } from './private/Serializable.js';
|
|
3
|
+
import { Size, Orientation, MarginsWithUnitJSON, PointWithUnitJSON, Anchor, MarginsWithUnit, PointWithUnit, Point, Quadrilateral, JSONType, RectJSON, PointJSON, Rect } from './Common.js';
|
|
3
4
|
import { WatermarkStack } from './private/FrameReaders/WatermarkStack.js';
|
|
4
5
|
import { Optional, MethodSignature } from './tsHelper.js';
|
|
5
|
-
import { Size, Orientation, MarginsWithUnitJSON, PointWithUnitJSON, Anchor, MarginsWithUnit, PointWithUnit, Point, Quadrilateral, JSONType, RectJSON, PointJSON } from './Common.js';
|
|
6
6
|
import './ScanditIcon.js';
|
|
7
7
|
import { DataCaptureContextSettings, DataCaptureContextSettingsJSON } from './DataCaptureContextSettings.js';
|
|
8
8
|
import { LogoStyle, FocusGestureJSON, ZoomGestureJSON, FocusGesture, ZoomGesture } from './DataCaptureViewPlusRelated.js';
|
|
9
9
|
import { Control } from './ViewControls.js';
|
|
10
|
-
import { DidTapCustomLocationsViewListener, StateToRender } from './private/CustomLocationsView.js';
|
|
10
|
+
import { DidTapCustomLocationsViewListener, StateToRender, StateToRenderDomView } from './private/CustomLocationsView.js';
|
|
11
|
+
import { nativeHandle } from './private/nativeHandle.js';
|
|
11
12
|
import { AnchorPositions } from './private/AnchorPositions.js';
|
|
12
13
|
import { OpenSourceSoftwareLicenseInfo } from './license/OpenSourceSoftwareLicenseInfo.js';
|
|
13
14
|
import { HTMLElementStateJSON } from './private/HtmlElementState.js';
|
|
@@ -331,6 +332,10 @@ declare enum PrivateMirrorAxis {
|
|
|
331
332
|
}
|
|
332
333
|
|
|
333
334
|
interface DataCaptureOverlay extends Serializable {
|
|
335
|
+
[nativeHandle]?: {
|
|
336
|
+
className: string;
|
|
337
|
+
id: number;
|
|
338
|
+
};
|
|
334
339
|
toJSONObject: () => any;
|
|
335
340
|
}
|
|
336
341
|
interface DataCaptureViewListener {
|
|
@@ -343,8 +348,8 @@ interface DataCaptureViewJSON {
|
|
|
343
348
|
logoOffset: PointWithUnitJSON;
|
|
344
349
|
logoHidden: boolean;
|
|
345
350
|
logoStyle: LogoStyle;
|
|
346
|
-
overlays:
|
|
347
|
-
controls:
|
|
351
|
+
overlays: ReturnType<DataCaptureOverlay["toJSONObject"]>[];
|
|
352
|
+
controls: ReturnType<Control["toJSONObject"]>[];
|
|
348
353
|
focusGesture: FocusGestureJSON | null;
|
|
349
354
|
zoomGesture: ZoomGestureJSON | null;
|
|
350
355
|
}
|
|
@@ -441,7 +446,7 @@ declare class DataCaptureView$1 implements Serializable<DataCaptureViewJSON> {
|
|
|
441
446
|
allowPictureInPicture(allow: boolean): Promise<void>;
|
|
442
447
|
protected viewAnchorPositionsForFrameAnchorPositions(anchorPositions: AnchorPositions): AnchorPositions;
|
|
443
448
|
protected setDidTapCustomLocationsViewListener(didTapViewListener: DidTapCustomLocationsViewListener): void;
|
|
444
|
-
protected renderCustomLocationsView(state: StateToRender): void;
|
|
449
|
+
protected renderCustomLocationsView(state: StateToRender | StateToRenderDomView): void;
|
|
445
450
|
private removeStyles;
|
|
446
451
|
private onHintPresenterUpdate;
|
|
447
452
|
private clearHtmlElementContent;
|
|
@@ -585,8 +590,12 @@ interface DataCaptureMode extends Serializable {
|
|
|
585
590
|
setEnabled(enabled: boolean): Promise<void>;
|
|
586
591
|
context: Optional<DataCaptureContext$1>;
|
|
587
592
|
}
|
|
593
|
+
interface NativeDataCaptureMode {
|
|
594
|
+
isEnabled(): Promise<boolean>;
|
|
595
|
+
setEnabled(enabled: boolean): Promise<void>;
|
|
596
|
+
}
|
|
588
597
|
interface DataCaptureModeJSON<S = JSONType> {
|
|
589
|
-
type: "barcodeCapture" | "barcodeTracking" | "idCapture" | "parser" | "sparkScan" | "barcodeFind" | "barcodeCheck";
|
|
598
|
+
type: "barcodeCapture" | "barcodeTracking" | "idCapture" | "parser" | "sparkScan" | "barcodeFind" | "barcodeCheck" | "labelCapture";
|
|
590
599
|
enabled: boolean;
|
|
591
600
|
settings: S;
|
|
592
601
|
}
|
|
@@ -608,12 +617,15 @@ interface PrivateDataCaptureContext<W extends (...parameters: any[]) => unknown
|
|
|
608
617
|
components: DataCaptureComponent[];
|
|
609
618
|
initialize: () => Promise<void>;
|
|
610
619
|
update: (changeSet?: PrivateChangeSet) => Promise<void>;
|
|
620
|
+
addNativeOverlay: (overlay: DataCaptureOverlay) => Promise<void>;
|
|
621
|
+
removeNativeOverlay: (overlay: DataCaptureOverlay) => Promise<void>;
|
|
611
622
|
addComponent: (component: DataCaptureComponent) => Promise<void>;
|
|
612
623
|
dataCaptureInstance: DataCaptureLoader;
|
|
613
624
|
sendFrameToProcessor: (capture: FrameCapture) => Promise<WorkerResponse<"processFrame">>;
|
|
614
625
|
subscribeToWorkerMessages: (listener: (message: DataCaptureCallbackMessage) => void) => void;
|
|
615
626
|
unsubscribeToWorkerMessages: (listener: (message: DataCaptureCallbackMessage) => void) => void;
|
|
616
627
|
hasEnabledMode: () => boolean;
|
|
628
|
+
hasEnabledNativeMode: () => Promise<boolean>;
|
|
617
629
|
workerCommand: MethodSignature<W>;
|
|
618
630
|
performanceMark: MethodSignature<DataCaptureContext$1["performanceMark"]>;
|
|
619
631
|
isFeatureSupported: (feature: LicensedFeature) => Promise<boolean>;
|
|
@@ -654,6 +666,7 @@ declare class DataCaptureContext$1 implements Serializable<DataCaptureContextJSO
|
|
|
654
666
|
private _frameSource;
|
|
655
667
|
private _view;
|
|
656
668
|
private readonly modes;
|
|
669
|
+
private readonly nativeModes;
|
|
657
670
|
private readonly components;
|
|
658
671
|
private readonly listeners;
|
|
659
672
|
private readonly updateListeners;
|
|
@@ -720,9 +733,14 @@ declare class DataCaptureContext$1 implements Serializable<DataCaptureContextJSO
|
|
|
720
733
|
private getViewInfo;
|
|
721
734
|
private getMirrorAxisForFrameSource;
|
|
722
735
|
private addComponent;
|
|
736
|
+
private addNativeMode;
|
|
737
|
+
private removeNativeMode;
|
|
738
|
+
private addNativeOverlay;
|
|
739
|
+
private removeNativeOverlay;
|
|
723
740
|
private subscribeToWorkerMessages;
|
|
724
741
|
private unsubscribeToWorkerMessages;
|
|
725
742
|
private hasEnabledMode;
|
|
743
|
+
private hasEnabledNativeMode;
|
|
726
744
|
/**
|
|
727
745
|
* Some capture modes process frames synchronously, like IdCapture. Other can process multiple frames
|
|
728
746
|
* in parallel, like MatrixScan. We inform the CameraManager how to process frames.
|
|
@@ -734,7 +752,7 @@ declare class DataCaptureContext$1 implements Serializable<DataCaptureContextJSO
|
|
|
734
752
|
/**
|
|
735
753
|
* MESSAGES (ACTIONS) SENT TO THE WORKER
|
|
736
754
|
*/
|
|
737
|
-
type DataCaptureActionMessageKey = "createContext" | "deleteFrameData" | "dispose" | "documentVisibility" | "extractCentaurusLicense" | "flushAnalytics" | "isFeatureSupported" | "loadLibrary" | "onTap" | "processFrame" | "reportCameraProperties" | "requestFrameData" | "setFrameSource" | "setLogLevel" | "updateContext" | "hintPresenterV2update" | "getViewfinderInfo" | "getOpenSourceSoftwareLicenseInfo";
|
|
755
|
+
type DataCaptureActionMessageKey = "createContext" | "deleteFrameData" | "dispose" | "documentVisibility" | "extractCentaurusLicense" | "flushAnalytics" | "isFeatureSupported" | "loadLibrary" | "onTap" | "processFrame" | "reportCameraProperties" | "requestFrameData" | "setFrameSource" | "setLogLevel" | "updateContext" | "hintPresenterV2update" | "getViewfinderInfo" | "getOpenSourceSoftwareLicenseInfo" | "addNativeOverlay" | "removeNativeOverlay";
|
|
738
756
|
interface ExtractCentaurusLicenseResponse {
|
|
739
757
|
centaurus: {
|
|
740
758
|
licenseKey: string;
|
|
@@ -821,7 +839,21 @@ type GetViewfinderInfoAction = DataCaptureActionMessage & {
|
|
|
821
839
|
type GetOpenSourceSoftwareLicenseInfoAction = DataCaptureActionMessage & {
|
|
822
840
|
command: "getOpenSourceSoftwareLicenseInfo";
|
|
823
841
|
};
|
|
824
|
-
type
|
|
842
|
+
type AddNativeOverlayAction = DataCaptureActionMessage & {
|
|
843
|
+
command: "addNativeOverlay";
|
|
844
|
+
overlayHandle: {
|
|
845
|
+
className: string;
|
|
846
|
+
id: number;
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
type RemoveNativeOverlayAction = DataCaptureActionMessage & {
|
|
850
|
+
command: "removeNativeOverlay";
|
|
851
|
+
overlayHandle: {
|
|
852
|
+
className: string;
|
|
853
|
+
id: number;
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
type AnyDataCaptureActionMessage = CreateContextDataCaptureAction | DeleteFrameDataDataCaptureAction | DisposeDataCaptureAction | ExtractCentaurusLicenseDataCaptureAction | FlushAnalyticsDataCaptureAction | IsFeatureSupportedAction | LoadLibraryDataCaptureAction | OnTapAction | ProcessFrameDataCaptureAction | ReportCameraPropertiesDataCaptureAction | RequestFrameDataDataCaptureAction | SetFrameSourceDataCaptureAction | SetLogLevelDataCaptureAction | UpdateContextDataCaptureAction | VisibilityChangeAction | HintPresenterV2updateAction | GetViewfinderInfoAction | GetOpenSourceSoftwareLicenseInfoAction | AddNativeOverlayAction | RemoveNativeOverlayAction;
|
|
825
857
|
/**
|
|
826
858
|
* MESSAGES EMITTED BY THE WORKER
|
|
827
859
|
*/
|
|
@@ -1396,6 +1428,14 @@ declare class DataCaptureEngine<M extends Module> {
|
|
|
1396
1428
|
*/
|
|
1397
1429
|
startDrawLoop(view: DataCaptureView): void;
|
|
1398
1430
|
updateContext(contextUpdateParameters: UpdateContextParameters): EngineWorkerResponse<"updateContext">;
|
|
1431
|
+
/**
|
|
1432
|
+
* Called before updateContextFromJson
|
|
1433
|
+
*
|
|
1434
|
+
* @protected
|
|
1435
|
+
* @param {UpdateContextParameters} contextUpdateParameters
|
|
1436
|
+
* @returns {UpdateContextParameters}
|
|
1437
|
+
*/
|
|
1438
|
+
protected onBeforeUpdateContextHook(contextUpdateParameters: UpdateContextParameters): UpdateContextParameters;
|
|
1399
1439
|
onDocumentVisibilityChange(state: DocumentVisibilityState): void;
|
|
1400
1440
|
isFeatureSupported(feature: LicensedFeature): EngineWorkerResponse<"isFeatureSupported">;
|
|
1401
1441
|
getViewfinderInfo(): EngineWorkerResponse<"getViewfinderInfo">;
|
|
@@ -1419,7 +1459,19 @@ declare class DataCaptureEngine<M extends Module> {
|
|
|
1419
1459
|
private contextDidChangeStatus;
|
|
1420
1460
|
private didStartObservingContext;
|
|
1421
1461
|
private mapMirrorAxisOnModule;
|
|
1422
|
-
|
|
1462
|
+
protected setView(view: DataCaptureView | undefined): void;
|
|
1463
|
+
/**
|
|
1464
|
+
* Add a native overlay to the view without passing from the deserializer.
|
|
1465
|
+
* must be implemented in the specific module.
|
|
1466
|
+
* @param event - The message event containing the overlay handle.
|
|
1467
|
+
*/
|
|
1468
|
+
addNativeOverlay(event: MessageEvent<AnyDataCaptureActionMessage>): void;
|
|
1469
|
+
/**
|
|
1470
|
+
* Remove a native overlay from the view.
|
|
1471
|
+
* must be implemented in the specific module.
|
|
1472
|
+
* @param event - The message event containing the overlay handle.
|
|
1473
|
+
*/
|
|
1474
|
+
removeNativeOverlay(event: MessageEvent<AnyDataCaptureActionMessage>): void;
|
|
1423
1475
|
private setViewRefreshHandler;
|
|
1424
1476
|
private setupDataDecoding;
|
|
1425
1477
|
private start;
|
|
@@ -1495,6 +1547,8 @@ declare class CameraManager {
|
|
|
1495
1547
|
gui: GUI;
|
|
1496
1548
|
selectedCamera?: DeviceCamera$1;
|
|
1497
1549
|
videoElement: HTMLVideoElement;
|
|
1550
|
+
private constraint;
|
|
1551
|
+
private clipArea?;
|
|
1498
1552
|
private readonly checkCameraVideoStreamAccessIfVisibleListener;
|
|
1499
1553
|
private readonly handleWebGLContextLostListener;
|
|
1500
1554
|
private readonly listeners;
|
|
@@ -1536,6 +1590,8 @@ declare class CameraManager {
|
|
|
1536
1590
|
private torchToggleEnabled;
|
|
1537
1591
|
private videoMetadataCheckInterval;
|
|
1538
1592
|
private isWebGLSupported;
|
|
1593
|
+
private clippedFrameRequestID?;
|
|
1594
|
+
private isVideoStreamPaused;
|
|
1539
1595
|
constructor();
|
|
1540
1596
|
get mediaStream(): MediaStream | undefined;
|
|
1541
1597
|
set mediaStream(stream: MediaStream | undefined);
|
|
@@ -1545,8 +1601,8 @@ declare class CameraManager {
|
|
|
1545
1601
|
static instance(): CameraManager;
|
|
1546
1602
|
recycle(pixelsData: Uint8ClampedArray): void;
|
|
1547
1603
|
getCurrentFrame(): FrameCapture | undefined;
|
|
1548
|
-
requestVideoFrame(scheduledFunction: FrameRequestCallback | VideoFrameRequestCallback): number;
|
|
1549
|
-
cancelVideoFrame(id: number): void;
|
|
1604
|
+
requestVideoFrame(scheduledFunction: FrameRequestCallback | VideoFrameRequestCallback, videoElement?: HTMLVideoElement): number;
|
|
1605
|
+
cancelVideoFrame(id: number, videoElement?: HTMLVideoElement): void;
|
|
1550
1606
|
addListener<E extends CameraManagerEvent>(event: CameraManagerEvent, listener: (details: CameraManagerEventParameters<E>) => void): void;
|
|
1551
1607
|
applyCameraSettings(cameraSettings?: CameraSettings): Promise<void>;
|
|
1552
1608
|
captureImage(): FrameCapture | null;
|
|
@@ -1588,6 +1644,11 @@ declare class CameraManager {
|
|
|
1588
1644
|
setFrameReaderType(type: ColorType): void;
|
|
1589
1645
|
allowPictureInPicture(allow: boolean): Promise<void>;
|
|
1590
1646
|
setFrameHandling(synchronous: boolean): void;
|
|
1647
|
+
setClipArea(clipArea?: Rect): Promise<void>;
|
|
1648
|
+
/**
|
|
1649
|
+
* Converts a rectangle in DataCaptureView coordinates to camera frame coordinates.
|
|
1650
|
+
*/
|
|
1651
|
+
private frameRectFromViewRect;
|
|
1591
1652
|
private accessAutoselectedCamera;
|
|
1592
1653
|
private getFrameReaderOptions;
|
|
1593
1654
|
private getFrameReader;
|
|
@@ -1636,6 +1697,9 @@ declare class CameraManager {
|
|
|
1636
1697
|
private updateStreamForResolution;
|
|
1637
1698
|
private videoTrackEndedRecovery;
|
|
1638
1699
|
private videoTrackMuteRecovery;
|
|
1700
|
+
private clipMediaStreamIfNeeded;
|
|
1701
|
+
private drawClippedFrame;
|
|
1702
|
+
private cleanupClippedStream;
|
|
1639
1703
|
}
|
|
1640
1704
|
|
|
1641
1705
|
interface CameraJSON extends FrameSourceJSON {
|
|
@@ -1690,6 +1754,7 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
|
|
|
1690
1754
|
getMirrorImageEnabled(): boolean;
|
|
1691
1755
|
setMirrorImageEnabled(enabled: boolean): Promise<void>;
|
|
1692
1756
|
getCurrentState(): FrameSourceState;
|
|
1757
|
+
setClipArea(area?: Rect): Promise<void>;
|
|
1693
1758
|
private setCurrentState;
|
|
1694
1759
|
/**
|
|
1695
1760
|
* Starts camera according to the given position. If a deviceId is set, pre-select the corresponding camera.
|
|
@@ -1718,4 +1783,4 @@ declare class Camera implements FrameSource, Serializable<CameraJSON> {
|
|
|
1718
1783
|
private isZoomAvailable;
|
|
1719
1784
|
}
|
|
1720
1785
|
|
|
1721
|
-
export { type
|
|
1786
|
+
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, DataCaptureView$1 as M, type NativeDataCaptureMode as N, type FrameData as O, type PrivateChangeSet as P, type PrivateLoadableFrameData as Q, convertToPublicFrameData as R, type DataCaptureLoaderOptions as S, TorchState as T, DataCaptureEngine as U, VideoResolution as V, type Module as W, type PerformanceMetrics as X, type DataCaptureCallbackMessage as Y, type GenericHint as Z, type AnyDataCaptureActionMessage as _, type FrameSource as a, HintWidth as a$, type ModuleHandler as a0, type DataCaptureActionMessageKey as a1, type EngineWorkerResponse as a2, type ExtractCentaurusLicenseResponse as a3, type RequestFrameDataResponse as a4, type IsFeatureSupportedResponse as a5, type GetViewfinderInfo as a6, type GetOpenSourceSoftwareLicenseInfoResponse as a7, type WorkerResponse as a8, type LoadLibraryDataCaptureAction as a9, type DidTapTrackedBarcode as aA, type OnFrameProcessingStartedMessage as aB, type OnFrameProcessingFinishedMessage as aC, type OnFrameSkippedMessage as aD, type ShowToastMessage as aE, type HideToastMessage as aF, type ShowGuidanceMessage as aG, type HideGuidanceMessage as aH, type StartUpdateTimerMessage as aI, type StopUpdateTimerMessage as aJ, type PayloadForCommand as aK, type DataCaptureWorker as aL, type EmscriptenClassHandle as aM, type DataCaptureContext as aN, type DataCaptureImageBufferFrameSource as aO, type GestureListener as aP, type GestureRecognizer as aQ, type DataCaptureView as aR, type JSONParseable as aS, type DataCaptureContextDeserializerResult as aT, type DataCaptureContextDeserializer as aU, type CaptureModeDeserializerInstance as aV, type ModuleMirrorAxis as aW, type Vector as aX, type WasmFrameData as aY, HintFont as aZ, HintTextAlignment as a_, type CreateContextDataCaptureAction as aa, type SetFrameSourceDataCaptureAction as ab, type ProcessFrameDataCaptureAction as ac, type RequestFrameDataDataCaptureAction as ad, type DeleteFrameDataDataCaptureAction as ae, type VisibilityChangeAction as af, type IsFeatureSupportedAction as ag, type UpdateContextDataCaptureAction as ah, type DisposeDataCaptureAction as ai, type FlushAnalyticsDataCaptureAction as aj, type ReportCameraPropertiesDataCaptureAction as ak, type SetLogLevelDataCaptureAction as al, type ExtractCentaurusLicenseDataCaptureAction as am, type OnTapAction as an, type HintPresenterV2updateAction as ao, type GetViewfinderInfoAction as ap, type GetOpenSourceSoftwareLicenseInfoAction as aq, type AddNativeOverlayAction as ar, type RemoveNativeOverlayAction as as, type DataCaptureCallbackMessageKeys as at, type SuccessFeedbackWorkerMessage as au, type ShowHintWorkerMessage as av, type UpdateHintWorkerMessage as aw, type IsFeatureSupportedMessage as ax, type HideHintWorkerMessage as ay, type PerformanceMetricsReportMessage as az, FrameSourceState as b, HintHeight as b0, HintCornerStyle as b1, HintIcon as b2, HintAnchor as b3, type HintStyle as b4, GuidanceHintAnchor as b5, GuidanceHintStyle as b6, type GuidanceHint as b7, ToastHintStyle as b8, type ToastHint as b9, type CameraManagerEventParameters as bA, CameraManager as bB, LicensedFeature as ba, type HintPresenterV2 as bb, type PlatformHintPresenter as bc, type LoadLibraryParameters as bd, type CreateContextParameters as be, type UpdateContextParameters as bf, type SetFrameSourceParameters as bg, type ProcessFrameParameters as bh, type ReportCameraPropertiesParameters as bi, type WorkerFunctions as bj, FrameReaderAbstract as bk, ColorType as bl, type PoolCapacityOptions as bm, type FrameCapture as bn, FrameReader as bo, CameraPosition$1 as bp, CameraResolutionConstraint$1 as bq, AspectRatio as br, type DeviceCamera$1 as bs, CameraAccess$1 as bt, MeteringMode as bu, CameraResolutionConstraint as bv, type ExtendedMediaTrackCapabilities as bw, type ExtendedMediaTrackConstraintSet as bx, type GUI as by, CameraManagerEvent as bz, 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,9 +1,9 @@
|
|
|
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-BbwZV9Lu.js';
|
|
3
|
+
import './Common.js';
|
|
3
4
|
import './private/Serializable.js';
|
|
4
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
6
|
import './tsHelper.js';
|
|
6
|
-
import './Common.js';
|
|
7
7
|
import './ScanditIcon.js';
|
|
8
8
|
import './private/utils/ScanditHTMLElement.js';
|
|
9
9
|
import './DataCaptureContextSettings.js';
|
|
@@ -12,6 +12,7 @@ import './ViewControls.js';
|
|
|
12
12
|
import './private/CustomLocationsView.js';
|
|
13
13
|
import './private/View.js';
|
|
14
14
|
import './private/AnchorPositions.js';
|
|
15
|
+
import './private/nativeHandle.js';
|
|
15
16
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
16
17
|
import './private/HtmlElementState.js';
|
|
17
18
|
import './worker/OverrideState.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-2IAGUFM2.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
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-BbwZV9Lu.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
|
+
import './Common.js';
|
|
4
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
6
|
import './tsHelper.js';
|
|
6
|
-
import './Common.js';
|
|
7
7
|
import './ScanditIcon.js';
|
|
8
8
|
import './private/utils/ScanditHTMLElement.js';
|
|
9
9
|
import './DataCaptureContextSettings.js';
|
|
@@ -12,6 +12,7 @@ import './ViewControls.js';
|
|
|
12
12
|
import './private/CustomLocationsView.js';
|
|
13
13
|
import './private/View.js';
|
|
14
14
|
import './private/AnchorPositions.js';
|
|
15
|
+
import './private/nativeHandle.js';
|
|
15
16
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
16
17
|
import './private/HtmlElementState.js';
|
|
17
18
|
import './worker/OverrideState.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
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-BbwZV9Lu.js';
|
|
3
3
|
import './private/Serializable.js';
|
|
4
|
+
import './Common.js';
|
|
4
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
6
|
import './tsHelper.js';
|
|
6
|
-
import './Common.js';
|
|
7
7
|
import './ScanditIcon.js';
|
|
8
8
|
import './private/utils/ScanditHTMLElement.js';
|
|
9
9
|
import './DataCaptureContextSettings.js';
|
|
@@ -12,6 +12,7 @@ import './ViewControls.js';
|
|
|
12
12
|
import './private/CustomLocationsView.js';
|
|
13
13
|
import './private/View.js';
|
|
14
14
|
import './private/AnchorPositions.js';
|
|
15
|
+
import './private/nativeHandle.js';
|
|
15
16
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
16
17
|
import './private/HtmlElementState.js';
|
|
17
18
|
import './worker/OverrideState.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-UD3Z45BT.js';
|
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-77BBIAZE.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, N as NativeDataCaptureMode, P as PrivateChangeSet, s as PrivateDataCaptureComponent, w as PrivateDataCaptureContext, v as PrivateDataCaptureContextOptions, p as PrivateDataCaptureMode, A as PrivateFrameHandler, z as PrivateFrameHandlerResponse } from './Camera-BbwZV9Lu.js';
|
|
3
3
|
import './Common.js';
|
|
4
4
|
import './DataCaptureContextSettings.js';
|
|
5
5
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
@@ -14,6 +14,7 @@ import './ViewControls.js';
|
|
|
14
14
|
import './private/CustomLocationsView.js';
|
|
15
15
|
import './private/View.js';
|
|
16
16
|
import './private/AnchorPositions.js';
|
|
17
|
+
import './private/nativeHandle.js';
|
|
17
18
|
import './worker/OverrideState.js';
|
|
18
19
|
import './logger.js';
|
|
19
20
|
import './LoadingStatus.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureContext}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureContext}from'./chunks/chunk-6HLE7FER.js';
|
|
@@ -1,16 +1,17 @@
|
|
|
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-BbwZV9Lu.js';
|
|
3
3
|
import './ScanditIcon.js';
|
|
4
4
|
import './private/Serializable.js';
|
|
5
|
+
import './Common.js';
|
|
5
6
|
import './private/FrameReaders/WatermarkStack.js';
|
|
6
7
|
import './tsHelper.js';
|
|
7
|
-
import './Common.js';
|
|
8
8
|
import './DataCaptureContextSettings.js';
|
|
9
9
|
import './DataCaptureViewPlusRelated.js';
|
|
10
10
|
import './ViewControls.js';
|
|
11
11
|
import './private/CustomLocationsView.js';
|
|
12
12
|
import './private/View.js';
|
|
13
13
|
import './private/AnchorPositions.js';
|
|
14
|
+
import './private/nativeHandle.js';
|
|
14
15
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
15
16
|
import './private/HtmlElementState.js';
|
|
16
17
|
import './worker/OverrideState.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureVersion}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureVersion}from'./chunks/chunk-AOSR5K23.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
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-BbwZV9Lu.js';
|
|
4
4
|
import './DataCaptureViewPlusRelated.js';
|
|
5
5
|
import './ViewControls.js';
|
|
6
6
|
import './private/CustomLocationsView.js';
|
|
7
7
|
import './private/Serializable.js';
|
|
8
|
+
import './private/nativeHandle.js';
|
|
8
9
|
import './private/AnchorPositions.js';
|
|
9
10
|
import './private/FrameReaders/WatermarkStack.js';
|
|
10
11
|
import './tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureView}from'./chunks/chunk-
|
|
1
|
+
export{a as DataCaptureView}from'./chunks/chunk-ORCTCIRE.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-BbwZV9Lu.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';
|
|
@@ -14,6 +14,7 @@ import './ViewControls.js';
|
|
|
14
14
|
import './private/CustomLocationsView.js';
|
|
15
15
|
import './private/View.js';
|
|
16
16
|
import './private/AnchorPositions.js';
|
|
17
|
+
import './private/nativeHandle.js';
|
|
17
18
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
18
19
|
import './private/HtmlElementState.js';
|
|
19
20
|
import './worker/OverrideState.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-E3TDSWVQ.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-CBF2PLFL.js';
|
package/build/js/FrameData.d.ts
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export {
|
|
2
|
+
export { O as FrameData, Q as PrivateLoadableFrameData, R as convertToPublicFrameData } from './Camera-BbwZV9Lu.js';
|
|
3
3
|
import './ScanditIcon.js';
|
|
4
4
|
import './private/Serializable.js';
|
|
5
|
+
import './Common.js';
|
|
5
6
|
import './private/FrameReaders/WatermarkStack.js';
|
|
6
7
|
import './tsHelper.js';
|
|
7
|
-
import './Common.js';
|
|
8
8
|
import './DataCaptureContextSettings.js';
|
|
9
9
|
import './DataCaptureViewPlusRelated.js';
|
|
10
10
|
import './ViewControls.js';
|
|
11
11
|
import './private/CustomLocationsView.js';
|
|
12
12
|
import './private/View.js';
|
|
13
13
|
import './private/AnchorPositions.js';
|
|
14
|
+
import './private/nativeHandle.js';
|
|
14
15
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
15
16
|
import './private/HtmlElementState.js';
|
|
16
17
|
import './worker/OverrideState.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
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-BbwZV9Lu.js';
|
|
3
3
|
import { Serializable } from './private/Serializable.js';
|
|
4
|
+
import './Common.js';
|
|
4
5
|
import './private/FrameReaders/WatermarkStack.js';
|
|
5
6
|
import './tsHelper.js';
|
|
6
|
-
import './Common.js';
|
|
7
7
|
import './ScanditIcon.js';
|
|
8
8
|
import './private/utils/ScanditHTMLElement.js';
|
|
9
9
|
import './DataCaptureContextSettings.js';
|
|
@@ -12,6 +12,7 @@ import './ViewControls.js';
|
|
|
12
12
|
import './private/CustomLocationsView.js';
|
|
13
13
|
import './private/View.js';
|
|
14
14
|
import './private/AnchorPositions.js';
|
|
15
|
+
import './private/nativeHandle.js';
|
|
15
16
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
16
17
|
import './private/HtmlElementState.js';
|
|
17
18
|
import './worker/OverrideState.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-DCZONWJ2.js';
|
|
@@ -3,6 +3,7 @@ import { Color, SizeWithUnitAndAspect, NumberWithUnit, SizeWithUnit } from './Co
|
|
|
3
3
|
import { Viewfinder } from './Viewfinder.js';
|
|
4
4
|
import { RectangularViewfinderJSON, RectangularViewfinderStyle, RectangularViewfinderLineStyle, RectangularViewfinderAnimation } from './ViewfinderPlusRelated.js';
|
|
5
5
|
import { Serializable } from './private/Serializable.js';
|
|
6
|
+
import './private/nativeHandle.js';
|
|
6
7
|
|
|
7
8
|
declare class RectangularViewfinder implements Viewfinder, Serializable<RectangularViewfinderJSON> {
|
|
8
9
|
color: Color;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as RectangularViewfinder}from'./chunks/chunk-
|
|
1
|
+
export{a as RectangularViewfinder}from'./chunks/chunk-LU4WMIH5.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-3OBWS6CO.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-PGNGNB6M.js';export{a as ScanditIconShape}from'./chunks/chunk-3OBWS6CO.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
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-BbwZV9Lu.js';
|
|
3
3
|
import { SingleImageUploaderSettingsJSON, SingleImageUploaderSettings } from './SingleImageUploaderSettings.js';
|
|
4
4
|
import { Serializable } from './private/Serializable.js';
|
|
5
|
+
import './Common.js';
|
|
5
6
|
import './private/FrameReaders/WatermarkStack.js';
|
|
6
7
|
import './tsHelper.js';
|
|
7
|
-
import './Common.js';
|
|
8
8
|
import './ScanditIcon.js';
|
|
9
9
|
import './private/utils/ScanditHTMLElement.js';
|
|
10
10
|
import './DataCaptureContextSettings.js';
|
|
@@ -13,6 +13,7 @@ import './ViewControls.js';
|
|
|
13
13
|
import './private/CustomLocationsView.js';
|
|
14
14
|
import './private/View.js';
|
|
15
15
|
import './private/AnchorPositions.js';
|
|
16
|
+
import './private/nativeHandle.js';
|
|
16
17
|
import './license/OpenSourceSoftwareLicenseInfo.js';
|
|
17
18
|
import './private/HtmlElementState.js';
|
|
18
19
|
import './worker/OverrideState.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SingleImageUploader}from'./chunks/chunk-
|
|
1
|
+
export{a as SingleImageUploader}from'./chunks/chunk-ZG2DNH5P.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SingleImageUploaderSettings}from'./chunks/chunk-
|
|
1
|
+
export{a as SingleImageUploaderSettings}from'./chunks/chunk-Y6NN3VBO.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-DCVQRKUG.js';
|
package/build/js/Viewfinder.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { ViewfinderJSON } from './ViewfinderPlusRelated.js';
|
|
3
3
|
import { Serializable } from './private/Serializable.js';
|
|
4
|
+
import { nativeHandle } from './private/nativeHandle.js';
|
|
4
5
|
import './Common.js';
|
|
5
6
|
|
|
6
7
|
interface Viewfinder {
|
|
8
|
+
[nativeHandle]?: {
|
|
9
|
+
className: string;
|
|
10
|
+
id: number;
|
|
11
|
+
};
|
|
7
12
|
toJSONObject: () => ViewfinderJSON;
|
|
8
13
|
}
|
|
9
14
|
declare class NoneViewfinder implements Viewfinder, Serializable<ViewfinderJSON> {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-5TKCHVG2.js';import {d}from'./chunk-BYMYBEMT.js';import {a}from'./chunk-XR65N6EG.js';import {a as a$2}from'./chunk-MU4VAJIM.js';import {g as g$1}from'./chunk-UD3Z45BT.js';import {d as d$1}from'./chunk-E3TDSWVQ.js';var g=class n{constructor(e){this.deviceId="";this.type="camera";this._currentState="off";this._settings=new g$1;this._desiredTorchState="off";this._desiredState="off";this.listeners=[];this._context=null;this.stateTransitionStrategyMap={off:{on:this.transitionFromStateOffToOn.bind(this),standby:this.transitionFromStateOffToStandby.bind(this)},on:{off:this.transitionFromStateOnToOff.bind(this),standby:this.transitionFromStateOnToStandby.bind(this)},standby:{off:this.transitionFromStateStandbyToOff.bind(this),on:this.transitionFromStateStandbyToOn.bind(this)}};this.cameraManager=e!=null?e:d.instance(),this.updateCanvasVideoImage=this.updateCanvasVideoImage.bind(this),this.captureAndSend=this.captureAndSend.bind(this);}static get default(){let e=new n;return e.position="worldFacing",e}get desiredState(){return this._desiredState}get settings(){return this._settings}get currentResolution(){var e;return (e=this._currentResolution)!=null?e:null}get context(){return this._context}set context(e){this._context=e,this._context&&this.currentState==="on"&&this.startSendingCapturesToWorker();}get currentState(){return this._currentState}static atPosition(e){if(d$1.Camera.availablePositions.includes(e)){let t=new n;return t.position=e,t}return a.log(a.Level.Warn,`invalid CameraPosition: "${e}"`),null}static fromDeviceCamera(e){let t=n.atPosition(e.position);return t.deviceId=e.deviceId,t.label=e.label,t}async switchToDesiredState(e){var t,i;return this.currentTransitionStrategyPromise&&await this.currentTransitionStrategyPromise,this.currentTransitionStrategyPromise=(i=(t=this.stateTransitionStrategyMap[this.currentState])==null?void 0:t[e])==null?void 0:i.call(t).catch(r=>{if(r instanceof DOMException&&r.message==="The associated Track is in an invalid state"){a.log(a.Level.Warn,r);return}throw r}),this.currentTransitionStrategyPromise}getDesiredTorchState(){return this._desiredTorchState}async setDesiredTorchState(e){this._desiredTorchState=e,await this.cameraManager.setTorchEnabled(this._desiredTorchState==="on"),await this.notifyContext({type:"torchState",newValue:this._desiredTorchState});}async isTorchAvailable(){return this.cameraManager.isTorchAvailable()}addListener(e){e!=null&&(this.listeners.includes(e)||this.listeners.push(e));}removeListener(e){e!=null&&this.listeners.includes(e)&&this.listeners.splice(this.listeners.indexOf(e),1);}async applySettings(e){var i;this._settings=new g$1(e);let t=this.settings.getProperty("grayScaleFrameReader");if(this.cameraManager.setFrameReaderType(t===!0?"GRAYSCALE":"RGBA"),this.currentState==="on"||this.currentState==="standby"){let r=this.cameraManager.activeCameraSettings;(r==null?void 0:r.preferredResolution)!==this.settings.preferredResolution&&(await this.cameraManager.applyCameraSettings(this.settings),(i=this.cameraManager.activeCamera)!=null&&i.currentResolution&&(this._currentResolution={width:this.cameraManager.activeCamera.currentResolution.width,height:this.cameraManager.activeCamera.currentResolution.height})),await this.cameraManager.setZoom(this.settings.zoomFactor);let o=this.settings.getProperty("minFrameRate"),c=this.settings.getProperty("maxFrameRate");(o!=null||c!=null)&&await this.cameraManager.setFrameRate({min:o,max:c});let m=this.settings.getProperty("manualLensPosition");m!=null&&await this.cameraManager.setFocus(m);let u=this.settings.getProperty("exposureTargetBias"),d=this.settings.getProperty("exposureDuration");(u!=null||d!=null)&&await this.cameraManager.setExposure({compensation:u,time:d});}return this.notifyContext({type:"cameraSettings",newValue:this.settings})}toJSONObject(){return {type:this.type,position:this.position,settings:this.settings.toJSONObject(),desiredState:this.desiredState,desiredTorchState:this._desiredTorchState}}getMirrorImageEnabled(){var e;return (e=this._desiredMirrorImageEnabled)!=null?e:this.cameraManager.isMirrorImageEnabled()}async setMirrorImageEnabled(e){this._desiredMirrorImageEnabled=e,this.cameraManager.setMirrorImageEnabled(e,!0),this.context&&await this.context.setFrameSource(this);}getCurrentState(){return this._currentState}async setClipArea(e){await this.cameraManager.setClipArea(e);}async setCurrentState(e){if(e!==this._currentState){this._currentState=e,this.notifyListeners();try{await this.notifyContext({type:"frameSourceState",newValue:e}),e==="on"&&this.startSendingCapturesToWorker();}catch(t){a.log(a.Level.Warn,"Error while notifying context about new state of Camera");}}}async setupCamera(){if(this.cameraManager.setSelectedCameraSettings(this.settings),this.deviceId==="")this.cameraManager.setSelectedCamera(),this.cameraManager.setInitialCameraPosition(this.position);else {let t=(await a$1.getCameras()).find(i=>i.deviceId===this.deviceId);t&&(this.cameraManager.setInitialCameraPosition(t.position),this.cameraManager.setSelectedCamera(t));}await this.cameraManager.setupCameras(),typeof this._desiredMirrorImageEnabled=="boolean"?this.cameraManager.setMirrorImageEnabled(this._desiredMirrorImageEnabled,!0):this.cameraManager.setMirrorImageEnabled(this.cameraManager.isMirrorImageEnabled(),!1),this.context&&await this.context.setFrameSource(this),this.cameraManager.activeCamera&&(this.label=this.cameraManager.activeCamera.label,this.position=this.cameraManager.activeCamera.position,this.deviceId=this.cameraManager.activeCamera.deviceId,this._currentResolution=this.cameraManager.activeCamera.currentResolution);}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);}updateCanvasVideoImage(){this.currentState==="on"&&this.context&&(this.cameraManager.updateCanvasVideoImage(),this._lastCanvasVideoPreviewAnimationFrame=this.cameraManager.requestVideoFrame(this.updateCanvasVideoImage));}async captureAndSend(){if(this.currentState!=="on"||!this.context)return;if(!this.context.hasEnabledMode()&&!await this.context.hasEnabledNativeMode()){this._lastCaptureRequestAnimationFrame=this.cameraManager.requestVideoFrame(this.captureAndSend);return}let e=null;try{e=this.cameraManager.captureImage();}catch(t){a.log(a.Level.Warn,t.message);}finally{if(e!=null)if(this.cameraManager.synchronousFrameHandling){let t=await this.context.sendFrameToProcessor(e);this.cameraManager.recycle(t.data);}else this.context.sendFrameToProcessor(e).then(t=>(this.cameraManager.recycle(t.data),null)).catch(t=>{a.warn("error while recycling uint8array",t);});this._lastCaptureRequestAnimationFrame=this.cameraManager.requestVideoFrame(this.captureAndSend);}}startSendingCapturesToWorker(){this.stopSendingCapturesToWorker(),this.captureAndSend();}stopSendingCapturesToWorker(){this._lastCanvasVideoPreviewAnimationFrame!=null&&this.cameraManager.cancelVideoFrame(this._lastCanvasVideoPreviewAnimationFrame),this._lastCaptureRequestAnimationFrame!=null&&this.cameraManager.cancelVideoFrame(this._lastCaptureRequestAnimationFrame);}async transitionFromStateOffToOn(){if(!(this.currentState==="on"||this.currentState==="starting"||this.currentState==="wakingUp")){this._desiredState="on",await this.setCurrentState("starting");try{await this.setupCamera(),await this.setCurrentState("on");}catch(e){throw a.log(a.Level.Error,e),await this.setCurrentState("off"),e}}}async transitionFromStateOffToStandby(){if(!(this.currentState==="standby"||this.currentState==="bootingUp"||this.currentState==="goingToSleep")){if(await this.isAndroidWebView()){a.log(a.Level.Warn,'Warning: "Standby" state does not work inside web views. Falling back to state "On".'),await this.transitionFromStateOffToOn();return}this._desiredState="standby",await this.setCurrentState("bootingUp");try{await this.setupCamera(),this.cameraManager.pauseStream(),await this.setCurrentState("standby");}catch(e){throw a.log(a.Level.Error,e),await this.setCurrentState("off"),e}await this.setCurrentState("standby"),await this.setDesiredTorchState("off");}}async transitionFromStateOnToOff(){this.currentState==="off"||this.currentState==="stopping"||(this._desiredState="off",await this.setCurrentState("stopping"),await this.cameraManager.stopStream(),await this.setCurrentState("off"),await this.setDesiredTorchState("off"));}async transitionFromStateOnToStandby(){if(!(this.currentState==="standby"||this.currentState==="bootingUp"||this.currentState==="goingToSleep")){if(await this.isAndroidWebView()){a.log(a.Level.Warn,'Warning: "Standby" state does not work inside web views. Falling back to state "Off".'),await this.transitionFromStateOnToOff();return}this._desiredState="standby",await this.setCurrentState("goingToSleep"),this.cameraManager.pauseStream(),await this.setCurrentState("standby"),await this.setDesiredTorchState("off");}}async transitionFromStateStandbyToOff(){this.currentState==="off"||this.currentState==="stopping"||(this._desiredState="off",await this.setCurrentState("shuttingDown"),await this.cameraManager.stopStream(),await this.setCurrentState("off"),await this.setDesiredTorchState("off"));}async transitionFromStateStandbyToOn(){this.currentState==="on"||this.currentState==="starting"||this.currentState==="wakingUp"||(this._desiredState="on",await this.setCurrentState("wakingUp"),this.cameraManager.resumeStream(),await this.setCurrentState("on"));}async isAndroidWebView(){return this._isAndroidWebView==null&&(this._isAndroidWebView=await a$2.isAndroidWebView()),this._isAndroidWebView}isZoomAvailable(){var e;return ((e=this.cameraManager.mediaTrackCapabilities)==null?void 0:e.zoom)!=null}};export{g as a};
|
|
@@ -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-77BBIAZE.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};
|