capacitor-plugin-scanbot-sdk
Version:
Scanbot Document and Barcode Scanner SDK for Capacitor
70 lines (65 loc) • 2.25 kB
TypeScript
import { BarButtonConfiguration, ButtonConfiguration, StyledText } from '../../ui_v2/common/Common';
import type { DeepPartial } from '../../utils/utils';
import { PartiallyConstructible } from '../../utils/utils';
/**
Configuration of the bottom bar for the cropping screen.
*/
export declare class CroppingBottomBar extends PartiallyConstructible {
/**
Configuration of the 'detect document' button, located in the bottom bar.
*/
detectButton: BarButtonConfiguration;
/**
Configuration of the 'rotate page' button, located in the bottom bar.
*/
rotateButton: BarButtonConfiguration;
/**
Configuration of the 'reset detection' button, located in the bottom bar.
*/
resetButton: BarButtonConfiguration;
/** @param source {@displayType `DeepPartial<CroppingBottomBar>`} */
constructor(source?: DeepPartial<CroppingBottomBar>);
}
/**
Configuration of the screen for cropping the scanned pages.
*/
export declare class CroppingScreenConfiguration extends PartiallyConstructible {
/**
Configuration of the 'cancel' button, located in the top bar.
*/
topBarBackButton: ButtonConfiguration;
/**
Configuration of the title, located in the top bar.
*/
topBarTitle: StyledText;
/**
Configuration of the 'confirm' button, located in the top bar.
*/
topBarConfirmButton: ButtonConfiguration;
/**
The background color of the cropping screen.
Default is "?sbColorOutline"
*/
backgroundColor: string;
/**
The color of the cropping handles.
Default is "?sbColorSurface"
*/
croppingHandlerColor: string;
/**
The color of the cropping polygon.
Default is "?sbColorSurface"
*/
croppingPolygonColor: string;
/**
The color of the magnetic lines on the cropping polygon.
Default is "?sbColorSurface"
*/
croppingPolygonMagneticLineColor: string;
/**
Configuration of the bottom bar for the cropping screen.
*/
bottomBar: CroppingBottomBar;
/** @param source {@displayType `DeepPartial<CroppingScreenConfiguration>`} */
constructor(source?: DeepPartial<CroppingScreenConfiguration>);
}