scandit-datacapture-frameworks-label 8.1.1 → 8.2.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/__mocks__/ScanditDataCaptureCore.ts +94 -0
- package/dist/dts/defaults/LabelCaptureDefaults.d.ts +2 -0
- package/dist/dts/defaults/index.d.ts +1 -1
- package/dist/dts/generated/LabelProxy.d.ts +30 -0
- package/dist/dts/generated/LabelProxyAdapter.d.ts +256 -0
- package/dist/dts/generated/index.d.ts +6 -0
- package/dist/dts/labelcapture/AdaptiveRecognitionResult.d.ts +4 -0
- package/dist/dts/labelcapture/AdaptiveRecognitionResultType.d.ts +3 -0
- package/dist/dts/labelcapture/CustomBarcode.d.ts +5 -0
- package/dist/dts/labelcapture/CustomText.d.ts +4 -0
- package/dist/dts/labelcapture/ExpiryDateText.d.ts +4 -0
- package/dist/dts/labelcapture/ImeiOneBarcode.d.ts +5 -0
- package/dist/dts/labelcapture/ImeiTwoBarcode.d.ts +5 -0
- package/dist/dts/labelcapture/LabelCaptureAdaptiveRecognitionSettings.d.ts +11 -0
- package/dist/dts/labelcapture/LabelCaptureListener.d.ts +1 -2
- package/dist/dts/labelcapture/LabelCaptureSession.d.ts +0 -1
- package/dist/dts/labelcapture/LabelCaptureValidationFlowListener.d.ts +1 -0
- package/dist/dts/labelcapture/LabelCaptureValidationFlowSettings.d.ts +22 -0
- package/dist/dts/labelcapture/PackingDateText.d.ts +4 -0
- package/dist/dts/labelcapture/PartNumberBarcode.d.ts +5 -0
- package/dist/dts/labelcapture/ReceiptScanningLineItem.d.ts +13 -0
- package/dist/dts/labelcapture/ReceiptScanningResult.d.ts +27 -0
- package/dist/dts/labelcapture/SerialNumberBarcode.d.ts +5 -0
- package/dist/dts/labelcapture/TotalPriceText.d.ts +4 -0
- package/dist/dts/labelcapture/UnitPriceText.d.ts +4 -0
- package/dist/dts/labelcapture/WeightText.d.ts +4 -0
- package/dist/dts/labelcapture/controller/LabelCaptureAdaptiveRecognitionOverlayController.d.ts +29 -0
- package/dist/dts/labelcapture/controller/LabelCaptureAdvancedOverlayController.d.ts +7 -47
- package/dist/dts/labelcapture/controller/LabelCaptureBasicOverlayController.d.ts +7 -25
- package/dist/dts/labelcapture/controller/LabelCaptureController.d.ts +7 -25
- package/dist/dts/labelcapture/controller/LabelCaptureValidationFlowOverlayController.d.ts +13 -15
- package/dist/dts/labelcapture/index.d.ts +8 -0
- package/dist/dts/labelcapture/private/PrivateLabelCaptureSession.d.ts +1 -6
- package/dist/dts/labelcapture/view/LabelCaptureAdaptiveRecognitionListener.d.ts +5 -0
- package/dist/dts/labelcapture/view/LabelCaptureAdaptiveRecognitionOverlay.d.ts +20 -0
- package/dist/dts/labelcapture/view/LabelCaptureAdvancedOverlay.d.ts +1 -0
- package/dist/dts/labelcapture/view/LabelCaptureBasicOverlay.d.ts +2 -1
- package/dist/dts/labelcapture/view/LabelCaptureValidationFlowOverlay.d.ts +1 -0
- package/dist/dts/proxy-types.d.ts +1 -1
- package/dist/index.js +1152 -54
- package/dist/index.js.map +1 -1
- package/jest.config.js +38 -0
- package/package.json +3 -3
- package/test/AdaptiveRecognitionResultType.test.ts +19 -0
- package/test/LabelCaptureAdaptiveRecognitionSettings.test.ts +115 -0
- package/test/LabelCaptureValidationFlowOverlayController.test.ts +427 -0
- package/test/LabelCaptureValidationFlowSettings.test.ts +120 -0
- package/test/ReceiptScanningLineItem.test.ts +99 -0
- package/test/ReceiptScanningResult.test.ts +247 -0
package/dist/dts/labelcapture/controller/LabelCaptureAdaptiveRecognitionOverlayController.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BaseController } from "scandit-datacapture-frameworks-core";
|
|
2
|
+
import { LabelCaptureAdaptiveRecognitionOverlay } from "../view/LabelCaptureAdaptiveRecognitionOverlay";
|
|
3
|
+
import { AdaptiveRecognitionResult } from "../AdaptiveRecognitionResult";
|
|
4
|
+
import { LabelProxy } from "../../generated";
|
|
5
|
+
export declare enum LabelCaptureAdaptiveRecognitionListenerEvents {
|
|
6
|
+
recognized = "LabelCaptureAdaptiveRecognitionListener.recognized",
|
|
7
|
+
failure = "LabelCaptureAdaptiveRecognitionListener.failure"
|
|
8
|
+
}
|
|
9
|
+
export declare class LabelCaptureAdaptiveRecognitionOverlayController extends BaseController<LabelProxy> {
|
|
10
|
+
private overlay;
|
|
11
|
+
private adapter;
|
|
12
|
+
private hasListeners;
|
|
13
|
+
private hasPendingListenerRegistration;
|
|
14
|
+
private get dataCaptureViewId();
|
|
15
|
+
constructor(overlay: LabelCaptureAdaptiveRecognitionOverlay);
|
|
16
|
+
subscribeListener(): Promise<void>;
|
|
17
|
+
onViewChanged(): Promise<void>;
|
|
18
|
+
unsubscribeListener(): Promise<void>;
|
|
19
|
+
applySettings(): Promise<void>;
|
|
20
|
+
dispose(): void;
|
|
21
|
+
private initialize;
|
|
22
|
+
private handleRecognized;
|
|
23
|
+
private handleFailure;
|
|
24
|
+
private handleRecognizedWrapper;
|
|
25
|
+
private handleFailureWrapper;
|
|
26
|
+
}
|
|
27
|
+
export interface LabelCaptureAdaptiveRecognitionOverlayEventPayload {
|
|
28
|
+
result: AdaptiveRecognitionResult;
|
|
29
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { PointWithUnit, Anchor, BaseController
|
|
1
|
+
import { PointWithUnit, Anchor, BaseController } from 'scandit-datacapture-frameworks-core';
|
|
2
2
|
import { LabelCaptureAdvancedOverlayView } from '../view/LabelCaptureAdvancedOverlayView';
|
|
3
3
|
import { LabelCaptureAdvancedOverlay } from '../view/LabelCaptureAdvancedOverlay';
|
|
4
4
|
import { CapturedLabel } from '../CapturedLabel';
|
|
5
5
|
import { LabelField } from '../LabelField';
|
|
6
|
+
import { LabelProxy } from '../../generated';
|
|
6
7
|
export declare enum LabelCaptureAdvancedOverlayListenerEvents {
|
|
7
8
|
viewForLabel = "LabelCaptureAdvancedOverlayListener.viewForLabel",
|
|
8
9
|
anchorForLabel = "LabelCaptureAdvancedOverlayListener.anchorForLabel",
|
|
@@ -11,53 +12,11 @@ export declare enum LabelCaptureAdvancedOverlayListenerEvents {
|
|
|
11
12
|
anchorForCapturedLabelField = "LabelCaptureAdvancedOverlayListener.anchorForFieldOfLabel",
|
|
12
13
|
offsetForCapturedLabelField = "LabelCaptureAdvancedOverlayListener.offsetForFieldOfLabel"
|
|
13
14
|
}
|
|
14
|
-
export
|
|
15
|
-
$setViewForCapturedLabel({ dataCaptureViewId, jsonView, trackingId }: {
|
|
16
|
-
dataCaptureViewId: number;
|
|
17
|
-
jsonView: string | null;
|
|
18
|
-
trackingId: number;
|
|
19
|
-
}): Promise<void>;
|
|
20
|
-
$setAnchorForCapturedLabel({ dataCaptureViewId, anchor, trackingId }: {
|
|
21
|
-
dataCaptureViewId: number;
|
|
22
|
-
anchor: Anchor;
|
|
23
|
-
trackingId: number;
|
|
24
|
-
}): Promise<void>;
|
|
25
|
-
$setOffsetForCapturedLabel({ dataCaptureViewId, offsetJson, trackingId }: {
|
|
26
|
-
dataCaptureViewId: number;
|
|
27
|
-
offsetJson: string;
|
|
28
|
-
trackingId: number;
|
|
29
|
-
}): Promise<void>;
|
|
30
|
-
$setViewForCapturedLabelField({ dataCaptureViewId, view, identifier }: {
|
|
31
|
-
dataCaptureViewId: number;
|
|
32
|
-
view: string | null;
|
|
33
|
-
identifier: string;
|
|
34
|
-
}): Promise<void>;
|
|
35
|
-
$setAnchorForCapturedLabelField({ dataCaptureViewId, anchor, identifier }: {
|
|
36
|
-
dataCaptureViewId: number;
|
|
37
|
-
anchor: Anchor;
|
|
38
|
-
identifier: string;
|
|
39
|
-
}): Promise<void>;
|
|
40
|
-
$setOffsetForCapturedLabelField({ dataCaptureViewId, offset, identifier }: {
|
|
41
|
-
dataCaptureViewId: number;
|
|
42
|
-
offset: string;
|
|
43
|
-
identifier: string;
|
|
44
|
-
}): Promise<void>;
|
|
45
|
-
$clearCapturedLabelViews({ dataCaptureViewId }: {
|
|
46
|
-
dataCaptureViewId: number;
|
|
47
|
-
}): Promise<void>;
|
|
48
|
-
$registerListenerForAdvancedOverlayEvents({ dataCaptureViewId }: {
|
|
49
|
-
dataCaptureViewId: number;
|
|
50
|
-
}): Promise<void>;
|
|
51
|
-
$unregisterListenerForAdvancedOverlayEvents({ dataCaptureViewId }: {
|
|
52
|
-
dataCaptureViewId: number;
|
|
53
|
-
}): Promise<void>;
|
|
54
|
-
$updateLabelCaptureAdvancedOverlay({ dataCaptureViewId, advancedOverlayJson }: {
|
|
55
|
-
dataCaptureViewId: number;
|
|
56
|
-
advancedOverlayJson: string;
|
|
57
|
-
}): Promise<void>;
|
|
58
|
-
}
|
|
59
|
-
export declare class LabelCaptureAdvancedOverlayController extends BaseController<LabelCaptureAdvancedOverlayProxy> {
|
|
15
|
+
export declare class LabelCaptureAdvancedOverlayController extends BaseController<LabelProxy> {
|
|
60
16
|
private overlay;
|
|
17
|
+
private adapter;
|
|
18
|
+
private hasListeners;
|
|
19
|
+
private hasPendingListenerRegistration;
|
|
61
20
|
constructor(overlay: LabelCaptureAdvancedOverlay);
|
|
62
21
|
setViewForCapturedLabel(label: CapturedLabel, view: LabelCaptureAdvancedOverlayView | null | Promise<LabelCaptureAdvancedOverlayView>): Promise<void>;
|
|
63
22
|
setAnchorForCapturedLabel(label: CapturedLabel, anchor: Anchor): Promise<void>;
|
|
@@ -67,6 +26,7 @@ export declare class LabelCaptureAdvancedOverlayController extends BaseControlle
|
|
|
67
26
|
setOffsetForCapturedLabelField(label: CapturedLabel, field: LabelField, offset: PointWithUnit): Promise<void>;
|
|
68
27
|
clearCapturedLabelViews(): Promise<void>;
|
|
69
28
|
subscribeListener(): Promise<void>;
|
|
29
|
+
onViewChanged(): Promise<void>;
|
|
70
30
|
unsubscribeListener(): Promise<void>;
|
|
71
31
|
dispose(): void;
|
|
72
32
|
updateAdvancedOverlay(advancedOverlayJson: string): Promise<void>;
|
|
@@ -1,41 +1,23 @@
|
|
|
1
|
-
import { BaseController,
|
|
1
|
+
import { BaseController, Brush } from 'scandit-datacapture-frameworks-core';
|
|
2
2
|
import { LabelCaptureBasicOverlay } from '../view/LabelCaptureBasicOverlay';
|
|
3
3
|
import { LabelField } from '../LabelField';
|
|
4
4
|
import { CapturedLabel } from '../CapturedLabel';
|
|
5
|
+
import { LabelProxy } from '../../generated';
|
|
5
6
|
export declare enum LabelCaptureBasicOverlayListenerEvents {
|
|
6
7
|
brushForFieldOfLabel = "LabelCaptureBasicOverlayListener.brushForFieldOfLabel",
|
|
7
8
|
brushForLabel = "LabelCaptureBasicOverlayListener.brushForLabel",
|
|
8
9
|
didTapLabel = "LabelCaptureBasicOverlayListener.didTapLabel"
|
|
9
10
|
}
|
|
10
|
-
export
|
|
11
|
-
$setBrushForFieldOfLabel({ dataCaptureViewId, brushJson, fieldName, trackingId }: {
|
|
12
|
-
dataCaptureViewId: number;
|
|
13
|
-
brushJson: string | null;
|
|
14
|
-
fieldName: string;
|
|
15
|
-
trackingId: number;
|
|
16
|
-
}): Promise<void>;
|
|
17
|
-
$setBrushForLabel({ dataCaptureViewId, brushJson, trackingId }: {
|
|
18
|
-
dataCaptureViewId: number;
|
|
19
|
-
brushJson: string | null;
|
|
20
|
-
trackingId: number;
|
|
21
|
-
}): Promise<void>;
|
|
22
|
-
$registerListenerForBasicOverlayEvents({ dataCaptureViewId }: {
|
|
23
|
-
dataCaptureViewId: number;
|
|
24
|
-
}): Promise<void>;
|
|
25
|
-
$unregisterListenerForBasicOverlayEvents({ dataCaptureViewId }: {
|
|
26
|
-
dataCaptureViewId: number;
|
|
27
|
-
}): Promise<void>;
|
|
28
|
-
$updateLabelCaptureBasicOverlay({ dataCaptureViewId, basicOverlayJson }: {
|
|
29
|
-
dataCaptureViewId: number;
|
|
30
|
-
basicOverlayJson: string;
|
|
31
|
-
}): Promise<void>;
|
|
32
|
-
}
|
|
33
|
-
export declare class LabelCaptureBasicOverlayController extends BaseController<LabelCaptureBasicOverlayProxy> {
|
|
11
|
+
export declare class LabelCaptureBasicOverlayController extends BaseController<LabelProxy> {
|
|
34
12
|
private overlay;
|
|
13
|
+
private adapter;
|
|
14
|
+
private hasListeners;
|
|
15
|
+
private hasPendingListenerRegistration;
|
|
35
16
|
constructor(overlay: LabelCaptureBasicOverlay);
|
|
36
17
|
setBrushForFieldOfLabel(brush: Brush | null, field: LabelField, label: CapturedLabel): Promise<void>;
|
|
37
18
|
setBrushForLabel(brush: Brush | null, label: CapturedLabel): Promise<void>;
|
|
38
19
|
subscribeListener(): Promise<void>;
|
|
20
|
+
onViewChanged(): Promise<void>;
|
|
39
21
|
unsubscribeListener(): Promise<void>;
|
|
40
22
|
updateBasicOverlay(basicOverlayJson: string): Promise<void>;
|
|
41
23
|
dispose(): void;
|
|
@@ -1,36 +1,18 @@
|
|
|
1
|
-
import { BaseController
|
|
1
|
+
import { BaseController } from "scandit-datacapture-frameworks-core";
|
|
2
2
|
import { LabelCapture } from "../LabelCapture";
|
|
3
3
|
import { LabelCaptureFeedback } from "../LabelCaptureFeedback";
|
|
4
|
+
import { LabelProxy } from "../../generated";
|
|
4
5
|
export declare enum LabelCaptureListenerEvents {
|
|
5
6
|
didUpdateSession = "LabelCaptureListener.didUpdateSession"
|
|
6
7
|
}
|
|
7
|
-
export interface
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
isEnabled: boolean;
|
|
11
|
-
}): Promise<void>;
|
|
12
|
-
$updateLabelCaptureSettings({ modeId, settingsJson }: {
|
|
13
|
-
modeId: number;
|
|
14
|
-
settingsJson: string;
|
|
15
|
-
}): Promise<void>;
|
|
16
|
-
$registerListenerForEvents({ modeId }: {
|
|
17
|
-
modeId: number;
|
|
18
|
-
}): Promise<void>;
|
|
19
|
-
$unregisterListenerForEvents({ modeId }: {
|
|
20
|
-
modeId: number;
|
|
21
|
-
}): Promise<void>;
|
|
22
|
-
$finishDidUpdateSessionCallback({ modeId, isEnabled }: {
|
|
23
|
-
modeId: number;
|
|
24
|
-
isEnabled: boolean;
|
|
25
|
-
}): Promise<void>;
|
|
26
|
-
$updateLabelCaptureFeedback({ modeId, feedbackJson }: {
|
|
27
|
-
modeId: number;
|
|
28
|
-
feedbackJson: string;
|
|
29
|
-
}): Promise<void>;
|
|
8
|
+
export interface LabelCaptureSessionEventPayload {
|
|
9
|
+
session: string;
|
|
10
|
+
isBarcodeArFull: boolean | null;
|
|
30
11
|
}
|
|
31
|
-
export declare class LabelCaptureController extends BaseController<
|
|
12
|
+
export declare class LabelCaptureController extends BaseController<LabelProxy> {
|
|
32
13
|
private mode;
|
|
33
14
|
private _boundHandleDidUpdateSession?;
|
|
15
|
+
private adapter;
|
|
34
16
|
constructor(mode: LabelCapture);
|
|
35
17
|
setModeEnabledState(isEnabled: boolean): Promise<void>;
|
|
36
18
|
updateLabelCaptureSettings(settingsJson: string): Promise<void>;
|
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
import { BaseController
|
|
1
|
+
import { BaseController } from 'scandit-datacapture-frameworks-core';
|
|
2
2
|
import { LabelCaptureValidationFlowOverlay } from '../view/LabelCaptureValidationFlowOverlay';
|
|
3
3
|
import { LabelCapture } from '../LabelCapture';
|
|
4
|
+
import { LabelProxy } from '../../generated';
|
|
4
5
|
export interface LabelCaptureValidationFlowListenerEventPayload {
|
|
5
6
|
fields: string[];
|
|
7
|
+
oldValue: string | null;
|
|
8
|
+
newValue: string;
|
|
6
9
|
}
|
|
7
10
|
export declare enum LabelCaptureValidationFlowListenerEvents {
|
|
8
|
-
didCaptureLabelWithFields = "LabelCaptureValidationFlowListener.didCaptureLabelWithFields"
|
|
11
|
+
didCaptureLabelWithFields = "LabelCaptureValidationFlowListener.didCaptureLabelWithFields",
|
|
12
|
+
didSubmitManualInputForField = "LabelCaptureValidationFlowListener.didSubmitManualInputForField"
|
|
9
13
|
}
|
|
10
|
-
export
|
|
11
|
-
$registerListenerForValidationFlowEvents({ dataCaptureViewId }: {
|
|
12
|
-
dataCaptureViewId: number;
|
|
13
|
-
}): Promise<void>;
|
|
14
|
-
$unregisterListenerForValidationFlowEvents({ dataCaptureViewId }: {
|
|
15
|
-
dataCaptureViewId: number;
|
|
16
|
-
}): Promise<void>;
|
|
17
|
-
$updateLabelCaptureValidationFlowOverlay({ dataCaptureViewId, overlayJson }: {
|
|
18
|
-
dataCaptureViewId: number;
|
|
19
|
-
overlayJson: string;
|
|
20
|
-
}): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
export declare class LabelCaptureValidationFlowOverlayController extends BaseController<LabelCaptureValidationFlowOverlayProxy> {
|
|
14
|
+
export declare class LabelCaptureValidationFlowOverlayController extends BaseController<LabelProxy> {
|
|
23
15
|
private overlay;
|
|
24
16
|
private isSubscribed;
|
|
17
|
+
private hasPendingListenerRegistration;
|
|
18
|
+
private adapter;
|
|
25
19
|
constructor(overlay: LabelCaptureValidationFlowOverlay);
|
|
26
20
|
updateValidationFlowOverlay(): Promise<void>;
|
|
27
21
|
subscribeLabelCaptureValidationFlowListener(): Promise<void>;
|
|
22
|
+
onViewChanged(): Promise<void>;
|
|
28
23
|
unsubscribeLabelCaptureValidationFlowListener(): Promise<void>;
|
|
29
24
|
dispose(): void;
|
|
30
25
|
private initialize;
|
|
31
26
|
private handleDidCaptureLabelWithFieldsEvent;
|
|
27
|
+
private handleDidSubmitManualInputForFieldEvent;
|
|
32
28
|
private notifyListenersOfDidCaptureLabelWithFields;
|
|
29
|
+
private notifyListenersOfDidSubmitManualInputForField;
|
|
33
30
|
private get dataCaptureViewId();
|
|
34
31
|
private handleDidCaptureLabelWithFieldsEventWrapper;
|
|
32
|
+
private handleDidSubmitManualInputForFieldEventWrapper;
|
|
35
33
|
}
|
|
36
34
|
export interface PrivateLabelCaptureValidationFlowOverlay {
|
|
37
35
|
mode: LabelCapture;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './AdaptiveRecognitionResult';
|
|
2
|
+
export * from './AdaptiveRecognitionResultType';
|
|
1
3
|
export * from './BarcodeField';
|
|
2
4
|
export * from './CapturedLabel';
|
|
3
5
|
export * from './CustomBarcode';
|
|
@@ -23,6 +25,8 @@ export * from './LabelFieldState';
|
|
|
23
25
|
export * from './LabelFieldType';
|
|
24
26
|
export * from './PackingDateText';
|
|
25
27
|
export * from './PartNumberBarcode';
|
|
28
|
+
export * from './ReceiptScanningLineItem';
|
|
29
|
+
export * from './ReceiptScanningResult';
|
|
26
30
|
export * from './SerialNumberBarcode';
|
|
27
31
|
export * from './TextField';
|
|
28
32
|
export * from './TotalPriceText';
|
|
@@ -37,4 +41,8 @@ export * from './view/LabelCaptureValidationFlowOverlay';
|
|
|
37
41
|
export * from './LabelCaptureValidationFlowListener';
|
|
38
42
|
export * from './LabelCaptureValidationFlowSettings';
|
|
39
43
|
export * from './controller/LabelCaptureValidationFlowOverlayController';
|
|
44
|
+
export * from './view/LabelCaptureAdaptiveRecognitionOverlay';
|
|
45
|
+
export * from './view/LabelCaptureAdaptiveRecognitionListener';
|
|
46
|
+
export * from './LabelCaptureAdaptiveRecognitionSettings';
|
|
47
|
+
export * from './controller/LabelCaptureAdaptiveRecognitionOverlayController';
|
|
40
48
|
export * from './private/PrivateLabelCapture';
|
|
@@ -23,11 +23,6 @@ export interface PrivateCapturedLabel {
|
|
|
23
23
|
frameSequenceID: number | null;
|
|
24
24
|
fromJSON(json: CapturedLabelJSON): CapturedLabel;
|
|
25
25
|
}
|
|
26
|
-
export interface LabelCaptureSessionEventPayload {
|
|
27
|
-
session: string;
|
|
28
|
-
frameId: string | null;
|
|
29
|
-
modeId: number | null;
|
|
30
|
-
}
|
|
31
26
|
export interface LabelCaptureSessionJSON {
|
|
32
27
|
labels: CapturedLabelJSON[];
|
|
33
28
|
frameSequenceId: number;
|
|
@@ -35,5 +30,5 @@ export interface LabelCaptureSessionJSON {
|
|
|
35
30
|
canShowLocations: boolean;
|
|
36
31
|
}
|
|
37
32
|
export interface PrivateLabelCaptureSession {
|
|
38
|
-
fromJSON(
|
|
33
|
+
fromJSON(json: LabelCaptureSessionJSON): LabelCaptureSession;
|
|
39
34
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DataCaptureOverlay, DefaultSerializeable } from "scandit-datacapture-frameworks-core";
|
|
2
|
+
import { LabelCapture } from "../LabelCapture";
|
|
3
|
+
import { LabelCaptureAdaptiveRecognitionListener } from "./LabelCaptureAdaptiveRecognitionListener";
|
|
4
|
+
import { LabelCaptureAdaptiveRecognitionSettings } from "../LabelCaptureAdaptiveRecognitionSettings";
|
|
5
|
+
export declare class LabelCaptureAdaptiveRecognitionOverlay extends DefaultSerializeable implements DataCaptureOverlay {
|
|
6
|
+
private type;
|
|
7
|
+
private settings;
|
|
8
|
+
private controller;
|
|
9
|
+
private _view;
|
|
10
|
+
private modeId;
|
|
11
|
+
private _listener;
|
|
12
|
+
private hasListener;
|
|
13
|
+
private get view();
|
|
14
|
+
private set view(value);
|
|
15
|
+
private onViewIdChanged;
|
|
16
|
+
get listener(): LabelCaptureAdaptiveRecognitionListener | null;
|
|
17
|
+
set listener(listener: LabelCaptureAdaptiveRecognitionListener | null);
|
|
18
|
+
constructor(mode: LabelCapture);
|
|
19
|
+
applySettings(settings: LabelCaptureAdaptiveRecognitionSettings): Promise<void>;
|
|
20
|
+
}
|
|
@@ -11,6 +11,7 @@ export declare class LabelCaptureAdvancedOverlay extends DefaultSerializeable im
|
|
|
11
11
|
private modeId;
|
|
12
12
|
private get view();
|
|
13
13
|
private set view(value);
|
|
14
|
+
private onViewIdChanged;
|
|
14
15
|
get shouldShowScanAreaGuides(): boolean;
|
|
15
16
|
set shouldShowScanAreaGuides(shouldShow: boolean);
|
|
16
17
|
private _listener;
|
|
@@ -18,6 +18,7 @@ export declare class LabelCaptureBasicOverlay extends DefaultSerializeable imple
|
|
|
18
18
|
private modeId;
|
|
19
19
|
private get view();
|
|
20
20
|
private set view(value);
|
|
21
|
+
private onViewIdChanged;
|
|
21
22
|
private _predictedFieldBrush;
|
|
22
23
|
get predictedFieldBrush(): Brush | null;
|
|
23
24
|
set predictedFieldBrush(newBrush: Brush | null);
|
|
@@ -37,7 +38,7 @@ export declare class LabelCaptureBasicOverlay extends DefaultSerializeable imple
|
|
|
37
38
|
private _viewfinder;
|
|
38
39
|
get viewfinder(): Viewfinder | null;
|
|
39
40
|
set viewfinder(newViewfinder: Viewfinder | null);
|
|
40
|
-
constructor(
|
|
41
|
+
constructor(labelCapture: LabelCapture);
|
|
41
42
|
setBrushForFieldOfLabel(brush: Brush, field: LabelField, label: CapturedLabel): Promise<void>;
|
|
42
43
|
setBrushForLabel(brush: Brush, label: CapturedLabel): Promise<void>;
|
|
43
44
|
}
|
|
@@ -12,6 +12,7 @@ export declare class LabelCaptureValidationFlowOverlay extends DefaultSerializea
|
|
|
12
12
|
private modeId;
|
|
13
13
|
private get view();
|
|
14
14
|
private set view(value);
|
|
15
|
+
private onViewIdChanged;
|
|
15
16
|
constructor(mode: LabelCapture);
|
|
16
17
|
get listener(): LabelCaptureValidationFlowListener | null;
|
|
17
18
|
set listener(listener: LabelCaptureValidationFlowListener | null);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NativeCallerProvider } from 'scandit-datacapture-frameworks-core';
|
|
2
|
-
export declare const LABEL_PROXY_TYPE_NAMES: readonly ["LabelCaptureProxy", "LabelCaptureBasicOverlayProxy", "LabelCaptureAdvancedOverlayProxy", "LabelCaptureValidationFlowOverlayProxy"];
|
|
2
|
+
export declare const LABEL_PROXY_TYPE_NAMES: readonly ["LabelCaptureProxy", "LabelCaptureBasicOverlayProxy", "LabelCaptureAdvancedOverlayProxy", "LabelCaptureValidationFlowOverlayProxy", "LabelCaptureAdaptiveRecognitionOverlayProxy"];
|
|
3
3
|
export type LabelProxyType = typeof LABEL_PROXY_TYPE_NAMES[number];
|
|
4
4
|
export interface LabelNativeCallerProvider extends NativeCallerProvider<LabelProxyType> {
|
|
5
5
|
}
|