1.4.30 • Published 1 year ago

@types/rtree v1.4.30

Weekly downloads
23
License
MIT
Repository
github
Last release
1 year ago

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

// 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;
}

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, 01 Feb 2022 22:01:28 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Omede Firouz.