@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
30 lines (27 loc) • 1.1 kB
TypeScript
import { Point, Direction } from '@scandit/web-datacapture-core';
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js';
declare enum BarcodeArAnnotationTrigger {
HighlightTap = "highlightTap",
HighlightTapAndBarcodeScan = "highlightTapAndBarcodeScan"
}
interface BarcodeArAnnotation extends ScanditHTMLElement {
annotationTrigger: BarcodeArAnnotationTrigger;
updatePosition(point: Point, transformOrigin: Point, rotationAngle: number): void;
}
declare enum BarcodeArAnnotationAnchor {
Top = "top-center",
Bottom = "bottom-center",
Left = "left-center",
Right = "right-center"
}
interface PrivateBarcodeArAnnotation extends BarcodeArAnnotation {
direction?: Direction;
anchor?: BarcodeArAnnotationAnchor;
dataset: {
identifier: `${string}-annotation`;
id: string;
couldBeDeleted: "true" | "false";
onForeground: "true" | "false";
};
}
export { type BarcodeArAnnotation, BarcodeArAnnotationAnchor, BarcodeArAnnotationTrigger, type PrivateBarcodeArAnnotation };