-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
66 lines (64 loc) · 2.04 KB
/
types.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
61
62
63
64
65
66
export class GeoExtent {
constructor(o: any, data?: { srs?: string | number });
// properties
bbox: [number, number, number, number];
bbox_str: [string, string, string, string];
srs: string;
xmin: number;
xmin_str: string;
xmax: number;
xmax_str: string;
ymin: number;
ymin_str: string;
ymax: number;
ymax_str: string;
height: number;
height_str: string;
width: number;
width_str: string;
area: number;
area_str: string;
perimeter: number;
perimeter_str: string;
center: { x: number; y: number };
center_str: { x: string; y: string };
bottomLeft: { x: number; y: number };
bottomRight: { x: number; y: number };
topLeft: { x: number; y: number };
topRight: { x: number; y: number };
str: string;
leafletBounds: [[number, number], [number, number]];
// functions
asEsriJSON(): { xmin: number; ymin: number; xmax: number; ymax: number; spatialReference: { wkid: string } };
asGeoJSON(): { type: "Feature"; geometry: { type: "Polygon"; coordinates: [number[]] } };
clone(): GeoExtent;
combine(other: GeoExtent): GeoExtent;
contains(other: GeoExtent): GeoExtent;
crop(other: GeoExtent): GeoExtent;
equals: (other: GeoExtent, options?: { digits?: number }) => boolean;
overlaps(other: GeoExtent): boolean;
reproj:
| ((
srs: number,
options?: {
allow_infinity?: boolean | undefined;
density?: "lowest" | "low" | "medium" | "high" | "higher" | "highest" | number | undefined;
debug_level?: number | undefined;
shrink?: boolean | undefined;
shrink_density?: number | undefined;
quiet: false;
}
) => GeoExtent)
| ((
srs: number,
options: {
allow_infinity?: boolean;
debug_level?: number | undefined;
density?: "lowest" | "low" | "medium" | "high" | "higher" | "highest" | number | undefined;
shrink?: boolean | undefined;
shrink_density?: number | undefined;
quiet: true;
}
) => GeoExtent | undefined);
unwrap(): GeoExtent[];
}