36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import React, { ReactElement } from 'react';
|
|
import { type Rect, type IScreenshotButtonProp, type AlignType, type ViewOption, type IOdRectOrigin } from '@zhst/types';
|
|
import './index.less';
|
|
export interface ImgViewProps extends React.HTMLAttributes<HTMLElement> {
|
|
dataSource: Array<{
|
|
url?: string;
|
|
imageKey: string;
|
|
attachImg?: Array<{
|
|
label: string;
|
|
url: string;
|
|
}>;
|
|
odRect?: Rect;
|
|
score?: number;
|
|
showScore?: boolean;
|
|
cameraPosition?: string;
|
|
time?: string | number;
|
|
objects: any[];
|
|
}>;
|
|
showAttachImgLabel: boolean;
|
|
showOpt: boolean;
|
|
width?: string | number;
|
|
height?: string | number;
|
|
screenshotButtonAlign: AlignType;
|
|
screenshotButtonRender: (screenshotButtonProp: IScreenshotButtonProp) => ReactElement;
|
|
hideLeftTopBtn?: boolean;
|
|
showScore?: boolean;
|
|
viewOption?: ViewOption;
|
|
objects: IOdRectOrigin[];
|
|
}
|
|
export interface ImgViewRef {
|
|
imgInsRef: React.MutableRefObject<any>;
|
|
setShowCrop: React.Dispatch<React.SetStateAction<boolean>>;
|
|
}
|
|
export declare const BigImagePreview: React.ForwardRefExoticComponent<ImgViewProps & React.RefAttributes<ImgViewRef>>;
|
|
export default BigImagePreview;
|