@scandit/web-datacapture-barcode
Version:
Scandit Data Capture SDK for the Web
45 lines • 2.1 kB
TypeScript
import { t as Barcode } from "../../../Barcode-DNvaiOyn.js";
import { r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-BTMTqI9o.js";
import { BarcodeArInfoAnnotation } from "./BarcodeArInfoAnnotation.js";
import { Point, ScanditHTMLElement } from "@scandit/web-datacapture-core";
//#region src/main/ar/ui/organisms/BarcodeArResponsiveAnnotation.d.ts
declare class BarcodeArResponsiveAnnotation extends ScanditHTMLElement implements BarcodeArAnnotation {
static tag: "scandit-barcode-ar-responsive-annotation";
private _barcode;
private _annotationsWithThreshold;
private _currentAnnotation;
private static _threshold;
protected static register(): void;
static create(barcode: Barcode, annotationsByThreshold: Record<number, BarcodeArInfoAnnotation | null>): BarcodeArResponsiveAnnotation;
/**
* @deprecated Use `create(barcode, annotationsByThreshold)` instead. Maps to
* `{ [BarcodeArResponsiveAnnotation.threshold]: farAway, 1.0: closeUp }`.
*/
static create(barcode: Barcode, closeUp: BarcodeArInfoAnnotation | null, farAway: BarcodeArInfoAnnotation | null): BarcodeArResponsiveAnnotation;
private static isValidThreshold;
private static dropOutOfBoundThresholds;
get barcode(): Barcode;
get annotationTrigger(): BarcodeArAnnotationTrigger;
set annotationTrigger(trigger: BarcodeArAnnotationTrigger);
private set anchor(value);
private get anchor();
updatePosition(point: Point, transformOrigin: Point, rotationAngle: number): void;
private selectAnnotation;
private getChildAnnotations;
private updateAnnotationVisibility;
/**
* @deprecated Use the `annotationsByThreshold` map passed to `create` instead. Per-instance
* thresholds supersede this shared property.
*/
static get threshold(): number;
static set threshold(threshold: number);
private connectedCallback;
private disconnectedCallback;
}
declare global {
interface HTMLElementTagNameMap {
[BarcodeArResponsiveAnnotation.tag]: BarcodeArResponsiveAnnotation;
}
}
//#endregion
export { BarcodeArResponsiveAnnotation };