mapshaper 0.5.112 → 0.5.115
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 +10 -0
- package/mapshaper.js +810 -689
- package/package.json +1 -1
- package/www/mapshaper-gui.js +14 -7
- package/www/mapshaper.js +810 -689
package/package.json
CHANGED
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) {
|
|
@@ -9192,7 +9198,7 @@
|
|
|
9192
9198
|
}
|
|
9193
9199
|
obj.properties.transform = getSvgFurnitureTransform(ext);
|
|
9194
9200
|
obj.properties.class = 'mapshaper-svg-furniture';
|
|
9195
|
-
obj.children = internal.importFurniture(internal.
|
|
9201
|
+
obj.children = internal.importFurniture(internal.getFrameLayerData(lyr), frame);
|
|
9196
9202
|
return internal.svg.stringify(obj);
|
|
9197
9203
|
}
|
|
9198
9204
|
|
|
@@ -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
|
|
|
@@ -10327,7 +10334,7 @@
|
|
|
10327
10334
|
|
|
10328
10335
|
function getFrameData() {
|
|
10329
10336
|
var frameLyr = internal.findFrameLayer(model);
|
|
10330
|
-
return frameLyr && internal.
|
|
10337
|
+
return frameLyr && internal.getFrameLayerData(frameLyr) || null;
|
|
10331
10338
|
}
|
|
10332
10339
|
|
|
10333
10340
|
function clearAllDisplayArcs() {
|