diff options
Diffstat (limited to 'node_modules/pigeon-maps/lib/overlays')
4 files changed, 112 insertions, 0 deletions
diff --git a/node_modules/pigeon-maps/lib/overlays/Draggable.d.ts b/node_modules/pigeon-maps/lib/overlays/Draggable.d.ts new file mode 100644 index 0000000..16a0623 --- /dev/null +++ b/node_modules/pigeon-maps/lib/overlays/Draggable.d.ts @@ -0,0 +1,12 @@ +import React from 'react';
+import { PigeonProps, Point } from '../types';
+interface DraggableProps extends PigeonProps {
+ className?: string;
+ style?: React.CSSProperties;
+ children?: React.ReactNode;
+ onDragStart?: (anchor: Point) => void;
+ onDragMove?: (anchor: Point) => void;
+ onDragEnd?: (anchor: Point) => void;
+}
+export declare function Draggable(props: DraggableProps): JSX.Element;
+export {};
diff --git a/node_modules/pigeon-maps/lib/overlays/GeoJson.d.ts b/node_modules/pigeon-maps/lib/overlays/GeoJson.d.ts new file mode 100644 index 0000000..88a5ff4 --- /dev/null +++ b/node_modules/pigeon-maps/lib/overlays/GeoJson.d.ts @@ -0,0 +1,57 @@ +import React, { CSSProperties, SVGProps } from 'react';
+import { PigeonProps, Point } from '../types';
+interface GeoJsonProps extends PigeonProps {
+ className?: string;
+ data?: any;
+ svgAttributes?: any;
+ styleCallback?: any;
+ hover?: any;
+ feature?: any;
+ style?: CSSProperties;
+ children?: React.ReactNode;
+ onClick?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+ onContextMenu?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+ onMouseOver?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+ onMouseOut?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+}
+interface GeoJsonLoaderProps extends GeoJsonProps {
+ link?: string;
+}
+interface GeoJsonGeometry {
+ type: string;
+ coordinates?: [number, number] | Array<[number, number]> | Array<Array<[number, number]>> | Array<Array<Array<[number, number]>>>;
+ geometries?: Array<GeoJsonGeometry>;
+}
+interface GeometryProps {
+ coordinates?: [number, number] | Array<[number, number]> | Array<Array<[number, number]>> | Array<Array<Array<[number, number]>>>;
+ latLngToPixel?: (latLng: Point, center?: Point, zoom?: number) => Point;
+ svgAttributes?: SVGProps<SVGElement>;
+ geometry?: GeoJsonGeometry;
+}
+export declare function PointComponent(props: GeometryProps): JSX.Element;
+export declare function MultiPoint(props: GeometryProps): JSX.Element;
+export declare function LineString(props: GeometryProps): JSX.Element;
+export declare function MultiLineString(props: GeometryProps): JSX.Element;
+export declare function Polygon(props: GeometryProps): JSX.Element;
+export declare function MultiPolygon(props: GeometryProps): JSX.Element;
+export declare function GeometryCollection(props: GeometryProps): JSX.Element;
+export declare function GeoJsonFeature(props: GeoJsonProps): JSX.Element;
+export declare function GeoJson(props: GeoJsonProps): JSX.Element;
+export declare function GeoJsonLoader(props: GeoJsonLoaderProps): JSX.Element;
+export {};
diff --git a/node_modules/pigeon-maps/lib/overlays/Marker.d.ts b/node_modules/pigeon-maps/lib/overlays/Marker.d.ts new file mode 100644 index 0000000..8cb7d5d --- /dev/null +++ b/node_modules/pigeon-maps/lib/overlays/Marker.d.ts @@ -0,0 +1,34 @@ +import React from 'react';
+import { PigeonProps } from '../types';
+interface MarkerProps extends PigeonProps {
+ color?: string;
+ payload?: any;
+ width?: number;
+ height?: number;
+ hover?: boolean;
+ style?: React.CSSProperties;
+ className?: string;
+ children?: JSX.Element;
+ onClick?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+ onContextMenu?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+ onMouseOver?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+ onMouseOut?: ({ event: HTMLMouseEvent, anchor: Point, payload: any }: {
+ event: any;
+ anchor: any;
+ payload: any;
+ }) => void;
+}
+export declare function Marker(props: MarkerProps): JSX.Element;
+export {};
diff --git a/node_modules/pigeon-maps/lib/overlays/Overlay.d.ts b/node_modules/pigeon-maps/lib/overlays/Overlay.d.ts new file mode 100644 index 0000000..3949d2f --- /dev/null +++ b/node_modules/pigeon-maps/lib/overlays/Overlay.d.ts @@ -0,0 +1,9 @@ +import React from 'react';
+import { PigeonProps } from '../types';
+interface OverlayProps extends PigeonProps {
+ style?: React.CSSProperties;
+ className?: string;
+ children?: React.ReactNode;
+}
+export declare function Overlay(props: OverlayProps): JSX.Element;
+export {};
|