Update Pane, PaneProps; add PaneState.

This commit is contained in:
David Schneider
2017-04-13 15:51:07 -07:00
parent 2fe391513c
commit 2d7d02deb9
+12 -2
View File
@@ -115,12 +115,22 @@ export class Map<P extends MapProps, E extends Leaflet.Map> extends MapComponent
shouldUpdateBounds(next: Leaflet.LatLngBoundsExpression, prev: Leaflet.LatLngBoundsExpression): boolean;
}
interface PaneProps {
export interface PaneProps extends MapComponentProps {
name?: string;
style?: React.CSSProperties;
className?: string;
}
export const Pane: React.ComponentClass<PaneProps>;
export interface PaneState {
name?: string;
}
export class Pane<P extends PaneProps, S extends PaneState> extends React.Component<P, S> {
getChildContext(): { pane: string };
createPane(props: P): void;
removePane(): void;
setStyle(arg: { style?: string, className?: string }): void;
getParentPane(): HTMLElement | undefined;
getPane(name: string): HTMLElement | undefined;
}
// There is no Layer class, these are the base props for all layers on the map
interface LayerProps extends LeafletInteractionEvents {