@trackcode/map
Advanced tools
Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.3
/// <reference types="googlemaps" /> | ||
import { Component } from "react"; | ||
import React, { Component } from "react"; | ||
import { MapPosition } from "../types/index"; | ||
@@ -13,3 +13,5 @@ export declare type DriverProps = { | ||
*/ | ||
export declare class Driver extends Component<DriverProps, { | ||
export declare class DriverComp extends Component<DriverProps & { | ||
map: google.maps.Map<HTMLElement> | null; | ||
}, { | ||
overlay: google.maps.OverlayView; | ||
@@ -42,1 +44,2 @@ }> { | ||
} | ||
export declare const Driver: React.FC<DriverProps>; |
/// <reference types="googlemaps" /> | ||
import React, { Component } from "react"; | ||
import PropTypes from "prop-types"; | ||
import { MapInitProps } from "../core/index"; | ||
export declare const MapContext: React.Context<google.maps.Map<HTMLElement>>; | ||
export declare type MapProps = MapInitProps & { | ||
@@ -23,10 +23,4 @@ children?: React.ReactNode; | ||
mapLoaded: boolean; | ||
map: any; | ||
map: google.maps.Map<HTMLElement>; | ||
}; | ||
static childContextTypes: { | ||
map: PropTypes.Requireable<PropTypes.InferProps<{}>>; | ||
}; | ||
getChildContext(): { | ||
map: any; | ||
}; | ||
componentDidMount(): void; | ||
@@ -33,0 +27,0 @@ /** |
@@ -1,3 +0,2 @@ | ||
/// <reference types="googlemaps" /> | ||
import { Component } from "react"; | ||
import React from "react"; | ||
import { MapPosition } from "../types/index"; | ||
@@ -10,24 +9,2 @@ export declare type MarkerProps = { | ||
}; | ||
export declare class Marker extends Component<MarkerProps, { | ||
marker: google.maps.Marker; | ||
}> { | ||
static defaultProps: { | ||
label: any; | ||
icon: any; | ||
onClick: any; | ||
}; | ||
constructor(props: any, context: any); | ||
state: { | ||
marker: any; | ||
}; | ||
componentDidMount(): void; | ||
componentDidUpdate(prevProps: any): void; | ||
componentWillUnmount(): void; | ||
/** | ||
* Update marker. | ||
*/ | ||
update(prevProps?: { | ||
position?: MapPosition; | ||
}): void; | ||
render(): boolean; | ||
} | ||
export declare const Marker: React.FC<MarkerProps>; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="googlemaps" /> | ||
import { Component } from "react"; | ||
/// <reference types="react" /> | ||
import { MapPosition } from "../types/index"; | ||
@@ -9,17 +8,2 @@ export declare type PolygonProps = { | ||
}; | ||
export declare class Polygon extends Component<PolygonProps, { | ||
polygon: google.maps.Polygon; | ||
}> { | ||
constructor(props: any, context: any); | ||
state: { | ||
polygon: any; | ||
}; | ||
componentDidMount(): void; | ||
componentDidUpdate(prevProps: any): void; | ||
componentWillUnmount(): void; | ||
/** | ||
* Update marker. | ||
*/ | ||
update(prevProps?: {}): void; | ||
render(): boolean; | ||
} | ||
export declare const Polygon: React.FC<PolygonProps>; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="googlemaps" /> | ||
import { Component } from "react"; | ||
/// <reference types="react" /> | ||
import { MapPosition } from "../types/index"; | ||
@@ -11,20 +10,2 @@ export declare type PolylineProps = { | ||
}; | ||
export declare class Polyline extends Component<PolylineProps, { | ||
polyline: google.maps.Polyline; | ||
}> { | ||
static defaultProps: { | ||
options: any; | ||
}; | ||
constructor(props: any, context: any); | ||
state: { | ||
polyline: any; | ||
}; | ||
componentDidMount(): void; | ||
componentDidUpdate(prevProps: any): void; | ||
componentWillUnmount(): void; | ||
/** | ||
* Update marker. | ||
*/ | ||
update(prevProps?: PolylineProps): void; | ||
render(): boolean; | ||
} | ||
export declare const Polyline: React.FC<PolylineProps>; |
{ | ||
"name": "@trackcode/map", | ||
"version": "3.0.0-alpha.1", | ||
"version": "3.0.0-alpha.3", | ||
"description": "", | ||
@@ -39,3 +39,3 @@ "private": false, | ||
}, | ||
"gitHead": "7e8615c4c2dddab95805e56c07aa7cffa6d4fac4" | ||
"gitHead": "535085482ee20cae4627608b21d73727e058026d" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
284311
5942