@types/rtree
TypeScript icon, indicating that this package has built-in type declarations

1.4.30 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/rtree

Weekly Downloads

1,088

Version

1.4.30

License

MIT

Unpacked Size

3.65 kB

Total Files

5

Last publish

Collaborators

  • types