@swr-data-lab/components 1.12.3 → 1.12.5
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
CHANGED
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
font-size: var(--fs-small-1);
|
|
69
69
|
border-radius: var(--br-small);
|
|
70
70
|
border: 1px solid rgba(0, 0, 0, 0.75);
|
|
71
|
-
box-shadow: 1px 1px
|
|
71
|
+
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.075);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.maplibre-gl-geocoder--error {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
background-color: transparent;
|
|
86
86
|
color: var(--gray-dark-5);
|
|
87
87
|
border: 0;
|
|
88
|
-
height:
|
|
88
|
+
height: 1.85em;
|
|
89
89
|
padding: 0 1.85em;
|
|
90
90
|
padding-top: 0.1em;
|
|
91
91
|
text-overflow: ellipsis;
|
|
@@ -93,8 +93,12 @@
|
|
|
93
93
|
overflow: hidden;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
.maplibregl-ctrl-geocoder--input::placeholder {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
color: var(--gray-dark-2);
|
|
99
|
+
}
|
|
96
100
|
.maplibregl-ctrl-geocoder--input:focus {
|
|
97
|
-
color:
|
|
101
|
+
color: var(--gray-dark-5);
|
|
98
102
|
outline: 0;
|
|
99
103
|
}
|
|
100
104
|
|
|
@@ -106,9 +106,10 @@
|
|
|
106
106
|
{/if}
|
|
107
107
|
{/if}
|
|
108
108
|
{#if showDebug}
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
<pre class="debug">
|
|
110
|
+
{Object.entries({ ...center, zoom, allowZoom, allowRotation })
|
|
111
|
+
.map(([key, val]) => `${key}: ${val}`)
|
|
112
|
+
.join('\n')}</pre>
|
|
112
113
|
{/if}
|
|
113
114
|
</div>
|
|
114
115
|
|
|
@@ -122,9 +123,10 @@
|
|
|
122
123
|
position: absolute;
|
|
123
124
|
top: 0;
|
|
124
125
|
right: 0;
|
|
125
|
-
background:
|
|
126
|
+
background: rgba(0, 0, 0, 0.9);
|
|
126
127
|
color: white;
|
|
127
128
|
z-index: 1000;
|
|
129
|
+
padding: 2px;
|
|
128
130
|
font-family: monospace;
|
|
129
131
|
}
|
|
130
132
|
:global {
|
|
@@ -210,9 +212,11 @@
|
|
|
210
212
|
}
|
|
211
213
|
|
|
212
214
|
.maplibregl-ctrl-group {
|
|
213
|
-
background:
|
|
215
|
+
background: white;
|
|
216
|
+
border: 1px solid rgba(0, 0, 0, 0.75);
|
|
217
|
+
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.075);
|
|
214
218
|
border-radius: var(--br-small);
|
|
215
|
-
|
|
219
|
+
overflow: hidden;
|
|
216
220
|
}
|
|
217
221
|
|
|
218
222
|
.maplibregl-ctrl-group button {
|
|
@@ -244,11 +248,11 @@
|
|
|
244
248
|
}
|
|
245
249
|
|
|
246
250
|
.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon {
|
|
247
|
-
opacity: 0.
|
|
251
|
+
opacity: 0.5;
|
|
248
252
|
}
|
|
249
253
|
|
|
250
254
|
.maplibregl-ctrl button:not(:disabled):hover {
|
|
251
|
-
background-color:
|
|
255
|
+
background-color: var(--gray-light-5);
|
|
252
256
|
}
|
|
253
257
|
|
|
254
258
|
.maplibregl-ctrl-group button:focus:focus-visible {
|
|
@@ -9,7 +9,7 @@ import * as MapStyleStories from './MapStyle/SWRDataLabLight.stories.svelte';
|
|
|
9
9
|
|
|
10
10
|
Lightweight svelte components and basemaps for rendering custom slippy maps using the [versatiles](https://docs.versatiles.org/) stack.
|
|
11
11
|
|
|
12
|
-
Based on [prior work](https://github.com/SWRdata/frontend_svelte_p012_spritpreise/blob/main/src/lib/components/Map/Map.svelte) from [Jakob Bauer](https://github.com/AgricolaJKB), [dimfield](https://github.com/dimfeld/svelte-maplibre) and [MIRUNE](https://github.com/MIERUNE/svelte-maplibre-gl).
|
|
12
|
+
Based on [prior work](https://github.com/SWRdata/frontend_svelte_p012_spritpreise/blob/main/src/lib/components/Map/Map.svelte) from [Michael Kreil](https://github.com/MichaelKreil), [Jakob Bauer](https://github.com/AgricolaJKB), [dimfield](https://github.com/dimfeld/svelte-maplibre) and [MIRUNE](https://github.com/MIERUNE/svelte-maplibre-gl).
|
|
13
13
|
|
|
14
14
|
<Story of={MapStyleStories.Default} />
|
|
15
15
|
|
|
@@ -70,9 +70,10 @@
|
|
|
70
70
|
<style>
|
|
71
71
|
.container {
|
|
72
72
|
background: white;
|
|
73
|
-
padding: 0.
|
|
73
|
+
padding: 0.75em;
|
|
74
74
|
border-radius: 2px;
|
|
75
75
|
border: 1px solid rgba(0, 0, 0, 0.75);
|
|
76
|
+
border-radius: var(--br-small);
|
|
76
77
|
filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
|
|
77
78
|
pointer-events: none;
|
|
78
79
|
}
|
|
@@ -103,13 +104,16 @@
|
|
|
103
104
|
.maplibregl-popup-anchor-left {
|
|
104
105
|
flex-direction: row;
|
|
105
106
|
}
|
|
107
|
+
|
|
106
108
|
.maplibregl-popup-anchor-right {
|
|
107
109
|
flex-direction: row-reverse;
|
|
108
110
|
}
|
|
111
|
+
|
|
109
112
|
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
|
|
110
113
|
transform: translateY(50%) rotate(45deg);
|
|
111
114
|
align-self: center;
|
|
112
115
|
}
|
|
116
|
+
|
|
113
117
|
.maplibregl-popup-anchor-top .maplibregl-popup-tip {
|
|
114
118
|
transform: translateY(-50%) rotate(-135deg);
|
|
115
119
|
align-self: center;
|
|
@@ -119,52 +123,56 @@
|
|
|
119
123
|
transform: translateX(-50%) rotate(135deg);
|
|
120
124
|
align-self: center;
|
|
121
125
|
}
|
|
126
|
+
|
|
122
127
|
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip {
|
|
123
128
|
transform: translateY(1em) translateX(-50%) rotate(135deg);
|
|
124
129
|
}
|
|
130
|
+
|
|
125
131
|
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip {
|
|
126
132
|
transform: translateY(-1em) translateX(-50%) rotate(135deg);
|
|
127
133
|
}
|
|
134
|
+
|
|
128
135
|
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
|
|
129
136
|
transform: translateX(50%) rotate(-45deg);
|
|
130
137
|
align-self: center;
|
|
131
138
|
}
|
|
139
|
+
|
|
132
140
|
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
|
|
133
141
|
transform: translateX(-1em) translateY(-50%) rotate(-135deg);
|
|
134
142
|
align-self: flex-end;
|
|
135
143
|
}
|
|
144
|
+
|
|
136
145
|
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
|
|
137
146
|
transform: translateX(-1em) translateY(50%) rotate(45deg);
|
|
138
147
|
align-self: flex-end;
|
|
139
148
|
}
|
|
140
149
|
|
|
141
150
|
.maplibregl-popup-close-button {
|
|
142
|
-
background-color: transparent;
|
|
143
|
-
border: 0;
|
|
144
|
-
cursor: pointer;
|
|
145
151
|
position: absolute;
|
|
146
|
-
top: 0.
|
|
147
|
-
right: 0.
|
|
152
|
+
top: 0.5em;
|
|
153
|
+
right: 0.5em;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
border-radius: 2px;
|
|
148
156
|
display: flex;
|
|
149
|
-
border-radius: var(--br-small);
|
|
150
157
|
justify-content: center;
|
|
151
158
|
align-items: center;
|
|
152
|
-
padding-bottom: 0.
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
height: 1em;
|
|
159
|
+
padding-bottom: 0.15em;
|
|
160
|
+
font-size: 1.25rem;
|
|
161
|
+
width: 1.1em;
|
|
162
|
+
height: 1.1em;
|
|
157
163
|
z-index: 100;
|
|
164
|
+
background: white;
|
|
165
|
+
border: 1px solid var(--gray-dark-5);
|
|
158
166
|
}
|
|
159
167
|
|
|
160
168
|
.maplibregl-popup-close-button:hover,
|
|
161
169
|
.maplibregl-popup-close-button:focus {
|
|
162
|
-
background:
|
|
170
|
+
background: var(--gray-light-5);
|
|
163
171
|
}
|
|
164
172
|
|
|
165
173
|
.maplibregl-popup-tip {
|
|
166
|
-
width: 0.
|
|
167
|
-
height: 0.
|
|
174
|
+
width: 0.65rem;
|
|
175
|
+
height: 0.65rem;
|
|
168
176
|
background: white;
|
|
169
177
|
position: absolute;
|
|
170
178
|
border-right: 1px solid rgba(0, 0, 0, 0.75);
|