@raruto/leaflet-elevation 2.2.3 → 2.2.6

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/src/index.css CHANGED
@@ -1,329 +1,329 @@
1
- .leaflet-hidden {
2
- visibility: hidden;
3
- }
4
-
5
- .legend {
6
- cursor: pointer;
7
- }
8
-
9
- .leaflet-container {
10
- z-index: 0;
11
- /* prevent overlapping the .elevation-detached chart */
12
- }
13
-
14
- .elevation-control .background {
15
- background-color: var(--ele-bg, rgba(70, 130, 180, 0.2));
16
- border-radius: 5px;
17
- overflow: visible;
18
- display: block;
19
- touch-action: none;
20
- user-select: none;
21
- max-width: 100%;
22
- }
23
-
24
- .elevation-control .grid,
25
- .elevation-control .area > foreignObject,
26
- .elevation-control .axis,
27
- .elevation-control .tooltip,
28
- .height-focus.line {
29
- pointer-events: none;
30
- }
31
-
32
- .elevation-control .axis line,
33
- .elevation-control .axis path {
34
- stroke: var(--ele-axis, #2D1130);
35
- stroke-width: 1;
36
- fill: none;
37
- }
38
-
39
- .elevation-control .grid .tick line {
40
- stroke: var(--ele-grid, #EEE);
41
- stroke-width: 1px;
42
- shape-rendering: crispEdges;
43
- }
44
-
45
- .elevation-control .grid path {
46
- stroke-width: 0;
47
- }
48
-
49
- .elevation-control .axis text,
50
- .elevation-control .legend text,
51
- .elevation-control .point text {
52
- fill: #000;
53
- font-weight: 700;
54
- paint-order: stroke fill;
55
- stroke: #fff;
56
- stroke-width: 2px
57
- }
58
-
59
- .elevation-control .y.axis text {
60
- text-anchor: end;
61
- }
62
-
63
- .elevation-control .area {
64
- fill: var(--ele-area, #4682B4);
65
- stroke: var(--ele-stroke, #000);
66
- stroke-width: 1.2;
67
- paint-order: stroke fill;
68
- }
69
-
70
- .elevation-control .horizontal-drag-line {
71
- cursor: row-resize;
72
- stroke: transparent;
73
- stroke-dasharray: 5;
74
- stroke-width: 1.1;
75
- }
76
-
77
- .elevation-control .active .horizontal-drag-line {
78
- stroke: #000;
79
- }
80
-
81
- .elevation-control .horizontal-drag-label {
82
- fill: #000;
83
- font-weight: 700;
84
- paint-order: stroke;
85
- stroke: #FFF;
86
- stroke-width: 2px;
87
- }
88
-
89
- .elevation-control .ruler {
90
- color: #000;
91
- cursor: row-resize;
92
- }
93
-
94
- .elevation-control .mouse-focus-line {
95
- stroke: #000;
96
- stroke-width: 1;
97
- }
98
-
99
- .elevation-control .mouse-focus-label-rect {
100
- fill: #000;
101
- fill-opacity: 0.75;
102
- stroke-width: 1;
103
- stroke: #444;
104
- }
105
-
106
- .elevation-control .mouse-focus-label-text {
107
- fill: #FFF;
108
- font-size: 10px;
109
- }
110
-
111
- .elevation-control .brush .overlay {
112
- cursor: unset;
113
- }
114
-
115
- .elevation-control .brush .selection {
116
- fill: var(--ele-brush, rgba(23, 74, 117, 0.4));
117
- stroke: none;
118
- fill-opacity: unset;
119
- }
120
-
121
- .elevation-summary {
122
- font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
123
- font-size: 12px;
124
- margin: var(--ele-sum-margin, 0 auto);
125
- text-shadow: var(--ele-sum-shadow, 1px 0 0 #FFF, -1px 0 0 #FFF, 0 1px 0 #FFF, 0 -1px 0 #FFF, 1px 1px #FFF, -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF);
126
- }
127
-
128
- .elevation-summary>span:not(:last-child):after {
129
- content: var(--ele-sum-sep, '');
130
- }
131
-
132
- .multiline-summary>span {
133
- display: block;
134
- }
135
-
136
- .multiline-summary .download {
137
- float: right;
138
- margin-top: -3em;
139
- margin-right: 2em;
140
- font-weight: bold;
141
- font-size: 1.2em;
142
- }
143
-
144
- .elevation-summary .summaryvalue {
145
- font-weight: bold;
146
- }
147
-
148
- .elevation-toggle-icon {
149
- background-color: #fff;
150
- right: 5px;
151
- top: 5px;
152
- height: var(--ele-toggle-size, 36px);
153
- width: var(--ele-toggle-size, 36px);
154
- cursor: pointer;
155
- box-shadow: 0 1px 7px rgba(0, 0, 0, 0.4);
156
- border-radius: 5px;
157
- display: inline-block;
158
- position: var(--ele-toggle-pos, relative);
159
- }
160
-
161
- .elevation-toggle-icon:before {
162
- content: '\2716';
163
- display: var(--ele-close-btn, none);
164
- color: #000;
165
- width: 100%;
166
- line-height: 20px;
167
- text-align: center;
168
- font-weight: bold;
169
- font-size: 15px;
170
- }
171
-
172
- .leaflet-elevation-pane .height-focus,
173
- .leaflet-overlay-pane .height-focus {
174
- stroke: #000;
175
- fill: var(--ele-circle, var(--ele-area, #FFF));
176
- }
177
-
178
- .leaflet-elevation-pane .height-focus.line,
179
- .leaflet-overlay-pane .height-focus.line {
180
- stroke-width: 2;
181
- }
182
-
183
- .leaflet-elevation-pane .height-focus-label,
184
- .leaflet-overlay-pane .height-focus-label {
185
- font-size: 12px;
186
- font-weight: 600;
187
- fill: #000;
188
- paint-order: stroke;
189
- stroke: #FFF;
190
- stroke-width: 2px;
191
- }
192
-
193
- .elevation-waypoint-icon:before,
194
- .elevation-position-icon:before {
195
- content: "";
196
- width: 100%;
197
- height: 100%;
198
- display: inline-block;
199
- background: var(--ele-marker) no-repeat center center / contain;
200
- }
201
-
202
- .elevation-polyline {
203
- stroke: var(--ele-poly, var(--ele-area, #000));
204
- filter: drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);
205
- }
206
-
207
- /* CHART STATES /////////////////////////////////////////////////// */
208
-
209
- .elevation-detached {
210
- font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
211
- height: auto;
212
- width: 100%;
213
- position: relative;
214
- z-index: 0;
215
- }
216
-
217
- .elevation-detached .area {
218
- fill-opacity: var(--ele-alpha, 0.8);
219
- }
220
-
221
- .elevation-detached.elevation-collapsed .elevation-summary {
222
- display: block;
223
- }
224
-
225
- .elevation-detached.elevation-collapsed .elevation-toggle-icon {
226
- top: 5px;
227
- right: 9px;
228
- bottom: 5px;
229
- margin: auto;
230
- }
231
-
232
- .elevation-control.elevation-collapsed > * {
233
- display: none;
234
- }
235
-
236
- .elevation-control.elevation-collapsed > .elevation-toggle-icon {
237
- display: inline-block;
238
- }
239
-
240
- .elevation-detached {
241
- --ele-sum-margin: 12px 35px;
242
- --ele-sum-shadow: none;
243
- --ele-toggle-pos: absolute;
244
- }
245
-
246
- .elevation-expanded {
247
- --ele-close-btn: inline-block;
248
- --ele-toggle-bg: none;
249
- --ele-toggle-pos: absolute;
250
- --ele-toggle-size: 20px;
251
- }
252
-
253
- .inline-summary {
254
- --ele-sum-sep: "\0020\2014\0020";
255
- }
256
-
257
- .elevation-waypoint-icon {
258
- --ele-marker: url(../images/elevation-pushpin.svg);
259
- }
260
-
261
- .elevation-position-icon {
262
- --ele-marker: url(../images/elevation-position.svg);
263
- }
264
-
265
- /* LIME THEME ///////////////////////////////////////////////////// */
266
- .lime-theme {
267
- --ele-bg: rgba(156, 194, 34, 0.2);
268
- --ele-axis: #566B13;
269
- --ele-area: #9CC222;
270
- --ele-grid: #CCC;
271
- --ele-brush: rgba(99, 126, 11, 0.4);
272
- --ele-poly: #566B13;
273
- --ele-line: #70ab00;
274
- }
275
-
276
- /* STEELBLUE THEME //////////////////////////////////////////////// */
277
- .steelblue-theme {
278
- --ele-axis: #0D1821;
279
- --ele-area: #4682B4;
280
- --ele-brush: rgba(23, 74, 117, 0.4);
281
- --ele-line: #174A75;
282
- }
283
-
284
- /* PURPLE THEME /////////////////////////////////////////////////// */
285
- .purple-theme {
286
- --ele-bg: rgba(115, 44, 123, 0.2);
287
- --ele-area: #732C7B;
288
- --ele-brush: rgba(74, 14, 80, 0.4);
289
- --ele-line: #732c7b;
290
- }
291
-
292
- /* YELLOW THEME /////////////////////////////////////////////////// */
293
- .yellow-theme {
294
- --ele-area: #FF0;
295
- }
296
-
297
- /* RED THEME ////////////////////////////////////////////////////// */
298
- .red-theme {
299
- --ele-area: #F00;
300
- }
301
-
302
- /* MAGENTA THEME ////////////////////////////////////////////////// */
303
- .magenta-theme {
304
- --ele-bg: rgba(255, 255, 255, 0.47);
305
- --ele-area: #FF005E;
306
- }
307
-
308
- /* LIGHTBLUE THEME //////////////////////////////////////////////// */
309
- .lightblue-theme {
310
- --ele-area: #3366CC;
311
- --ele-alpha: 0.45;
312
- --ele-stroke: #4682B4;
313
- --ele-circle: #fff;
314
- --ele-line: #000;
315
- }
316
-
317
- .elevation-detached.lightblue-theme .area {
318
- stroke: #3366CC;
319
- }
320
-
321
- /* leaflet-distance-markers */
322
- .dist-marker {
323
- font-size: 0.5rem;
324
- border: 1px solid #777;
325
- border-radius: 10px;
326
- text-align: center;
327
- color: #000;
328
- background: #fff;
329
- }
1
+ .leaflet-hidden {
2
+ visibility: hidden;
3
+ }
4
+
5
+ .legend {
6
+ cursor: pointer;
7
+ }
8
+
9
+ .leaflet-container {
10
+ z-index: 0;
11
+ /* prevent overlapping the .elevation-detached chart */
12
+ }
13
+
14
+ .elevation-control .background {
15
+ background-color: var(--ele-bg, rgba(70, 130, 180, 0.2));
16
+ border-radius: 5px;
17
+ overflow: visible;
18
+ display: block;
19
+ touch-action: none;
20
+ user-select: none;
21
+ max-width: 100%;
22
+ }
23
+
24
+ .elevation-control .grid,
25
+ .elevation-control .area > foreignObject,
26
+ .elevation-control .axis,
27
+ .elevation-control .tooltip,
28
+ .height-focus.line {
29
+ pointer-events: none;
30
+ }
31
+
32
+ .elevation-control .axis line,
33
+ .elevation-control .axis path {
34
+ stroke: var(--ele-axis, #2D1130);
35
+ stroke-width: 1;
36
+ fill: none;
37
+ }
38
+
39
+ .elevation-control .grid .tick line {
40
+ stroke: var(--ele-grid, #EEE);
41
+ stroke-width: 1px;
42
+ shape-rendering: crispEdges;
43
+ }
44
+
45
+ .elevation-control .grid path {
46
+ stroke-width: 0;
47
+ }
48
+
49
+ .elevation-control .axis text,
50
+ .elevation-control .legend text,
51
+ .elevation-control .point text {
52
+ fill: #000;
53
+ font-weight: 700;
54
+ paint-order: stroke fill;
55
+ stroke: #fff;
56
+ stroke-width: 2px
57
+ }
58
+
59
+ .elevation-control .y.axis text {
60
+ text-anchor: end;
61
+ }
62
+
63
+ .elevation-control .area {
64
+ fill: var(--ele-area, #4682B4);
65
+ stroke: var(--ele-stroke, #000);
66
+ stroke-width: 1.2;
67
+ paint-order: stroke fill;
68
+ }
69
+
70
+ .elevation-control .horizontal-drag-line {
71
+ cursor: row-resize;
72
+ stroke: transparent;
73
+ stroke-dasharray: 5;
74
+ stroke-width: 1.1;
75
+ }
76
+
77
+ .elevation-control .active .horizontal-drag-line {
78
+ stroke: #000;
79
+ }
80
+
81
+ .elevation-control .horizontal-drag-label {
82
+ fill: #000;
83
+ font-weight: 700;
84
+ paint-order: stroke;
85
+ stroke: #FFF;
86
+ stroke-width: 2px;
87
+ }
88
+
89
+ .elevation-control .ruler {
90
+ color: #000;
91
+ cursor: row-resize;
92
+ }
93
+
94
+ .elevation-control .mouse-focus-line {
95
+ stroke: #000;
96
+ stroke-width: 1;
97
+ }
98
+
99
+ .elevation-control .mouse-focus-label-rect {
100
+ fill: #000;
101
+ fill-opacity: 0.75;
102
+ stroke-width: 1;
103
+ stroke: #444;
104
+ }
105
+
106
+ .elevation-control .mouse-focus-label-text {
107
+ fill: #FFF;
108
+ font-size: 10px;
109
+ }
110
+
111
+ .elevation-control .brush .overlay {
112
+ cursor: unset;
113
+ }
114
+
115
+ .elevation-control .brush .selection {
116
+ fill: var(--ele-brush, rgba(23, 74, 117, 0.4));
117
+ stroke: none;
118
+ fill-opacity: unset;
119
+ }
120
+
121
+ .elevation-summary {
122
+ font-family: "Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
123
+ font-size: 12px;
124
+ margin: var(--ele-sum-margin, 0 auto);
125
+ text-shadow: var(--ele-sum-shadow, 1px 0 0 #FFF, -1px 0 0 #FFF, 0 1px 0 #FFF, 0 -1px 0 #FFF, 1px 1px #FFF, -1px -1px 0 #FFF, 1px -1px 0 #FFF, -1px 1px 0 #FFF);
126
+ }
127
+
128
+ .elevation-summary>span:not(:last-child):after {
129
+ content: var(--ele-sum-sep, '');
130
+ }
131
+
132
+ .multiline-summary>span {
133
+ display: block;
134
+ }
135
+
136
+ .multiline-summary .download {
137
+ float: right;
138
+ margin-top: -3em;
139
+ margin-right: 2em;
140
+ font-weight: bold;
141
+ font-size: 1.2em;
142
+ }
143
+
144
+ .elevation-summary .summaryvalue {
145
+ font-weight: bold;
146
+ }
147
+
148
+ .elevation-toggle-icon {
149
+ background-color: #fff;
150
+ right: 5px;
151
+ top: 5px;
152
+ height: var(--ele-toggle-size, 36px);
153
+ width: var(--ele-toggle-size, 36px);
154
+ cursor: pointer;
155
+ box-shadow: 0 1px 7px rgba(0, 0, 0, 0.4);
156
+ border-radius: 5px;
157
+ display: inline-block;
158
+ position: var(--ele-toggle-pos, relative);
159
+ }
160
+
161
+ .elevation-toggle-icon:before {
162
+ content: '\2716';
163
+ display: var(--ele-close-btn, none);
164
+ color: #000;
165
+ width: 100%;
166
+ line-height: 20px;
167
+ text-align: center;
168
+ font-weight: bold;
169
+ font-size: 15px;
170
+ }
171
+
172
+ .leaflet-elevation-pane .height-focus,
173
+ .leaflet-overlay-pane .height-focus {
174
+ stroke: #000;
175
+ fill: var(--ele-circle, var(--ele-area, #FFF));
176
+ }
177
+
178
+ .leaflet-elevation-pane .height-focus.line,
179
+ .leaflet-overlay-pane .height-focus.line {
180
+ stroke-width: 2;
181
+ }
182
+
183
+ .leaflet-elevation-pane .height-focus-label,
184
+ .leaflet-overlay-pane .height-focus-label {
185
+ font-size: 12px;
186
+ font-weight: 600;
187
+ fill: #000;
188
+ paint-order: stroke;
189
+ stroke: #FFF;
190
+ stroke-width: 2px;
191
+ }
192
+
193
+ .elevation-waypoint-icon:before,
194
+ .elevation-position-icon:before {
195
+ content: "";
196
+ width: 100%;
197
+ height: 100%;
198
+ display: inline-block;
199
+ background: var(--ele-marker) no-repeat center center / contain;
200
+ }
201
+
202
+ .elevation-polyline {
203
+ stroke: var(--ele-poly, var(--ele-area, #000));
204
+ filter: drop-shadow(1px 1px 0 #FFF) drop-shadow(-1px -1px 0 #FFF) drop-shadow(1px -1px 0 #FFF) drop-shadow(-1px 1px 0 #FFF);
205
+ }
206
+
207
+ /* CHART STATES /////////////////////////////////////////////////// */
208
+
209
+ .elevation-detached {
210
+ font: 12px/1.5 "Helvetica Neue", Arial, Helvetica, sans-serif;
211
+ height: auto;
212
+ width: 100%;
213
+ position: relative;
214
+ z-index: 0;
215
+ }
216
+
217
+ .elevation-detached .area {
218
+ fill-opacity: var(--ele-alpha, 0.8);
219
+ }
220
+
221
+ .elevation-detached.elevation-collapsed .elevation-summary {
222
+ display: block;
223
+ }
224
+
225
+ .elevation-detached.elevation-collapsed .elevation-toggle-icon {
226
+ top: 5px;
227
+ right: 9px;
228
+ bottom: 5px;
229
+ margin: auto;
230
+ }
231
+
232
+ .elevation-control.elevation-collapsed > * {
233
+ display: none;
234
+ }
235
+
236
+ .elevation-control.elevation-collapsed > .elevation-toggle-icon {
237
+ display: inline-block;
238
+ }
239
+
240
+ .elevation-detached {
241
+ --ele-sum-margin: 12px 35px;
242
+ --ele-sum-shadow: none;
243
+ --ele-toggle-pos: absolute;
244
+ }
245
+
246
+ .elevation-expanded {
247
+ --ele-close-btn: inline-block;
248
+ --ele-toggle-bg: none;
249
+ --ele-toggle-pos: absolute;
250
+ --ele-toggle-size: 20px;
251
+ }
252
+
253
+ .inline-summary {
254
+ --ele-sum-sep: "\0020\2014\0020";
255
+ }
256
+
257
+ .elevation-waypoint-icon {
258
+ --ele-marker: url(../images/elevation-pushpin.svg);
259
+ }
260
+
261
+ .elevation-position-icon {
262
+ --ele-marker: url(../images/elevation-position.svg);
263
+ }
264
+
265
+ /* LIME THEME ///////////////////////////////////////////////////// */
266
+ .lime-theme {
267
+ --ele-bg: rgba(156, 194, 34, 0.2);
268
+ --ele-axis: #566B13;
269
+ --ele-area: #9CC222;
270
+ --ele-grid: #CCC;
271
+ --ele-brush: rgba(99, 126, 11, 0.4);
272
+ --ele-poly: #566B13;
273
+ --ele-line: #70ab00;
274
+ }
275
+
276
+ /* STEELBLUE THEME //////////////////////////////////////////////// */
277
+ .steelblue-theme {
278
+ --ele-axis: #0D1821;
279
+ --ele-area: #4682B4;
280
+ --ele-brush: rgba(23, 74, 117, 0.4);
281
+ --ele-line: #174A75;
282
+ }
283
+
284
+ /* PURPLE THEME /////////////////////////////////////////////////// */
285
+ .purple-theme {
286
+ --ele-bg: rgba(115, 44, 123, 0.2);
287
+ --ele-area: #732C7B;
288
+ --ele-brush: rgba(74, 14, 80, 0.4);
289
+ --ele-line: #732c7b;
290
+ }
291
+
292
+ /* YELLOW THEME /////////////////////////////////////////////////// */
293
+ .yellow-theme {
294
+ --ele-area: #FF0;
295
+ }
296
+
297
+ /* RED THEME ////////////////////////////////////////////////////// */
298
+ .red-theme {
299
+ --ele-area: #F00;
300
+ }
301
+
302
+ /* MAGENTA THEME ////////////////////////////////////////////////// */
303
+ .magenta-theme {
304
+ --ele-bg: rgba(255, 255, 255, 0.47);
305
+ --ele-area: #FF005E;
306
+ }
307
+
308
+ /* LIGHTBLUE THEME //////////////////////////////////////////////// */
309
+ .lightblue-theme {
310
+ --ele-area: #3366CC;
311
+ --ele-alpha: 0.45;
312
+ --ele-stroke: #4682B4;
313
+ --ele-circle: #fff;
314
+ --ele-line: #000;
315
+ }
316
+
317
+ .elevation-detached.lightblue-theme .area {
318
+ stroke: #3366CC;
319
+ }
320
+
321
+ /* leaflet-distance-markers */
322
+ .dist-marker {
323
+ font-size: 0.5rem;
324
+ border: 1px solid #777;
325
+ border-radius: 10px;
326
+ text-align: center;
327
+ color: #000;
328
+ background: #fff;
329
+ }