The selection overlay configuration.

interface SelectionOverlayConfig {
    automaticSelectionEnabled?: boolean;
    highlightedPolygonColor?: ColorValue;
    highlightedStrokeColor?: ColorValue;
    highlightedTextColor?: ColorValue;
    highlightedTextContainerColor?: ColorValue;
    overlayEnabled?: boolean;
    polygonColor?: ColorValue;
    shouldHighlightBarcode?: ((barcodeItem) => boolean);
    strokeColor?: ColorValue;
    textColor?: ColorValue;
    textContainerColor?: ColorValue;
    textFormat?: BarcodeOverlayTextFormat;
}

Properties

automaticSelectionEnabled?: boolean

Whether the barcode is highlighted automatically when being detected or not.

highlightedPolygonColor?: ColorValue

The color of the polygon in the selection overlay, when highlighted.

highlightedStrokeColor?: ColorValue

The color of the highlighted polygon border.

highlightedTextColor?: ColorValue

The color of the text in the selection overlay, when highlighted.

highlightedTextContainerColor?: ColorValue

The color of the texts background in the selection overlay, when highlighted.

overlayEnabled?: boolean

Whether the barcode selection overlay is enabled or not.

polygonColor?: ColorValue

The color of the polygon in the selection overlay.

shouldHighlightBarcode?: ((barcodeItem) => boolean)

Callback that determines which barcodes should be selected.

Type declaration

strokeColor?: ColorValue

The color of the polygon border.

textColor?: ColorValue

The color of the text in the selection overlay.

textContainerColor?: ColorValue

The color of the texts background in the selection overlay.

Define the way of how to show barcode data with selection overlay.