mapshaper 0.7.68 → 0.7.70
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/mapshaper.js +1268 -789
- package/package.json +1 -1
- package/www/mapshaper-gui.js +2001 -278
- package/www/mapshaper.js +1268 -789
- package/www/page.css +120 -6
package/www/page.css
CHANGED
|
@@ -995,8 +995,12 @@ body:not(.sidebar-open) .intersection-display {
|
|
|
995
995
|
fill: var(--theme-col);
|
|
996
996
|
}
|
|
997
997
|
|
|
998
|
+
.sidebar-tab.layer-tab {
|
|
999
|
+
padding-bottom: 6px;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
998
1002
|
.sidebar-tab.console-tab {
|
|
999
|
-
padding-top:
|
|
1003
|
+
padding-top: 7px;
|
|
1000
1004
|
}
|
|
1001
1005
|
|
|
1002
1006
|
.sidebar-tab:hover .sidebar-icon * {
|
|
@@ -1693,8 +1697,8 @@ img.eye-btn {
|
|
|
1693
1697
|
box-sizing: border-box;
|
|
1694
1698
|
position: absolute;
|
|
1695
1699
|
z-index: 40;
|
|
1696
|
-
top:
|
|
1697
|
-
left:
|
|
1700
|
+
top: 7px;
|
|
1701
|
+
left: 7px;
|
|
1698
1702
|
padding: 5px 0;
|
|
1699
1703
|
}
|
|
1700
1704
|
|
|
@@ -2614,7 +2618,7 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
2614
2618
|
}
|
|
2615
2619
|
|
|
2616
2620
|
.pointer-btn .nav-sub-menu {
|
|
2617
|
-
top: -
|
|
2621
|
+
top: -2px;
|
|
2618
2622
|
}
|
|
2619
2623
|
|
|
2620
2624
|
.nav-btn.open .nav-sub-menu {
|
|
@@ -2770,7 +2774,7 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
2770
2774
|
--label-menu-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l4 4 4-4'/%3E%3C/svg%3E");
|
|
2771
2775
|
position: absolute;
|
|
2772
2776
|
z-index: 21;
|
|
2773
|
-
top:
|
|
2777
|
+
top: 7px;
|
|
2774
2778
|
right: 36px;
|
|
2775
2779
|
/* Wide enough for a pair of controls side by side, which is what these
|
|
2776
2780
|
panels are mostly made of: at 185px the narrow column of a pair was too
|
|
@@ -2843,6 +2847,69 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
2843
2847
|
width: 264px;
|
|
2844
2848
|
}
|
|
2845
2849
|
|
|
2850
|
+
.scalebar-properties-popup {
|
|
2851
|
+
width: 264px;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
.scalebar-properties-form.label-style-panel {
|
|
2855
|
+
background: transparent;
|
|
2856
|
+
border: 0;
|
|
2857
|
+
border-radius: 0;
|
|
2858
|
+
box-shadow: none;
|
|
2859
|
+
box-sizing: border-box;
|
|
2860
|
+
max-height: none;
|
|
2861
|
+
overflow: visible;
|
|
2862
|
+
padding: 0;
|
|
2863
|
+
position: static;
|
|
2864
|
+
width: 100%;
|
|
2865
|
+
}
|
|
2866
|
+
|
|
2867
|
+
.label-style-row.scalebar-row {
|
|
2868
|
+
align-items: end;
|
|
2869
|
+
display: grid;
|
|
2870
|
+
gap: 6px;
|
|
2871
|
+
}
|
|
2872
|
+
|
|
2873
|
+
.scalebar-two-col {
|
|
2874
|
+
grid-template-columns: 1fr 1fr;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
.scalebar-row select {
|
|
2878
|
+
box-sizing: border-box;
|
|
2879
|
+
min-width: 0;
|
|
2880
|
+
width: 100%;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2883
|
+
.scalebar-row > * {
|
|
2884
|
+
min-width: 0;
|
|
2885
|
+
}
|
|
2886
|
+
|
|
2887
|
+
/* The bottom padding puts the text on the baseline of the menu beside it.
|
|
2888
|
+
Baseline alignment doesn't: Chrome puts a select's baseline 2px above the
|
|
2889
|
+
text it shows. */
|
|
2890
|
+
.scalebar-checkbox {
|
|
2891
|
+
align-items: center;
|
|
2892
|
+
display: flex;
|
|
2893
|
+
padding-bottom: 2px;
|
|
2894
|
+
font-size: 12px;
|
|
2895
|
+
gap: 4px;
|
|
2896
|
+
white-space: nowrap;
|
|
2897
|
+
}
|
|
2898
|
+
|
|
2899
|
+
/* centered on the menu, which the text's baseline alignment leaves it below */
|
|
2900
|
+
.scalebar-checkbox input {
|
|
2901
|
+
margin: 0;
|
|
2902
|
+
position: relative;
|
|
2903
|
+
top: -2px;
|
|
2904
|
+
width: auto;
|
|
2905
|
+
}
|
|
2906
|
+
|
|
2907
|
+
.scalebar-properties-note {
|
|
2908
|
+
color: #a33;
|
|
2909
|
+
font-size: 12px;
|
|
2910
|
+
margin-bottom: 8px;
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2846
2913
|
/* The field tips are drawn above the "?" that opens them, which the box's own
|
|
2847
2914
|
overflow would clip. The dialog is three rows and two buttons and never has
|
|
2848
2915
|
anything to scroll. */
|
|
@@ -3269,6 +3336,53 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
3269
3336
|
color: #555;
|
|
3270
3337
|
}
|
|
3271
3338
|
|
|
3339
|
+
/* A "?" just after its caption rather than floated to the far edge of the row,
|
|
3340
|
+
and in the caption's size, so it reads as part of the caption. */
|
|
3341
|
+
.label-style-panel .label-style-row-label > .tip-button {
|
|
3342
|
+
float: none;
|
|
3343
|
+
margin: 0 0 0 4px;
|
|
3344
|
+
font-size: 12px;
|
|
3345
|
+
font-weight: bold;
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
/* The panel sits at the top of the map, where a bubble drawn above its "?"
|
|
3349
|
+
would go under the page header, so these open downward, tail pointing up. */
|
|
3350
|
+
.label-style-panel .label-style-row-label > .tip-button .tip-anchor {
|
|
3351
|
+
bottom: auto;
|
|
3352
|
+
top: 22px;
|
|
3353
|
+
}
|
|
3354
|
+
|
|
3355
|
+
.label-style-panel .label-style-row-label > .tip-button .tip:after,
|
|
3356
|
+
.label-style-panel .label-style-row-label > .tip-button .tip:before {
|
|
3357
|
+
top: auto;
|
|
3358
|
+
bottom: 100%;
|
|
3359
|
+
border-top-color: transparent;
|
|
3360
|
+
}
|
|
3361
|
+
|
|
3362
|
+
.label-style-panel .label-style-row-label > .tip-button .tip:after {
|
|
3363
|
+
border-bottom-color: #fff;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
3366
|
+
.label-style-panel .label-style-row-label > .tip-button .tip:before {
|
|
3367
|
+
border-bottom-color: #999;
|
|
3368
|
+
}
|
|
3369
|
+
|
|
3370
|
+
/* A pattern's size and gap are a pair, measured the same way, so they share
|
|
3371
|
+
the row equally rather than one taking the narrow column. */
|
|
3372
|
+
.layer-pattern-size-row {
|
|
3373
|
+
display: grid;
|
|
3374
|
+
grid-template-columns: 1fr 1fr;
|
|
3375
|
+
column-gap: 10px;
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
.layer-pattern-size-row .label-split-cell {
|
|
3379
|
+
min-width: 0;
|
|
3380
|
+
}
|
|
3381
|
+
|
|
3382
|
+
.layer-pattern-code-row input[type="text"] {
|
|
3383
|
+
width: 100%;
|
|
3384
|
+
}
|
|
3385
|
+
|
|
3272
3386
|
.label-split-row .label-split-cell + .label-split-cell {
|
|
3273
3387
|
white-space: nowrap;
|
|
3274
3388
|
}
|
|
@@ -4496,7 +4610,7 @@ body.dragging-color-picker * {
|
|
|
4496
4610
|
|
|
4497
4611
|
.simplify-control .handle {
|
|
4498
4612
|
position: absolute;
|
|
4499
|
-
top: -
|
|
4613
|
+
top: -2px;
|
|
4500
4614
|
}
|
|
4501
4615
|
|
|
4502
4616
|
.simplify-control .handle img {
|