forked from beizhedenglong/react-multi-crops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-multi-crops.d.ts
60 lines (46 loc) · 1.1 KB
/
react-multi-crops.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import * as React from 'react'
/** Declaration file generated by dts-gen */
export function addid(a: any, ...args: any[]): any;
export function removeid(a: any, ...args: any[]): any;
export namespace addid {
const prototype: {
};
}
export namespace removeid {
const prototype: {
};
}
declare type coordinateType = {
x: number
y: number
width: number
height: number
}
export declare type CropsProps = {
src: string
width?: number
height?: number
coordinates: coordinateType[]
onChange?: any,
onDelete?: any,
onDraw?: any
}
export default class MultiCrops extends React.Component<CropsProps> {
drawingIndex: number
pointA: any
id: any
static propTypes : {
src: string,
width?: number,
height?: number,
coordinates: any,
onChange?: any,
onDelete?: any,
onDraw?: any
}
renderCrops(props: any): any
getCursorPosition(e: any): void
handleMouseMove(e: any): void
handlMouseUp(): void
render(): JSX.Element
}