-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathindex.d.ts
41 lines (37 loc) · 968 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import * as React from 'react';
export type ReactImageProcessMode =
| 'base64'
| 'clip'
| 'compress'
| 'rotate'
| 'waterMark'
| 'filter'
| 'primaryColor';
export type ReactImageProcessWaterMarkType = 'image' | 'text';
export type ReactImageProcessFilterType =
| 'vintage'
| 'blackWhite'
| 'relief'
| 'blur';
export type ReactImageProcessOutputType = 'blob' | 'dataUrl';
export interface ReactImageProcessProps {
mode?: ReactImageProcessMode;
waterMarkType?: ReactImageProcessWaterMarkType;
filterType?: ReactImageProcessFilterType;
outputType?: ReactImageProcessOutputType;
waterMark?: string;
rotate?: number;
quality?: number;
coordinate?: number[];
width?: number;
height?: number;
opacity?: number;
fontColor?: number;
fontSize?: number;
fontBold?: number;
onComplete?: (data: Blob | string) => void;
}
export default class ReactImageProcess extends React.PureComponent<
ReactImageProcessProps,
any
> {}