Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
cyclingbyte committed Aug 26, 2024
1 parent 43a41d3 commit ab9b83d
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions src/types/leaflet-sidepanel.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
import * as L from 'leaflet';
declare module 'leaflet' {
interface SidePanelOptions extends L.ControlOptions {
panelPosition?: 'left' | 'right';
hasTabs?: boolean;
tabsPosition?: 'top' | 'bottom' | 'left' | 'right';
darkMode?: boolean;
pushControls?: boolean;
startTab?: number | string;
onTabClick?: (tabLink: HTMLElement) => void;
}
namespace Control {
class SidePanel extends L.Control {
constructor(id: string, options?: SidePanelOptions);
addTo(map: Map): this;
toggle(map: Map, e?: Event): void;
open(map: Map): void;
close(map: Map): void;
}
}
namespace control {
function sidepanel(id: string, options?: SidePanelOptions): Control.SidePanel;
interface SidePanelOptions extends L.ControlOptions {
panelPosition?: 'left' | 'right';
hasTabs?: boolean;
tabsPosition?: 'top' | 'bottom' | 'left' | 'right';
darkMode?: boolean;
pushControls?: boolean;
startTab?: number | string;
onTabClick?: (tabLink: HTMLElement) => void;
}
namespace Control {
class SidePanel extends L.Control {
constructor(id: string, options?: SidePanelOptions);
addTo(map: Map): this;
toggle(map: Map, e?: Event): void;
open(map: Map): void;
close(map: Map): void;
}
}
namespace control {
function sidepanel(
id: string,
options?: SidePanelOptions
): Control.SidePanel;
}
}

0 comments on commit ab9b83d

Please sign in to comment.