From ab9b83d605711dc02e8248e09778c415cb1dc409 Mon Sep 17 00:00:00 2001 From: cyclingbyte Date: Mon, 26 Aug 2024 22:04:27 +0200 Subject: [PATCH] format --- src/types/leaflet-sidepanel.ts | 43 ++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/src/types/leaflet-sidepanel.ts b/src/types/leaflet-sidepanel.ts index 3de8889..056bf06 100644 --- a/src/types/leaflet-sidepanel.ts +++ b/src/types/leaflet-sidepanel.ts @@ -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; + } }