scanbot-web-sdk 2.14.0-beta.2 → 2.14.0-beta.3

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.
@@ -1,8 +1,7 @@
1
- export declare enum SelectionOverlayTextFormat {
2
- Text = "Text",
3
- TextAndFormat = "TextAndFormat",
4
- None = "None"
5
- }
1
+ import BarcodePolygonLabel from "../../view/barcode-polygon/barcode-polygon-label";
2
+ import BarcodePolygon from "../../view/barcode-polygon/barocode-polygon";
3
+ import { Barcode } from "../barcode/barcode";
4
+ export declare type SelectionOverlayTextFormat = "Text" | "TextAndFormat" | "None";
6
5
  export declare class SelectionOverlayStyleConfiguration {
7
6
  private defaultFillColor?;
8
7
  private defaultHighlightedFillColor?;
@@ -27,4 +26,5 @@ export declare class SelectionOverlayConfiguration {
27
26
  */
28
27
  automaticSelectionEnabled?: boolean;
29
28
  style?: SelectionOverlayStyleConfiguration;
29
+ onBarcodeFound: (code: Barcode, polygon: BarcodePolygon, label: BarcodePolygonLabel) => void;
30
30
  }
@@ -16,10 +16,11 @@ export declare class BarcodePolygonElement {
16
16
  export declare class SelectionOverlayProps {
17
17
  configuration?: SelectionOverlayConfiguration;
18
18
  onPolygonClick?: (code: Barcode) => void;
19
+ onBarcodeFound?: (code: Barcode, polygon: BarcodePolygon, label: BarcodePolygonLabel) => void;
19
20
  }
20
21
  export default class AnimatedBarcodeSelectionOverlay extends React.Component<SelectionOverlayProps, any> {
21
22
  constructor(props: any);
22
23
  update(finderRect: DOMRect, camera: ScanbotCameraView, imageData: ImageData, container: any, codes: Barcode[]): void;
23
- onPolygonClick(view: BarcodePolygon, model: BarcodeOverlay): void;
24
+ onPolygonClick(model: BarcodeOverlay): void;
24
25
  render(): React.ReactNode;
25
26
  }
@@ -7,9 +7,16 @@ export declare class BarcodePolygonLabelProps {
7
7
  element: BarcodeOverlay;
8
8
  configuration: SelectionOverlayConfiguration;
9
9
  animateToPoints?: Point[];
10
+ onClick?: (element: BarcodeOverlay) => void;
11
+ }
12
+ export declare class BarcodePolygonLabelStyle {
13
+ backgroundColor?: string;
14
+ textColor?: string;
10
15
  }
11
16
  export default class BarcodePolygonLabel extends React.Component<BarcodePolygonLabelProps, any> {
17
+ customStyle?: BarcodePolygonLabelStyle;
12
18
  constructor(props: any);
19
+ style(style: BarcodePolygonLabelStyle): void;
13
20
  update(model: BarcodeOverlay): void;
14
21
  label: HTMLDivElement;
15
22
  formatText(code: Barcode, format: SelectionOverlayTextFormat): string;
@@ -6,10 +6,16 @@ export declare class BarcodePolygonProps {
6
6
  element: BarcodeOverlay;
7
7
  configuration: SelectionOverlayConfiguration;
8
8
  animateToPoints?: Point[];
9
- onClick?: (polygon: BarcodePolygon, element: BarcodeOverlay) => void;
9
+ onClick?: (element: BarcodeOverlay) => void;
10
+ }
11
+ export declare class BarcodePolygonStyle {
12
+ fill?: string;
13
+ stroke?: string;
10
14
  }
11
15
  export default class BarcodePolygon extends React.Component<BarcodePolygonProps, any> {
16
+ customStyle?: BarcodePolygonStyle;
12
17
  constructor(props: any);
13
18
  update(model: BarcodeOverlay): void;
19
+ style(style: BarcodePolygonStyle): void;
14
20
  render(): React.ReactNode;
15
21
  }