Installation
npm install --save @types/rtree
Summary
This package contains type definitions for rtree (https://github.com/leaflet-extras/RTree).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rtree.
index.d.ts
interface Rectangle {
x: number;
y: number;
w: number;
h: number;
}
declare class RTree {
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[];
toJSON(printing?: string | number): string;
}
declare const rtreeLib: {
(max_node_width?: number): RTree;
fromJSON(json: string): RTree;
};
export = rtreeLib;
Additional Details
- Last updated: Tue, 07 Nov 2023 15:11:36 GMT
- Dependencies: none
Credits
These definitions were written by Omede Firouz.