-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSize.d.ts
More file actions
58 lines (45 loc) · 843 Bytes
/
Size.d.ts
File metadata and controls
58 lines (45 loc) · 843 Bytes
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
import { Pixel } from './Pixel'
/**
* 像素坐标,确定地图上的一个像素点。
*
* @export
* @class Size
*/
export class Size {
/**
*Creates an instance of Size.
* @param {Number} width
* @param {Number} height
* @memberof Size
*/
constructor(width:Number,height:Number)
/**
* 获得X方向像素坐标
*
* @returns {Number}
* @memberof Size
*/
getX(): Number
/**
* 获得Y方向像素坐标
*
* @returns {Number}
* @memberof Size
*/
getY(): Number
/**
*
* 当前像素坐标与传入像素坐标是否相等
* @param {Pixel} point
* @returns {Boolean}
* @memberof Size
*/
equals(point: Pixel): Boolean
/**
* 以字符串形式返回像素坐标对象
*
* @returns {String}
* @memberof Size
*/
toString(): String
}