From 2d7d02deb920a35d099c9f642c070165e9d19c53 Mon Sep 17 00:00:00 2001 From: David Schneider Date: Thu, 13 Apr 2017 15:51:07 -0700 Subject: [PATCH] Update Pane, PaneProps; add PaneState. --- types/react-leaflet/index.d.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/types/react-leaflet/index.d.ts b/types/react-leaflet/index.d.ts index a4985a0ad7..91ef83bee2 100644 --- a/types/react-leaflet/index.d.ts +++ b/types/react-leaflet/index.d.ts @@ -115,12 +115,22 @@ export class 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; +export interface PaneState { + name?: string; +} +export class Pane

extends React.Component { + 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 {