mapshaper 0.7.70 → 0.7.72
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 +1147 -124
- package/package.json +1 -1
- package/www/mapshaper-gui.js +1493 -253
- package/www/mapshaper.js +1147 -124
- package/www/page.css +41 -2
package/www/page.css
CHANGED
|
@@ -945,7 +945,7 @@ body.sidebar-panels-resizing .sidebar-panels-resize-handle::before,
|
|
|
945
945
|
}
|
|
946
946
|
|
|
947
947
|
:root {
|
|
948
|
-
--sidebar-strip-height:
|
|
948
|
+
--sidebar-strip-height: 34px;
|
|
949
949
|
}
|
|
950
950
|
|
|
951
951
|
/* Icon buttons for opening the sidebar, shown on the map while the sidebar is
|
|
@@ -1059,7 +1059,7 @@ body.sidebar-open .sidebar-panels {
|
|
|
1059
1059
|
display: flex;
|
|
1060
1060
|
align-items: center;
|
|
1061
1061
|
gap: 5px;
|
|
1062
|
-
padding:
|
|
1062
|
+
padding: 3px 8px 3px 6px;
|
|
1063
1063
|
border: 1px solid #cfdde4;
|
|
1064
1064
|
border-radius: 12px;
|
|
1065
1065
|
color: var(--theme-col);
|
|
@@ -3479,6 +3479,14 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
3479
3479
|
align-self: center;
|
|
3480
3480
|
}
|
|
3481
3481
|
|
|
3482
|
+
/* A layer with no features: every control is faded and inert, leaving the
|
|
3483
|
+
heading, the "Editing:" line that says why, and the close button. */
|
|
3484
|
+
.label-style-panel.no-targets .label-style-row:not(.label-style-selection-row),
|
|
3485
|
+
.label-style-panel.no-targets .label-style-section-title .label-toggle {
|
|
3486
|
+
opacity: 0.45;
|
|
3487
|
+
pointer-events: none;
|
|
3488
|
+
}
|
|
3489
|
+
|
|
3482
3490
|
/* A section switched off shows only its heading (see setSectionCollapsed()). */
|
|
3483
3491
|
.label-style-panel .label-style-section.collapsed > :not(.label-style-section-title) {
|
|
3484
3492
|
display: none;
|
|
@@ -3667,6 +3675,7 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
3667
3675
|
color: var(--normal-text);
|
|
3668
3676
|
cursor: pointer;
|
|
3669
3677
|
user-select: none;
|
|
3678
|
+
margin-top: 4px;
|
|
3670
3679
|
}
|
|
3671
3680
|
|
|
3672
3681
|
.label-panel-action-btn:hover:not(.disabled) {
|
|
@@ -3685,6 +3694,16 @@ body.pan.panning .map-layers:not(.drawing) {
|
|
|
3685
3694
|
gap: 4px 6px;
|
|
3686
3695
|
}
|
|
3687
3696
|
|
|
3697
|
+
/* In the narrow column beside the fill's colour, level with it and as wide
|
|
3698
|
+
as the fields in that column. */
|
|
3699
|
+
.label-split-cell > .layer-random-fill-btn {
|
|
3700
|
+
display: flex;
|
|
3701
|
+
justify-content: center;
|
|
3702
|
+
width: 100%;
|
|
3703
|
+
margin-top: 0;
|
|
3704
|
+
white-space: nowrap;
|
|
3705
|
+
}
|
|
3706
|
+
|
|
3688
3707
|
.label-style-panel .label-color-field {
|
|
3689
3708
|
display: flex;
|
|
3690
3709
|
align-items: center;
|
|
@@ -3992,6 +4011,16 @@ body.dragging-color-picker * {
|
|
|
3992
4011
|
font-size: 12px;
|
|
3993
4012
|
}
|
|
3994
4013
|
|
|
4014
|
+
/* Words, like the label panel's Fixed/Draggable, but splitting the group
|
|
4015
|
+
evenly so that it lines up with the shapes above. */
|
|
4016
|
+
.layer-style-panel .layer-arrow-position-buttons .label-panel-btn {
|
|
4017
|
+
display: flex;
|
|
4018
|
+
align-items: center;
|
|
4019
|
+
justify-content: center;
|
|
4020
|
+
padding: 0 4px;
|
|
4021
|
+
font-size: 12px;
|
|
4022
|
+
}
|
|
4023
|
+
|
|
3995
4024
|
.label-panel-btn.selected {
|
|
3996
4025
|
background-color: black;
|
|
3997
4026
|
border-color: black;
|
|
@@ -4024,6 +4053,16 @@ body.dragging-color-picker * {
|
|
|
4024
4053
|
transform: scale(1.4);
|
|
4025
4054
|
}
|
|
4026
4055
|
|
|
4056
|
+
/* Drawn as the symbol is, an outline around a hollow star, in the artwork's
|
|
4057
|
+
own 40-unit coordinates -- so the stroke width is in those units too. */
|
|
4058
|
+
.label-icon-buttons .label-panel-btn[data-icon="nyt-star"] .label-icon-symbol {
|
|
4059
|
+
fill: none;
|
|
4060
|
+
stroke: currentColor;
|
|
4061
|
+
stroke-width: 5;
|
|
4062
|
+
stroke-miterlimit: 10;
|
|
4063
|
+
transform: scale(0.95);
|
|
4064
|
+
}
|
|
4065
|
+
|
|
4027
4066
|
.label-align-buttons .label-panel-btn,
|
|
4028
4067
|
.label-callout-buttons .label-panel-btn {
|
|
4029
4068
|
display: flex;
|