# @types/rtree

> TypeScript definitions for rtree

Latest version **1.4.30** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/rtree
pnpm add @types/rtree
yarn add @types/rtree
bun add @types/rtree
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.4.30 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51450 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/rtree
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rtree
- npm.io page: https://npm.io/package/@types/rtree

## Recent versions

- 1.4.30 (latest) — 2023-11-07
- 1.4.28 (ts3.8) — 2022-02-01
- 1.4.27 (ts2.0) — 2016-09-19
- 1.4.29 — 2023-10-18
- 1.4.26 — 2016-07-14
- 1.4.25-alpha — 2016-07-08
- 1.4.24-alpha — 2016-07-04
- 1.4.23-alpha — 2016-07-02
- 1.4.22-alpha — 2016-07-01
- 1.4.21-alpha — 2016-07-01
- 1.4.20-alpha — 2016-05-25
- 1.4.19-alpha — 2016-05-20
- 1.4.14-alpha — 2016-05-19
- 1.4.13-alpha — 2016-05-17

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rtree/index.d.ts)
````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](https://github.com/oefirouz).

---
_Source: https://npm.io/package/@types/rtree · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
