mapshaper 0.5.112 → 0.5.113
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/CHANGELOG.md +4 -0
- package/mapshaper.js +217 -166
- package/package.json +1 -1
- package/www/mapshaper-gui.js +12 -5
- package/www/mapshaper.js +217 -166
package/www/mapshaper-gui.js
CHANGED
|
@@ -8211,13 +8211,16 @@
|
|
|
8211
8211
|
var styleIndex = {
|
|
8212
8212
|
opacity: 'opacity',
|
|
8213
8213
|
r: 'radius',
|
|
8214
|
-
fill: 'fillColor',
|
|
8215
|
-
stroke: 'strokeColor',
|
|
8214
|
+
'fill': 'fillColor',
|
|
8216
8215
|
'fill-pattern': 'fillPattern',
|
|
8216
|
+
'fill-opacity': 'fillOpacity',
|
|
8217
|
+
'stroke': 'strokeColor',
|
|
8217
8218
|
'stroke-width': 'strokeWidth',
|
|
8218
8219
|
'stroke-dasharray': 'lineDash',
|
|
8219
8220
|
'stroke-opacity': 'strokeOpacity',
|
|
8220
|
-
'
|
|
8221
|
+
'stroke-linecap': 'lineCap',
|
|
8222
|
+
'stroke-linejoin': 'lineJoin',
|
|
8223
|
+
'stroke-miterlimit': 'miterLimit'
|
|
8221
8224
|
},
|
|
8222
8225
|
// array of field names of relevant svg display properties
|
|
8223
8226
|
fields = getCanvasStyleFields(lyr).filter(function(f) {return f in styleIndex;}),
|
|
@@ -9057,14 +9060,17 @@
|
|
|
9057
9060
|
// (tests on Chrome showed much faster rendering of 1px lines)
|
|
9058
9061
|
strokeWidth = strokeWidth < 1 ? 1 : strokeWidth * pixRatio;
|
|
9059
9062
|
}
|
|
9060
|
-
ctx.lineCap = 'round';
|
|
9061
|
-
ctx.lineJoin = 'round';
|
|
9063
|
+
ctx.lineCap = style.lineCap || 'round';
|
|
9064
|
+
ctx.lineJoin = style.lineJoin || 'round';
|
|
9062
9065
|
ctx.lineWidth = strokeWidth * lineScale;
|
|
9063
9066
|
ctx.strokeStyle = style.strokeColor;
|
|
9064
9067
|
if (style.lineDash){
|
|
9065
9068
|
ctx.lineCap = 'butt';
|
|
9066
9069
|
ctx.setLineDash(style.lineDash.split(' '));
|
|
9067
9070
|
}
|
|
9071
|
+
if (style.miterLimit) {
|
|
9072
|
+
ctx.miterLimit = style.miterLimit;
|
|
9073
|
+
}
|
|
9068
9074
|
}
|
|
9069
9075
|
|
|
9070
9076
|
if (style.fillPattern) {
|
|
@@ -9956,6 +9962,7 @@
|
|
|
9956
9962
|
clearBtn.active(!off);
|
|
9957
9963
|
if (off) {
|
|
9958
9964
|
hide();
|
|
9965
|
+
extentNote.hide();
|
|
9959
9966
|
return;
|
|
9960
9967
|
}
|
|
9961
9968
|
|