scanbot-web-sdk 2.12.0-beta.3 → 2.12.1-alpha.1

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.
@@ -7,6 +7,7 @@ export declare class BarcodeScannerProps extends ScanbotCameraProps {
7
7
  }
8
8
  export declare class BarcodeScannerState extends ScanbotCameraState {
9
9
  isFinderVisible?: boolean;
10
+ zoom?: number;
10
11
  }
11
12
  export default class BarcodeScannerView extends ScannerView<BarcodeScannerProps, BarcodeScannerState> {
12
13
  finder?: ViewFinder;
@@ -35,5 +36,8 @@ export default class BarcodeScannerView extends ScannerView<BarcodeScannerProps,
35
36
  detect(): Promise<void>;
36
37
  saveExtractedImageData(): void;
37
38
  setFinderVisible(isVisible: boolean): void;
39
+ setZoom(zoom: number): void;
40
+ updateTorch(enabled: boolean): void;
41
+ getCapabilities(): MediaTrackCapabilities | undefined;
38
42
  render(): JSX.Element;
39
43
  }
@@ -14,6 +14,11 @@ export declare class BarcodeScannerConfiguration extends ScannerConfiguration {
14
14
  barcodeFormats?: BarcodeFormat[];
15
15
  returnBarcodeImage?: boolean;
16
16
  showFinder?: boolean;
17
+ /**
18
+ * Digital zoom level of the video stream. Defaults to 1.0.
19
+ * Please note that this is not the same as the optical zoom of the camera.
20
+ */
21
+ zoom: number;
17
22
  /**
18
23
  */
19
24
  onBarcodesDetected?: (e: BarcodeResult) => void;
@@ -20,4 +20,5 @@ export default class VideoStream extends React.Component<VideoStreamProps, Video
20
20
  stopCurrentStreams(): Promise<void>;
21
21
  componentWillUnmount(): void;
22
22
  updateTorch(enabled: boolean): Promise<void>;
23
+ getCapabilities(): MediaTrackCapabilities | undefined;
23
24
  }
@@ -12,6 +12,7 @@ export interface ScanbotCameraViewProps {
12
12
  onReady: () => void;
13
13
  onError: (err: Error) => void;
14
14
  preferredCamera?: string;
15
+ zoom?: number;
15
16
  }
16
17
  export interface ScanbotCameraViewState {
17
18
  facingModeBack: boolean;
@@ -34,6 +35,7 @@ export default class ScanbotCameraView extends React.Component<ScanbotCameraView
34
35
  };
35
36
  save: boolean;
36
37
  saveExtractedData(): void;
38
+ zoom(): number;
37
39
  createImageData(maxLargerLength?: number): ImageDataWrapper;
38
40
  calculateClientVideoConstraints(): {
39
41
  clientVideoWidth: number;
@@ -45,6 +47,7 @@ export default class ScanbotCameraView extends React.Component<ScanbotCameraView
45
47
  componentWillUnmount(): void;
46
48
  onStreamChanged: (stream: MediaStream) => void;
47
49
  style(): React.CSSProperties;
50
+ zoomMargin(): number;
48
51
  render(): JSX.Element;
49
52
  swapCameraFacing(force?: boolean): void;
50
53
  switchCamera(deviceId: string, mirrored?: boolean): Promise<void>;