scandit-datacapture-frameworks-label 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/dist/dts/defaults/LabelCaptureDefaults.d.ts +13 -0
- package/dist/dts/defaults/index.d.ts +1 -0
- package/dist/dts/index.d.ts +2 -0
- package/dist/dts/labelcapture/BarcodeField.d.ts +8 -0
- package/dist/dts/labelcapture/CapturedLabel.d.ts +18 -0
- package/dist/dts/labelcapture/CustomBarcode.d.ts +15 -0
- package/dist/dts/labelcapture/CustomText.d.ts +10 -0
- package/dist/dts/labelcapture/ExpiryDateText.d.ts +11 -0
- package/dist/dts/labelcapture/ImeiOneBarcode.d.ts +10 -0
- package/dist/dts/labelcapture/ImeiTwoBarcode.d.ts +10 -0
- package/dist/dts/labelcapture/LabelCapture.d.ts +24 -0
- package/dist/dts/labelcapture/LabelCaptureContextFeatures.d.ts +7 -0
- package/dist/dts/labelcapture/LabelCaptureListener.d.ts +5 -0
- package/dist/dts/labelcapture/LabelCaptureSession.d.ts +8 -0
- package/dist/dts/labelcapture/LabelCaptureSettings.d.ts +15 -0
- package/dist/dts/labelcapture/LabelDateComponentFormat.d.ts +5 -0
- package/dist/dts/labelcapture/LabelDateFormat.d.ts +9 -0
- package/dist/dts/labelcapture/LabelDateResult.d.ts +17 -0
- package/dist/dts/labelcapture/LabelDefinition.d.ts +18 -0
- package/dist/dts/labelcapture/LabelField.d.ts +24 -0
- package/dist/dts/labelcapture/LabelFieldDefinition.d.ts +19 -0
- package/dist/dts/labelcapture/LabelFieldLocation.d.ts +17 -0
- package/dist/dts/labelcapture/LabelFieldLocationType.d.ts +12 -0
- package/dist/dts/labelcapture/LabelFieldState.d.ts +5 -0
- package/dist/dts/labelcapture/LabelFieldType.d.ts +5 -0
- package/dist/dts/labelcapture/PackingDateText.d.ts +11 -0
- package/dist/dts/labelcapture/PartNumberBarcode.d.ts +10 -0
- package/dist/dts/labelcapture/SerialNumberBarcode.d.ts +10 -0
- package/dist/dts/labelcapture/TextField.d.ts +3 -0
- package/dist/dts/labelcapture/TotalPriceText.d.ts +5 -0
- package/dist/dts/labelcapture/UnitPriceText.d.ts +5 -0
- package/dist/dts/labelcapture/WeightText.d.ts +5 -0
- package/dist/dts/labelcapture/controller/LabelCaptureAdvancedOverlayController.d.ts +76 -0
- package/dist/dts/labelcapture/controller/LabelCaptureBasicOverlayController.d.ts +42 -0
- package/dist/dts/labelcapture/controller/LabelCaptureController.d.ts +14 -0
- package/dist/dts/labelcapture/controller/LabelCaptureListenerController.d.ts +25 -0
- package/dist/dts/labelcapture/index.d.ts +36 -0
- package/dist/dts/labelcapture/private/PrivateLabelCapture.d.ts +7 -0
- package/dist/dts/labelcapture/private/PrivateLabelCaptureAdvancedOverlayView.d.ts +3 -0
- package/dist/dts/labelcapture/private/PrivateLabelCaptureContextFeatures.d.ts +5 -0
- package/dist/dts/labelcapture/private/PrivateLabelCaptureDateResult.d.ts +5 -0
- package/dist/dts/labelcapture/private/PrivateLabelCaptureSession.d.ts +34 -0
- package/dist/dts/labelcapture/private/PrivateLabelField.d.ts +24 -0
- package/dist/dts/labelcapture/view/LabelCaptureAdvancedOverlay.d.ts +27 -0
- package/dist/dts/labelcapture/view/LabelCaptureAdvancedOverlayListener.d.ts +13 -0
- package/dist/dts/labelcapture/view/LabelCaptureAdvancedOverlayView.d.ts +3 -0
- package/dist/dts/labelcapture/view/LabelCaptureBasicOverlay.d.ts +42 -0
- package/dist/index.js +1303 -0
- package/dist/index.js.map +1 -0
- package/package.json +22 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { QuadrilateralJSON } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { LabelCaptureSession } from '../LabelCaptureSession';
|
|
3
|
+
import { CapturedLabel } from '../CapturedLabel';
|
|
4
|
+
import { LabelFieldJSON } from './PrivateLabelField';
|
|
5
|
+
export interface CapturedLabelJSON {
|
|
6
|
+
name: string;
|
|
7
|
+
predictedBounds: QuadrilateralJSON;
|
|
8
|
+
fields: LabelFieldJSON[];
|
|
9
|
+
trackingId: number;
|
|
10
|
+
deltaTimeToPrediction: number;
|
|
11
|
+
canShowLocation: boolean;
|
|
12
|
+
isComplete: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface LabelDateResultJSON {
|
|
15
|
+
day: number | null;
|
|
16
|
+
month: number | null;
|
|
17
|
+
year: number | null;
|
|
18
|
+
dayStr: string | null;
|
|
19
|
+
monthStr: string | null;
|
|
20
|
+
yearStr: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface PrivateCapturedLabel {
|
|
23
|
+
frameSequenceID: number | null;
|
|
24
|
+
fromJSON(json: CapturedLabelJSON): CapturedLabel;
|
|
25
|
+
}
|
|
26
|
+
export interface LabelCaptureSessionJSON {
|
|
27
|
+
labels: CapturedLabelJSON[];
|
|
28
|
+
frameSequenceId: number;
|
|
29
|
+
lastFrameId: number;
|
|
30
|
+
canShowLocations: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface PrivateLabelCaptureSession {
|
|
33
|
+
fromJSON(json: LabelCaptureSessionJSON): LabelCaptureSession;
|
|
34
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BarcodeJSON } from "scandit-datacapture-frameworks-barcode";
|
|
2
|
+
import { QuadrilateralJSON } from "scandit-datacapture-frameworks-core";
|
|
3
|
+
import { LabelDateResultJSON } from "./PrivateLabelCaptureSession";
|
|
4
|
+
import { LabelField } from "../LabelField";
|
|
5
|
+
export interface PrivateExpiryDateText {
|
|
6
|
+
_dataTypePatterns: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface PrivatePackingDateText {
|
|
9
|
+
_dataTypePatterns: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface LabelFieldJSON {
|
|
12
|
+
name: string;
|
|
13
|
+
state: string;
|
|
14
|
+
type: string;
|
|
15
|
+
location: QuadrilateralJSON;
|
|
16
|
+
barcode: BarcodeJSON | null;
|
|
17
|
+
text: string | null;
|
|
18
|
+
date: LabelDateResultJSON | null;
|
|
19
|
+
isRequired: boolean;
|
|
20
|
+
canShowLocation: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface PrivateLabelField {
|
|
23
|
+
fromJSON(json: LabelFieldJSON): LabelField;
|
|
24
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DefaultSerializeable, DataCaptureOverlay, DataCaptureView, Anchor, PointWithUnit } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { LabelCapture } from '../LabelCapture';
|
|
3
|
+
import { LabelCaptureAdvancedOverlayView } from './LabelCaptureAdvancedOverlayView';
|
|
4
|
+
import { LabelCaptureAdvancedOverlayListener } from "./LabelCaptureAdvancedOverlayListener";
|
|
5
|
+
import { CapturedLabel } from '../CapturedLabel';
|
|
6
|
+
import { LabelField } from '../LabelField';
|
|
7
|
+
export declare class LabelCaptureAdvancedOverlay extends DefaultSerializeable implements DataCaptureOverlay {
|
|
8
|
+
private set view(value);
|
|
9
|
+
private get view();
|
|
10
|
+
get shouldShowScanAreaGuides(): boolean;
|
|
11
|
+
set shouldShowScanAreaGuides(shouldShow: boolean);
|
|
12
|
+
private type;
|
|
13
|
+
private proxy;
|
|
14
|
+
private mode;
|
|
15
|
+
private _view;
|
|
16
|
+
listener: LabelCaptureAdvancedOverlayListener | null;
|
|
17
|
+
private _shouldShowScanAreaGuides;
|
|
18
|
+
static withLabelCaptureForView(labelCapture: LabelCapture, view: DataCaptureView | null): LabelCaptureAdvancedOverlay;
|
|
19
|
+
private constructor();
|
|
20
|
+
setViewForCapturedLabel(capturedLabel: CapturedLabel, view: LabelCaptureAdvancedOverlayView | null): Promise<void>;
|
|
21
|
+
setViewForCapturedLabelField(field: LabelField, capturedLabel: CapturedLabel, view: LabelCaptureAdvancedOverlayView | null): Promise<void>;
|
|
22
|
+
setAnchorForCapturedLabel(capturedLabel: CapturedLabel, anchor: Anchor): Promise<void>;
|
|
23
|
+
setAnchorForCapturedLabelField(field: LabelField, capturedLabel: CapturedLabel, anchor: Anchor): Promise<void>;
|
|
24
|
+
setOffsetForCapturedLabel(capturedLabel: CapturedLabel, offset: PointWithUnit): Promise<void>;
|
|
25
|
+
setOffsetForCapturedLabelField(field: LabelField, capturedLabel: CapturedLabel, offset: PointWithUnit): Promise<void>;
|
|
26
|
+
clearCapturedLabelViews(): Promise<void>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LabelCaptureAdvancedOverlayView } from "./LabelCaptureAdvancedOverlayView";
|
|
2
|
+
import { Anchor, PointWithUnit } from "scandit-datacapture-frameworks-core";
|
|
3
|
+
import { LabelCaptureAdvancedOverlay } from "./LabelCaptureAdvancedOverlay";
|
|
4
|
+
import { CapturedLabel } from "../CapturedLabel";
|
|
5
|
+
import { LabelField } from "../LabelField";
|
|
6
|
+
export interface LabelCaptureAdvancedOverlayListener {
|
|
7
|
+
viewForCapturedLabel?(overlay: LabelCaptureAdvancedOverlay, label: CapturedLabel): LabelCaptureAdvancedOverlayView | null;
|
|
8
|
+
anchorForCapturedLabel?(overlay: LabelCaptureAdvancedOverlay, label: CapturedLabel): Anchor;
|
|
9
|
+
offsetForCapturedLabel?(overlay: LabelCaptureAdvancedOverlay, label: CapturedLabel): PointWithUnit;
|
|
10
|
+
viewForCapturedLabelField?(overlay: LabelCaptureAdvancedOverlay, field: LabelField): LabelCaptureAdvancedOverlayView | null;
|
|
11
|
+
anchorForCapturedLabelField?(overlay: LabelCaptureAdvancedOverlay, field: LabelField): Anchor;
|
|
12
|
+
offsetForCapturedLabelField?(overlay: LabelCaptureAdvancedOverlay, field: LabelField): PointWithUnit;
|
|
13
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Brush, DataCaptureOverlay, DataCaptureView, DefaultSerializeable, Viewfinder } from 'scandit-datacapture-frameworks-core';
|
|
2
|
+
import { LabelCapture } from '../LabelCapture';
|
|
3
|
+
import { LabelField } from '../LabelField';
|
|
4
|
+
import { CapturedLabel } from '../CapturedLabel';
|
|
5
|
+
export interface LabelCaptureBasicOverlayListener {
|
|
6
|
+
brushForFieldOfLabel?(overlay: LabelCaptureBasicOverlay, field: LabelField, label: CapturedLabel): Brush | null;
|
|
7
|
+
brushForLabel?(overlay: LabelCaptureBasicOverlay, label: CapturedLabel): Brush | null;
|
|
8
|
+
didTapLabel?(overlay: LabelCaptureBasicOverlay, label: CapturedLabel): void;
|
|
9
|
+
}
|
|
10
|
+
export declare class LabelCaptureBasicOverlay extends DefaultSerializeable implements DataCaptureOverlay {
|
|
11
|
+
static get defaultPredictedFieldBrush(): Brush;
|
|
12
|
+
static get defaultCapturedFieldBrush(): Brush;
|
|
13
|
+
static get defaultLabelBrush(): Brush;
|
|
14
|
+
private static get labelCaptureDefaults();
|
|
15
|
+
private type;
|
|
16
|
+
private mode;
|
|
17
|
+
private _view;
|
|
18
|
+
private set view(value);
|
|
19
|
+
private get view();
|
|
20
|
+
private _predictedFieldBrush;
|
|
21
|
+
get predictedFieldBrush(): Brush | null;
|
|
22
|
+
set predictedFieldBrush(newBrush: Brush | null);
|
|
23
|
+
private _capturedFieldBrush;
|
|
24
|
+
get capturedFieldBrush(): Brush | null;
|
|
25
|
+
set capturedFieldBrush(newBrush: Brush | null);
|
|
26
|
+
private _labelBrush;
|
|
27
|
+
get labelBrush(): Brush | null;
|
|
28
|
+
set labelBrush(newBrush: Brush | null);
|
|
29
|
+
private _shouldShowScanAreaGuides;
|
|
30
|
+
listener: LabelCaptureBasicOverlayListener | null;
|
|
31
|
+
private controller;
|
|
32
|
+
get shouldShowScanAreaGuides(): boolean;
|
|
33
|
+
set shouldShowScanAreaGuides(shouldShow: boolean);
|
|
34
|
+
private _viewfinder;
|
|
35
|
+
get viewfinder(): Viewfinder | null;
|
|
36
|
+
set viewfinder(newViewfinder: Viewfinder | null);
|
|
37
|
+
static withLabelCapture(labelCapture: LabelCapture): LabelCaptureBasicOverlay;
|
|
38
|
+
static withLabelCaptureForView(labelCapture: LabelCapture, view: DataCaptureView | null): LabelCaptureBasicOverlay;
|
|
39
|
+
private constructor();
|
|
40
|
+
setBrushForFieldOfLabel(brush: Brush, field: LabelField, label: CapturedLabel): Promise<void>;
|
|
41
|
+
setBrushForLabel(brush: Brush, label: CapturedLabel): Promise<void>;
|
|
42
|
+
}
|