forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrtree.d.ts
25 lines (21 loc) · 731 Bytes
/
rtree.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
// Type definitions for rtree 1.4.0
// Project: https://github.com/leaflet-extras/RTree
// Definitions by: Omede Firouz <https://github.com/oefirouz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Rectangle {
x: number;
y: number;
w: number;
h: number;
}
interface RTreeStatic {
insert(bounds: Rectangle, element: Object): boolean;
remove(area: Rectangle, element?: Object): any[];
geoJSON(geoJSON: any): void;
bbox(arg1: any, arg2?: any, arg3?: number, arg4?: number): any[];
search(area: Rectangle, return_node?: boolean, return_array?: any[]): any[];
}
interface RTreeFactory {
(max_node_width?: number): RTreeStatic;
}
declare var RTree: RTreeFactory;