Class CroppingViewConfiguration

Hierarchy

  • BaseConfiguration
    • CroppingViewConfiguration

Constructors

Properties

container?: HTMLElement

The container HTML element of Scanbot Web SDK camera. Required when 'containerId' property is left undefined when calling any ScanbotSDK createScanner function. If both are provided, 'container' property takes precedence.

containerId?: string

The container HTML element id of Scanbot Web SDK camera. Required when 'container' property is left undefined when calling any ScanbotSDK createScanner function If both are provided, 'container' property takes precedence.

disableScroll?: boolean

Determines whether scroll (incl. bounce) should be disabled when cropping screen is active. Enhances drag-to-crop experience. True by default

image: Image
polygon?: Polygon

The polygon that defines the initial cropping area. All points should have relative coordinates between 0 and 1. If this is not set, the cropping area is initialized with an automatically detected outline of the document.

rotations?: number

Initial rotations of the original image. Default is 0

Methods

  • Parameters

    • source: any
    • destination: {
          [key: string]: any;
      }
      • [key: string]: any
    • Optional ignore: string[]

    Returns void

  • Parameters

    • source: any
    • destination: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void

Generated using TypeDoc