leaflet-theme-control 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/types/index.d.ts +19 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "leaflet-theme-control",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A Leaflet control for switching between visual themes (light, dark, grayscale, custom, etc.) using CSS filters",
|
|
5
5
|
"main": "src/leaflet-theme-control.js",
|
|
6
6
|
"module": "src/leaflet-theme-control.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"bugs": {
|
|
41
41
|
"url": "https://github.com/kristjanesperanto/leaflet-theme-control/issues"
|
|
42
42
|
},
|
|
43
|
-
"homepage": "https://github.
|
|
43
|
+
"homepage": "https://kristjanesperanto.github.io/leaflet-theme-control/",
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"leaflet": ">=2.0.0-alpha.1"
|
|
46
46
|
},
|
package/types/index.d.ts
CHANGED
|
@@ -116,6 +116,18 @@ declare module "leaflet" {
|
|
|
116
116
|
* @returns The translated label
|
|
117
117
|
*/
|
|
118
118
|
getEditorLabels?: (key: string) => string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Position of the theme editor panel.
|
|
122
|
+
* @default "topright"
|
|
123
|
+
*/
|
|
124
|
+
panelPosition?: "topright" | "topleft" | "bottomright" | "bottomleft";
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Z-index for the theme editor panel.
|
|
128
|
+
* @default 1000
|
|
129
|
+
*/
|
|
130
|
+
panelZIndex?: number;
|
|
119
131
|
}
|
|
120
132
|
|
|
121
133
|
/**
|
|
@@ -167,6 +179,13 @@ declare module "leaflet" {
|
|
|
167
179
|
* @returns The theme collection
|
|
168
180
|
*/
|
|
169
181
|
getThemes(): ThemeCollection;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Updates the button label text.
|
|
185
|
+
* Useful for updating translations after a language change.
|
|
186
|
+
* Called automatically when html[lang] attribute changes (since v0.1.0).
|
|
187
|
+
*/
|
|
188
|
+
updateButtonLabel(): void;
|
|
170
189
|
}
|
|
171
190
|
}
|
|
172
191
|
|