import { t as LabelField } from "./LabelField-BAO35-Eb.js"; import { t as CapturedLabel } from "./CapturedLabel-PjFfeqht.js"; import { c as NativeProxyHandle } from "./AdaptiveRecognitionResult-Clnk-SP8.js"; import { t as LabelCapture } from "./LabelCapture-BZi-QVCO.js"; import { t as LabelCaptureOverlayJSON } from "./LabelCaptureOverlayJSON-B6X3-JDh.js"; import { Anchor, DataCaptureOverlay, DataCaptureView, PointWithUnit } from "@scandit/web-datacapture-core"; import { nativeHandle } from "@scandit/web-datacapture-core/build/js/private/nativeHandle.js"; import { Serializable } from "@scandit/web-datacapture-core/build/js/private/Serializable"; //#region src/main/api/LabelCaptureAdvancedOverlayListener.d.ts interface LabelCaptureAdvancedOverlayListener { /** * View to be drawn corresponding to the given CapturedLabel. * Called before anchorForCapturedLabel() and offsetForCapturedLabel(). * @param overlay The LabelCaptureAdvancedOverlay instance * @param capturedLabel The captured label to create a view for */ viewForCapturedLabel?(overlay: LabelCaptureAdvancedOverlay, capturedLabel: CapturedLabel): HTMLElement | null; /** * Anchor point that should be used for the view corresponding to the given CapturedLabel. * Called after viewForCapturedLabel() and before offsetForCapturedLabel(). * @param overlay The LabelCaptureAdvancedOverlay instance * @param capturedLabel The captured label to determine anchor for */ anchorForCapturedLabel?(overlay: LabelCaptureAdvancedOverlay, capturedLabel: CapturedLabel): Anchor; /** * Offset to be set to the view corresponding to the given CapturedLabel. * Called after viewForCapturedLabel() and anchorForCapturedLabel(). * @param overlay The LabelCaptureAdvancedOverlay instance * @param capturedLabel The captured label to determine offset for * @param view The view to offset */ offsetForCapturedLabel?(overlay: LabelCaptureAdvancedOverlay, capturedLabel: CapturedLabel, view: HTMLElement): PointWithUnit; /** * View to be drawn corresponding to the given LabelField. * Called before anchorForCapturedLabelField() and offsetForCapturedLabelField(). * @param overlay The LabelCaptureAdvancedOverlay instance * @param labelField The label field to create a view for */ viewForCapturedLabelField?(overlay: LabelCaptureAdvancedOverlay, labelField: LabelField): HTMLElement | null; /** * Anchor point that should be used for the view corresponding to the given LabelField. * Called after viewForCapturedLabelField() and before offsetForCapturedLabelField(). * @param overlay The LabelCaptureAdvancedOverlay instance * @param labelField The label field to determine anchor for */ anchorForCapturedLabelField?(overlay: LabelCaptureAdvancedOverlay, labelField: LabelField): Anchor; /** * Offset to be set to the view corresponding to the given LabelField. * Called after viewForCapturedLabelField() and anchorForCapturedLabelField(). * @param overlay The LabelCaptureAdvancedOverlay instance * @param labelField The label field to determine offset for * @param view The view to offset */ offsetForCapturedLabelField?(overlay: LabelCaptureAdvancedOverlay, labelField: LabelField, view: HTMLElement): PointWithUnit; } //#endregion //#region src/main/api/LabelCaptureAdvancedOverlay.d.ts declare class LabelCaptureAdvancedOverlay implements DataCaptureOverlay, Serializable { [nativeHandle]: NativeProxyHandle; private onWorkerMessageHandler; private _dataCaptureView; private defaultOffset; private _viewForCapturedLabelMap; private _viewForCapturedLabelFieldMap; private _anchorForCapturedLabelMap; private _offsetForCapturedLabelMap; private _offsetForCapturedLabelFieldMap; private _anchorForCapturedLabelFieldMap; listener: LabelCaptureAdvancedOverlayListener | null; static withLabelCaptureForView(labelCapture: LabelCapture, view: DataCaptureView): Promise; private constructor(); private keyForCapturedLabelField; setShouldShowScanAreaGuides(show: boolean): Promise; getShouldShowScanAreaGuides(): Promise; setViewForCapturedLabel(capturedLabel: CapturedLabel, view?: HTMLElement): void; setAnchorForCapturedLabel(capturedLabel: CapturedLabel, anchor: Anchor): void; setOffsetForCapturedLabel(capturedLabel: CapturedLabel, offset: PointWithUnit): void; setViewForCapturedLabelField(field: LabelField, capturedLabel: CapturedLabel, view?: HTMLElement): void; setAnchorForCapturedLabelField(labelField: LabelField, capturedLabel: CapturedLabel, anchor: Anchor): void; setOffsetForCapturedLabelField(labelField: LabelField, capturedLabel: CapturedLabel, offset: PointWithUnit): void; clearCapturedLabelViews(): void; private onWorkerMessage; private handleUpdateField; private update; toJSONObject(): LabelCaptureOverlayJSON; } //#endregion export { LabelCaptureAdvancedOverlayListener as n, LabelCaptureAdvancedOverlay as t };